rails_admin_material 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +25 -0
- data/Rakefile +24 -0
- data/lib/rails_admin_material.rb +4 -0
- data/lib/rails_admin_material/engine.rb +4 -0
- data/lib/rails_admin_material/version.rb +3 -0
- data/vendor/assets/javascripts/rails_admin/themes/material/bootstrap-material-design/material.js +352 -0
- data/vendor/assets/javascripts/rails_admin/themes/material/bootstrap-material-design/material.min.js +2 -0
- data/vendor/assets/javascripts/rails_admin/themes/material/bootstrap-material-design/material.min.js.map +1 -0
- data/vendor/assets/javascripts/rails_admin/themes/material/bootstrap-material-design/ripples.js +324 -0
- data/vendor/assets/javascripts/rails_admin/themes/material/bootstrap-material-design/ripples.min.js +2 -0
- data/vendor/assets/javascripts/rails_admin/themes/material/bootstrap-material-design/ripples.min.js.map +1 -0
- data/vendor/assets/javascripts/rails_admin/themes/material/ui.js +6 -0
- data/vendor/assets/stylesheets/bootstrap/variables.scss +874 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_alerts.scss +19 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_buttons.scss +246 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_cards.scss +68 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_checkboxes.scss +272 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_colors-map.scss +311 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_colors.scss +361 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_core.scss +95 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_dialogs.scss +54 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_dividers.scss +73 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_form.scss +42 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_import-bs-less.scss +4 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_import-bs-sass.scss +1 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_inputs-size.scss +223 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_inputs.scss +354 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_labels.scss +6 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_lists.scss +104 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_mixins-utilities.scss +31 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_mixins.scss +242 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_navbar.scss +212 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_panels.scss +23 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_plugins.scss +7 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_popups.scss +20 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_progress.scss +12 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_radios.scss +117 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_shadows.scss +84 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_tabs.scss +26 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_themes.scss +8 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_togglebutton.scss +85 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_typography.scss +17 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_variables.scss +174 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_welljumbo.scss +28 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/bootstrap-material-design.scss +6 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/plugins/_plugin-dropdownjs.scss +17 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/plugins/_plugin-nouislider.scss +112 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/plugins/_plugin-selectize.scss +93 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/plugins/_plugin-snackbarjs.scss +34 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/ripples.scss +38 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/mixins.scss +5 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/theming.scss +124 -0
- data/vendor/assets/stylesheets/rails_admin/themes/material/variables.scss +32 -0
- metadata +98 -0
data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_core.scss
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
// This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten.
|
2
|
+
|
3
|
+
body {
|
4
|
+
background-color: $body-bg;
|
5
|
+
&.inverse {
|
6
|
+
background: #333333;
|
7
|
+
&, .form-control {
|
8
|
+
color: $mdb-text-color-light;
|
9
|
+
}
|
10
|
+
.modal,
|
11
|
+
.panel-default,
|
12
|
+
.card {
|
13
|
+
&,
|
14
|
+
.form-control {
|
15
|
+
background-color: initial;
|
16
|
+
color: initial;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
|
24
|
+
body, h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
|
25
|
+
font-family: $font-family-sans-serif;
|
26
|
+
font-weight: 300;
|
27
|
+
}
|
28
|
+
|
29
|
+
h5, h6{
|
30
|
+
font-weight: 400;
|
31
|
+
}
|
32
|
+
|
33
|
+
a, a:hover, a:focus {
|
34
|
+
color: $link-color;
|
35
|
+
|
36
|
+
& .material-icons {
|
37
|
+
vertical-align: middle;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
@import '_form';
|
42
|
+
@import '_welljumbo';
|
43
|
+
@import '_buttons';
|
44
|
+
@import '_checkboxes';
|
45
|
+
@import '_togglebutton';
|
46
|
+
@import '_radios';
|
47
|
+
@import '_inputs';
|
48
|
+
|
49
|
+
legend {
|
50
|
+
border-bottom: 0;
|
51
|
+
}
|
52
|
+
|
53
|
+
@import '_lists';
|
54
|
+
@import '_navbar';
|
55
|
+
|
56
|
+
.dropdown-menu {
|
57
|
+
border: 0;
|
58
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
|
59
|
+
.divider {
|
60
|
+
background-color: rgba(0, 0, 0, .12);
|
61
|
+
}
|
62
|
+
li {
|
63
|
+
overflow: hidden;
|
64
|
+
position: relative;
|
65
|
+
a:hover {
|
66
|
+
background-color: transparent;
|
67
|
+
color: $brand-primary;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
@import '_alerts';
|
73
|
+
@import '_progress';
|
74
|
+
@import '_typography';
|
75
|
+
@import '_tabs';
|
76
|
+
@import '_popups';
|
77
|
+
@import '_cards';
|
78
|
+
@import '_dialogs';
|
79
|
+
@import '_panels';
|
80
|
+
@import '_dividers';
|
81
|
+
|
82
|
+
// Prevent highlight on mobile
|
83
|
+
* {
|
84
|
+
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
|
85
|
+
-webkit-tap-highlight-color: transparent;
|
86
|
+
&:focus {
|
87
|
+
outline: 0;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
|
91
|
+
|
92
|
+
@import '_themes';
|
93
|
+
|
94
|
+
// External plugins
|
95
|
+
@import '_plugins';
|
data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_dialogs.scss
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
// This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten.
|
2
|
+
|
3
|
+
//
|
4
|
+
// Modals
|
5
|
+
// Material Design element Dialogs
|
6
|
+
// --------------------------------------------------
|
7
|
+
.modal-content {
|
8
|
+
@include shadow-z-5();
|
9
|
+
border-radius: $border-radius-base;
|
10
|
+
border: none;
|
11
|
+
// Modal header
|
12
|
+
// Top section of the modal w/ title and dismiss
|
13
|
+
.modal-header {
|
14
|
+
border-bottom: none;
|
15
|
+
padding-top: 24px;
|
16
|
+
padding-right: 24px;
|
17
|
+
padding-bottom: 0;
|
18
|
+
padding-left: 24px;
|
19
|
+
}
|
20
|
+
// Modal body
|
21
|
+
// Where all modal content resides (sibling of .modal-header and .modal-footer)
|
22
|
+
.modal-body {
|
23
|
+
padding-top: 24px;
|
24
|
+
padding-right: 24px;
|
25
|
+
padding-bottom: 16px;
|
26
|
+
padding-left: 24px;
|
27
|
+
}
|
28
|
+
// Footer (for actions)
|
29
|
+
.modal-footer {
|
30
|
+
border-top: none;
|
31
|
+
padding: 7px;
|
32
|
+
button {
|
33
|
+
margin: 0;
|
34
|
+
padding-left: 16px;
|
35
|
+
padding-right: 16px;
|
36
|
+
width: auto;
|
37
|
+
&.pull-left {
|
38
|
+
padding-left: 5px;
|
39
|
+
padding-right: 5px;
|
40
|
+
position: relative;
|
41
|
+
left: -5px;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
button+button {
|
45
|
+
margin-bottom: 16px;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
.modal-body + .modal-footer {
|
49
|
+
padding-top: 0;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
.modal-backdrop {
|
53
|
+
background: rgba(0,0,0,0.3);
|
54
|
+
}
|
data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_dividers.scss
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
// This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten.
|
2
|
+
|
3
|
+
hr {
|
4
|
+
&.on-dark {
|
5
|
+
color: lighten($black, 10%);
|
6
|
+
}
|
7
|
+
|
8
|
+
&.on-light {
|
9
|
+
color: lighten($white, 10%);
|
10
|
+
}
|
11
|
+
|
12
|
+
@media (-webkit-min-device-pixel-ratio: 0.75),
|
13
|
+
(min--moz-device-pixel-ratio: 0.75),
|
14
|
+
(-o-device-pixel-ratio: 3/4),
|
15
|
+
(min-device-pixel-ratio: 0.75),
|
16
|
+
(min-resolution: 0.75dppx),
|
17
|
+
(min-resolution: 120dpi) {
|
18
|
+
height:0.75px;
|
19
|
+
}
|
20
|
+
|
21
|
+
@media (-webkit-min-device-pixel-ratio: 1),
|
22
|
+
(min--moz-device-pixel-ratio: 1),
|
23
|
+
(-o-device-pixel-ratio: 1),
|
24
|
+
(min-device-pixel-ratio: 1),
|
25
|
+
(min-resolution: 1dppx),
|
26
|
+
(min-resolution: 160dpi) {
|
27
|
+
height:1px;
|
28
|
+
}
|
29
|
+
@media (-webkit-min-device-pixel-ratio: 1.33),
|
30
|
+
(min--moz-device-pixel-ratio: 1.33),
|
31
|
+
(-o-device-pixel-ratio: 133/100),
|
32
|
+
(min-device-pixel-ratio: 1.33),
|
33
|
+
(min-resolution: 1.33dppx),
|
34
|
+
(min-resolution: 213dpi) {
|
35
|
+
height:1.333px;
|
36
|
+
}
|
37
|
+
@media (-webkit-min-device-pixel-ratio: 1.5),
|
38
|
+
(min--moz-device-pixel-ratio: 1.5),
|
39
|
+
(-o-device-pixel-ratio: 3/2),
|
40
|
+
(min-device-pixel-ratio: 1.5),
|
41
|
+
(min-resolution: 1.5dppx),
|
42
|
+
(min-resolution: 240dpi) {
|
43
|
+
height:1.5px;
|
44
|
+
}
|
45
|
+
|
46
|
+
@media (-webkit-min-device-pixel-ratio: 2),
|
47
|
+
(min--moz-device-pixel-ratio: 2),
|
48
|
+
(-o-device-pixel-ratio: 2/1),
|
49
|
+
(min-device-pixel-ratio: 2),
|
50
|
+
(min-resolution: 2dppx),
|
51
|
+
(min-resolution: 380dpi) {
|
52
|
+
height:2px;
|
53
|
+
}
|
54
|
+
|
55
|
+
@media (-webkit-min-device-pixel-ratio: 3),
|
56
|
+
(min--moz-device-pixel-ratio: 3),
|
57
|
+
(-o-device-pixel-ratio: 3/1),
|
58
|
+
(min-device-pixel-ratio: 3),
|
59
|
+
(min-resolution: 3dppx),
|
60
|
+
(min-resolution: 480dpi) {
|
61
|
+
height:3px;
|
62
|
+
}
|
63
|
+
|
64
|
+
@media (-webkit-min-device-pixel-ratio: 4),
|
65
|
+
(min--moz-device-pixel-ratio: 4),
|
66
|
+
(-o-device-pixel-ratio: 4/1),
|
67
|
+
(min-device-pixel-ratio: 3),
|
68
|
+
(min-resolution: 4dppx),
|
69
|
+
(min-resolution: 640dpi) {
|
70
|
+
height:4px;
|
71
|
+
}
|
72
|
+
|
73
|
+
}
|
data/vendor/assets/stylesheets/rails_admin/themes/material/bootstrap-material-design/_form.scss
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
// This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten.
|
2
|
+
|
3
|
+
@mixin mdb-label-color-toggle-focus(){
|
4
|
+
// override bootstrap focus and keep all the standard color (could be multiple radios in the form group)
|
5
|
+
.form-group.is-focused & {
|
6
|
+
color: $mdb-label-color;
|
7
|
+
|
8
|
+
// on focus just darken the specific labels, do not turn them to the brand-primary
|
9
|
+
&:hover,
|
10
|
+
&:focus {
|
11
|
+
color: $mdb-label-color-toggle-focus;
|
12
|
+
}
|
13
|
+
|
14
|
+
// correct the above focus color for disabled items
|
15
|
+
fieldset[disabled] & {
|
16
|
+
color: $mdb-label-color;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.form-horizontal {
|
22
|
+
|
23
|
+
// Consistent vertical alignment of radios and checkboxes
|
24
|
+
.radio,
|
25
|
+
.checkbox,
|
26
|
+
.radio-inline,
|
27
|
+
.checkbox-inline {
|
28
|
+
padding-top: 0;
|
29
|
+
}
|
30
|
+
|
31
|
+
.radio {
|
32
|
+
margin-bottom: 10px;
|
33
|
+
}
|
34
|
+
|
35
|
+
label {
|
36
|
+
text-align: right;
|
37
|
+
}
|
38
|
+
|
39
|
+
label.control-label {
|
40
|
+
margin: 0;
|
41
|
+
}
|
42
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
@import "bootstrap/variables";
|
@@ -0,0 +1,223 @@
|
|
1
|
+
// This file has been autogenerated by grunt task lessToSass. Any changes will be overwritten.
|
2
|
+
|
3
|
+
//
|
4
|
+
// Forms - sizing - material - mirrors bootstrap/forms.less with custom sizing
|
5
|
+
//
|
6
|
+
// LEAVE THIS IDENTICAL TO THE BOOTSTRAP FILE - DO NOT CUSTOMIZE HERE.
|
7
|
+
//
|
8
|
+
// NOTE: this is intentionally kept structurally _identical_ to the bootstrap/forms.less file to make it easier
|
9
|
+
// to identify differences in sizing approaches to form inputs.
|
10
|
+
// --------------------------------------------------
|
11
|
+
|
12
|
+
legend {
|
13
|
+
margin-bottom: $mdb-input-line-height-computed;
|
14
|
+
font-size: ($mdb-input-font-size-base * 1.5);
|
15
|
+
}
|
16
|
+
|
17
|
+
// Adjust output element
|
18
|
+
output {
|
19
|
+
padding-top: ($mdb-input-padding-base-vertical + 1);
|
20
|
+
font-size: $mdb-input-font-size-base;
|
21
|
+
line-height: $mdb-input-line-height-base;
|
22
|
+
}
|
23
|
+
|
24
|
+
.form-control {
|
25
|
+
height: $mdb-input-height-base; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
|
26
|
+
padding: $mdb-input-padding-base-vertical $mdb-input-padding-base-horizontal;
|
27
|
+
font-size: $mdb-input-font-size-base;
|
28
|
+
line-height: $mdb-input-line-height-base;
|
29
|
+
}
|
30
|
+
|
31
|
+
// Special styles for iOS temporal inputs
|
32
|
+
//
|
33
|
+
// In Mobile Safari, setting `display: block` on temporal inputs causes the
|
34
|
+
// text within the input to become vertically misaligned. As a workaround, we
|
35
|
+
// set a pixel line-height that matches the given height of the input, but only
|
36
|
+
// for Safari. See https://bugs.webkit.org/show_bug.cgi?id=139848
|
37
|
+
//
|
38
|
+
// Note that as of 8.3, iOS doesn't support `datetime` or `week`.
|
39
|
+
|
40
|
+
@media screen and (-webkit-min-device-pixel-ratio: 0) {
|
41
|
+
input[type="date"],
|
42
|
+
input[type="time"],
|
43
|
+
input[type="datetime-local"],
|
44
|
+
input[type="month"] {
|
45
|
+
&.form-control {
|
46
|
+
line-height: $mdb-input-height-base;
|
47
|
+
}
|
48
|
+
|
49
|
+
&.input-sm,
|
50
|
+
.input-group-sm & {
|
51
|
+
line-height: $mdb-input-height-small;
|
52
|
+
}
|
53
|
+
|
54
|
+
&.input-lg,
|
55
|
+
.input-group-lg & {
|
56
|
+
line-height: $mdb-input-height-large;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
.radio,
|
62
|
+
.checkbox {
|
63
|
+
|
64
|
+
label {
|
65
|
+
min-height: $mdb-input-line-height-computed; // Ensure the input doesn't jump when there is no text
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
|
70
|
+
// Static form control text
|
71
|
+
//
|
72
|
+
// Apply class to a `p` element to make any string of text align with labels in
|
73
|
+
// a horizontal form layout.
|
74
|
+
|
75
|
+
.form-control-static {
|
76
|
+
// Size it appropriately next to real form controls
|
77
|
+
padding-top: ($mdb-input-padding-base-vertical + 1);
|
78
|
+
padding-bottom: ($mdb-input-padding-base-vertical + 1);
|
79
|
+
min-height: ($mdb-input-line-height-computed + $mdb-input-font-size-base);
|
80
|
+
}
|
81
|
+
|
82
|
+
|
83
|
+
// Form control sizing
|
84
|
+
//
|
85
|
+
// Relative text size, padding, and border-radii changes for form controls. For
|
86
|
+
// horizontal sizing, wrap controls in the predefined grid classes. `<select>`
|
87
|
+
// element gets special love because it's special, and that's a fact!
|
88
|
+
|
89
|
+
// mixin pulled from bootstrap and altered for less/sass compatibility with sass parent hack.
|
90
|
+
// bootstrap-sass has this one, but we would have to then convert it back to less. chicken meet egg.
|
91
|
+
@mixin input-size($parent, $mdb-input-height, $padding-vertical, $padding-horizontal, $font-size, $line-height, $border-radius){
|
92
|
+
|
93
|
+
#{$parent} {
|
94
|
+
height: $mdb-input-height;
|
95
|
+
padding: $padding-vertical $padding-horizontal;
|
96
|
+
font-size: $font-size;
|
97
|
+
line-height: $line-height;
|
98
|
+
border-radius: $border-radius;
|
99
|
+
}
|
100
|
+
|
101
|
+
select#{$parent} {
|
102
|
+
height: $mdb-input-height;
|
103
|
+
line-height: $mdb-input-height;
|
104
|
+
}
|
105
|
+
|
106
|
+
textarea#{$parent},
|
107
|
+
select[multiple]#{$parent} {
|
108
|
+
height: auto;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
// Form control sizing
|
115
|
+
//
|
116
|
+
// Build on `.form-control` with modifier classes to decrease or increase the
|
117
|
+
// height and font-size of form controls.
|
118
|
+
//
|
119
|
+
// The `.form-group-* form-control` variations are sadly duplicated to avoid the
|
120
|
+
// issue documented in https://github.com/twbs/bootstrap/issues/15074.
|
121
|
+
.input-sm {
|
122
|
+
@include input-size(unquote(".input-sm"), $mdb-input-height-small, $mdb-input-padding-small-vertical, $mdb-input-padding-small-horizontal, $mdb-input-font-size-small, $mdb-input-line-height-small, $mdb-input-border-radius-small);
|
123
|
+
}
|
124
|
+
.form-group-sm {
|
125
|
+
.form-control {
|
126
|
+
height: $mdb-input-height-small;
|
127
|
+
padding: $mdb-input-padding-small-vertical $mdb-input-padding-small-horizontal;
|
128
|
+
font-size: $mdb-input-font-size-small;
|
129
|
+
line-height: $mdb-input-line-height-small;
|
130
|
+
}
|
131
|
+
select.form-control {
|
132
|
+
height: $mdb-input-height-small;
|
133
|
+
line-height: $mdb-input-height-small;
|
134
|
+
}
|
135
|
+
textarea.form-control,
|
136
|
+
select[multiple].form-control {
|
137
|
+
height: auto;
|
138
|
+
}
|
139
|
+
.form-control-static {
|
140
|
+
height: $mdb-input-height-small;
|
141
|
+
min-height: ($mdb-input-line-height-computed + $mdb-input-font-size-small);
|
142
|
+
padding: ($mdb-input-padding-small-vertical + 1) $mdb-input-padding-small-horizontal;
|
143
|
+
font-size: $mdb-input-font-size-small;
|
144
|
+
line-height: $mdb-input-line-height-small;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
.input-lg {
|
149
|
+
@include input-size(unquote(".input-lg"), $mdb-input-height-large, $mdb-input-padding-large-vertical, $mdb-input-padding-large-horizontal, $mdb-input-font-size-large, $mdb-input-line-height-large, $mdb-input-border-radius-large);
|
150
|
+
}
|
151
|
+
.form-group-lg {
|
152
|
+
.form-control {
|
153
|
+
height: $mdb-input-height-large;
|
154
|
+
padding: $mdb-input-padding-large-vertical $mdb-input-padding-large-horizontal;
|
155
|
+
font-size: $mdb-input-font-size-large;
|
156
|
+
line-height: $mdb-input-line-height-large;
|
157
|
+
}
|
158
|
+
select.form-control {
|
159
|
+
height: $mdb-input-height-large;
|
160
|
+
line-height: $mdb-input-height-large;
|
161
|
+
}
|
162
|
+
textarea.form-control,
|
163
|
+
select[multiple].form-control {
|
164
|
+
height: auto;
|
165
|
+
}
|
166
|
+
.form-control-static {
|
167
|
+
height: $mdb-input-height-large;
|
168
|
+
min-height: ($mdb-input-line-height-computed + $mdb-input-font-size-large);
|
169
|
+
padding: ($mdb-input-padding-large-vertical + 1) $mdb-input-padding-large-horizontal;
|
170
|
+
font-size: $mdb-input-font-size-large;
|
171
|
+
line-height: $mdb-input-line-height-large;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
|
176
|
+
.form-horizontal {
|
177
|
+
|
178
|
+
// Consistent vertical alignment of radios and checkboxes
|
179
|
+
//
|
180
|
+
// Labels also get some reset styles, but that is scoped to a media query below.
|
181
|
+
.radio,
|
182
|
+
.checkbox,
|
183
|
+
.radio-inline,
|
184
|
+
.checkbox-inline {
|
185
|
+
padding-top: ($mdb-input-padding-base-vertical + 1); // Default padding plus a border
|
186
|
+
}
|
187
|
+
// Account for padding we're adding to ensure the alignment and of help text
|
188
|
+
// and other content below items
|
189
|
+
.radio,
|
190
|
+
.checkbox {
|
191
|
+
min-height: ($mdb-input-line-height-computed + ($mdb-input-padding-base-vertical + 1));
|
192
|
+
}
|
193
|
+
|
194
|
+
// Reset spacing and right align labels, but scope to media queries so that
|
195
|
+
// labels on narrow viewports stack the same as a default form example.
|
196
|
+
@media (min-width: $screen-sm-min) {
|
197
|
+
.control-label {
|
198
|
+
padding-top: ($mdb-input-padding-base-vertical + 1); // Default padding plus a border
|
199
|
+
}
|
200
|
+
}
|
201
|
+
|
202
|
+
|
203
|
+
// Form group sizes
|
204
|
+
//
|
205
|
+
// Quick utility class for applying `.input-lg` and `.input-sm` styles to the
|
206
|
+
// inputs and labels within a `.form-group`.
|
207
|
+
.form-group-lg {
|
208
|
+
@media (min-width: $screen-sm-min) {
|
209
|
+
.control-label {
|
210
|
+
padding-top: (($mdb-input-padding-large-vertical * $mdb-input-line-height-large) + 1);
|
211
|
+
font-size: $mdb-input-font-size-large;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
}
|
215
|
+
.form-group-sm {
|
216
|
+
@media (min-width: $screen-sm-min) {
|
217
|
+
.control-label {
|
218
|
+
padding-top: ($mdb-input-padding-small-vertical + 1);
|
219
|
+
font-size: $mdb-input-font-size-small;
|
220
|
+
}
|
221
|
+
}
|
222
|
+
}
|
223
|
+
}
|