_buttons.bootstrap5.scss 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. @keyframes dtb-spinner {
  2. 100% {
  3. transform: rotate(360deg);
  4. }
  5. }
  6. @-o-keyframes dtb-spinner {
  7. 100% {
  8. -o-transform: rotate(360deg);
  9. transform: rotate(360deg);
  10. }
  11. }
  12. @-ms-keyframes dtb-spinner {
  13. 100% {
  14. -ms-transform: rotate(360deg);
  15. transform: rotate(360deg);
  16. }
  17. }
  18. @-webkit-keyframes dtb-spinner {
  19. 100% {
  20. -webkit-transform: rotate(360deg);
  21. transform: rotate(360deg);
  22. }
  23. }
  24. @-moz-keyframes dtb-spinner {
  25. 100% {
  26. -moz-transform: rotate(360deg);
  27. transform: rotate(360deg);
  28. }
  29. }
  30. div {
  31. &.dt-button-info {
  32. position: fixed;
  33. inset-block-start: 50%;
  34. inset-inline-start: 50%;
  35. width: 400px;
  36. margin-block-start: -100px;
  37. margin-inline-start: -200px;
  38. background-color: white;
  39. border: 2px solid #111;
  40. box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
  41. border-radius: 3px;
  42. text-align: center;
  43. z-index: 21;
  44. h2 {
  45. padding: 0.5em;
  46. margin: 0;
  47. font-weight: normal;
  48. border-block-end: 1px solid #ddd;
  49. background-color: #f3f3f3;
  50. }
  51. > div {
  52. padding: 1em;
  53. }
  54. }
  55. &.dt-button-collection-title {
  56. text-align: center;
  57. padding: 0.3em 0 0.5em;
  58. font-size: 0.9em;
  59. &:empty {
  60. display: none;
  61. }
  62. }
  63. &.dt-button-collection {
  64. position: absolute;
  65. z-index: 2001;
  66. div {
  67. &.dropdown-menu {
  68. display: block;
  69. z-index: 2002;
  70. min-width: 100%;
  71. }
  72. &.dt-button-collection-title {
  73. background-color: white;
  74. border: 1px solid rgba(0, 0, 0, 0.15);
  75. }
  76. }
  77. &.fixed {
  78. position: fixed;
  79. inset-block-start: 50%;
  80. inset-inline-start: 50%;
  81. margin-inline-start: -75px;
  82. border-radius: 0;
  83. &.two-column {
  84. margin-inline-start: -200px;
  85. }
  86. &.three-column {
  87. margin-inline-start: -225px;
  88. }
  89. &.four-column {
  90. margin-inline-start: -300px;
  91. }
  92. }
  93. > :last-child {
  94. display: block !important;
  95. -webkit-column-gap: 8px;
  96. -moz-column-gap: 8px;
  97. -ms-column-gap: 8px;
  98. -o-column-gap: 8px;
  99. column-gap: 8px;
  100. > * {
  101. -webkit-column-break-inside: avoid;
  102. break-inside: avoid;
  103. }
  104. }
  105. &.two-column {
  106. width: 400px;
  107. > :last-child {
  108. padding-block-end: 1px;
  109. -webkit-column-count: 2;
  110. -moz-column-count: 2;
  111. -ms-column-count: 2;
  112. -o-column-count: 2;
  113. column-count: 2;
  114. }
  115. }
  116. &.three-column {
  117. width: 450px;
  118. > :last-child {
  119. padding-block-end: 1px;
  120. -webkit-column-count: 3;
  121. -moz-column-count: 3;
  122. -ms-column-count: 3;
  123. -o-column-count: 3;
  124. column-count: 3;
  125. }
  126. }
  127. &.four-column {
  128. width: 600px;
  129. > :last-child {
  130. padding-block-end: 1px;
  131. -webkit-column-count: 4;
  132. -moz-column-count: 4;
  133. -ms-column-count: 4;
  134. -o-column-count: 4;
  135. column-count: 4;
  136. }
  137. }
  138. .dt-button {
  139. border-radius: 0;
  140. }
  141. &.fixed {
  142. max-width: none;
  143. &:before,
  144. &:after {
  145. display: none;
  146. }
  147. }
  148. }
  149. &.dt-button-background {
  150. position: fixed;
  151. inset-block-start: 0;
  152. inset-inline-start: 0;
  153. width: 100%;
  154. height: 100%;
  155. z-index: 999;
  156. }
  157. &.dt-buttons {
  158. button.btn.processing,
  159. div.btn.processing,
  160. a.btn.processing {
  161. color: rgba(0, 0, 0, 0.2);
  162. }
  163. button.btn.processing:after,
  164. div.btn.processing:after,
  165. a.btn.processing:after {
  166. position: absolute;
  167. inset-block-start: 50%;
  168. inset-inline-start: 50%;
  169. width: 16px;
  170. height: 16px;
  171. margin: -8px 0 0 -8px;
  172. box-sizing: border-box;
  173. display: block;
  174. content: " ";
  175. border: 2px solid #282828;
  176. border-radius: 50%;
  177. border-inline-start-color: transparent;
  178. border-inline-end-color: transparent;
  179. animation: dtb-spinner 1500ms infinite linear;
  180. -o-animation: dtb-spinner 1500ms infinite linear;
  181. -ms-animation: dtb-spinner 1500ms infinite linear;
  182. -webkit-animation: dtb-spinner 1500ms infinite linear;
  183. -moz-animation: dtb-spinner 1500ms infinite linear;
  184. }
  185. }
  186. }
  187. @media screen and (max-width: 767px) {
  188. div.dt-buttons {
  189. float: none;
  190. width: 100%;
  191. text-align: center;
  192. margin-block-end: 0.5em;
  193. a.btn {
  194. float: none;
  195. }
  196. }
  197. }