material-sass 4.0.0.alpha6 → 4.0.0.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +36 -8
  4. data/Rakefile +16 -3
  5. data/app/assets/javascripts/material-sprockets.js +6 -1
  6. data/app/assets/javascripts/material.js +654 -417
  7. data/app/assets/javascripts/material.min.js +1 -0
  8. data/app/assets/javascripts/material/addons/picker.date.js +234 -0
  9. data/app/assets/javascripts/material/addons/picker.js +172 -0
  10. data/app/assets/javascripts/material/addons/textarea-autosize.js +20 -2
  11. data/app/assets/javascripts/material/addons/waves.js +127 -0
  12. data/app/assets/javascripts/material/components/floating-label.js +92 -0
  13. data/app/assets/javascripts/material/components/navdrawer.js +353 -0
  14. data/app/assets/javascripts/material/components/selection-control-focus.js +47 -0
  15. data/app/assets/javascripts/material/components/tab-switch.js +148 -0
  16. data/app/assets/javascripts/material/components/util.js +133 -0
  17. data/app/assets/javascripts/material/initializers/picker.js +171 -0
  18. data/app/assets/javascripts/material/initializers/textarea-autosize.js +10 -0
  19. data/app/assets/javascripts/material/initializers/waves.js +13 -0
  20. data/app/assets/stylesheets/material/_colours.scss +324 -0
  21. data/app/assets/stylesheets/material/_functions.scss +65 -0
  22. data/app/assets/stylesheets/material/_mixins.scss +23 -23
  23. data/app/assets/stylesheets/material/_print.scss +102 -0
  24. data/app/assets/stylesheets/material/_utilities.scss +21 -17
  25. data/app/assets/stylesheets/material/_variables.scss +13 -42
  26. data/app/assets/stylesheets/material/base/_base.scss +420 -5
  27. data/app/assets/stylesheets/material/base/_grid.scss +34 -33
  28. data/app/assets/stylesheets/material/base/_typography.scss +165 -174
  29. data/app/assets/stylesheets/material/bootstrap/_alert.scss +32 -39
  30. data/app/assets/stylesheets/material/bootstrap/_badge.scss +34 -0
  31. data/app/assets/stylesheets/material/bootstrap/_breadcrumb.scss +18 -18
  32. data/app/assets/stylesheets/material/bootstrap/_carousel.scss +127 -142
  33. data/app/assets/stylesheets/material/bootstrap/_close.scss +18 -19
  34. data/app/assets/stylesheets/material/bootstrap/_code.scss +10 -7
  35. data/app/assets/stylesheets/material/bootstrap/_custom-form.scss +50 -56
  36. data/app/assets/stylesheets/material/bootstrap/_form.scss +159 -129
  37. data/app/assets/stylesheets/material/bootstrap/_image.scss +19 -16
  38. data/app/assets/stylesheets/material/bootstrap/_jumbotron.scss +10 -7
  39. data/app/assets/stylesheets/material/bootstrap/_nav.scss +71 -69
  40. data/app/assets/stylesheets/material/bootstrap/_pagination.scss +34 -26
  41. data/app/assets/stylesheets/material/bootstrap/_popover.scss +26 -59
  42. data/app/assets/stylesheets/material/bootstrap/_responsive-embed.scss +4 -4
  43. data/app/assets/stylesheets/material/bootstrap/_transition.scss +10 -8
  44. data/app/assets/stylesheets/material/material.scss +75 -62
  45. data/app/assets/stylesheets/material/material/_button-flat.scss +26 -39
  46. data/app/assets/stylesheets/material/material/_button-float.scss +10 -14
  47. data/app/assets/stylesheets/material/material/_button-group.scss +268 -0
  48. data/app/assets/stylesheets/material/material/_button.scss +133 -189
  49. data/app/assets/stylesheets/material/material/_card.scss +300 -248
  50. data/app/assets/stylesheets/material/material/_chip.scss +65 -64
  51. data/app/assets/stylesheets/material/material/_data-table.scss +135 -45
  52. data/app/assets/stylesheets/material/material/_dialog.scss +141 -110
  53. data/app/assets/stylesheets/material/material/_expansion-panel.scss +86 -119
  54. data/app/assets/stylesheets/material/material/_menu.scss +308 -228
  55. data/app/assets/stylesheets/material/material/_navdrawer.scss +239 -234
  56. data/app/assets/stylesheets/material/material/_picker.scss +157 -155
  57. data/app/assets/stylesheets/material/material/_progress-circular.scss +80 -80
  58. data/app/assets/stylesheets/material/material/_progress.scss +180 -115
  59. data/app/assets/stylesheets/material/material/_selection-control.scss +132 -139
  60. data/app/assets/stylesheets/material/material/_stepper.scss +94 -93
  61. data/app/assets/stylesheets/material/material/_tab.scss +74 -93
  62. data/app/assets/stylesheets/material/material/_text-field-floating-label.scss +29 -20
  63. data/app/assets/stylesheets/material/material/_text-field-input-group.scss +94 -24
  64. data/app/assets/stylesheets/material/material/_text-field-textarea.scss +13 -26
  65. data/app/assets/stylesheets/material/material/_text-field.scss +127 -118
  66. data/app/assets/stylesheets/material/material/_toolbar.scss +308 -313
  67. data/app/assets/stylesheets/material/material/_tooltip.scss +23 -62
  68. data/app/assets/stylesheets/material/mixins/_background-variant.scss +6 -6
  69. data/app/assets/stylesheets/material/mixins/_border-radius.scss +17 -17
  70. data/app/assets/stylesheets/material/mixins/_breakpoint.scss +32 -2
  71. data/app/assets/stylesheets/material/mixins/_clearfix.scss +1 -1
  72. data/app/assets/stylesheets/material/mixins/_form.scss +62 -25
  73. data/app/assets/stylesheets/material/mixins/_grid-framework.scss +8 -16
  74. data/app/assets/stylesheets/material/mixins/_grid.scss +40 -64
  75. data/app/assets/stylesheets/material/mixins/_material-icons.scss +36 -0
  76. data/app/assets/stylesheets/material/mixins/_nav-divider.scss +1 -1
  77. data/app/assets/stylesheets/material/mixins/_reset-text.scss +2 -21
  78. data/app/assets/stylesheets/material/mixins/_screenreader.scss +14 -12
  79. data/app/assets/stylesheets/material/mixins/_text-alignment.scss +23 -0
  80. data/app/assets/stylesheets/material/mixins/_text-emphasis.scss +6 -6
  81. data/app/assets/stylesheets/material/mixins/_transition.scss +42 -10
  82. data/app/assets/stylesheets/material/utilities/_background.scss +18 -18
  83. data/app/assets/stylesheets/material/utilities/_border.scss +88 -41
  84. data/app/assets/stylesheets/material/utilities/_display.scss +63 -30
  85. data/app/assets/stylesheets/material/utilities/_flex.scss +139 -134
  86. data/app/assets/stylesheets/material/utilities/_material-icons.scss +3 -5
  87. data/app/assets/stylesheets/material/utilities/_position.scss +19 -22
  88. data/app/assets/stylesheets/material/utilities/_sizing.scss +11 -12
  89. data/app/assets/stylesheets/material/utilities/_spacing.scss +51 -56
  90. data/app/assets/stylesheets/material/utilities/_text.scss +80 -75
  91. data/app/assets/stylesheets/material/utilities/_visibility.scss +5 -46
  92. data/app/assets/stylesheets/material/utilities/_waves.scss +11 -18
  93. data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +89 -82
  94. data/app/assets/stylesheets/material/variables/_grid.scss +29 -26
  95. data/app/assets/stylesheets/material/variables/_palette.scss +45 -0
  96. data/app/assets/stylesheets/material/variables/_spacer.scss +34 -88
  97. data/app/assets/stylesheets/material/variables/_transition.scss +29 -0
  98. data/app/assets/stylesheets/material/variables/_typography.scss +88 -74
  99. data/app/assets/stylesheets/material/variables/_variable-bootstrap.scss +196 -133
  100. data/app/assets/stylesheets/material/variables/_variable-material.scss +481 -429
  101. data/lib/material-sass/version.rb +1 -1
  102. data/material-sass.gemspec +3 -3
  103. metadata +26 -21
  104. data/app/assets/javascripts/material/addons-materialise/pickadate.js +0 -139
  105. data/app/assets/javascripts/material/addons-materialise/textarea-autosize.js +0 -11
  106. data/app/assets/javascripts/material/addons-materialise/wave.js +0 -15
  107. data/app/assets/javascripts/material/addons/pickadate.js +0 -7
  108. data/app/assets/javascripts/material/addons/wave.js +0 -5
  109. data/app/assets/javascripts/material/src/floating-label.js +0 -91
  110. data/app/assets/javascripts/material/src/navdrawer.js +0 -352
  111. data/app/assets/javascripts/material/src/tab-switch.js +0 -133
  112. data/app/assets/javascripts/material/src/util.js +0 -138
  113. data/app/assets/stylesheets/material/base/_normalize.scss +0 -253
  114. data/app/assets/stylesheets/material/base/_reboot.scss +0 -239
  115. data/app/assets/stylesheets/material/bootstrap/_button-group.scss +0 -134
  116. data/app/assets/stylesheets/material/mixins/_tab-focus.scss +0 -5
  117. data/app/assets/stylesheets/material/mixins/_transform.scss +0 -9
  118. data/app/assets/stylesheets/material/variables/_animation.scss +0 -22
  119. data/app/assets/stylesheets/material/variables/_colour.scss +0 -389
