/
_variables.scss
81 lines (68 loc) · 2.64 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
////
/// @group icon
////
@import '~@react-md/theme/dist/functions';
/// The base icon color to apply.
///
/// @require rmd-theme-var
/// @type Color
$rmd-icon-color: rmd-theme-var(text-icon-on-background) !default;
/// The base icon size to use.
/// @type Number
$rmd-icon-size: 1.5rem !default;
/// The dense icon size to use. If you do not want to include the dense icon
/// spec, disable the `$rmd-icon-include-dense` variable.
/// @type Number
/// @see rmd-icon-include-dense
$rmd-icon-dense-size: 1.25rem !default;
/// Boolean if the dense spec for icons should be included. This will just
/// generate `.md-icon--font-dense` and `.md-icon--svg-dense` class names that
/// can be applied.
///
/// @type Boolean
$rmd-icon-include-dense: true !default;
/// Boolean if you are using the material-icons font icon library. This will
/// update the dense theme to fix material icons as well.
/// @type Boolean
$rmd-icon-material-icons-font: false !default;
/// Boolean if font icons should be used. Normally only one of font icons or svg
/// icons should be used within your application, so you can disable the style
/// generation for the unused type to save a few bytes.
///
/// @see rmd-icon-use-svg-icons
/// @type Boolean
$rmd-icon-use-font-icons: true !default;
/// Boolean if svg icons should be used. Normally only one of font icons or svg
/// icons should be used within your application, so you can disable the style
/// generation for the unused type to save a few bytes.
///
/// @see rmd-icon-use-svg-icons
/// @type Boolean
$rmd-icon-use-svg-icons: true !default;
/// The amount of spacing to apply between an icon and text within the
/// `TextIconSpacing` component.
/// @type Number
$rmd-icon-spacing-with-text: 0.5rem !default;
/// The transition time for the icon rotator to fully rotate.
/// @type Number
$rmd-icon-rotator-transition-time: 0.15s !default;
/// The default starting position for the `IconRotator` component. This needs to
/// be a valid transformation value to work.
/// @type Number
$rmd-icon-rotator-from: rotate(0deg) !default;
/// The default ending position for the `IconRotator` component. This needs to
/// be a valid transformation value to work.
/// @type Number
$rmd-icon-rotator-to: rotate(180deg) !default;
/// A Map of all the "themeable" parts of the icon package. Every key in this
/// map will be used to create a css variable to dynamically update the values
/// of the icon as needed.
/// @type Map
$rmd-icon-theme-values: (
color: $rmd-icon-color,
size: $rmd-icon-size,
dense-size: $rmd-icon-dense-size,
text-spacing: $rmd-icon-spacing-with-text,
rotate-to: $rmd-icon-rotator-to,
rotate-from: $rmd-icon-rotator-from,
) !default;