rails-bootstrap-material-design 0.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +4 -0
- data/README.md +18 -0
- data/Rakefile +1 -0
- data/app/.DS_Store +0 -0
- data/app/assets/.DS_Store +0 -0
- data/app/assets/images/.DS_Store +0 -0
- data/app/assets/images/bootstrap-material-design/material-design-color-palette.jpg +0 -0
- data/app/assets/javascripts/.DS_Store +0 -0
- data/app/assets/javascripts/bootstrap-material-design.js +2 -0
- data/app/assets/javascripts/bootstrap-material-design/material.js +350 -0
- data/app/assets/javascripts/bootstrap-material-design/ripples.js +325 -0
- data/app/assets/stylesheets/.DS_Store +0 -0
- data/app/assets/stylesheets/bootstrap-material-design.scss +4 -0
- data/app/assets/stylesheets/bootstrap-material-design/.DS_Store +0 -0
- data/app/assets/stylesheets/bootstrap-material-design/_alerts.scss +17 -0
- data/app/assets/stylesheets/bootstrap-material-design/_buttons.scss +244 -0
- data/app/assets/stylesheets/bootstrap-material-design/_cards.scss +66 -0
- data/app/assets/stylesheets/bootstrap-material-design/_checkboxes.scss +270 -0
- data/app/assets/stylesheets/bootstrap-material-design/_colors-map.scss +311 -0
- data/app/assets/stylesheets/bootstrap-material-design/_colors.scss +359 -0
- data/app/assets/stylesheets/bootstrap-material-design/_core.scss +93 -0
- data/app/assets/stylesheets/bootstrap-material-design/_dialogs.scss +52 -0
- data/app/assets/stylesheets/bootstrap-material-design/_dividers.scss +71 -0
- data/app/assets/stylesheets/bootstrap-material-design/_form.scss +40 -0
- data/app/assets/stylesheets/bootstrap-material-design/_import-bs-sass.scss +2 -0
- data/app/assets/stylesheets/bootstrap-material-design/_inputs-size.scss +221 -0
- data/app/assets/stylesheets/bootstrap-material-design/_inputs.scss +352 -0
- data/app/assets/stylesheets/bootstrap-material-design/_labels.scss +4 -0
- data/app/assets/stylesheets/bootstrap-material-design/_lists.scss +102 -0
- data/app/assets/stylesheets/bootstrap-material-design/_mixins-utilities.scss +31 -0
- data/app/assets/stylesheets/bootstrap-material-design/_mixins.scss +241 -0
- data/app/assets/stylesheets/bootstrap-material-design/_navbar.scss +232 -0
- data/app/assets/stylesheets/bootstrap-material-design/_panels.scss +21 -0
- data/app/assets/stylesheets/bootstrap-material-design/_plugins.scss +5 -0
- data/app/assets/stylesheets/bootstrap-material-design/_popups.scss +18 -0
- data/app/assets/stylesheets/bootstrap-material-design/_progress.scss +10 -0
- data/app/assets/stylesheets/bootstrap-material-design/_radios.scss +115 -0
- data/app/assets/stylesheets/bootstrap-material-design/_shadows.scss +82 -0
- data/app/assets/stylesheets/bootstrap-material-design/_table.scss +15 -0
- data/app/assets/stylesheets/bootstrap-material-design/_tabs.scss +24 -0
- data/app/assets/stylesheets/bootstrap-material-design/_themes.scss +6 -0
- data/app/assets/stylesheets/bootstrap-material-design/_togglebutton.scss +83 -0
- data/app/assets/stylesheets/bootstrap-material-design/_typography.scss +15 -0
- data/app/assets/stylesheets/bootstrap-material-design/_variables.scss +169 -0
- data/app/assets/stylesheets/bootstrap-material-design/_welljumbo.scss +26 -0
- data/app/assets/stylesheets/bootstrap-material-design/plugins/_plugin-dropdownjs.scss +15 -0
- data/app/assets/stylesheets/bootstrap-material-design/plugins/_plugin-nouislider.scss +110 -0
- data/app/assets/stylesheets/bootstrap-material-design/plugins/_plugin-selectize.scss +91 -0
- data/app/assets/stylesheets/bootstrap-material-design/plugins/_plugin-snackbarjs.scss +32 -0
- data/app/assets/stylesheets/bootstrap-material-design/ripples.scss +36 -0
- data/lib/rails-bootstrap-material-design.rb +25 -0
- data/lib/rails-bootstrap-material-design/version.rb +3 -0
- data/rails-bootstrap-material-design.gemspec +20 -0
- metadata +124 -0
@@ -0,0 +1,21 @@
|
|
1
|
+
.panel {
|
2
|
+
border-radius: 2px;
|
3
|
+
border: 0;
|
4
|
+
|
5
|
+
@include variations(unquote(".panel"), unquote(" > .panel-heading"), background-color, $grey-200);
|
6
|
+
@include shadow-z-1;
|
7
|
+
}
|
8
|
+
|
9
|
+
|
10
|
+
[class*="panel-"] > .panel-heading {
|
11
|
+
color: $mdb-text-color-light;
|
12
|
+
border: 0;
|
13
|
+
}
|
14
|
+
.panel-default, .panel:not([class*="panel-"]) {
|
15
|
+
> .panel-heading {
|
16
|
+
color: $mdb-text-color-primary;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
.panel-footer {
|
20
|
+
background-color: $grey-200;
|
21
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
.popover, .tooltip-inner {
|
2
|
+
color: $mdb-popover-color;
|
3
|
+
line-height: 1em;
|
4
|
+
background: $mdb-popover-background;
|
5
|
+
border: none;
|
6
|
+
border-radius: $border-radius-base;
|
7
|
+
@include shadow-z-1();
|
8
|
+
}
|
9
|
+
|
10
|
+
.tooltip, .tooltip.in {
|
11
|
+
opacity: 1;
|
12
|
+
}
|
13
|
+
|
14
|
+
.popover, .tooltip {
|
15
|
+
.arrow, .tooltip-arrow {
|
16
|
+
display: none;
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,115 @@
|
|
1
|
+
@mixin radio-color($color, $opacity){
|
2
|
+
& ~ .check,
|
3
|
+
& ~ .circle {
|
4
|
+
opacity: $opacity;
|
5
|
+
}
|
6
|
+
|
7
|
+
& ~ .check {
|
8
|
+
background-color: $color;
|
9
|
+
}
|
10
|
+
|
11
|
+
& ~ .circle {
|
12
|
+
border-color: $color;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
|
16
|
+
.radio label, label.radio-inline {
|
17
|
+
cursor: pointer;
|
18
|
+
padding-left: 45px;
|
19
|
+
position: relative;
|
20
|
+
color: $mdb-radio-label-color;
|
21
|
+
@include mdb-label-color-toggle-focus();
|
22
|
+
}
|
23
|
+
|
24
|
+
.radio, label.radio-inline {
|
25
|
+
span {
|
26
|
+
display: block;
|
27
|
+
position: absolute;
|
28
|
+
left: 10px;
|
29
|
+
top: 2px;
|
30
|
+
transition-duration: 0.2s;
|
31
|
+
}
|
32
|
+
.circle {
|
33
|
+
border: 2px solid $mdb-radio-color-off;
|
34
|
+
height: 15px;
|
35
|
+
width: 15px;
|
36
|
+
border-radius: 100%;
|
37
|
+
}
|
38
|
+
.check {
|
39
|
+
height: 15px;
|
40
|
+
width: 15px;
|
41
|
+
border-radius: 100%;
|
42
|
+
background-color: $mdb-radio-color-on;
|
43
|
+
transform: scale3d(0, 0, 0);
|
44
|
+
}
|
45
|
+
.check:after {
|
46
|
+
display: block;
|
47
|
+
position: absolute;
|
48
|
+
content: "";
|
49
|
+
background-color: $mdb-text-color-primary;
|
50
|
+
left: -18px;
|
51
|
+
top: -18px;
|
52
|
+
height: 50px;
|
53
|
+
width: 50px;
|
54
|
+
border-radius: 100%;
|
55
|
+
z-index: 1;
|
56
|
+
opacity: 0;
|
57
|
+
margin: 0;
|
58
|
+
transform: scale3d(1.5, 1.5, 1);
|
59
|
+
}
|
60
|
+
|
61
|
+
input[type=radio]:focus:not(:checked) ~ .check:after {
|
62
|
+
animation: rippleOff 500ms;
|
63
|
+
}
|
64
|
+
input[type=radio]:focus:checked ~ .check:after {
|
65
|
+
animation: rippleOn 500ms;
|
66
|
+
}
|
67
|
+
|
68
|
+
input[type=radio] {
|
69
|
+
opacity: 0;
|
70
|
+
height: 0;
|
71
|
+
width: 0;
|
72
|
+
overflow: hidden;
|
73
|
+
|
74
|
+
&:checked {
|
75
|
+
@include radio-color($mdb-radio-color-on, 1);
|
76
|
+
}
|
77
|
+
&:checked ~ .check {
|
78
|
+
transform: scale3d(0.55, 0.55, 1);
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
input[type=radio][disabled] {
|
83
|
+
|
84
|
+
// light theme spec: Disabled: #000000, Opacity 26%
|
85
|
+
@include radio-color($black, 0.26);
|
86
|
+
|
87
|
+
// dark theme spec: Disabled: #FFFFFF, Opacity 30%
|
88
|
+
.theme-dark & {
|
89
|
+
@include radio-color($white, 0.30);
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
@keyframes rippleOn {
|
95
|
+
0% {
|
96
|
+
opacity: 0;
|
97
|
+
}
|
98
|
+
50% {
|
99
|
+
opacity: 0.2;
|
100
|
+
}
|
101
|
+
100% {
|
102
|
+
opacity: 0;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
@keyframes rippleOff {
|
106
|
+
0% {
|
107
|
+
opacity: 0;
|
108
|
+
}
|
109
|
+
50% {
|
110
|
+
opacity: 0.2;
|
111
|
+
}
|
112
|
+
100% {
|
113
|
+
opacity: 0;
|
114
|
+
}
|
115
|
+
}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
@mixin shadow-z-1(){
|
2
|
+
box-shadow:
|
3
|
+
0 1px 6px 0 rgba(0, 0, 0, 0.12),
|
4
|
+
0 1px 6px 0 rgba(0, 0, 0, 0.12);
|
5
|
+
}
|
6
|
+
|
7
|
+
@mixin shadow-z-1-hover(){
|
8
|
+
box-shadow:
|
9
|
+
0 5px 11px 0 rgba(0, 0, 0, 0.18),
|
10
|
+
0 4px 15px 0 rgba(0, 0, 0, 0.15);
|
11
|
+
}
|
12
|
+
|
13
|
+
@mixin shadow-z-2(){
|
14
|
+
box-shadow:
|
15
|
+
0 8px 17px 0 rgba(0, 0, 0, 0.2),
|
16
|
+
0 6px 20px 0 rgba(0, 0, 0, 0.19);
|
17
|
+
}
|
18
|
+
|
19
|
+
@mixin shadow-z-3(){
|
20
|
+
box-shadow:
|
21
|
+
0 12px 15px 0 rgba(0, 0, 0, 0.24),
|
22
|
+
0 17px 50px 0 rgba(0, 0, 0, 0.19);
|
23
|
+
}
|
24
|
+
|
25
|
+
@mixin shadow-z-4(){
|
26
|
+
box-shadow:
|
27
|
+
0 16px 28px 0 rgba(0, 0, 0, 0.22),
|
28
|
+
0 25px 55px 0 rgba(0, 0, 0, 0.21);
|
29
|
+
}
|
30
|
+
|
31
|
+
@mixin shadow-z-5(){
|
32
|
+
box-shadow:
|
33
|
+
0 27px 24px 0 rgba(0, 0, 0, 0.2),
|
34
|
+
0 40px 77px 0 rgba(0, 0, 0, 0.22);
|
35
|
+
}
|
36
|
+
|
37
|
+
|
38
|
+
/* Shadows (from mdl http://www.getmdl.io/) */
|
39
|
+
|
40
|
+
// Focus shadow mixin.
|
41
|
+
@mixin focus-shadow(){
|
42
|
+
box-shadow: 0 0 8px rgba(0,0,0,.18),
|
43
|
+
0 8px 16px rgba(0,0,0,.36);
|
44
|
+
}
|
45
|
+
|
46
|
+
@mixin shadow-2dp(){
|
47
|
+
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, $mdb-shadow-key-penumbra-opacity),
|
48
|
+
0 3px 1px -2px rgba(0, 0, 0, $mdb-shadow-key-umbra-opacity),
|
49
|
+
0 1px 5px 0 rgba(0, 0, 0, $mdb-shadow-ambient-shadow-opacity);
|
50
|
+
}
|
51
|
+
@mixin shadow-3dp(){
|
52
|
+
box-shadow: 0 3px 4px 0 rgba(0, 0, 0, $mdb-shadow-key-penumbra-opacity),
|
53
|
+
0 3px 3px -2px rgba(0, 0, 0, $mdb-shadow-key-umbra-opacity),
|
54
|
+
0 1px 8px 0 rgba(0, 0, 0, $mdb-shadow-ambient-shadow-opacity);
|
55
|
+
}
|
56
|
+
@mixin shadow-4dp(){
|
57
|
+
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, $mdb-shadow-key-penumbra-opacity),
|
58
|
+
0 1px 10px 0 rgba(0, 0, 0, $mdb-shadow-ambient-shadow-opacity),
|
59
|
+
0 2px 4px -1px rgba(0, 0, 0, $mdb-shadow-key-umbra-opacity);
|
60
|
+
}
|
61
|
+
@mixin shadow-6dp(){
|
62
|
+
box-shadow: 0 6px 10px 0 rgba(0, 0, 0, $mdb-shadow-key-penumbra-opacity),
|
63
|
+
0 1px 18px 0 rgba(0, 0, 0, $mdb-shadow-ambient-shadow-opacity),
|
64
|
+
0 3px 5px -1px rgba(0, 0, 0, $mdb-shadow-key-umbra-opacity);
|
65
|
+
}
|
66
|
+
@mixin shadow-8dp(){
|
67
|
+
box-shadow: 0 8px 10px 1px rgba(0, 0, 0, $mdb-shadow-key-penumbra-opacity),
|
68
|
+
0 3px 14px 2px rgba(0, 0, 0, $mdb-shadow-ambient-shadow-opacity),
|
69
|
+
0 5px 5px -3px rgba(0, 0, 0, $mdb-shadow-key-umbra-opacity);
|
70
|
+
}
|
71
|
+
|
72
|
+
@mixin shadow-16dp(){
|
73
|
+
box-shadow: 0 16px 24px 2px rgba(0, 0, 0, $mdb-shadow-key-penumbra-opacity),
|
74
|
+
0 6px 30px 5px rgba(0, 0, 0, $mdb-shadow-ambient-shadow-opacity),
|
75
|
+
0 8px 10px -5px rgba(0, 0, 0, $mdb-shadow-key-umbra-opacity);
|
76
|
+
}
|
77
|
+
|
78
|
+
@mixin shadow-24dp(){
|
79
|
+
box-shadow: 0 9px 46px 8px rgba(0, 0, 0, $mdb-shadow-key-penumbra-opacity),
|
80
|
+
0 11px 15px -7px rgba(0, 0, 0, $mdb-shadow-ambient-shadow-opacity),
|
81
|
+
0 24px 38px 3px rgba(0, 0, 0, $mdb-shadow-key-umbra-opacity);
|
82
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
.nav-tabs {
|
2
|
+
background: $brand-primary;
|
3
|
+
> li {
|
4
|
+
> a {
|
5
|
+
color: #FFFFFF;
|
6
|
+
border: 0;
|
7
|
+
margin: 0;
|
8
|
+
&:hover {
|
9
|
+
background-color: transparent;
|
10
|
+
border: 0;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
& > a, & > a:hover, & > a:focus {
|
14
|
+
background-color: transparent !important;
|
15
|
+
border: 0 !important;
|
16
|
+
color: #FFFFFF !important;
|
17
|
+
font-weight: 500;
|
18
|
+
}
|
19
|
+
&.disabled > a, &.disabled > a:hover {
|
20
|
+
color: rgba(255,255,255,0.5);
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
}
|
@@ -0,0 +1,83 @@
|
|
1
|
+
.togglebutton {
|
2
|
+
vertical-align: middle;
|
3
|
+
&, label, input, .toggle {
|
4
|
+
user-select: none;
|
5
|
+
}
|
6
|
+
label {
|
7
|
+
cursor: pointer;
|
8
|
+
color: $mdb-toggle-label-color;
|
9
|
+
@include mdb-label-color-toggle-focus();
|
10
|
+
|
11
|
+
// Hide original checkbox
|
12
|
+
input[type=checkbox] {
|
13
|
+
opacity: 0;
|
14
|
+
width: 0;
|
15
|
+
height: 0;
|
16
|
+
}
|
17
|
+
|
18
|
+
.toggle {
|
19
|
+
text-align: left; // Issue #737 horizontal form
|
20
|
+
}
|
21
|
+
// Switch bg off and disabled
|
22
|
+
.toggle,
|
23
|
+
input[type=checkbox][disabled] + .toggle {
|
24
|
+
content: "";
|
25
|
+
display: inline-block;
|
26
|
+
width: 30px;
|
27
|
+
height: 15px;
|
28
|
+
background-color: rgba(80, 80, 80, 0.7);
|
29
|
+
border-radius: 15px;
|
30
|
+
margin-right: 15px;
|
31
|
+
transition: background 0.3s ease;
|
32
|
+
vertical-align: middle;
|
33
|
+
}
|
34
|
+
// Handle off
|
35
|
+
.toggle:after {
|
36
|
+
content: "";
|
37
|
+
display: inline-block;
|
38
|
+
width: 20px;
|
39
|
+
height: 20px;
|
40
|
+
background-color: #F1F1F1;
|
41
|
+
border-radius: 20px;
|
42
|
+
position: relative;
|
43
|
+
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4);
|
44
|
+
left: -5px;
|
45
|
+
top: -2px;
|
46
|
+
transition: left 0.3s ease, background 0.3s ease, box-shadow 0.1s ease;
|
47
|
+
}
|
48
|
+
input[type=checkbox] {
|
49
|
+
// Handle disabled
|
50
|
+
&[disabled] {
|
51
|
+
& + .toggle:after,
|
52
|
+
&:checked + .toggle:after {
|
53
|
+
background-color: #BDBDBD;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
& + .toggle:active:after,
|
58
|
+
&[disabled] + .toggle:active:after {
|
59
|
+
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba(0, 0, 0, 0.1);
|
60
|
+
}
|
61
|
+
|
62
|
+
// Ripple off and disabled
|
63
|
+
&:checked + .toggle:after {
|
64
|
+
left: 15px;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
// set bg when checked
|
69
|
+
input[type=checkbox]:checked {
|
70
|
+
+ .toggle {
|
71
|
+
background-color: rgba($brand-primary, (50/100)); // Switch bg on
|
72
|
+
}
|
73
|
+
|
74
|
+
+ .toggle:after {
|
75
|
+
background-color: $brand-primary; // Handle on
|
76
|
+
}
|
77
|
+
|
78
|
+
+ .toggle:active:after {
|
79
|
+
box-shadow: 0 1px 3px 1px rgba(0, 0, 0, 0.4), 0 0 0 15px rgba($brand-primary, (10/100)); // Ripple on
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
@@ -0,0 +1,169 @@
|
|
1
|
+
@import '_colors';
|
2
|
+
|
3
|
+
// Typography elements
|
4
|
+
$mdb-font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif !default;
|
5
|
+
$mdb-text-color-light: $white;
|
6
|
+
$mdb-text-color-light-hex: $white !default; // for contrast function in inverse
|
7
|
+
$mdb-text-color-primary: $black;
|
8
|
+
$mdb-text-color-primary-hex: $black !default; // for contrast function in inverse
|
9
|
+
$icon-color: rgba(0,0,0,0.5) !default;
|
10
|
+
|
11
|
+
|
12
|
+
$mdb-label-color: unquote("rgba(#{$rgb-black}, 0.26)") !default;
|
13
|
+
$mdb-label-color-toggle-focus: unquote("rgba(#{$rgb-black}, .54)") !default;
|
14
|
+
|
15
|
+
|
16
|
+
//---
|
17
|
+
// Converted bs variables
|
18
|
+
|
19
|
+
// Bootstrap brand color customization
|
20
|
+
$brand-primary: #00519d;
|
21
|
+
$brand-success: $green !default;
|
22
|
+
$brand-danger: $red !default;
|
23
|
+
$brand-warning: $deep-orange !default;
|
24
|
+
$brand-info: $light-blue !default;
|
25
|
+
|
26
|
+
$border-radius-base: 2px !default;
|
27
|
+
$border-radius-small: 1px !default;
|
28
|
+
|
29
|
+
// Typography
|
30
|
+
$font-family-sans-serif: 'Roboto', 'Helvetica', 'Arial', sans-serif !default;
|
31
|
+
$headings-font-weight: 300 !default;
|
32
|
+
|
33
|
+
$body-bg: #EEEEEE !default;
|
34
|
+
//---
|
35
|
+
|
36
|
+
// import bs variables for sass, first declared wins.
|
37
|
+
@import '_import-bs-sass';
|
38
|
+
|
39
|
+
// Bootstrap Material Design variables start with mdb-
|
40
|
+
$mdb-brand-inverse: $indigo !default;
|
41
|
+
|
42
|
+
|
43
|
+
/* ANIMATION */
|
44
|
+
$mdb-animation-curve-fast-out-slow-in: cubic-bezier(0.4, 0, 0.2, 1) !default;
|
45
|
+
$mdb-animation-curve-linear-out-slow-in: cubic-bezier(0, 0, 0.2, 1) !default;
|
46
|
+
$mdb-animation-curve-fast-out-linear-in: cubic-bezier(0.4, 0, 1, 1) !default;
|
47
|
+
$mdb-animation-curve-default: $mdb-animation-curve-fast-out-slow-in !default;
|
48
|
+
|
49
|
+
|
50
|
+
//---
|
51
|
+
// FIXME: Similar but not quite the same as Bootstrap variables
|
52
|
+
// FIXME: these need to either a) be converted to $mdb- or b) converted to bs variables
|
53
|
+
$contrast-factor: 40% !default;
|
54
|
+
//---
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
// --------------------
|
60
|
+
// inputs
|
61
|
+
$mdb-input-placeholder-color: #BDBDBD !default;
|
62
|
+
$mdb-input-underline-color: #D2D2D2 !default;
|
63
|
+
$mdb-label-static-size-ratio: 75 / 100 !default;
|
64
|
+
$mdb-help-block-size-ratio: 75 / 100 !default;
|
65
|
+
|
66
|
+
$mdb-input-font-size-base: 14px;
|
67
|
+
$mdb-input-font-size-large: ceil(($font-size-base * 1.25)) !default; // ~20px
|
68
|
+
$mdb-input-font-size-small: ceil(($font-size-base * 0.75)) !default; // ~12px
|
69
|
+
|
70
|
+
// FIXME: with #733 customization of bootstrap, consider how these could be based on the original bs customized variables
|
71
|
+
//** Unit-less `line-height` for use in components like buttons.
|
72
|
+
$mdb-input-line-height-base: $line-height-base; //1.428571429 !default; // 20/14
|
73
|
+
//** Computed "line-height" (`font-size` * `line-height`) for use with `margin`, `padding`, etc.
|
74
|
+
$mdb-input-line-height-computed: floor(($mdb-input-font-size-base * $mdb-input-line-height-base)) !default; // ~20px
|
75
|
+
$mdb-input-line-height-large: 1.3333333 !default; // extra decimals for Win 8.1 Chrome
|
76
|
+
$mdb-input-line-height-small: 1.5 !default;
|
77
|
+
|
78
|
+
//## Define common padding and border radius sizes and more. Values based on 14px text and 1.428 line-height (~20px to start).
|
79
|
+
$mdb-input-padding-base-vertical: 8px - 1px !default; // was 6.
|
80
|
+
$mdb-input-padding-base-horizontal: 0 !default; // was 12.
|
81
|
+
$mdb-label-as-placeholder-shim-base: 0 !default; // manual adjustment of label top when positioned as placeholder
|
82
|
+
$mdb-label-top-margin-base: 16px !default;
|
83
|
+
|
84
|
+
$mdb-input-padding-large-vertical: 10px - 1px !default; // 10
|
85
|
+
$mdb-input-padding-large-horizontal: 0 !default; // 16
|
86
|
+
$mdb-label-as-placeholder-shim-large: -4px !default; // manual adjustment of label top when positioned as placeholder
|
87
|
+
$mdb-label-top-margin-large: 16px !default;
|
88
|
+
|
89
|
+
$mdb-input-padding-small-vertical: 4px - 1px !default; // 5
|
90
|
+
$mdb-input-padding-small-horizontal: 0 !default; // 10
|
91
|
+
$mdb-label-as-placeholder-shim-small: 8px !default; // manual adjustment of label top when positioned as placeholder
|
92
|
+
$mdb-label-top-margin-small: 12px !default;
|
93
|
+
|
94
|
+
$mdb-input-padding-xs-vertical: 2px !default; // 1
|
95
|
+
$mdb-input-padding-xs-horizontal: 0 !default; // 5
|
96
|
+
|
97
|
+
$mdb-input-border-radius-base: 0 !default;
|
98
|
+
$mdb-input-border-radius-large: 0 !default;
|
99
|
+
$mdb-input-border-radius-small: 0 !default;
|
100
|
+
|
101
|
+
|
102
|
+
//** Default `.form-control` height
|
103
|
+
$mdb-input-height-base: ($mdb-input-line-height-computed + ($mdb-input-padding-base-vertical * 2) + 2) !default;
|
104
|
+
//** Large `.form-control` height
|
105
|
+
$mdb-input-height-large: (ceil($mdb-input-font-size-large * $mdb-input-line-height-large) + ($mdb-input-padding-large-vertical * 2) + 2) !default;
|
106
|
+
//** Small `.form-control` height
|
107
|
+
$mdb-input-height-small: (floor($mdb-input-font-size-small * $mdb-input-line-height-small) + ($mdb-input-padding-small-vertical * 2) + 2) !default;
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
// Card
|
113
|
+
$mdb-card-body-text: $mdb-text-color-primary !default;
|
114
|
+
$mdb-card-body-background: #fff !default;
|
115
|
+
$mdb-card-image-headline: #fff !default;
|
116
|
+
|
117
|
+
$text-disabled: #a8a8a8 !default;
|
118
|
+
$background-disabled: #eaeaea !default;
|
119
|
+
|
120
|
+
// Checkboxes
|
121
|
+
$mdb-checkbox-size: 20px !default;
|
122
|
+
$mdb-checkbox-animation-ripple: 500ms !default;
|
123
|
+
$mdb-checkbox-animation-check: 0.3s !default;
|
124
|
+
$mdb-checkbox-checked-color: $brand-primary !default;
|
125
|
+
|
126
|
+
$mdb-checkbox-border-size: 2px !default;
|
127
|
+
$mdb-checkbox-label-color: $mdb-label-color !default;
|
128
|
+
$mdb-checkbox-border-color: $mdb-label-color-toggle-focus !default;
|
129
|
+
|
130
|
+
// Popovers and Popups
|
131
|
+
$mdb-popover-background: rgba(101, 101, 101, 0.9) !default;
|
132
|
+
$mdb-popover-color: #ececec !default;
|
133
|
+
|
134
|
+
// Dropdown Menu
|
135
|
+
$mdb-dropdown-font-size: 14px;
|
136
|
+
|
137
|
+
// Toggle
|
138
|
+
$mdb-toggle-label-color: $mdb-label-color !default;
|
139
|
+
|
140
|
+
// Radio:
|
141
|
+
$mdb-radio-label-color: $mdb-label-color !default;
|
142
|
+
$mdb-radio-color-off: $mdb-label-color-toggle-focus !default;
|
143
|
+
$mdb-radio-color-on: $brand-primary !default;
|
144
|
+
|
145
|
+
// Buttons:
|
146
|
+
$mdb-btn-font-size-base: 14px !default;
|
147
|
+
$mdb-btn-font-size-lg: 16px !default;
|
148
|
+
$mdb-btn-font-size-sm: 12px !default;
|
149
|
+
$mdb-btn-font-size-xs: 10px !default;
|
150
|
+
|
151
|
+
|
152
|
+
$mdb-btn-background-color: $body-bg; //transparent !default;
|
153
|
+
$mdb-btn-background-color-text: $mdb-text-color-primary !default;
|
154
|
+
|
155
|
+
|
156
|
+
//$mdb-btn-border-radius: 2px !default;
|
157
|
+
//$mdb-btn-primary-color: unquote("rgba(#{$rgb-grey-500}, 0.20)") !default;
|
158
|
+
|
159
|
+
$mdb-btn-fab-size: 56px !default;
|
160
|
+
$mdb-btn-fab-size-mini: 40px !default;
|
161
|
+
$mdb-btn-fab-font-size: 24px !default;
|
162
|
+
|
163
|
+
$mdb-btn-icon-size: 32px !default;
|
164
|
+
$mdb-btn-icon-size-mini: 24px !default;
|
165
|
+
|
166
|
+
/* SHADOWS */
|
167
|
+
$mdb-shadow-key-umbra-opacity: 0.2 !default;
|
168
|
+
$mdb-shadow-key-penumbra-opacity: 0.14 !default;
|
169
|
+
$mdb-shadow-ambient-shadow-opacity: 0.12 !default;
|