@@ -10,29 +10,32 @@ $grid-gutter-widths: (
10
10
  xl: $grid-gutter-width-desktop
11
11
  ) !default;
12
12
 
13
- //
14
- // breakpoint
15
- // based on https://material.google.com/layout/responsive-ui.html#responsive-ui-breakpoints
16
- //
17
- $grid-breakpoints: (
18
- xs: 0,
19
- sm: 600px,
20
- md: 960px,
21
- lg: 1280px,
22
- xl: 1920px
23
- ) !default;
24
-
25
- @include _assert-ascending($grid-breakpoints, "$grid-breakpoints");
26
- @include _assert-starts-at-zero($grid-breakpoints);
27
-
28
- //
29
- // container
30
- //
31
- $container-max-widths: (
32
- sm: 600px,
33
- md: 840px,
34
- lg: 1024px,
35
- xl: 1600px
36
- ) !default;
37
-
38
- @include _assert-ascending($container-max-widths, "$container-max-widths");
13
+
14
+
15
+ // Breakpoint
16
+ // Based on https://material.google.com/layout/responsive-ui.html#responsive-ui-breakpoints
17
+
18
+ $grid-breakpoints: (
19
+ xs: 0,
20
+ sm: 600px,
21
+ md: 960px,
22
+ lg: 1280px,
23
+ xl: 1920px
24
+ ) !default;
25
+
26
+ @include _assert-ascending($grid-breakpoints, '$grid-breakpoints');
27
+ @include _assert-starts-at-zero($grid-breakpoints);
28
+
29
+
30
+
31
+ // Container width
32
+ // Based on https://material.google.com/layout/responsive-ui.html#responsive-ui-breakpoints
33
+
34
+ $container-max-widths: (
35
+ sm: 600px,
36
+ md: 840px,
37
+ lg: 1024px,
38
+ xl: 1600px
39
+ ) !default;
40
+
41
+ @include _assert-ascending($container-max-widths, '$container-max-widths');
@@ -0,0 +1,45 @@
1
+ // Theme palette
2
+ // Change these values to customise colour palettes
3
+
4
+ $theme-colors: (
5
+ primary: (
6
+ color: $material-color-purple-500,
7
+ darker: $material-color-purple-700,
8
+ lighter: $material-color-purple-100
9
+ ),
10
+ secondary: (
11
+ color: $material-color-pink-a200,
12
+ darker: $material-color-pink-a400,
13
+ lighter: $material-color-pink-a100
14
+ ),
15
+ danger: (
16
+ color: $material-color-red-500,
17
+ darker: $material-color-red-700,
18
+ lighter: $material-color-red-100
19
+ ),
20
+ info: (
21
+ color: $material-color-blue-500,
22
+ darker: $material-color-blue-700,
23
+ lighter: $material-color-blue-100
24
+ ),
25
+ success: (
26
+ color: $material-color-green-500,
27
+ darker: $material-color-green-700,
28
+ lighter: $material-color-green-100
29
+ ),
30
+ warning: (
31
+ color: $material-color-orange-500,
32
+ darker: $material-color-orange-700,
33
+ lighter: $material-color-orange-100
34
+ ),
35
+ dark: (
36
+ color: $material-color-grey-800,
37
+ darker: $material-color-grey-900,
38
+ lighter: $material-color-grey-600
39
+ ),
40
+ light: (
41
+ color: $material-color-grey-100,
42
+ darker: $material-color-grey-300,
43
+ lighter: $material-color-grey-050
44
+ )
45
+ ) !default;
@@ -1,92 +1,38 @@
1
- //
2
- // border
3
- //
4
- $border-color: $black-divider !default;
5
- $border-color-inverse: $white-divider !default;
6
- $border-color-solid: $black-divider-solid !default;
7
- $border-radius: 2px !default;
8
- $border-width: 1px !default;
1
+ $border-color: $black-divider !default;
2
+ $border-color-inverse: $white-divider !default;
3
+ $border-color-solid: $black-divider-solid !default;
4
+ $border-radius: 2px !default;
5
+ $border-width: 1px !default;
9
6
 
