/
_variables.scss
202 lines (169 loc) · 6.58 KB
/
_variables.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
////
/// @group form-text
////
@import '~@react-md/icon/dist/variables';
@import '~@react-md/states/dist/variables';
@import '~@react-md/theme/dist/variables';
@import '~@react-md/theme/dist/functions';
/// The color to use for the text field's borders/underlines while the user is
/// focusing the text field.
///
/// @require $rmd-states-focus-shadow-color
/// @type Color
$rmd-text-field-active-color: $rmd-states-focus-shadow-color !default;
/// The text field's border color to use in light themed apps or backgrounds.
///
/// @require $rmd-black-base
/// @type Color
$rmd-text-field-light-border-color: rgba($rmd-black-base, 0.12) !default;
/// The text field's border color to use in dark themed apps or backgrounds.
///
/// @require $rmd-white-base
/// @type Color
$rmd-text-field-dark-border-color: rgba($rmd-white-base, 0.5) !default;
/// The default text field's border color to use.
///
/// @require $rmd-theme-light
/// @type Color
$rmd-text-field-border-color: if(
$rmd-theme-light,
$rmd-text-field-light-border-color,
$rmd-text-field-dark-border-color
) !default;
/// The text field's border color to use in light themed apps or backgrounds
/// when the user is hovering the text field.
///
/// @require $rmd-black-base
/// @type Color
$rmd-text-field-light-border-hover-color: rgba($rmd-black-base, 0.87) !default;
/// The text field's border color to use in dark themed apps or backgrounds when
/// the user is hovering the text field.
///
/// @require $rmd-white-base
/// @type Color
$rmd-text-field-dark-border-hover-color: rgba($rmd-white-base, 0.87) !default;
/// The default text field's hover border color to use.
///
/// @require $rmd-theme-light
/// @type Color
$rmd-text-field-border-hover-color: if(
$rmd-theme-light,
$rmd-text-field-light-border-hover-color,
$rmd-text-field-dark-border-hover-color
) !default;
/// The border radius to apply to text fields.
/// @type Number
$rmd-text-field-border-radius: 0.25rem !default;
/// The default border width for outlined text fields.
/// @type Number
$rmd-text-field-border-width: 1px !default;
/// The border width for outlined text fields that are currently focused.
/// @type Number
$rmd-text-field-border-width-active: 2px !default;
/// The height to use for a text field with a label.
/// @type Number
$rmd-text-field-label-height: 3.5rem !default;
/// The height to use for a text field with a label with the dense spec.
/// @type Number
$rmd-text-field-label-dense-height: 3.25rem !default;
/// The height to use for a text field without a label (so placeholder only).
/// @type Number
$rmd-text-field-height: 3rem !default;
/// The height to use for a text field without a label with the dense spec (so
/// placeholder only).
/// @type Number
$rmd-text-field-dense-height: 2.5rem !default;
/// The amount of padding to apply to the left and right of the text field when
/// it has the outline theme applied.
/// @type Number
$rmd-text-field-outline-padding: 1rem !default;
/// The amount of padding to apply to the top of an underlined or filled text
/// field. This is used to push the input down a little bit to look nice with
/// the floating label.
/// @type Number
$rmd-text-field-underline-label-padding-top: 1rem !default;
/// The amount of offset to apply to the floating label for an underlined or
/// filled text field when there is an icon to the left of the input.
///
/// @require $rmd-icon-spacing-with-text
/// @type Number
$rmd-text-field-underline-label-left-offset: $rmd-icon-spacing-with-text !default;
/// The amount of padding to apply to the top of an underlined or filled text
/// field when the dense theme is enabled. This is used to push the input down a
/// little bit to look nice with the floating label.
/// @type Number
$rmd-text-field-underline-dense-padding-top: 0.25rem !default;
/// The amount of padding to apply to the left and right of the text field when
/// it has the underline theme applied.
/// @type Number
$rmd-text-field-underline-padding: null !default;
/// The amount of padding to apply to the left and right of the text field when
/// it has the filled theme applied.
/// @type Number
$rmd-text-field-filled-padding: 0.75rem !default;
/// The background color to use for filled text fields when using the light
/// theme.
///
/// @require $rmd-grey-100
/// @type Color
$rmd-text-field-filled-light-background-color: $rmd-grey-100 !default;
/// The background color to use for filled text fields when using the dark
/// theme.
///
/// @require $rmd-grey-700
/// @type Color
$rmd-text-field-filled-dark-background-color: $rmd-grey-700 !default;
/// The default background color for filled text fields.
///
/// @require $rmd-theme-light
/// @type Color
$rmd-text-field-filled-background-color: if(
$rmd-theme-light,
$rmd-text-field-filled-light-background-color,
$rmd-text-field-filled-dark-background-color
) !default;
/// The border radius to apply to the top left and top right of the filled text
/// field.
/// @type Number
$rmd-text-field-filled-border-radius: 0.25rem !default;
/// The amount of spacing between the left or right of the text field and the
/// icon.
///
/// @require $rmd-icon-spacing-with-text
/// @type Number
$rmd-text-field-addon-margin: $rmd-icon-spacing-with-text !default;
/// An additional amount of padding to apply to textareas.
/// @type Number
$rmd-textarea-vertical-padding: 0.5rem !default;
/// The amount to start offsetting the textarea's left/right inline addon icons.
/// If this value isn't set, the icons will be centered in the textarea's height
/// and will continually be centered as the user types more and more text.
/// @type Number
$rmd-textarea-addon-top: 1rem !default;
/// The minimum height for the `FormMessage` component. This is really just
/// required to help prevent layout changes when the messages are added and
/// removed from the DOM.
///
/// @type Number
$rmd-form-message-min-height: 2rem !default;
/// The amount of margin that should be applied to the top of the `FormMessage`
/// component.
/// @type Number
$rmd-form-message-margin-top: 0.5rem !default;
/// The amount of margin that should be applied to the top of the `FormMessage`
/// component.
/// @type Number
$rmd-form-message-margin-bottom: 1rem !default;
/// The amount of padding to apply to the left of the `FormMessage`'s counter
/// component.
///
/// @require $rmd-icon-spacing-with-text
/// @type Number
$rmd-form-message-counter-spacing: $rmd-icon-spacing-with-text !default;
/// The font size to apply to the `FormMessage` component for the messages as
/// well as the counter component.
///
/// Note: The remaining typography styles will come from `body-2`.
///
/// @type Number
$rmd-form-message-font-size: 0.75rem !default;