bootstrap-4.scss 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712
  1. @import '~sweetalert2/src/variables';
  2. // Function
  3. @function str-replace($string, $search, $replace: '') {
  4. $index: str-index($string, $search);
  5. @if $index {
  6. @return str-slice($string, 1, $index - 1) + $replace + str-replace(str-slice($string, $index + str-length($search)), $search, $replace);
  7. }
  8. @return $string;
  9. }
  10. // Theme Variables
  11. // Color
  12. $bootstrap-primary: #007bff !default;
  13. $bootstrap-success: #28a745 !default;
  14. $bootstrap-danger: #dc3545 !default;
  15. $bootstrap-warning: #ffc107 !default;
  16. $bootstrap-info: #17a2b8 !default;
  17. $bootstrap-secondary: #6c757d !default;
  18. $bootstrap-gray-100: #f8f9fa !default;
  19. $bootstrap-gray-200: #e9ecef !default;
  20. $bootstrap-gray-300: #dee2e6 !default;
  21. $bootstrap-gray-400: #ced4da !default;
  22. $bootstrap-gray-500: #adb5bd !default;
  23. $bootstrap-gray-600: #6c757d !default;
  24. $bootstrap-gray-700: #495057 !default;
  25. $bootstrap-gray-800: #343a40 !default;
  26. $bootstrap-gray-900: #212529 !default;
  27. $bootstrap-theme-color-interval: 8% !default;
  28. // Alert
  29. $bootstrap-alert-border-level: -9 !default;
  30. $bootstrap-alert-bg-level: -10 !default;
  31. $bootstrap-alert-color-level: 6 !default;
  32. $bootstrap-alert-border-color: mix($swal2-white, $bootstrap-secondary, abs($bootstrap-alert-border-level) * $bootstrap-theme-color-interval) !default;
  33. $bootstrap-alert-background: mix($swal2-white, $bootstrap-secondary, abs($bootstrap-alert-bg-level) * $bootstrap-theme-color-interval) !default;
  34. $bootstrap-alert-color: mix($swal2-black, $bootstrap-secondary, abs($bootstrap-alert-color-level) * $bootstrap-theme-color-interval) !default;
  35. $bootstrap-alert-padding-y: .75rem !default;
  36. $bootstrap-alert-padding-x: 1.25rem !default;
  37. $bootstrap-alert-margin-bottom: 1rem !default;
  38. $bootstrap-alert-border-radius: .25rem !default;
  39. $bootstrap-alert-border-width: 1px !default;
  40. $bootstrap-alert-font-size: 1rem !default;
  41. // Input
  42. $bootstrap-input-color: $bootstrap-gray-700 !default;
  43. $bootstrap-input-bg: $swal2-white !default;
  44. $bootstrap-input-border-color: $bootstrap-gray-300 !default;
  45. $bootstrap-input-border-radius: .25rem !default;
  46. $bootstrap-input-border-width: 1px !default;
  47. $bootstrap-input-padding-y: .375rem !default;
  48. $bootstrap-input-padding-x: .75rem !default;
  49. $bootstrap-input-line-height: 1.5 !default;
  50. $bootstrap-input-height-border: $bootstrap-input-border-width * 2 !default;
  51. $bootstrap-input-height: calc(#{$bootstrap-input-line-height * 1em} + #{$bootstrap-input-padding-y * 2} + #{$bootstrap-input-height-border}) !default;
  52. $bootstrap-input-disabled-color: $swal2-white !default;
  53. $bootstrap-input-disabled-bg: $bootstrap-gray-200 !default;
  54. $bootstrap-input-focus-width: .2rem !default;
  55. $bootstrap-input-focus-border: 1px solid lighten($bootstrap-primary, 25%) !default;
  56. $bootstrap-input-focus-box-shadow: 0 0 0 $bootstrap-input-focus-width rgba($bootstrap-primary, .25) !default;
  57. // Button
  58. $bootstrap-btn-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;
  59. $bootstrap-btn-secondary-focus-box-shadow: 0 0 0 $bootstrap-input-focus-width rgba($bootstrap-secondary, .25) !default;
  60. // Custom Shared Variables
  61. $bootstrap-custom-forms-transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out !default;
  62. $bootstrap-custom-control-gutter: .5rem !default;
  63. $bootstrap-custom-control-indicator-size: 1rem !default;
  64. $bootstrap-custom-control-indicator-bg: $swal2-white !default;
  65. $bootstrap-custom-control-indicator-bg-size: 50% 50% !default;
  66. $bootstrap-custom-control-indicator-border-color: $bootstrap-gray-500 !default;
  67. $bootstrap-custom-control-indicator-border-width: $bootstrap-input-border-width !default;
  68. $bootstrap-custom-control-indicator-checked-color: $swal2-white !default;
  69. $bootstrap-custom-control-indicator-checked-bg: $bootstrap-primary !default;
  70. $bootstrap-custom-control-indicator-checked-disabled-bg: rgba($bootstrap-primary, .5) !default;
  71. $bootstrap-custom-control-indicator-checked-border-color: $bootstrap-custom-control-indicator-checked-bg !default;
  72. $bootstrap-custom-control-indicator-active-color: $swal2-white !default;
  73. $bootstrap-custom-control-indicator-active-bg: lighten($bootstrap-primary, 35%) !default;
  74. $bootstrap-custom-control-indicator-active-box-shadow: none !default;
  75. $bootstrap-custom-control-indicator-active-border-color: $bootstrap-custom-control-indicator-active-bg !default;
  76. $bootstrap-custom-control-indicator-focus-box-shadow: $bootstrap-input-focus-box-shadow !default;
  77. $bootstrap-custom-control-indicator-focus-border-color: lighten($bootstrap-primary, 25%) !default;
  78. // Custom Select
  79. $bootstrap-custom-select-bg-size: 8px 10px !default;
  80. $bootstrap-custom-select-indicator-color: $bootstrap-gray-800 !default;
  81. $bootstrap-custom-select-indicator: str-replace(url('data:image/svg+xml,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"%3e%3cpath fill="#{$bootstrap-custom-select-indicator-color}" d="M2 0L0 2h4zm0 5L0 3h4z"/%3e%3c/svg%3e'), '#', '%23') !default;
  82. $bootstrap-custom-select-background: $bootstrap-custom-select-indicator no-repeat right $bootstrap-input-padding-x center / $bootstrap-custom-select-bg-size !default; // Used so we can have multiple background elements (e.g., arrow and feedback icon)
  83. // Custom Radio
  84. $bootstrap-custom-radio-indicator-border-radius: 50% !default;
  85. $bootstrap-custom-radio-indicator-icon-checked: str-replace(url('data:image/svg+xml,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="-4 -4 8 8"%3e%3ccircle r="3" fill="#{$bootstrap-custom-control-indicator-checked-color}"/%3e%3c/svg%3e'), '#', '%23') !default;
  86. // Custom Checkbox
  87. $bootstrap-custom-checkbox-indicator-icon-checked: str-replace(url('data:image/svg+xml,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8"%3e%3cpath fill="#{$bootstrap-custom-control-indicator-checked-color}" d="M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z"/%3e%3c/svg%3e'), '#', '%23') !default;
  88. // Custom Range
  89. $bootstrap-custom-range-track-width: 100% !default;
  90. $bootstrap-custom-range-track-height: .5rem !default;
  91. $bootstrap-custom-range-track-cursor: pointer !default;
  92. $bootstrap-custom-range-track-bg: $bootstrap-gray-300 !default;
  93. $bootstrap-custom-range-track-border-radius: 1rem !default;
  94. $bootstrap-custom-range-track-box-shadow: inset 0 .25rem .25rem rgba($swal2-black, .1) !default;
  95. $bootstrap-custom-range-thumb-width: 1rem !default;
  96. $bootstrap-custom-range-thumb-height: $bootstrap-custom-range-thumb-width !default;
  97. $bootstrap-custom-range-thumb-bg: $bootstrap-primary !default;
  98. $bootstrap-custom-range-thumb-border: 0 !default;
  99. $bootstrap-custom-range-thumb-border-radius: 1rem !default;
  100. $bootstrap-custom-range-thumb-box-shadow: 0 .1rem .25rem rgba($swal2-black, .1) !default;
  101. $bootstrap-custom-range-thumb-focus-box-shadow: 0 0 0 1px $swal2-white, $bootstrap-input-focus-box-shadow !default;
  102. $bootstrap-custom-range-thumb-focus-box-shadow-width: $bootstrap-input-focus-width !default; // For focus box shadow issue in IE/Edge
  103. $bootstrap-custom-range-thumb-active-bg: lighten($bootstrap-primary, 35%) !default;
  104. $bootstrap-custom-range-thumb-disabled-bg: $bootstrap-gray-500 !default;
  105. // Toast
  106. $bootstrap-toast-max-width: 350px !default;
  107. $bootstrap-toast-padding-x: .75rem !default;
  108. $bootstrap-toast-padding-y: .25rem !default;
  109. $bootstrap-toast-font-size: .875rem !default;
  110. $bootstrap-toast-background-color: rgba($swal2-white, .85) !default;
  111. $bootstrap-toast-border-width: 1px !default;
  112. $bootstrap-toast-border-color: rgba(0, 0, 0, .1) !default;
  113. $bootstrap-toast-border-radius: .25rem !default;
  114. $bootstrap-toast-box-shadow: 0 .25rem .75rem rgba($swal2-black, .1) !default;
  115. // override SASS variables here
  116. // BOX MODEL
  117. $swal2-padding: 1rem;
  118. $swal2-border-radius: .3rem;
  119. // ANIMATIONS
  120. // animate.css/fading_entrances/fadeInDown.css
  121. @keyframes fadeInDown {
  122. from {
  123. transform: translate3d(0, -100%, 0);
  124. opacity: 0;
  125. }
  126. to {
  127. transform: translate3d(0, 0, 0);
  128. opacity: 1;
  129. }
  130. }
  131. // animate.css/fading_exits/fadeOutUp.css
  132. @keyframes fadeOutUp {
  133. from {
  134. opacity: 1;
  135. }
  136. to {
  137. transform: translate3d(0, -100%, 0);
  138. opacity: 0;
  139. }
  140. }
  141. $swal2-show-animation: fadeInDown .5s;
  142. $swal2-hide-animation: fadeOutUp .5s;
  143. // BACKDROP
  144. $swal2-backdrop: rgba($swal2-black, .5);
  145. $swal2-backdrop-transition: background-color .5s;
  146. // ICONS
  147. $swal2-success: $bootstrap-success;
  148. $swal2-error: $bootstrap-danger;
  149. $swal2-warning: $bootstrap-warning;
  150. $swal2-info: $bootstrap-info;
  151. $swal2-question: $bootstrap-secondary;
  152. // INPUT
  153. $swal2-input-border: $bootstrap-input-border-width solid $bootstrap-input-border-color;
  154. $swal2-input-border-radius: $bootstrap-input-border-radius;
  155. $swal2-input-border-focus: none;
  156. $swal2-input-box-shadow-focus: none;
  157. $swal2-input-font-size: 1rem;
  158. $swal2-input-padding: $bootstrap-input-padding-y $bootstrap-input-padding-x;
  159. // CLOSE BUTTON
  160. $swal2-close-button-width: 2em;
  161. $swal2-close-button-height: 2em;
  162. $swal2-close-button-line-height: 1;
  163. $swal2-close-button-color: rgba($swal2-black, .5);
  164. $swal2-close-button-font-size: 1.5rem;
  165. // CLOSE BUTTON:HOVER
  166. $swal2-close-button-hover-color: $swal2-black;
  167. // CONFIRM BUTTON
  168. $swal2-confirm-button-background-color: $bootstrap-primary;
  169. // CANCEL BUTTON
  170. $swal2-cancel-button-background-color: $bootstrap-secondary;
  171. // COMMON VARIABLES FOR CONFIRM AND CANCEL BUTTONS
  172. $swal2-button-focus-outline: none;
  173. // TOASTS
  174. $swal2-toast-border: $bootstrap-toast-border-color solid $bootstrap-toast-border-width;
  175. $swal2-toast-box-shadow: $bootstrap-toast-box-shadow;
  176. $swal2-toast-padding: $bootstrap-toast-padding-x $bootstrap-toast-padding-y;
  177. $swal2-toast-title-font-size: $bootstrap-toast-font-size;
  178. $swal2-toast-content-font-size: $bootstrap-toast-font-size;
  179. $swal2-toast-input-font-size: $bootstrap-toast-font-size;
  180. $swal2-toast-validation-font-size: $bootstrap-toast-font-size;
  181. $swal2-toast-buttons-font-size: $bootstrap-toast-font-size;
  182. @import '~sweetalert2/src/sweetalert2';
  183. .swal2-confirm,
  184. .swal2-cancel {
  185. transition: $bootstrap-btn-transition;
  186. }
  187. .swal2-popup {
  188. border: $bootstrap-input-border-width solid rgba(0, 0, 0, .2);
  189. &.swal2-toast {
  190. padding: .25rem .75rem;
  191. font-size: .875rem;
  192. .swal2-header {
  193. padding: 0;
  194. border-bottom: 0;
  195. }
  196. .swal2-title {
  197. margin: 0;
  198. color: $bootstrap-gray-600;
  199. }
  200. .swal2-content {
  201. padding: 0 .5rem;
  202. }
  203. .swal2-actions {
  204. flex-basis: 0 !important;
  205. margin: 0;
  206. padding: 0;
  207. }
  208. .swal2-styled {
  209. margin: 0;
  210. }
  211. }
  212. }
  213. .swal2-title {
  214. margin: 0;
  215. font-size: 1.25rem;
  216. }
  217. .swal2-content {
  218. padding: 1rem 1rem 0;
  219. }
  220. .swal2-actions {
  221. border-radius: $bootstrap-input-border-radius;
  222. }
  223. .swal2-footer {
  224. padding: 1rem;
  225. border-top: $bootstrap-input-border-width solid $bootstrap-input-border-color;
  226. }
  227. .swal2-close {
  228. height: auto;
  229. padding: 1rem 1.2rem 1rem 1rem;
  230. font-weight: 700;
  231. }
  232. .swal2-input,
  233. .swal2-textarea {
  234. height: inherit;
  235. padding: $swal2-input-padding;
  236. transition: $bootstrap-custom-forms-transition;
  237. line-height: $bootstrap-input-line-height;
  238. &:focus {
  239. border: $bootstrap-input-focus-border;
  240. outline: 0;
  241. box-shadow: $bootstrap-input-focus-box-shadow;
  242. color: $bootstrap-input-color;
  243. }
  244. &.swal2-inputerror {
  245. box-shadow: none !important;
  246. &:focus {
  247. border-color: $bootstrap-danger;
  248. box-shadow: 0 0 0 $bootstrap-input-focus-width rgba($bootstrap-danger, .25) !important;
  249. }
  250. }
  251. }
  252. .swal2-styled {
  253. &.swal2-confirm {
  254. padding: $swal2-input-padding;
  255. font-size: 1rem;
  256. &:hover {
  257. border-color: darken($bootstrap-primary, 10%);
  258. background-color: darken($bootstrap-primary, 7.5%);
  259. }
  260. &:focus {
  261. outline: 0;
  262. box-shadow: $bootstrap-input-focus-box-shadow;
  263. }
  264. &:active {
  265. border-color: darken($bootstrap-primary, 12.5%);
  266. background-color: darken($bootstrap-primary, 10%);
  267. &:focus {
  268. box-shadow: $bootstrap-input-focus-box-shadow;
  269. }
  270. }
  271. }
  272. &.swal2-cancel {
  273. padding: $swal2-input-padding;
  274. font-size: 1rem;
  275. &:hover {
  276. border-color: darken($bootstrap-secondary, 10%);
  277. background-color: darken($bootstrap-secondary, 7.5%);
  278. }
  279. &:focus {
  280. outline: 0;
  281. box-shadow: $bootstrap-btn-secondary-focus-box-shadow;
  282. }
  283. &:active {
  284. border-color: darken($bootstrap-secondary, 12.5%);
  285. background-color: darken($bootstrap-secondary, 10%);
  286. &:focus {
  287. box-shadow: $bootstrap-btn-secondary-focus-box-shadow;
  288. }
  289. }
  290. }
  291. }
  292. .swal2-select {
  293. display: inline-block;
  294. width: 100%;
  295. height: $bootstrap-input-height;
  296. padding: .375rem 1.75rem .375rem .75rem;
  297. transition: $bootstrap-custom-forms-transition;
  298. border: $bootstrap-input-border-width solid $bootstrap-input-border-color;
  299. border-radius: $bootstrap-input-border-radius;
  300. background: $bootstrap-custom-select-background;
  301. background-color: $bootstrap-input-bg;
  302. color: $bootstrap-input-color;
  303. vertical-align: middle;
  304. // @include box-shadow($custom-select-box-shadow);
  305. appearance: none;
  306. &:focus {
  307. border: $bootstrap-input-focus-border;
  308. outline: 0;
  309. box-shadow: $bootstrap-input-focus-box-shadow;
  310. &::-ms-value {
  311. background-color: $bootstrap-input-bg;
  312. color: $bootstrap-input-color;
  313. }
  314. }
  315. &[multiple],
  316. &[size]:not([size='1']) {
  317. height: auto;
  318. padding-right: $bootstrap-input-padding-x;
  319. background-image: none;
  320. }
  321. &:disabled {
  322. background-color: $bootstrap-input-disabled-bg;
  323. color: $bootstrap-input-disabled-color;
  324. }
  325. &::-ms-expand {
  326. display: none;
  327. }
  328. }
  329. .swal2-radio {
  330. label {
  331. position: relative;
  332. margin-right: 1rem;
  333. margin-left: 1.5rem;
  334. input {
  335. position: absolute;
  336. z-index: -1;
  337. opacity: 0;
  338. &:checked ~ .swal2-label::before {
  339. border-color: $bootstrap-custom-control-indicator-checked-border-color;
  340. background: $bootstrap-custom-control-indicator-checked-bg;
  341. color: $bootstrap-custom-control-indicator-checked-color;
  342. }
  343. &:focus ~ .swal2-label::before {
  344. box-shadow: $bootstrap-custom-control-indicator-focus-box-shadow;
  345. }
  346. &:focus:not(:checked) ~ .swal2-label::before {
  347. border-color: $bootstrap-custom-control-indicator-focus-border-color;
  348. }
  349. &:not(:disabled):active ~ .swal2-label::before {
  350. border-color: $bootstrap-custom-control-indicator-active-border-color;
  351. background-color: $bootstrap-custom-control-indicator-active-bg;
  352. color: $bootstrap-custom-control-indicator-active-color;
  353. }
  354. }
  355. input:checked ~ .swal2-label::after {
  356. background-image: $bootstrap-custom-radio-indicator-icon-checked;
  357. }
  358. input:disabled:checked ~ .swal2-label::before {
  359. background-color: $bootstrap-custom-control-indicator-checked-disabled-bg;
  360. }
  361. }
  362. .swal2-label {
  363. &::before {
  364. content: '';
  365. display: block;
  366. position: absolute;
  367. top: ($swal2-input-font-size * $bootstrap-input-line-height - $bootstrap-custom-control-indicator-size) / 6;
  368. left: -($bootstrap-custom-control-gutter + $bootstrap-custom-control-indicator-size);
  369. width: $bootstrap-custom-control-indicator-size;
  370. height: $bootstrap-custom-control-indicator-size;
  371. transition: $bootstrap-custom-forms-transition;
  372. border: $bootstrap-custom-control-indicator-border-color solid $bootstrap-custom-control-indicator-border-width;
  373. border-radius: $bootstrap-custom-radio-indicator-border-radius;
  374. background-color: $bootstrap-custom-control-indicator-bg;
  375. pointer-events: none;
  376. }
  377. &::after {
  378. content: '';
  379. display: block;
  380. position: absolute;
  381. top: ($swal2-input-font-size * $bootstrap-input-line-height - $bootstrap-custom-control-indicator-size) / 6;
  382. left: -($bootstrap-custom-control-gutter + $bootstrap-custom-control-indicator-size);
  383. width: $bootstrap-custom-control-indicator-size;
  384. height: $bootstrap-custom-control-indicator-size;
  385. transition: $bootstrap-custom-forms-transition;
  386. border: transparent solid $bootstrap-custom-control-indicator-border-width;
  387. background: no-repeat 50% / #{$bootstrap-custom-control-indicator-bg-size};
  388. }
  389. }
  390. }
  391. .swal2-checkbox {
  392. margin-right: 1rem;
  393. padding-left: 1.5rem;
  394. input {
  395. z-index: -1;
  396. opacity: 0;
  397. &:checked ~ .swal2-label::before {
  398. border-color: $bootstrap-custom-control-indicator-checked-border-color;
  399. background: $bootstrap-custom-control-indicator-checked-bg;
  400. color: $bootstrap-custom-control-indicator-checked-color;
  401. }
  402. &:focus ~ .swal2-label::before {
  403. box-shadow: $bootstrap-custom-control-indicator-focus-box-shadow;
  404. }
  405. &:focus:not(:checked) ~ .swal2-label::before {
  406. border-color: $bootstrap-custom-control-indicator-focus-border-color;
  407. }
  408. &:not(:disabled):active ~ .swal2-label::before {
  409. border-color: $bootstrap-custom-control-indicator-active-border-color;
  410. background-color: $bootstrap-custom-control-indicator-active-bg;
  411. color: $bootstrap-custom-control-indicator-active-color;
  412. }
  413. }
  414. input:checked ~ .swal2-label::after {
  415. background-image: $bootstrap-custom-checkbox-indicator-icon-checked;
  416. }
  417. input:disabled:checked ~ .swal2-label::before {
  418. background-color: $bootstrap-custom-control-indicator-checked-disabled-bg;
  419. }
  420. .swal2-label {
  421. position: relative;
  422. &::before {
  423. content: '';
  424. display: block;
  425. position: absolute;
  426. top: ($swal2-input-font-size * $bootstrap-input-line-height - $bootstrap-custom-control-indicator-size) / 2;
  427. left: -($bootstrap-custom-control-gutter + $bootstrap-custom-control-indicator-size);
  428. width: $bootstrap-custom-control-indicator-size;
  429. height: $bootstrap-custom-control-indicator-size;
  430. transition: $bootstrap-custom-forms-transition;
  431. border: $bootstrap-custom-control-indicator-border-color solid $bootstrap-custom-control-indicator-border-width;
  432. background-color: $bootstrap-custom-control-indicator-bg;
  433. pointer-events: none;
  434. }
  435. &::after {
  436. content: '';
  437. display: block;
  438. position: absolute;
  439. top: ($swal2-input-font-size * $bootstrap-input-line-height - $bootstrap-custom-control-indicator-size) / 2;
  440. left: -($bootstrap-custom-control-gutter + $bootstrap-custom-control-indicator-size);
  441. width: $bootstrap-custom-control-indicator-size;
  442. height: $bootstrap-custom-control-indicator-size;
  443. transition: $bootstrap-custom-forms-transition;
  444. border: transparent solid $bootstrap-custom-control-indicator-border-width;
  445. background: no-repeat 50% / #{$bootstrap-custom-control-indicator-bg-size};
  446. }
  447. }
  448. }
  449. .swal2-range {
  450. align-items: center;
  451. input {
  452. width: 100%;
  453. height: calc(#{$bootstrap-custom-range-thumb-height} + #{$bootstrap-custom-range-thumb-focus-box-shadow-width * 3});
  454. padding: 0;
  455. background-color: transparent;
  456. appearance: none;
  457. &:focus {
  458. outline: none;
  459. &::-webkit-slider-thumb {
  460. box-shadow: $bootstrap-custom-range-thumb-focus-box-shadow;
  461. }
  462. &::-moz-range-thumb {
  463. box-shadow: $bootstrap-custom-range-thumb-focus-box-shadow;
  464. }
  465. &::-ms-thumb {
  466. box-shadow: $bootstrap-custom-range-thumb-focus-box-shadow;
  467. }
  468. }
  469. &::-moz-focus-outer {
  470. border: 0;
  471. }
  472. &::-webkit-slider-thumb {
  473. width: $bootstrap-custom-range-thumb-width;
  474. height: $bootstrap-custom-range-thumb-height;
  475. margin-top: ($bootstrap-custom-range-track-height - $bootstrap-custom-range-thumb-height) / 2;
  476. transition: $bootstrap-custom-forms-transition;
  477. border: $bootstrap-custom-range-thumb-border;
  478. border-radius: $bootstrap-custom-range-thumb-border-radius;
  479. background: $bootstrap-custom-range-thumb-bg;
  480. box-shadow: $bootstrap-custom-range-thumb-box-shadow;
  481. appearance: none;
  482. &:active {
  483. background: $bootstrap-custom-range-thumb-active-bg;
  484. }
  485. }
  486. &::-webkit-slider-runnable-track {
  487. width: $bootstrap-custom-range-track-width;
  488. height: $bootstrap-custom-range-track-height;
  489. border-radius: $bootstrap-custom-range-track-border-radius;
  490. border-color: transparent;
  491. background-color: $bootstrap-custom-range-track-bg;
  492. box-shadow: $bootstrap-custom-range-track-box-shadow;
  493. color: transparent;
  494. cursor: $bootstrap-custom-range-track-cursor;
  495. }
  496. &::-moz-range-thumb {
  497. width: $bootstrap-custom-range-thumb-width;
  498. height: $bootstrap-custom-range-thumb-height;
  499. margin-top: 1rem;
  500. transition: $bootstrap-custom-forms-transition;
  501. border: $bootstrap-custom-range-thumb-border;
  502. border-radius: $bootstrap-custom-range-thumb-border-radius;
  503. background: $bootstrap-custom-range-thumb-bg;
  504. box-shadow: $bootstrap-custom-range-thumb-box-shadow;
  505. appearance: none;
  506. &:active {
  507. background: $bootstrap-custom-range-thumb-active-bg;
  508. }
  509. }
  510. &::-moz-range-track {
  511. width: $bootstrap-custom-range-track-width;
  512. height: $bootstrap-custom-range-track-height;
  513. border-radius: $bootstrap-custom-range-track-border-radius;
  514. border-color: transparent;
  515. background-color: $bootstrap-custom-range-track-bg;
  516. box-shadow: $bootstrap-custom-range-track-box-shadow;
  517. color: transparent;
  518. cursor: $bootstrap-custom-range-track-cursor;
  519. }
  520. &::-ms-thumb {
  521. width: $bootstrap-custom-range-thumb-width;
  522. height: $bootstrap-custom-range-thumb-height;
  523. margin-top: 0;
  524. margin-right: $bootstrap-custom-range-thumb-focus-box-shadow-width;
  525. margin-left: $bootstrap-custom-range-thumb-focus-box-shadow-width;
  526. transition: $bootstrap-custom-forms-transition;
  527. border: $bootstrap-custom-range-thumb-border;
  528. border-radius: $bootstrap-custom-range-thumb-border-radius;
  529. background: $bootstrap-custom-range-thumb-bg;
  530. box-shadow: $bootstrap-custom-range-thumb-box-shadow;
  531. appearance: none;
  532. &:active {
  533. background: $bootstrap-custom-range-thumb-active-bg;
  534. }
  535. }
  536. &::-ms-track {
  537. width: $bootstrap-custom-range-track-width;
  538. height: $bootstrap-custom-range-track-height;
  539. border-width: $bootstrap-custom-range-thumb-height / 2;
  540. border-color: transparent;
  541. background-color: transparent;
  542. box-shadow: $bootstrap-custom-range-track-box-shadow;
  543. color: transparent;
  544. cursor: $bootstrap-custom-range-track-cursor;
  545. }
  546. &::-ms-fill-lower {
  547. border-radius: $bootstrap-custom-range-track-border-radius;
  548. background-color: $bootstrap-custom-range-track-bg;
  549. }
  550. &::-ms-fill-upper {
  551. margin-right: 15px;
  552. border-radius: $bootstrap-custom-range-track-border-radius;
  553. background-color: $bootstrap-custom-range-track-bg;
  554. }
  555. &:disabled {
  556. &::-webkit-slider-thumb {
  557. background-color: $bootstrap-custom-range-thumb-disabled-bg;
  558. }
  559. &::-webkit-slider-runnable-track {
  560. cursor: default;
  561. }
  562. &::-moz-range-thumb {
  563. background-color: $bootstrap-custom-range-thumb-disabled-bg;
  564. }
  565. &::-moz-range-track {
  566. cursor: default;
  567. }
  568. &::-ms-thumb {
  569. background-color: $bootstrap-custom-range-thumb-disabled-bg;
  570. }
  571. }
  572. }
  573. }
  574. .swal2-validation-message {
  575. position: relative;
  576. margin-bottom: $bootstrap-alert-margin-bottom;
  577. padding: $bootstrap-alert-padding-y $bootstrap-alert-padding-x;
  578. border: $bootstrap-alert-border-width solid transparent;
  579. border-radius: $bootstrap-alert-border-radius;
  580. border-color: $bootstrap-alert-border-color;
  581. background: $bootstrap-alert-background;
  582. color: $bootstrap-alert-color;
  583. font-size: $bootstrap-alert-font-size;
  584. &::before {
  585. background-color: lighten($bootstrap-danger, 10%);
  586. }
  587. }
  588. .swal2-toast {
  589. max-width: $bootstrap-toast-max-width;
  590. border-radius: $bootstrap-toast-border-radius;
  591. background-color: $bootstrap-toast-background-color;
  592. }
  593. //