10
- //
11
- // size
12
- //
13
- $sizes: (
14
- 25: 25%,
15
- 50: 50%,
16
- 75: 75%,
17
- 100: 100%
18
- ) !default;
19
7
 
20
- //
21
- // spacer
22
- //
23
- $spacer: 1rem !default;
24
- $spacer-x: $spacer !default;
25
- $spacer-y: $spacer !default;
26
8
 
27
- $spacer-xs: ($spacer / 4) !default;
28
- $spacer-xs-x: ($spacer-x / 4) !default;
29
- $spacer-xs-y: ($spacer-y / 4) !default;
30
- $spacer-sm: ($spacer / 2) !default;
31
- $spacer-sm-x: ($spacer-x / 2) !default;
32
- $spacer-sm-y: ($spacer-y / 2) !default;
33
- $spacer-md: $spacer !default;
34
- $spacer-md-x: $spacer-x !default;
35
- $spacer-md-y: $spacer-y !default;
36
- $spacer-lg: ($spacer * 1.5) !default;
37
- $spacer-lg-x: ($spacer-x * 1.5) !default;
38
- $spacer-lg-y: ($spacer-y * 1.5) !default;
39
- $spacer-xl: ($spacer * 3) !default;
40
- $spacer-xl-x: ($spacer-x * 3) !default;
41
- $spacer-xl-y: ($spacer-y * 3) !default;
9
+ $sizes: (
10
+ 25: 25%,
11
+ 50: 50%,
12
+ 75: 75%,
13
+ 100: 100%
14
+ ) !default;
42
15
 
