2015-03-24 06:25:48 +03:00
|
|
|
// Material Global vars
|
|
|
|
@zero: 0;
|
|
|
|
|
2014-10-08 16:52:08 +04:00
|
|
|
// material icons path
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-font-path: "../fonts";
|
2014-08-20 14:53:26 +04:00
|
|
|
|
|
|
|
// Bootstrap shades
|
2015-03-17 20:27:20 +03:00
|
|
|
@primary: @teal;
|
|
|
|
@success: @green;
|
|
|
|
@info: @light-blue;
|
|
|
|
@warning: @deep-orange;
|
2014-08-20 14:53:26 +04:00
|
|
|
@danger: @red;
|
|
|
|
|
2015-03-17 20:27:20 +03:00
|
|
|
@brand-primary: @primary;
|
|
|
|
@brand-success: @success;
|
|
|
|
@brand-danger: @danger;
|
|
|
|
@brand-warning: @warning;
|
|
|
|
@brand-info: @info;
|
|
|
|
|
2014-08-20 14:53:26 +04:00
|
|
|
// Typography elements for Material
|
2014-09-05 11:46:43 +04:00
|
|
|
@darkbg-text: rgba(255,255,255,0.84);
|
|
|
|
@lightbg-text: rgba(0,0,0,0.84);
|
2014-08-20 14:53:26 +04:00
|
|
|
@icon-color: rgba(0,0,0,0.5);
|
|
|
|
|
|
|
|
|
|
|
|
// Bootstrap variables
|
2015-03-17 20:27:20 +03:00
|
|
|
@body-bg: #EEEEEE;
|
|
|
|
|
2014-08-18 18:25:33 +04:00
|
|
|
@btn-default: transparent;
|
2014-08-20 14:53:26 +04:00
|
|
|
@btn-default-text: @lightbg-text;
|
2014-08-18 18:25:33 +04:00
|
|
|
|
2014-08-20 14:53:26 +04:00
|
|
|
@btn-primary: @primary;
|
|
|
|
@btn-primary-text: @darkbg-text;
|
2014-08-18 18:25:33 +04:00
|
|
|
|
2014-08-20 14:53:26 +04:00
|
|
|
@btn-success: @success;
|
|
|
|
@btn-success-text: @darkbg-text;
|
2014-08-18 18:25:33 +04:00
|
|
|
|
2014-08-20 14:53:26 +04:00
|
|
|
@btn-info: @info;
|
|
|
|
@btn-info-text: @darkbg-text;
|
2014-08-18 18:25:33 +04:00
|
|
|
|
2014-08-20 14:53:26 +04:00
|
|
|
@btn-warning: @warning;
|
|
|
|
@btn-warning-text: @darkbg-text;
|
2014-08-18 18:25:33 +04:00
|
|
|
|
2014-08-20 14:53:26 +04:00
|
|
|
@btn-danger: @danger;
|
|
|
|
@btn-danger-text: @darkbg-text;
|
2014-08-18 18:25:33 +04:00
|
|
|
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-input-unchecked: rgba(137, 137, 137, 0.3);
|
|
|
|
@mdb-input-checked: rgba(15, 157, 88, 0.3);
|
2014-08-18 18:25:33 +04:00
|
|
|
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-radio-default: @lightbg-text;
|
|
|
|
@mdb-radio-primary: @primary;
|
|
|
|
@mdb-radio-success: @success;
|
|
|
|
@mdb-radio-info: @info;
|
|
|
|
@mdb-radio-warning: @warning;
|
|
|
|
@mdb-radio-danger: @danger;
|
2014-08-18 18:25:33 +04:00
|
|
|
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-input-danger: @danger;
|
|
|
|
@mdb-input-default: @primary;
|
|
|
|
@mdb-input-warning: @warning;
|
|
|
|
@mdb-input-success: @success;
|
|
|
|
@mdb-input-info: @info;
|
2014-08-18 18:25:33 +04:00
|
|
|
|
2014-08-20 14:53:26 +04:00
|
|
|
@alert-success: @success;
|
|
|
|
@alert-info: @info;
|
|
|
|
@alert-warning: @warning;
|
|
|
|
@alert-danger: @danger;
|
|
|
|
|
|
|
|
@progress-success: @success;
|
|
|
|
@progress-info: @info;
|
|
|
|
@progress-warning: @warning;
|
|
|
|
@progress-danger: @danger;
|
|
|
|
|
2015-03-18 17:29:57 +03:00
|
|
|
@font-size-base: 14px;
|
|
|
|
@font-size-large: ceil((@font-size-base * 1.25)); // ~18px
|
|
|
|
@font-size-small: ceil((@font-size-base * 0.85)); // ~12px
|
|
|
|
|
2015-11-09 22:32:46 +03:00
|
|
|
@screen-sm: 768px;
|
|
|
|
@screen-sm-min: @screen-sm;
|
|
|
|
|
|
|
|
|
2015-03-16 17:16:54 +03:00
|
|
|
// Global Material variables
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-border-radius: 2px;
|
2015-11-09 22:32:46 +03:00
|
|
|
|
|
|
|
// --------------------
|
|
|
|
// inputs
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-input-placeholder-color: #BDBDBD;
|
|
|
|
@mdb-input-underline-color: #D2D2D2;
|
|
|
|
@mdb-label-static-size-ratio: 75 / 100;
|
|
|
|
@mdb-help-block-size-ratio: 75 / 100;
|
2015-03-16 17:16:54 +03:00
|
|
|
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-input-font-size-base: 16px;
|
|
|
|
@mdb-input-font-size-large: ceil((@font-size-base * 1.25)); // ~20px
|
|
|
|
@mdb-input-font-size-small: ceil((@font-size-base * 0.75)); // ~12px
|
2015-11-09 22:32:46 +03:00
|
|
|
|
2015-11-21 17:56:29 +03:00
|
|
|
// FIXME: with #733 customization of bootstrap, consider how these could be based on the original bs customized variables
|
2015-11-09 22:32:46 +03:00
|
|
|
//** Unit-less `line-height` for use in components like buttons.
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-input-line-height-base: 1.428571429; // 20/14
|
2015-11-09 22:32:46 +03:00
|
|
|
//** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-input-line-height-computed: floor((@mdb-input-font-size-base * @mdb-input-line-height-base)); // ~20px
|
|
|
|
@mdb-input-line-height-large: 1.3333333; // extra decimals for Win 8.1 Chrome
|
|
|
|
@mdb-input-line-height-small: 1.5;
|
2015-11-09 22:32:46 +03:00
|
|
|
|
|
|
|
//## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-input-padding-base-vertical: 8px - 1px; // was 6.
|
|
|
|
@mdb-input-padding-base-horizontal: 0px; // was 12.
|
|
|
|
@mdb-label-as-placeholder-shim-base: 0px; // manual adjustment of label top when positioned as placeholder
|
|
|
|
@mdb-label-top-margin-base: 16px;
|
2015-11-09 22:32:46 +03:00
|
|
|
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-input-padding-large-vertical: 10px - 1px; // 10
|
|
|
|
@mdb-input-padding-large-horizontal: 0px; // 16
|
|
|
|
@mdb-label-as-placeholder-shim-large: -4px; // manual adjustment of label top when positioned as placeholder
|
|
|
|
@mdb-label-top-margin-large: 16px;
|
2015-11-09 22:32:46 +03:00
|
|
|
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-input-padding-small-vertical: 4px - 1px; // 5
|
|
|
|
@mdb-input-padding-small-horizontal: 0px; // 10
|
|
|
|
@mdb-label-as-placeholder-shim-small: 8px; // manual adjustment of label top when positioned as placeholder
|
|
|
|
@mdb-label-top-margin-small: 12px;
|
2015-11-09 22:32:46 +03:00
|
|
|
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-input-padding-xs-vertical: 2px; // 1
|
|
|
|
@mdb-input-padding-xs-horizontal: 0px; // 5
|
2015-11-09 22:32:46 +03:00
|
|
|
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-input-border-radius-base: 4px;
|
|
|
|
@mdb-input-border-radius-large: 6px;
|
|
|
|
@mdb-input-border-radius-small: 3px;
|
2015-11-09 22:32:46 +03:00
|
|
|
|
|
|
|
|
|
|
|
//** Default `.form-control` height
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-input-height-base: (@mdb-input-line-height-computed + (@mdb-input-padding-base-vertical * 2) + 2);
|
2015-11-09 22:32:46 +03:00
|
|
|
//** Large `.form-control` height
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-input-height-large: (ceil(@mdb-input-font-size-large * @mdb-input-line-height-large) + (@mdb-input-padding-large-vertical * 2) + 2);
|
2015-11-09 22:32:46 +03:00
|
|
|
//** Small `.form-control` height
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-input-height-small: (floor(@mdb-input-font-size-small * @mdb-input-line-height-small) + (@mdb-input-padding-small-vertical * 2) + 2);
|
2015-11-09 22:32:46 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-10-12 14:27:47 +04:00
|
|
|
// Card
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-card-body-text: @lightbg-text;
|
|
|
|
@mdb-card-body-background: #fff;
|
|
|
|
@mdb-card-image-headline: #fff;
|
2014-10-13 15:01:22 +04:00
|
|
|
|
2014-10-12 17:46:56 +04:00
|
|
|
@text-disabled: #a8a8a8;
|
|
|
|
@background-disabled: #eaeaea;
|
2015-03-11 18:45:01 +03:00
|
|
|
|
|
|
|
// Checkboxes
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-checkbox-size: 20px;
|
|
|
|
@mdb-checkbox-animation-ripple: 500ms;
|
|
|
|
@mdb-checkbox-animation-check: 0.3s;
|
|
|
|
@mdb-checkbox-checked-color: #4caf50;
|
|
|
|
@mdb-checkbox-label-color: rgba(0, 0, 0, .54);
|
|
|
|
@mdb-checkbox-border-color: @mdb-checkbox-label-color;
|
2015-03-24 06:25:48 +03:00
|
|
|
|
2015-03-16 17:16:54 +03:00
|
|
|
// Popovers and Popups
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-popover-background: rgba(101, 101, 101, 0.9);
|
|
|
|
@mdb-popover-color: #ececec;
|
2015-03-18 16:46:06 +03:00
|
|
|
|
2015-03-24 06:31:30 +03:00
|
|
|
// Dropdown Menu
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-dropdown-radius: 2px;
|
|
|
|
@mdb-dropdown-font-size: 16px;
|
2015-11-18 23:43:36 +03:00
|
|
|
|
|
|
|
// Toggle
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-toggle-label-color: @mdb-checkbox-label-color;
|
2015-11-18 23:43:36 +03:00
|
|
|
|
|
|
|
// Radio:
|
2015-11-21 17:56:29 +03:00
|
|
|
@mdb-radio-label-color: @mdb-checkbox-label-color;
|
|
|
|
@mdb-radio-border-color: @mdb-checkbox-border-color;
|