index.css 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
  2. /* stylelint-disable no-duplicate-selectors */
  3. .ant-float-btn {
  4. position: fixed;
  5. z-index: 99;
  6. display: block;
  7. align-items: center;
  8. justify-content: center;
  9. width: 40px;
  10. height: 40px;
  11. overflow: hidden;
  12. border: none;
  13. box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  14. cursor: pointer;
  15. inset-inline-end: 24px;
  16. inset-block-end: 48px;
  17. }
  18. .ant-float-btn-hidden {
  19. display: none;
  20. }
  21. .ant-float-btn-pure {
  22. position: relative;
  23. inset: auto;
  24. }
  25. .ant-float-btn:empty {
  26. display: none;
  27. }
  28. .ant-float-btn-body {
  29. display: flex;
  30. align-items: center;
  31. justify-content: center;
  32. width: 100%;
  33. height: 100%;
  34. transition: all 0.2s;
  35. }
  36. .ant-float-btn-body .ant-float-btn-content {
  37. display: flex;
  38. flex-direction: column;
  39. align-items: center;
  40. justify-content: center;
  41. min-height: 40px;
  42. padding: 2px 4px;
  43. overflow: hidden;
  44. text-align: center;
  45. }
  46. .ant-float-btn-body .ant-float-btn-content .ant-float-btn-icon {
  47. width: 18px;
  48. margin: auto;
  49. font-size: 18px;
  50. line-height: 1;
  51. text-align: center;
  52. }
  53. .ant-float-btn-inner {
  54. display: block;
  55. width: 100%;
  56. height: 100%;
  57. margin: 0;
  58. padding: 0;
  59. list-style: none;
  60. border: none;
  61. }
  62. .ant-float-btn-rtl {
  63. direction: rtl;
  64. }
  65. .ant-float-btn-circle {
  66. height: 40px;
  67. border-radius: 50%;
  68. }
  69. .ant-float-btn-circle .ant-float-btn-body {
  70. border-radius: 50%;
  71. }
  72. .ant-float-btn-square {
  73. height: auto;
  74. min-height: 40px;
  75. border-radius: 2px;
  76. }
  77. .ant-float-btn-square .ant-float-btn-body {
  78. height: auto;
  79. border-radius: 2px;
  80. }
  81. .ant-float-btn-default {
  82. background-color: #fff;
  83. transition: background-color 0.2s;
  84. }
  85. .ant-float-btn-default .ant-float-btn-body {
  86. background-color: #fff;
  87. transition: background-color 0.2s;
  88. }
  89. .ant-float-btn-default .ant-float-btn-body:hover {
  90. color: rgba(0, 0, 0, 0.85);
  91. background-color: #f5f5f5;
  92. }
  93. .ant-float-btn-default .ant-float-btn-body .ant-float-btn-content .ant-float-btn-icon {
  94. color: rgba(0, 0, 0, 0.85);
  95. }
  96. .ant-float-btn-default .ant-float-btn-body .ant-float-btn-content .ant-float-btn-description {
  97. display: flex;
  98. align-items: center;
  99. color: rgba(0, 0, 0, 0.85);
  100. font-size: 12px;
  101. line-height: 1.5715;
  102. }
  103. .ant-float-btn-default:focus {
  104. color: rgba(0, 0, 0, 0.85);
  105. }
  106. .ant-float-btn-top {
  107. padding: 0 !important;
  108. }
  109. .ant-float-btn-group {
  110. position: fixed;
  111. z-index: 99;
  112. display: block;
  113. box-sizing: border-box;
  114. width: 40px;
  115. height: auto;
  116. min-height: 40px;
  117. margin: 0;
  118. padding: 0;
  119. color: rgba(0, 0, 0, 0.85);
  120. font-size: 14px;
  121. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  122. line-height: 1.5715;
  123. list-style: none;
  124. border: none;
  125. border-radius: 2px;
  126. box-shadow: none;
  127. inset-inline-end: 24px;
  128. inset-block-end: 48px;
  129. }
  130. .ant-float-btn-group-wrap {
  131. position: relative;
  132. z-index: -1;
  133. display: block;
  134. margin-bottom: 16px;
  135. }
  136. .ant-float-btn-group-rtl {
  137. direction: rtl;
  138. }
  139. .ant-float-btn-group .ant-float-btn {
  140. position: static;
  141. }
  142. .ant-float-btn-group-circle .ant-float-btn-circle:not(:last-child) {
  143. margin-bottom: 16px;
  144. }
  145. .ant-float-btn-group-circle .ant-float-btn-body {
  146. width: 40px;
  147. height: 40px;
  148. }
  149. .ant-float-btn-group-square .ant-float-btn-square {
  150. padding: 0;
  151. border-radius: 0;
  152. }
  153. .ant-float-btn-group-square .ant-float-btn-square:first-child {
  154. border-start-start-radius: 2px;
  155. border-start-end-radius: 2px;
  156. }
  157. .ant-float-btn-group-square .ant-float-btn-square:last-child {
  158. border-start-start-radius: 2px;
  159. border-start-end-radius: 2px;
  160. }
  161. .ant-float-btn-group-square .ant-float-btn-square:not(:last-child) {
  162. border-bottom: 1px solid #d9d9d9;
  163. }
  164. .ant-float-btn-group-square .ant-float-btn-group-wrap {
  165. display: block;
  166. overflow: hidden;
  167. border-radius: 2px;
  168. box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  169. }
  170. .ant-float-btn-group-square .ant-float-btn-group-wrap .ant-float-btn-square {
  171. margin-top: 0;
  172. padding: 4px;
  173. border-radius: 0;
  174. box-shadow: none;
  175. }
  176. .ant-float-btn-group-square .ant-float-btn-group-wrap .ant-float-btn-square:first-child {
  177. border-start-start-radius: 2px;
  178. border-start-end-radius: 2px;
  179. }
  180. .ant-float-btn-group-square .ant-float-btn-group-wrap .ant-float-btn-square:last-child {
  181. border-start-start-radius: 2px;
  182. border-start-end-radius: 2px;
  183. }
  184. .ant-float-btn-group-square .ant-float-btn-group-wrap .ant-float-btn-square:not(:last-child) {
  185. border-bottom: 1px solid #d9d9d9;
  186. }
  187. .ant-float-btn-group-square .ant-float-btn-group-wrap .ant-float-btn-square .ant-float-btn-body {
  188. width: 32px;
  189. height: 32px;
  190. }
  191. .ant-float-btn-group-circle-shadow {
  192. box-shadow: none;
  193. }
  194. .ant-float-btn-group-square-shadow {
  195. box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  196. }
  197. .ant-float-btn-group-square-shadow .ant-float-btn-square {
  198. padding: 4px;
  199. box-shadow: none;
  200. }
  201. .ant-float-btn-group-square-shadow .ant-float-btn-square .ant-float-btn-body {
  202. width: 32px;
  203. height: 32px;
  204. }