43
- $spacers: (
44
- 0: (
45
- x: 0,
46
- y: 0
47
- ),
48
- no: (
49
- x: 0,
50
- y: 0
51
- ),
52
- 1: (
53
- x: $spacer-xs-x,
54
- y: $spacer-xs-y
55
- ),
56
- xs: (
57
- x: $spacer-xs-x,
58
- y: $spacer-xs-y
59
- ),
60
- 2: (
61
- x: $spacer-sm-x,
62
- y: $spacer-sm-y
63
- ),
64
- sm: (
65
- x: $spacer-sm-x,
66
- y: $spacer-sm-y
67
- ),
68
- 3: (
69
- x: $spacer-x,
70
- y: $spacer-y
71
- ),
72
- md: (
73
- x: $spacer-x,
74
- y: $spacer-y
75
- ),
76
- 4: (
77
- x: $spacer-lg-x,
78
- y: $spacer-lg-y
79
- ),
80
- lg: (
81
- x: $spacer-lg-x,
82
- y: $spacer-lg-y
83
- ),
84
- 5: (
85
- x: $spacer-xl-x,
86
- y: $spacer-xl-y
87
- ),
88
- xl: (
89
- x: $spacer-xl-x,
90
- y: $spacer-xl-y
91
- )
92
- ) !default;
16
+
17
+
18
+ $spacer: 1rem !default;
19
+
20
+ $spacer-xs: ($spacer * .25) !default;
21
+ $spacer-sm: ($spacer * .5) !default;
22
+ $spacer-lg: ($spacer * 1.5) !default;
23
+ $spacer-xl: ($spacer * 3) !default;
24
+
25
+ $spacers: (
26
+ 0: 0,
27
+ no: 0,
28
+ 1: $spacer-xs,
29
+ xs: $spacer-xs,
30
+ 2: $spacer-sm,
31
+ sm: $spacer-sm,
32
+ 3: $spacer,
33
+ md: $spacer,
34
+ 4: $spacer-lg,
35
+ lg: $spacer-lg,
36
+ 5: $spacer-xl,
37
+ xl: $spacer-xl
38
+ ) !default;
@@ -0,0 +1,29 @@
1
+ // The movement of an element is based on https://material.google.com/motion/movement.html
2
+
3
+ // Transition duration
4
+ // Based on https://material.google.com/motion/duration-easing.html#duration-easing-common-durations
5
+
6
+ $transition-duration-desktop: .2s !default;
7
+ $transition-duration-desktop-complex: .25s !default;
8
+ $transition-duration-desktop-entering: .15s !default;
9
+ $transition-duration-desktop-leaving: .13s !default;
10
+
11
+ $transition-duration-mobile: .3s !default;
12
+ $transition-duration-mobile-complex: .375s !default;
13
+ $transition-duration-mobile-entering: .225s !default;
14
+ $transition-duration-mobile-leaving: .195s !default;
15
+
16
+ $transition-duration-tablet: .39s !default;
17
+ $transition-duration-tablet-complex: .4875s !default;
18
+ $transition-duration-tablet-entering: .2925s !default;
19
+ $transition-duration-tablet-leaving: .2535s !default;
20
+
21
+
22
+
23
+ // Transition timing function
24
+ // Based on https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
25
+
26
+ $transition-timing-function-acceleration: cubic-bezier(.4, 0, 1, 1) !default;
27
+ $transition-timing-function-deceleration: cubic-bezier(0, 0, .2, 1) !default;
28
+ $transition-timing-function-sharp: cubic-bezier(.4, 0, .6, 1) !default;
29
+ $transition-timing-function-standard: cubic-bezier(.4, 0, .2, 1) !default;
@@ -1,74 +1,88 @@
1
- // a base value used to responsively scale all typography, applied to the `<html>` element.
2
- $font-size-root: 16px !default;
3
-
4
- // font face
5
- // based on https://material.google.com/style/typography.html#typography-typeface
6
- $font-family-monospace: "Roboto Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !default;
7
- $font-family-sans-serif: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif !default;
8
- $font-family-serif: "Roboto Slab", Georgia, "Times New Roman", Times, serif !default;
9
-
10
- $font-family-base: $font-family-sans-serif !default;
11
-
12
- $font-weight-black: 900 !default; // not used
13
- $font-weight-bold: 700 !default; // not used
14
- $font-weight-medium: 500 !default;
15
- $font-weight-regular: 400 !default;
16
- $font-weight-light: 300 !default;
17
- $font-weight-thin: 100 !default; // not used
18
-
19
- $font-weight-base: $font-weight-regular !default;
20
-
21
- // font styles
22
- // based on https://material.google.com/style/typography.html#typography-styles
23
- $font-size-base: 0.875rem !default; // 14px
24
-
25
- $font-size-display-4: 7rem !default; // 112px
26
- $font-size-display-3: 3.5rem !default; // 56px
27
- $font-size-display-2: 2.8125rem !default; // 45px
28
- $font-size-display-1: 2.125rem !default; // 34px
29
- $font-size-headline: 1.5rem !default; // 24px
30
- $font-size-title: 1.25rem !default; // 20px
31
- $font-size-subheading: 1rem !default; // 16px
32
- $font-size-body-2: 0.875rem !default; // 14px
33
- $font-size-body-1: 0.875rem !default; // 14px
34
- $font-size-caption: 0.75rem !default; // 12px
35
-
36
- $font-weight-display-4: $font-weight-light !default;
37
- $font-weight-display-3: $font-weight-regular !default;
38
- $font-weight-display-2: $font-weight-regular !default;
39
- $font-weight-display-1: $font-weight-regular !default;
40
- $font-weight-headline: $font-weight-regular !default;
41
- $font-weight-title: $font-weight-medium !default;
42
- $font-weight-subheading: $font-weight-regular !default;
43
- $font-weight-body-2: $font-weight-medium !default;
44
- $font-weight-body-1: $font-weight-regular !default;
45
- $font-weight-caption: $font-weight-regular !default;
46
-
47
- $letter-spacing-display-4: -0.04em !default;
48
- $letter-spacing-display-3: -0.02em !default;
49
- $letter-spacing-display-2: 0 !default;
50
- $letter-spacing-display-1: 0 !default;
51
- $letter-spacing-headline: 0 !default;
52
- $letter-spacing-title: 0.02em !default;
53
- $letter-spacing-subheading: 0.04em !default;
54
- $letter-spacing-body-2: 0 !default;
55
- $letter-spacing-body-1: 0 !default;
56
- $letter-spacing-caption: 0 !default;
57
-
58
- // line height
59
- // based on https://material.google.com/style/typography.html#typography-line-height
60
- $line-height-base: 1.428572 !default;
61
-
62
- $line-height-display-4: 7rem !default; // 112px
63
- $line-height-display-3: 3.625rem !default; // 58px
64
- $line-height-display-2: 3rem !default; // 48px
65
- $line-height-display-1: 2.5rem !default; // 40px
66
- $line-height-headline: 2rem !default; // 32px
67
- $line-height-title: 1.75rem !default; // 28px
68
- $line-height-subheading: 1.5rem !default; // 24px
69
- $line-height-body-2: 1.25rem !default; // 20px
70
- $line-height-body-1: 1.25rem !default; // 20px
71
- $line-height-caption: 1.125rem !default; // 18px
72
-
73
- // default material icons font size
74
- $material-icon-size: 24px !default;
1
+ // A base value used to responsively scale all typography, applied to the `<html>` element
2
+
3
+ $font-size-root: 16px !default;
4
+
5
+
6
+
7
+ // Font face
8
+ // Based on https://material.google.com/style/typography.html#typography-typeface
9
+
10
+ // N.B. Although some values are not used in this project
11
+ // we leave them here just in case they may be required by your project
12
+
13
+ $font-family-monospace: "Roboto Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !default;
14
+ $font-family-sans-serif: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif !default;
15
+ $font-family-serif: "Roboto Slab", Georgia, "Times New Roman", Times, serif !default;
16
+
17
+ $font-family-base: $font-family-sans-serif !default;
18
+
19
+ $font-weight-bold: 700 !default;
20
+ $font-weight-medium: 500 !default;
21
+ $font-weight-regular: 400 !default;
22
+ $font-weight-light: 300 !default;
23
+
24
+ $font-weight-base: $font-weight-regular !default;
25
+
26
+
27
+
28
+ // Font styles
29
+ // Based on https://material.google.com/style/typography.html#typography-styles
30
+
31
+ $font-size-base: .875rem !default; // 14px
32
+
33
+ $font-size-display-4: 7rem !default; // 112px
34
+ $font-size-display-3: 3.5rem !default; // 56px
35
+ $font-size-display-2: 2.8125rem !default; // 45px
36
+ $font-size-display-1: 2.125rem !default; // 34px
37
+ $font-size-headline: 1.5rem !default; // 24px
38
+ $font-size-title: 1.25rem !default; // 20px
39
+ $font-size-subheading: 1rem !default; // 16px
40
+ $font-size-body-2: .875rem !default; // 14px
41
+ $font-size-body-1: .875rem !default; // 14px
42
+ $font-size-caption: .75rem !default; // 12px
43
+
44
+ $font-weight-display-4: $font-weight-light !default;
45
+ $font-weight-display-3: $font-weight-regular !default;
46
+ $font-weight-display-2: $font-weight-regular !default;
47
+ $font-weight-display-1: $font-weight-regular !default;
48
+ $font-weight-headline: $font-weight-regular !default;
49
+ $font-weight-title: $font-weight-medium !default;
50
+ $font-weight-subheading: $font-weight-regular !default;
51
+ $font-weight-body-2: $font-weight-medium !default;
52
+ $font-weight-body-1: $font-weight-regular !default;
53
+ $font-weight-caption: $font-weight-regular !default;
54
+
55
+ $letter-spacing-display-4: -.04em !default;
56
+ $letter-spacing-display-3: -.02em !default;
57
+ $letter-spacing-display-2: 0 !default;
58
+ $letter-spacing-display-1: 0 !default;
59
+ $letter-spacing-headline: 0 !default;
60
+ $letter-spacing-title: .02em !default;
61
+ $letter-spacing-subheading: .04em !default;
62
+ $letter-spacing-body-2: 0 !default;
63
+ $letter-spacing-body-1: 0 !default;
64
+ $letter-spacing-caption: 0 !default;
65
+
66
+
67
+
68
+ // Line height
69
+ // Based on https://material.google.com/style/typography.html#typography-line-height
70
+
71
+ $line-height-base: 1.428572 !default;
72
+
73
+ $line-height-display-4: 1 !default; // 112px
74
+ $line-height-display-3: 1.035715 !default; // 58px
75
+ $line-height-display-2: 1.066667 !default; // 48px
76
+ $line-height-display-1: 1.176471 !default; // 40px
77
+ $line-height-headline: 1.333334 !default; // 32px
78
+ $line-height-title: 1.4 !default; // 28px
79
+ $line-height-subheading: 1.5 !default; // 24px
80
+ $line-height-body-2: 1.428572 !default; // 20px
81
+ $line-height-body-1: 1.428572 !default; // 20px
82
+ $line-height-caption: 1.5 !default; // 18px
83
+
84
+
85
+
86
+ // Default Material icons font size
87
+
88
+ $material-icon-size: (24px / $font-size-root * 1rem) !default;
@@ -1,136 +1,199 @@
1
- // alert
2
- $alert-link-font-weight: $font-weight-medium !default;
3
-
4
- // body
5
- $body-bg: $white-primary !default;
6
- $body-color: $black-primary !default;
7
-
8
- // breadcrumb
9
- $breadcrumb-bg: $offwhite !default;
10
- $breadcrumb-divider: url("data:image/svg+xml;charset=utf8,%3Csvg fill='#000000' fill-opacity='0.54' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E") !default;
11
- $breadcrumb-height: 3.5rem !default;
12
- $breadcrumb-item-color: $black-secondary !default;
13
- $breadcrumb-item-color-active: $black-primary !default;
14
- $breadcrumb-item-padding: $spacer-sm-x !default;
15
- $breadcrumb-margin-bottom: $spacer-md-y !default;
16
- $breadcrumb-padding-x: $spacer-md-x !default;
17
- $breadcrumb-padding-y: 0.625rem !default;
18
-
19
- // button group
20
- $btn-group-bg: $offwhite !default;
21
- $btn-group-padding-x: $spacer-sm-x !default;
22
- $btn-group-padding-y: $spacer-sm-y !default;
23
- $btn-toolbar-divider-bg: $black-divider !default;
24
-
25
- // caret
26
- $caret-bg: "data:image/svg+xml;charset=utf8,%3Csvg fill='#000000' fill-opacity='0.54' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E" !default;
27
- $caret-bg-inverse: "data:image/svg+xml;charset=utf8,%3Csvg fill='#ffffff' fill-opacity='0.7' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E" !default;
28
- $caret-width: 0.4em !default;
29
-
30
- // carousel
31
- $carousel-caption-color: $white-primary !default;
32
- $carousel-caption-width: 50% !default;
33
- $carousel-control-icon-opacity: 0.38 !default;
34
- $carousel-control-next-icon-bg: url("data:image/svg+xml;charset=utf8,%3Csvg fill='#000000' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E") !default;
35
- $carousel-control-prev-icon-bg: url("data:image/svg+xml;charset=utf8,%3Csvg fill='#000000' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z'/%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3C/svg%3E") !default;
36
- $carousel-indicator-color: $black-divider !default;
37
- $carousel-indicator-size: 0.5rem !default;
38
-
39
- // close
40
- $close-color: $black-hint !default;
41
- $close-color-active: $black-primary !default;
42
- $close-font-size: $material-icon-size !default;
43
-
44
- // code
45
- $code-bg: #f7f7f9 !default;
46
- $code-color: #bd4147 !default;
47
- $code-font-size: 87.5% !default;
48
- $code-padding: 0.2rem 0.4rem !default;
49
-
50
- $kbd-bg: #333333 !default;
51
- $kbd-color: #ffffff !default;
52
-
53
- $pre-bg: #f7f7f9 !default;
54
- $pre-color: #373a3c !default;
55
- $pre-margin-bottom: $spacer-md-y !default;
56
- $pre-scrollable-max-height: 340px !default;
57
-
58
- // cursor
59
- $cursor-disabled: not-allowed !default;
60
-
61
- // form
62
- $custom-file-button-bg: url("data:image/svg+xml;charset=utf8,%3Csvg fill='#000000' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 12.5C2 9.46 4.46 7 7.5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H17v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-.9-2-2-2H7.5C5.57 9 4 10.57 4 12.5S5.57 16 7.5 16H17v2H7.5C4.46 18 2 15.54 2 12.5z'/%3E%3Cpath d='M0 0h24v24H0V0z' fill='none'/%3E%3C/svg%3E") !default;
63
- $custom-file-button-opacity: 0.38 !default;
64
- $custom-file-button-opacity-visible: 0.54 !default;
65
- $custom-file-width: 14rem !default;
66
- $custom-file-text: (en: "Choose file...") !default;
67
-
68
- $form-check-inline-margin-x: $spacer-sm-x !default;
69
- $form-check-input-margin-x: $spacer-xs-x !default;
70
-
71
- $form-group-label-font-size: $font-size-caption !default;
72
- $form-group-margin-bottom: $spacer-lg-y !default;
73
-
74
- $input-group-addon-margin-x: $spacer-md-x !default;
75
-
76
- // jumbotron
77
- $jumbotron-bg: $brand-color !default;
78
- $jumbotron-color: $brand-text-color !default;
79
-
80
- // link
81
- $link-color: $brand-color !default;
82
- $link-color-active: $brand-color-dark !default;
83
- $link-decoration: none !default;
84
- $link-decoration-active: none !default;
85
-
86
- // media
87
- $media-alignment-padding-x: $spacer-md-x !default;
88
- $media-heading-margin-bottom: $spacer-xs-y !default;
89
- $media-margin-bottom: $spacer-md-y !default;
90
-
91
- // misc
92
- $abbr-border-color: $black-divider !default;
93
-
94
- $dt-font-weight: $font-weight-medium !default;
95
-
96
- $figure-caption-color: $black-hint !default;
97
- $figure-img-margin-bottom: $spacer-sm-y !default;
98
-
99
- $headings-color: inherit !default;
100
- $headings-font-family: inherit !default;
101
- $headings-margin-bottom: $spacer-sm-y !default;
102
-
103
- $hr-border-color: $black-divider !default;
104
- $hr-border-width: 1px !default;
105
-
106
- $list-inline-item-spacer: $spacer-sm-x !default;
107
-
108
- $mark-bg: $palette-yellow-500 !default;
109
- $mark-padding: 0.2em !default;
110
-
111
- $small-font-size: 80% !default;
112
-
113
- $table-caption-color: $black-hint !default;
114
-
115
- $thumbnail-box-shadow: $shadow-2dp !default;
116
-
117
- // nav
118
- $nav-inline-item-spacer: $spacer-md-x !default;
119
- $nav-link-bg-active: $black-divider !default;
120
- $nav-link-color: $black-secondary !default;
121
- $nav-link-color-active: $black-primary !default;
122
- $nav-link-color-disabled: $black-hint !default;
123
- $nav-link-padding: $spacer-sm-y $spacer-md-x !default;
1
+ // Alert
124
2
 
