1
0

bootstrap-4.scss 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  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. // BACKDROP
  120. $swal2-backdrop: rgba($swal2-black, .5);
  121. $swal2-backdrop-transition: background-color .15s;
  122. // ICONS
  123. $swal2-success: $bootstrap-success;
  124. $swal2-error: $bootstrap-danger;
  125. $swal2-warning: $bootstrap-warning;
  126. $swal2-info: $bootstrap-info;
  127. $swal2-question: $bootstrap-secondary;
  128. // INPUT
  129. $swal2-input-border: $bootstrap-input-border-width solid $bootstrap-input-border-color;
  130. $swal2-input-border-radius: $bootstrap-input-border-radius;
  131. $swal2-input-border-focus: none;
  132. $swal2-input-box-shadow-focus: none;
  133. $swal2-input-font-size: 1rem;
  134. $swal2-input-padding: $bootstrap-input-padding-y $bootstrap-input-padding-x;
  135. // CLOSE BUTTON
  136. $swal2-close-button-line-height: 1;
  137. $swal2-close-button-color: rgba($swal2-black, .5);
  138. $swal2-close-button-font-size: 1.5rem;
  139. // CLOSE BUTTON:HOVER
  140. $swal2-close-button-hover-color: $swal2-black;
  141. // CONFIRM BUTTON
  142. $swal2-confirm-button-background-color: $bootstrap-primary;
  143. // CANCEL BUTTON
  144. $swal2-cancel-button-background-color: $bootstrap-secondary;
  145. // COMMON VARIABLES FOR CONFIRM AND CANCEL BUTTONS
  146. $swal2-button-focus-outline: none;
  147. // TOASTS
  148. $swal2-toast-border: $bootstrap-toast-border-color solid $bootstrap-toast-border-width;
  149. $swal2-toast-box-shadow: $bootstrap-toast-box-shadow;
  150. $swal2-toast-padding: $bootstrap-toast-padding-x $bootstrap-toast-padding-y;
  151. $swal2-toast-title-font-size: $bootstrap-toast-font-size;
  152. $swal2-toast-content-font-size: $bootstrap-toast-font-size;
  153. $swal2-toast-input-font-size: $bootstrap-toast-font-size;
  154. $swal2-toast-validation-font-size: $bootstrap-toast-font-size;
  155. $swal2-toast-buttons-font-size: $bootstrap-toast-font-size;
  156. @import '~sweetalert2/src/sweetalert2';
  157. .swal2-confirm,
  158. .swal2-cancel {
  159. transition: $bootstrap-btn-transition;
  160. }
  161. .swal2-popup {
  162. padding: 0;
  163. border: $bootstrap-input-border-width solid rgba(0, 0, 0, .2);
  164. &.swal2-toast {
  165. padding: .25rem .75rem;
  166. font-size: .875rem;
  167. .swal2-header {
  168. padding: 0;
  169. border-bottom: 0;
  170. }
  171. .swal2-title {
  172. margin: 0;
  173. color: $bootstrap-gray-600;
  174. }
  175. .swal2-content {
  176. padding: 0 .5rem;
  177. }
  178. .swal2-actions {
  179. flex-basis: 0 !important;
  180. margin: 0;
  181. padding: 0;
  182. }
  183. .swal2-styled {
  184. margin: 0;
  185. }
  186. }
  187. }
  188. .swal2-header {
  189. padding: 1rem;
  190. border-bottom: $bootstrap-input-border-width solid $bootstrap-input-border-color;
  191. }
  192. .swal2-title {
  193. margin: 0;
  194. font-size: 1.25rem;
  195. }
  196. .swal2-content {
  197. padding: 1rem 1rem 0;
  198. }
  199. .swal2-actions {
  200. padding: 0 0 1rem;
  201. border-radius: $bootstrap-input-border-radius;
  202. }
  203. .swal2-footer {
  204. padding: 1rem;
  205. border-top: $bootstrap-input-border-width solid $bootstrap-input-border-color;
  206. }
  207. .swal2-close {
  208. height: auto;
  209. padding: 1rem 1.2rem 1rem 1rem;
  210. font-weight: 700;
  211. }
  212. .swal2-input,
  213. .swal2-textarea {
  214. height: inherit;
  215. padding: $swal2-input-padding;
  216. transition: $bootstrap-custom-forms-transition;
  217. line-height: $bootstrap-input-line-height;
  218. &:focus {
  219. border: $bootstrap-input-focus-border;
  220. outline: 0;
  221. box-shadow: $bootstrap-input-focus-box-shadow;
  222. color: $bootstrap-input-color;
  223. }
  224. &.swal2-inputerror {
  225. box-shadow: none !important;
  226. &:focus {
  227. border-color: $bootstrap-danger;
  228. box-shadow: 0 0 0 $bootstrap-input-focus-width rgba($bootstrap-danger, .25) !important;
  229. }
  230. }
  231. }
  232. .swal2-styled {
  233. &.swal2-confirm {
  234. padding: $swal2-input-padding;
  235. border: 1px solid $bootstrap-primary;
  236. font-size: 1rem;
  237. &:hover {
  238. border-color: darken($bootstrap-primary, 10%);
  239. background-color: darken($bootstrap-primary, 7.5%);
  240. }
  241. &:focus {
  242. outline: 0;
  243. box-shadow: $bootstrap-input-focus-box-shadow;
  244. }
  245. &:active {
  246. border-color: darken($bootstrap-primary, 12.5%);
  247. background-color: darken($bootstrap-primary, 10%);
  248. &:focus {
  249. box-shadow: $bootstrap-input-focus-box-shadow;
  250. }
  251. }
  252. }
  253. &.swal2-cancel {
  254. padding: $swal2-input-padding;
  255. border: 1px solid $bootstrap-secondary;
  256. font-size: 1rem;
  257. &:hover {
  258. border-color: darken($bootstrap-secondary, 10%);
  259. background-color: darken($bootstrap-secondary, 7.5%);
  260. }
  261. &:focus {
  262. outline: 0;
  263. box-shadow: $bootstrap-btn-secondary-focus-box-shadow;
  264. }
  265. &:active {
  266. border-color: darken($bootstrap-secondary, 12.5%);
  267. background-color: darken($bootstrap-secondary, 10%);
  268. &:focus {
  269. box-shadow: $bootstrap-btn-secondary-focus-box-shadow;
  270. }
  271. }
  272. }
  273. }
  274. .swal2-select {
  275. display: inline-block;
  276. width: 100%;
  277. height: $bootstrap-input-height;
  278. padding: .375rem 1.75rem .375rem .75rem;
  279. transition: $bootstrap-custom-forms-transition;
  280. border: $bootstrap-input-border-width solid $bootstrap-input-border-color;
  281. border-radius: $bootstrap-input-border-radius;
  282. background: $bootstrap-custom-select-background;
  283. background-color: $bootstrap-input-bg;
  284. color: $bootstrap-input-color;
  285. vertical-align: middle;
  286. // @include box-shadow($custom-select-box-shadow);
  287. appearance: none;
  288. &:focus {
  289. border: $bootstrap-input-focus-border;
  290. outline: 0;
  291. box-shadow: $bootstrap-input-focus-box-shadow;
  292. &::-ms-value {
  293. background-color: $bootstrap-input-bg;
  294. color: $bootstrap-input-color;
  295. }
  296. }
  297. &[multiple],
  298. &[size]:not([size='1']) {
  299. height: auto;
  300. padding-right: $bootstrap-input-padding-x;
  301. background-image: none;
  302. }
  303. &:disabled {
  304. background-color: $bootstrap-input-disabled-bg;
  305. color: $bootstrap-input-disabled-color;
  306. }
  307. &::-ms-expand {
  308. display: none;
  309. }
  310. }
  311. .swal2-radio {
  312. label {
  313. position: relative;
  314. margin-right: 1rem;
  315. margin-left: 1.5rem;
  316. input {
  317. position: absolute;
  318. z-index: -1;
  319. opacity: 0;
  320. &:checked ~ .swal2-label::before {
  321. border-color: $bootstrap-custom-control-indicator-checked-border-color;
  322. background: $bootstrap-custom-control-indicator-checked-bg;
  323. color: $bootstrap-custom-control-indicator-checked-color;
  324. }
  325. &:focus ~ .swal2-label::before {
  326. box-shadow: $bootstrap-custom-control-indicator-focus-box-shadow;
  327. }
  328. &:focus:not(:checked) ~ .swal2-label::before {
  329. border-color: $bootstrap-custom-control-indicator-focus-border-color;
  330. }
  331. &:not(:disabled):active ~ .swal2-label::before {
  332. border-color: $bootstrap-custom-control-indicator-active-border-color;
  333. background-color: $bootstrap-custom-control-indicator-active-bg;
  334. color: $bootstrap-custom-control-indicator-active-color;
  335. }
  336. }
  337. input:checked ~ .swal2-label::after {
  338. background-image: $bootstrap-custom-radio-indicator-icon-checked;
  339. }
  340. input:disabled:checked ~ .swal2-label::before {
  341. background-color: $bootstrap-custom-control-indicator-checked-disabled-bg;
  342. }
  343. }
  344. .swal2-label {
  345. &::before {
  346. content: '';
  347. display: block;
  348. position: absolute;
  349. top: ($swal2-input-font-size * $bootstrap-input-line-height - $bootstrap-custom-control-indicator-size) / 6;
  350. left: -($bootstrap-custom-control-gutter + $bootstrap-custom-control-indicator-size);
  351. width: $bootstrap-custom-control-indicator-size;
  352. height: $bootstrap-custom-control-indicator-size;
  353. transition: $bootstrap-custom-forms-transition;
  354. border: $bootstrap-custom-control-indicator-border-color solid $bootstrap-custom-control-indicator-border-width;
  355. border-radius: $bootstrap-custom-radio-indicator-border-radius;
  356. background-color: $bootstrap-custom-control-indicator-bg;
  357. pointer-events: none;
  358. }
  359. &::after {
  360. content: '';
  361. display: block;
  362. position: absolute;
  363. top: ($swal2-input-font-size * $bootstrap-input-line-height - $bootstrap-custom-control-indicator-size) / 6;
  364. left: -($bootstrap-custom-control-gutter + $bootstrap-custom-control-indicator-size);
  365. width: $bootstrap-custom-control-indicator-size;
  366. height: $bootstrap-custom-control-indicator-size;
  367. transition: $bootstrap-custom-forms-transition;
  368. border: transparent solid $bootstrap-custom-control-indicator-border-width;
  369. background: no-repeat 50% / #{$bootstrap-custom-control-indicator-bg-size};
  370. }
  371. }
  372. }
  373. .swal2-checkbox {
  374. margin-right: 1rem;
  375. padding-left: 1.5rem;
  376. input {
  377. z-index: -1;
  378. opacity: 0;
  379. &:checked ~ .swal2-label::before {
  380. border-color: $bootstrap-custom-control-indicator-checked-border-color;
  381. background: $bootstrap-custom-control-indicator-checked-bg;
  382. color: $bootstrap-custom-control-indicator-checked-color;
  383. }
  384. &:focus ~ .swal2-label::before {
  385. box-shadow: $bootstrap-custom-control-indicator-focus-box-shadow;
  386. }
  387. &:focus:not(:checked) ~ .swal2-label::before {
  388. border-color: $bootstrap-custom-control-indicator-focus-border-color;
  389. }
  390. &:not(:disabled):active ~ .swal2-label::before {
  391. border-color: $bootstrap-custom-control-indicator-active-border-color;
  392. background-color: $bootstrap-custom-control-indicator-active-bg;
  393. color: $bootstrap-custom-control-indicator-active-color;
  394. }
  395. }
  396. input:checked ~ .swal2-label::after {
  397. background-image: $bootstrap-custom-checkbox-indicator-icon-checked;
  398. }
  399. input:disabled:checked ~ .swal2-label::before {
  400. background-color: $bootstrap-custom-control-indicator-checked-disabled-bg;
  401. }
  402. .swal2-label {
  403. position: relative;
  404. &::before {
  405. content: '';
  406. display: block;
  407. position: absolute;
  408. top: ($swal2-input-font-size * $bootstrap-input-line-height - $bootstrap-custom-control-indicator-size) / 2;
  409. left: -($bootstrap-custom-control-gutter + $bootstrap-custom-control-indicator-size);
  410. width: $bootstrap-custom-control-indicator-size;
  411. height: $bootstrap-custom-control-indicator-size;
  412. transition: $bootstrap-custom-forms-transition;
  413. border: $bootstrap-custom-control-indicator-border-color solid $bootstrap-custom-control-indicator-border-width;
  414. background-color: $bootstrap-custom-control-indicator-bg;
  415. pointer-events: none;
  416. }
  417. &::after {
  418. content: '';
  419. display: block;
  420. position: absolute;
  421. top: ($swal2-input-font-size * $bootstrap-input-line-height - $bootstrap-custom-control-indicator-size) / 2;
  422. left: -($bootstrap-custom-control-gutter + $bootstrap-custom-control-indicator-size);
  423. width: $bootstrap-custom-control-indicator-size;
  424. height: $bootstrap-custom-control-indicator-size;
  425. transition: $bootstrap-custom-forms-transition;
  426. border: transparent solid $bootstrap-custom-control-indicator-border-width;
  427. background: no-repeat 50% / #{$bootstrap-custom-control-indicator-bg-size};
  428. }
  429. }
  430. }
  431. .swal2-range input {
  432. width: 100%;
  433. height: calc(#{$bootstrap-custom-range-thumb-height} + #{$bootstrap-custom-range-thumb-focus-box-shadow-width * 3});
  434. padding: 0;
  435. background-color: transparent;
  436. appearance: none;
  437. &:focus {
  438. outline: none;
  439. &::-webkit-slider-thumb {
  440. box-shadow: $bootstrap-custom-range-thumb-focus-box-shadow;
  441. }
  442. &::-moz-range-thumb {
  443. box-shadow: $bootstrap-custom-range-thumb-focus-box-shadow;
  444. }
  445. &::-ms-thumb {
  446. box-shadow: $bootstrap-custom-range-thumb-focus-box-shadow;
  447. }
  448. }
  449. &::-moz-focus-outer {
  450. border: 0;
  451. }
  452. &::-webkit-slider-thumb {
  453. width: $bootstrap-custom-range-thumb-width;
  454. height: $bootstrap-custom-range-thumb-height;
  455. margin-top: ($bootstrap-custom-range-track-height - $bootstrap-custom-range-thumb-height) / 2;
  456. transition: $bootstrap-custom-forms-transition;
  457. border: $bootstrap-custom-range-thumb-border;
  458. border-radius: $bootstrap-custom-range-thumb-border-radius;
  459. background: $bootstrap-custom-range-thumb-bg;
  460. box-shadow: $bootstrap-custom-range-thumb-box-shadow;
  461. appearance: none;
  462. &:active {
  463. background: $bootstrap-custom-range-thumb-active-bg;
  464. }
  465. }
  466. &::-webkit-slider-runnable-track {
  467. width: $bootstrap-custom-range-track-width;
  468. height: $bootstrap-custom-range-track-height;
  469. border-radius: $bootstrap-custom-range-track-border-radius;
  470. border-color: transparent;
  471. background-color: $bootstrap-custom-range-track-bg;
  472. box-shadow: $bootstrap-custom-range-track-box-shadow;
  473. color: transparent;
  474. cursor: $bootstrap-custom-range-track-cursor;
  475. }
  476. &::-moz-range-thumb {
  477. width: $bootstrap-custom-range-thumb-width;
  478. height: $bootstrap-custom-range-thumb-height;
  479. margin-top: 1rem;
  480. transition: $bootstrap-custom-forms-transition;
  481. border: $bootstrap-custom-range-thumb-border;
  482. border-radius: $bootstrap-custom-range-thumb-border-radius;
  483. background: $bootstrap-custom-range-thumb-bg;
  484. box-shadow: $bootstrap-custom-range-thumb-box-shadow;
  485. appearance: none;
  486. &:active {
  487. background: $bootstrap-custom-range-thumb-active-bg;
  488. }
  489. }
  490. &::-moz-range-track {
  491. width: $bootstrap-custom-range-track-width;
  492. height: $bootstrap-custom-range-track-height;
  493. border-radius: $bootstrap-custom-range-track-border-radius;
  494. border-color: transparent;
  495. background-color: $bootstrap-custom-range-track-bg;
  496. box-shadow: $bootstrap-custom-range-track-box-shadow;
  497. color: transparent;
  498. cursor: $bootstrap-custom-range-track-cursor;
  499. }
  500. &::-ms-thumb {
  501. width: $bootstrap-custom-range-thumb-width;
  502. height: $bootstrap-custom-range-thumb-height;
  503. margin-top: 0;
  504. margin-right: $bootstrap-custom-range-thumb-focus-box-shadow-width;
  505. margin-left: $bootstrap-custom-range-thumb-focus-box-shadow-width;
  506. transition: $bootstrap-custom-forms-transition;
  507. border: $bootstrap-custom-range-thumb-border;
  508. border-radius: $bootstrap-custom-range-thumb-border-radius;
  509. background: $bootstrap-custom-range-thumb-bg;
  510. box-shadow: $bootstrap-custom-range-thumb-box-shadow;
  511. appearance: none;
  512. &:active {
  513. background: $bootstrap-custom-range-thumb-active-bg;
  514. }
  515. }
  516. &::-ms-track {
  517. width: $bootstrap-custom-range-track-width;
  518. height: $bootstrap-custom-range-track-height;
  519. border-width: $bootstrap-custom-range-thumb-height / 2;
  520. border-color: transparent;
  521. background-color: transparent;
  522. box-shadow: $bootstrap-custom-range-track-box-shadow;
  523. color: transparent;
  524. cursor: $bootstrap-custom-range-track-cursor;
  525. }
  526. &::-ms-fill-lower {
  527. border-radius: $bootstrap-custom-range-track-border-radius;
  528. background-color: $bootstrap-custom-range-track-bg;
  529. }
  530. &::-ms-fill-upper {
  531. margin-right: 15px;
  532. border-radius: $bootstrap-custom-range-track-border-radius;
  533. background-color: $bootstrap-custom-range-track-bg;
  534. }
  535. &:disabled {
  536. &::-webkit-slider-thumb {
  537. background-color: $bootstrap-custom-range-thumb-disabled-bg;
  538. }
  539. &::-webkit-slider-runnable-track {
  540. cursor: default;
  541. }
  542. &::-moz-range-thumb {
  543. background-color: $bootstrap-custom-range-thumb-disabled-bg;
  544. }
  545. &::-moz-range-track {
  546. cursor: default;
  547. }
  548. &::-ms-thumb {
  549. background-color: $bootstrap-custom-range-thumb-disabled-bg;
  550. }
  551. }
  552. }
  553. .swal2-validation-message {
  554. position: relative;
  555. margin-bottom: $bootstrap-alert-margin-bottom;
  556. padding: $bootstrap-alert-padding-y $bootstrap-alert-padding-x;
  557. border: $bootstrap-alert-border-width solid transparent;
  558. border-radius: $bootstrap-alert-border-radius;
  559. border-color: $bootstrap-alert-border-color;
  560. background: $bootstrap-alert-background;
  561. color: $bootstrap-alert-color;
  562. font-size: $bootstrap-alert-font-size;
  563. &::before {
  564. background-color: lighten($bootstrap-danger, 10%);
  565. }
  566. }
  567. .swal2-toast {
  568. max-width: $bootstrap-toast-max-width;
  569. border-radius: $bootstrap-toast-border-radius;
  570. background-color: $bootstrap-toast-background-color;
  571. }
  572. //