2016-01-26 21:12:48 +03:00
// FIXME: re-examine organization of variables, files, ordering etc. While the ordering works, we need to be sure this is more comprehensible.
@import " variables/colors " ;
@import " variables/shadow " ;
2016-03-28 21:29:45 +03:00
// redefine ? TODO: do we need this bmd variant? This is used as $body-color
2016-01-26 21:12:48 +03:00
$gray-lighter : rgba ( $black , 0 .12 ) !default ;
$gray-light : rgba ( $black , 0 .26 ) !default ;
2016-08-05 18:14:57 +03:00
$gray-alpha : .54 !default ;
$gray : rgba ( $black , $gray-alpha ) !default ; // spec color
2017-08-11 17:59:31 +03:00
$gray-dark : rgba ( $black , 0 .87 ) !default ; // used for text color - others use grey-600 which is considerably lighter
2016-01-26 21:12:48 +03:00
2016-03-28 23:18:19 +03:00
$bmd-font-weight-base : 400 ;
2016-01-26 21:12:48 +03:00
// wondering if any of these could still be refactored out, but are definitely in use.
2016-03-29 00:14:36 +03:00
$bmd-inverse : rgba ( $white , 1 ) !default ;
$bmd-inverse-light : rgba ( $white , 0 .84 ) !default ;
$bmd-inverse-lighter : rgba ( $white , 0 .54 ) !default ;
2016-03-28 23:18:19 +03:00
$bmd-label-color : $gray-light !default ;
$bmd-label-color-inner-focus : $gray !default ; // e.g. radio label or text-muted not a control-label which is primary
2016-01-26 21:12:48 +03:00
2018-01-23 14:29:26 +03:00
// Bootstrap Material Design default colors (these can be override by user)
$theme-colors : () !default ;
$theme-colors : map-merge ((
primary : $teal ,
success : $green ,
info : $light-blue ,
warning : $deep-orange ,
danger : $red ,
light : $grey-100 ,
dark : $ grey-800
) , $ theme-colors ) ;
2016-01-26 21:12:48 +03:00
// Customized BS variables
@import " variables/bootstrap/components " ;
2016-08-01 12:34:34 +03:00
@import " variables/bootstrap/custom-forms " ;
2016-01-26 21:12:48 +03:00
@import " variables/bootstrap/spacing " ;
@import " variables/bootstrap/body " ;
@import " variables/bootstrap/buttons " ;
@import " variables/bootstrap/card " ;
@import " variables/bootstrap/code " ;
@import " variables/bootstrap/dropdown " ;
@import " variables/bootstrap/forms " ;
@import " variables/bootstrap/list-group " ;
@import " variables/bootstrap/nav " ;
2016-08-03 15:47:02 +03:00
@import " variables/bootstrap/pagination " ;
2016-01-26 21:12:48 +03:00
@import " variables/bootstrap/state " ;
2016-08-04 12:52:00 +03:00
@import " variables/bootstrap/tables " ;
2016-08-04 14:01:08 +03:00
@import " variables/bootstrap/tooltip " ;
2016-01-26 21:12:48 +03:00
@import " variables/bootstrap/type " ;
@import " variables/bootstrap/modals " ;
// import their vars after customization for use below
2017-08-11 17:59:31 +03:00
$enable-flex : true ; // fully adopt flexbox layouts
$enable-shadows : true ; // enable shadows, set to false to turn off shadows
2017-09-10 18:46:59 +03:00
@import " ~bootstrap/scss/functions " ; // from bootstrap node_module
@import " ~bootstrap/scss/variables " ; // from bootstrap node_module
2016-01-26 21:12:48 +03:00
//
@import " variables/layout " ;
@import " variables/menu " ;
@import " variables/drawer " ;
2016-08-04 19:42:10 +03:00
@import " variables/snackbar " ;
2016-01-26 21:12:48 +03:00
2018-01-23 14:29:26 +03:00
$bmd-label-color-focus : theme-color ( primary ) !default ;
2017-08-11 17:59:31 +03:00
$bmd-invalid-underline : $red-a700 !default ;
2016-08-03 01:51:17 +03:00
$bmd-readonly-underline : $input-border-color !default ;
2016-01-26 21:12:48 +03:00
//---
// verified in use with refactoring to v4
//---
//-- unverified below here
2016-03-28 23:18:19 +03:00
$bmd-brand-inverse : $indigo !default ;
2016-01-26 21:12:48 +03:00
// Typography elements FIXME: review to see if we actually need these
$icon-color : rgba ( $black , 0 .5 ) !default ;
//---
// FIXME: Similar but not quite the same as Bootstrap variables
2016-03-28 21:29:45 +03:00
// FIXME: these need to either a) be converted to $bmd- or b) converted to bs variables
2016-01-26 21:12:48 +03:00
//---
// --------------------
// inputs
2016-03-28 23:18:19 +03:00
$bmd-bmd-label-static-size-ratio : 75 / 100 !default ;
$bmd-help-size-ratio : 75 / 100 !default ;
2016-01-26 21:12:48 +03:00
2016-03-28 21:29:45 +03:00
//$bmd-form-control-bg-repeat-y: repeat-y !default; // it could work with no-repeat, but on Safari it's bugged and repeat-y is needed, but repeat-y is bugged on the warning icon.
2016-03-28 23:18:19 +03:00
$bmd-form-control-bg-repeat-y : no-repeat !default ;
$bmd-form-control-bg-position : center bottom , center calc ( 100 % - 1 px ) !default ;
$bmd-form-control-bg-size : 0 100 % , 100 % 100 % !default ;
$bmd-form-control-bg-size-active : 100 % 100 % , 100 % 100 % !default ;
2016-01-26 23:37:28 +03:00
2016-01-26 21:12:48 +03:00
// expandable
$input-text-button-size : 32 px !default ;
// sizing
2016-03-28 23:18:19 +03:00
$bmd-form-line-height : 1 !default ; // set as 1x font-size so that padding is easier calculated to match the spec.
$bmd-label-top-margin-base : 1 rem !default ;
2016-01-26 21:12:48 +03:00
2017-08-11 17:59:31 +03:00
$bmd-form-line-height-lg : 1 !default ; // set as 1x font-size so that padding is easier calculated to match the spec.
2016-03-28 23:18:19 +03:00
$bmd-label-top-margin-lg : 1 rem !default ; // 16px
2016-01-26 21:12:48 +03:00
2017-08-11 17:59:31 +03:00
$bmd-form-line-height-sm : 1 !default ; // set as 1x font-size so that padding is easier calculated to match the spec.
2016-03-28 23:18:19 +03:00
$bmd-label-top-margin-sm : .75 rem !default ; // 12px
2016-01-26 21:12:48 +03:00
$text-disabled : #a8a8a8 !default ;
$background-disabled : #eaeaea !default ;
// Checkboxes
2016-03-28 23:18:19 +03:00
$bmd-checkbox-size : 1 .25 rem !default ;
$bmd-checkbox-animation-ripple : 500 ms !default ;
$bmd-checkbox-animation-check : 0 .3 s !default ;
2018-01-23 14:29:26 +03:00
$bmd-checkbox-checked-color : theme-color ( primary ) !default ;
2016-08-03 01:19:20 +03:00
$bmd-checkbox-label-padding : .3125 rem !default ; // 5px
2016-01-29 19:24:09 +03:00
2016-03-28 23:18:19 +03:00
$bmd-checkbox-border-size : .125 rem !default ;
$bmd-checkbox-border-color : $bmd-label-color-inner-focus !default ;
$bmd-checkbox-border-color-disabled : $gray-light !default ; //#bdbdbd !default;
2016-01-26 21:12:48 +03:00
// Switches
2016-03-28 23:18:19 +03:00
$bmd-switch-label-padding : .3125 rem !default ; // 5px
$bmd-switch-width : 2 .125 rem !default ; // 34px
$bmd-switch-height : .875 rem !default ; // 14px
$bmd-switch-handle-size : 1 .25 rem !default ; // 20px (was 18px)
2018-01-23 14:29:26 +03:00
$bmd-switch-handle-checked-bg : theme-color ( primary ) !default ;
2016-03-28 23:18:19 +03:00
$bmd-switch-handle-unchecked-bg : #f1f1f1 !default ;
$bmd-switch-handle-disabled-bg : #bdbdbd !default ;
$bmd-switch-unchecked-bg : $gray-light !default ;
2017-08-11 17:59:31 +03:00
$bmd-switch-checked-bg : desaturate (
lighten ( $ bmd-switch-handle-checked-bg , 28 % ) ,
32 %
) ; // kind of magic recipe
2016-03-28 23:18:19 +03:00
$bmd-switch-disabled-bg : $gray-lighter !default ;
2016-01-26 21:12:48 +03:00
// Popovers and Popups
2016-03-28 23:18:19 +03:00
$bmd-popover-background : rgba ( 101 , 101 , 101 , 0 .9 ) !default ;
$bmd-popover-color : #ececec !default ;
2016-01-26 21:12:48 +03:00
// Radio:
2016-03-28 23:18:19 +03:00
$bmd-radio-border : .125 rem !default ; // 2px
$bmd-radio-size : 1 .25 rem !default ;
2016-08-01 11:34:02 +03:00
$bmd-radio-ripple-offset : 1 em !default ;
2016-03-28 23:18:19 +03:00
$bmd-radio-label-padding : .3125 rem !default ; // 5px
2016-01-26 21:12:48 +03:00
2017-08-11 17:59:31 +03:00
$bmd-radio-color-off : $bmd-label-color-inner-focus !default ; // FIXME seems inconsistent, check spec
2018-01-23 14:29:26 +03:00
$bmd-radio-color-on : theme-color ( primary ) !default ;
2016-03-28 23:18:19 +03:00
$bmd-radio-color-disabled : $gray-light ; // light theme spec: Disabled: #000000, Opacity 26%
2017-08-11 17:59:31 +03:00
$bmd-radio-color-disabled-inverse : rgba (
$ white ,
0 . 30
) ; // dark theme spec: Disabled: #FFFFFF, Opacity 30%
2016-01-26 21:12:48 +03:00
// Animations
2016-03-28 23:18:19 +03:00
$bmd-animation-curve-fast-out-slow-in : cubic-bezier ( 0 .4 , 0 , 0 .2 , 1 ) !default ;
$bmd-animation-curve-linear-out-slow-in : cubic-bezier ( 0 , 0 , 0 .2 , 1 ) !default ;
$bmd-animation-curve-fast-out-linear-in : cubic-bezier ( 0 .4 , 0 , 1 , 1 ) !default ;
$bmd-animation-curve-default : $bmd-animation-curve-fast-out-slow-in !default ;