125
- // pagination
126
- $pagination-bg: $btn-group-bg !default;
127
- $pagination-padding-x: $btn-group-padding-x !default;
128
- $pagination-padding-y: $btn-group-padding-y !default;
3
+ $alert-border-radius: $border-radius !default;
4
+ $alert-elevation-shadow: $elevation-shadow-1dp !default;
5
+ $alert-link-font-weight: $font-weight-medium !default;
6
+ $alert-margin-y: $spacer !default;
7
+ $alert-padding-x: 1rem !default;
8
+ $alert-padding-y: 1rem !default;
129
9
 
130
- // typography
131
- $blockquote-border-color: $brand-color !default;
132
- $blockquote-border-width: 0.3125rem !default;
133
- $blockquote-small-color: $black-hint !default;
134
10
 
135
- $text-muted: $black-hint !default;
136
- $text-muted-active: $black-secondary !default;
11
+
12
+ // Badge
13
+
14
+ $badge-bg: $black-divider !default;
15
+ $badge-border-radius: $border-radius !default;
16
+ $badge-color: $black-primary !default;
17
+ $badge-font-weight: $font-weight-medium !default;
18
+ $badge-padding-x: .5rem !default;
19
+ $badge-padding-y: 0 !default;
20
+
21
+
22
+
23
+ // Body
24
+
25
+ $body-bg: $white-primary !default;
26
+ $body-color: $black-primary !default;
27
+
28
+
29
+
30
+ // Breadcrumb
31
+
32
+ $breadcrumb-bg: $material-color-grey-100 !default;
33
+ $breadcrumb-border-radius: $border-radius !default;
34
+ $breadcrumb-height: 3.5rem !default;
35
+ $breadcrumb-inner-spacer-x: .5rem !default;
36
+ $breadcrumb-item-color: $black-secondary !default;
37
+ $breadcrumb-item-color-hover: $black-primary !default;
38
+ $breadcrumb-item-icon: 'chevron_right' !default;
39
+ $breadcrumb-margin-y: $spacer !default;
40
+ $breadcrumb-padding-x: 1rem !default;
41
+ $breadcrumb-padding-y: .625rem !default;
42
+
43
+
44
+
45
+ // Caret
46
+
47
+ $caret-bg: str-replace(url('data:image/svg+xml;charset=utf8,%3Csvg fill="#{$black}" fill-opacity="#{$black-secondary-opacity}" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M7 10l5 5 5-5z"/%3E%3Cpath d="M0 0h24v24H0z" fill="none"/%3E%3C/svg%3E'), '#', '%23') !default;
48
+ $caret-icon: 'expand_more' !default;
49
+ $caret-icon-dropup: 'expand_less' !default;
50
+ $caret-spacer-x: .2em !default;
51
+
52
+
53
+
54
+ // Carousel
55
+
56
+ $carousel-caption-color: $white-primary !default;
57
+ $carousel-caption-width: 50% !default;
58
+ $carousel-control-bg: $white-divider !default;
59
+ $carousel-control-bg-hover: rgba(204, 204, 204, .25) !default;
60
+ $carousel-control-color: $white-primary !default;
61
+ $carousel-control-elevation-shadow: $elevation-shadow-6dp !default;
62
+ $carousel-control-elevation-shadow-active: $elevation-shadow-12dp !default;
63
+ $carousel-control-font-size: .8125rem !default;
64
+ $carousel-control-next-icon: 'chevron_right' !default;
65
+ $carousel-control-prev-icon: 'chevron_left' !default;
66
+ $carousel-control-size: 2.5rem !default;
67
+ $carousel-indicator-bg: rgba(204, 204, 204, .25) !default;
68
+ $carousel-indicator-border-color: $white-divider !default;
69
+ $carousel-indicator-border-width: $border-width !default;
70
+ $carousel-indicator-size: .5rem !default;
71
+
72
+
73
+
74
+ // Close
75
+
76
+ $close-color: $black-hint !default;
77
+ $close-color-hover: $black-primary !default;
78
+ $close-font-size: $material-icon-size !default;
79
+ $close-font-weight: $font-weight-light !default;
80
+
81
+
82
+
83
+ // Code
84
+
85
+ $code-bg: $material-color-grey-100 !default;
86
+ $code-border-radius: $border-radius !default;
87
+ $code-color: #bd4147 !default;
88
+ $code-font-size: 87.5% !default;
89
+ $code-padding-x: .4rem !default;
90
+ $code-padding-y: .2rem !default;
91
+
92
+ $kbd-bg: $black-primary !default;
93
+ $kbd-color: $white-primary !default;
94
+
95
+ $pre-color: $black-primary !default;
96
+ $pre-margin-y: $spacer !default;
97
+ $pre-scrollable-max-height: 340px !default;
98
+
99
+
100
+
101
+ // Form
102
+
103
+ $custom-file-button-icon: 'attachment' !default;
104
+ $custom-file-width: 14rem !default;
105
+ $custom-file-text: (en: 'Choose file...') !default;
106
+
107
+ $form-check-inline-margin-x: $spacer-sm !default;
108
+ $form-check-input-margin-x: $spacer-xs !default;
109
+
110
+ $form-feedback-invalid-color: map-get(theme-color(danger), color) !default;
111
+ $form-feedback-valid-color: map-get(theme-color(success), color) !default;
112
+
113
+ $form-group-margin-y: $spacer !default;
114
+
115
+ $input-group-addon-margin-x: 1rem !default;
116
+
117
+
118
+
119
+ // Jumbotron
120
+
121
+ $jumbotron-bg: $white-primary !default;
122
+ $jumbotron-border-radius: $border-radius !default;
123
+ $jumbotron-color: $black-primary !default;
124
+ $jumbotron-elevation-shadow: $elevation-shadow-2dp !default;
125
+ $jumbotron-padding-x: 2rem !default;
126
+ $jumbotron-padding-y: 3rem !default;
127
+
128
+
129
+
130
+ // Link
131
+
132
+ $link-color: map-get(theme-color(primary), color) !default;
133
+ $link-color-hover: map-get(theme-color(primary), darker) !default;
134
+ $link-decoration: none !default;
135
+ $link-decoration-hover: none !default;
136
+
137
+
138
+
139
+ // Misc
140
+
141
+ $blockquote-border-color: map-get(theme-color(primary), color) !default;
142
+ $blockquote-border-width: .3125rem !default;
143
+ $blockquote-small-color: $black-hint !default;
144
+
145
+ $dt-font-weight: $font-weight-medium !default;
146
+
147
+ $figure-caption-color: $black-hint !default;
148
+ $figure-img-margin-y: $spacer-sm !default;
149
+
150
+ $headings-color: inherit !default;
151
+ $headings-font-family: inherit !default;
152
+ $headings-margin-y: $spacer-sm !default;
153
+
154
+ $hr-border-color: $border-color !default;
155
+ $hr-border-width: $border-width !default;
156
+
157
+ $list-inline-inner-spacer-x: $spacer-sm !default;
158
+
159
+ $mark-bg: $material-color-yellow-500 !default;
160
+ $mark-color: $black-primary !default;
161
+ $mark-padding: .2em !default;
162
+
163
+ $paragraph-margin-y: $spacer !default;
164
+
165
+ $small-font-size: 80% !default;
166
+
167
+ $table-caption-color: $black-hint !default;
168
+
169
+ $text-muted: $black-hint !default;
170
+
171
+ $thumbnail-box-shadow: $shadow-2dp !default;
172
+
173
+ $webkit-tap-highlight-color: rgba(0, 0, 0, 0) !default;
174
+
175
+
176
+
177
+ // Nav
178
+
179
+ $nav-link-color-disabled: $black-hint !default;
180
+ $nav-link-padding-x: 1rem !default;
181
+ $nav-link-padding-y: .5rem !default;
182
+
183
+ $nav-pills-bg-hover: $black-divider !default;
184
+ $nav-pills-border-radius: $border-radius !default;
185
+ $nav-pills-color: $black-primary !default;
186
+ $nav-pills-color-active: map-get(theme-color(secondary), color) !default;
187
+ $nav-pills-link-opacity: .7 !default;
188
+
189
+
190
+
191
+ // Pagination
192
+
193
+ $pagination-bg: $material-color-grey-100 !default;
194
+ $pagination-border-radius: $border-radius !default;
195
+ $pagination-color: $black-primary !default;
196
+ $pagination-color-disabled: $black-hint !default;
197
+ $pagination-inner-spacer-x: 1px !default;
198
+ $pagination-padding-x: .5rem !default;
199
+ $pagination-padding-y: .625rem !default;