| 1 |
// Datepicker .scss buildfile. Includes select mixins/variables from bootstrap |
| 2 |
// and imports the included datepicker.scss to output a minimal datepicker.css |
| 3 |
// |
| 4 |
// Usage: |
| 5 |
// lessc build3.scss datepicker.css |
| 6 |
// |
| 7 |
// Variables and mixins copied from Bootstrap 3.3.5 |
| 8 |
|
| 9 |
// These are BS3 variables that are used in datepicker3.scss. So, when compiling against |
| 10 |
// a BS3 bslib theme, these variables should already be defined. Here we set |
| 11 |
// *defaults* for these variables based on BS4 variables, so this scss can work for |
| 12 |
// both BS3 and BS4 |
| 13 |
$gray: mix($body-bg, $body-color, 33.5%) !default; |
| 14 |
$gray-light: mix($body-bg, $body-color, 46.7%) !default; |
| 15 |
$gray-lighter: mix($body-bg, $body-color, 90%) !default; |
| 16 |
$brand-primary: $primary !default; |
| 17 |
$btn-primary-color: $body-bg !default; |
| 18 |
$btn-primary-bg: $primary !default; |
| 19 |
$btn-primary-border: mix($body-color, $btn-primary-bg, 5%) !default; |
| 20 |
$state-info-bg: mix($body-bg, $info, 80%) !default; |
| 21 |
$border-radius-base: $border-radius !default; |
| 22 |
$dropdown-border: $dropdown-border-color !default; |
| 23 |
// These variables are also used in datepicker3.scss, but we don't need to set them since |
| 24 |
// they're the same in BS3 and BS4 |
| 25 |
//$line-height-base: 1.428571429; |
| 26 |
//$btn-link-disabled-color: $gray-light; |
| 27 |
//$dropdown-bg: #fff; |
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
@mixin button-variant($background, $border) { |
| 34 |
$color: color-contrast($background); |
| 35 |
|
| 36 |
color: $color; |
| 37 |
background-color: $background; |
| 38 |
border-color: $border; |
| 39 |
|
| 40 |
&:focus, |
| 41 |
&.focus { |
| 42 |
color: $color; |
| 43 |
background-color: mix($background, $color, 90%); |
| 44 |
border-color: mix($border, $color, 75%); |
| 45 |
} |
| 46 |
&:hover { |
| 47 |
color: $color; |
| 48 |
background-color: mix($background, $color, 50%); |
| 49 |
border-color: mix($border, $color, 88%); |
| 50 |
} |
| 51 |
&:active, |
| 52 |
&.active { |
| 53 |
color: $color; |
| 54 |
background-color: mix($background, $color, 90%); |
| 55 |
border-color: mix($border, $color, 88%); |
| 56 |
|
| 57 |
&:hover, |
| 58 |
&:focus, |
| 59 |
&.focus { |
| 60 |
color: $color; |
| 61 |
background-color: mix($background, $color, 83%); |
| 62 |
border-color: mix($border, $color, 75%); |
| 63 |
} |
| 64 |
} |
| 65 |
&.disabled, |
| 66 |
&[disabled], |
| 67 |
fieldset[disabled] & { |
| 68 |
&:hover, |
| 69 |
&:focus, |
| 70 |
&.focus { |
| 71 |
background-color: $background; |
| 72 |
border-color: $border; |
| 73 |
} |
| 74 |
} |
| 75 |
} |
| 76 |
|
| 77 |
@import "datepicker3.scss"; |