@xdam/ember-partials 3.0.1 → 4.0.1

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.
Files changed (151) hide show
  1. package/.gitattributes +5 -5
  2. package/.yarnrc.yml +1 -0
  3. package/LICENSE.md +9 -9
  4. package/README.md +9 -3
  5. package/addon/components/xep-avatar.js +9 -4
  6. package/addon/components/xep-bubble.js +6 -3
  7. package/addon/components/xep-button.hbs +2 -0
  8. package/addon/components/xep-button.js +9 -1
  9. package/addon/components/xep-checkbox.js +12 -8
  10. package/addon/components/xep-chip-icon.js +1 -3
  11. package/addon/components/xep-chip-set.js +14 -6
  12. package/addon/components/xep-chip-text.js +0 -0
  13. package/addon/components/xep-chip.js +11 -5
  14. package/addon/components/xep-dialog-actions.hbs +0 -0
  15. package/addon/components/xep-dialog-actions.js +7 -1
  16. package/addon/components/xep-dialog-content.hbs +0 -0
  17. package/addon/components/xep-dialog-content.js +7 -1
  18. package/addon/components/xep-dialog-title.hbs +0 -0
  19. package/addon/components/xep-dialog-title.js +7 -1
  20. package/addon/components/xep-dialog.js +4 -3
  21. package/addon/components/xep-drawer-content.js +0 -0
  22. package/addon/components/xep-drawer-header.js +0 -0
  23. package/addon/components/xep-drawer.js +14 -6
  24. package/addon/components/xep-input.js +14 -6
  25. package/addon/components/xep-list-divider.js +5 -1
  26. package/addon/components/xep-list-item-graphic.hbs +0 -0
  27. package/addon/components/xep-list-item-graphic.js +7 -1
  28. package/addon/components/xep-list-item-meta.js +4 -1
  29. package/addon/components/xep-list-item-text.js +5 -1
  30. package/addon/components/xep-list-item.js +13 -4
  31. package/addon/components/xep-list.js +8 -4
  32. package/addon/components/xep-menu-surface.js +4 -1
  33. package/addon/components/xep-menu.js +12 -5
  34. package/addon/components/xep-radio.js +11 -6
  35. package/addon/components/xep-slider.js +11 -6
  36. package/addon/components/xep-snackbar.js +12 -4
  37. package/addon/components/xep-switch.js +6 -4
  38. package/addon/components/xep-textarea.js +12 -5
  39. package/addon/components/xep-toolbar-divider.js +0 -0
  40. package/addon/components/xep-toolbar-item-icon.js +4 -1
  41. package/addon/components/xep-toolbar-item-text.js +4 -1
  42. package/addon/components/xep-toolbar-item.js +0 -0
  43. package/addon/components/xep-toolbar-section.js +5 -2
  44. package/addon/components/xep-toolbar.js +4 -3
  45. package/addon/mixins/xep-resize.js +1 -1
  46. package/addon/services/xep-manager.js +1 -1
  47. package/addon/templates/components/xep-avatar.hbs +0 -1
  48. package/addon/templates/components/xep-bubble.hbs +0 -0
  49. package/addon/templates/components/xep-checkbox.hbs +1 -1
  50. package/addon/templates/components/xep-chip-icon.hbs +0 -0
  51. package/addon/templates/components/xep-chip-set.hbs +0 -0
  52. package/addon/templates/components/xep-chip-text.hbs +0 -0
  53. package/addon/templates/components/xep-chip.hbs +0 -0
  54. package/addon/templates/components/xep-dialog.hbs +0 -0
  55. package/addon/templates/components/xep-drawer-content.hbs +0 -0
  56. package/addon/templates/components/xep-drawer-header.hbs +0 -0
  57. package/addon/templates/components/xep-drawer.hbs +0 -0
  58. package/addon/templates/components/xep-input.hbs +3 -6
  59. package/addon/templates/components/xep-list-divider.hbs +0 -0
  60. package/addon/templates/components/xep-list-item-meta.hbs +0 -0
  61. package/addon/templates/components/xep-list-item-text.hbs +0 -0
  62. package/addon/templates/components/xep-list-item.hbs +0 -0
  63. package/addon/templates/components/xep-list.hbs +0 -0
  64. package/addon/templates/components/xep-menu-surface.hbs +0 -0
  65. package/addon/templates/components/xep-menu.hbs +0 -0
  66. package/addon/templates/components/xep-power-select.hbs +0 -0
  67. package/addon/templates/components/xep-radio.hbs +5 -1
  68. package/addon/templates/components/xep-slider.hbs +0 -0
  69. package/addon/templates/components/xep-snackbar.hbs +0 -0
  70. package/addon/templates/components/xep-switch.hbs +10 -1
  71. package/addon/templates/components/xep-textarea.hbs +1 -2
  72. package/addon/templates/components/xep-toolbar-divider.hbs +0 -0
  73. package/addon/templates/components/xep-toolbar-item-icon.hbs +0 -0
  74. package/addon/templates/components/xep-toolbar-item-text.hbs +0 -0
  75. package/addon/templates/components/xep-toolbar-item.hbs +0 -0
  76. package/addon/templates/components/xep-toolbar-section.hbs +0 -0
  77. package/addon/templates/components/xep-toolbar.hbs +0 -0
  78. package/addon/utils/style-string.js +9 -3
  79. package/addon/utils/update-dirty-props.js +9 -4
  80. package/app/components/xep-avatar.js +0 -0
  81. package/app/components/xep-bubble.js +0 -0
  82. package/app/components/xep-button.js +0 -0
  83. package/app/components/xep-checkbox.js +1 -0
  84. package/app/components/xep-chip-icon.js +0 -0
  85. package/app/components/xep-chip-set.js +1 -0
  86. package/app/components/xep-chip-text.js +0 -0
  87. package/app/components/xep-chip.js +0 -0
  88. package/app/components/xep-dialog-actions.js +0 -0
  89. package/app/components/xep-dialog-content.js +0 -0
  90. package/app/components/xep-dialog-title.js +0 -0
  91. package/app/components/xep-dialog.js +1 -0
  92. package/app/components/xep-drawer-content.js +0 -0
  93. package/app/components/xep-drawer-header.js +0 -0
  94. package/app/components/xep-drawer.js +1 -0
  95. package/app/components/xep-input.js +1 -0
  96. package/app/components/xep-list-divider.js +0 -0
  97. package/app/components/xep-list-item-graphic.js +0 -0
  98. package/app/components/xep-list-item-meta.js +0 -0
  99. package/app/components/xep-list-item-text.js +0 -0
  100. package/app/components/xep-list-item.js +0 -0
  101. package/app/components/xep-list.js +1 -0
  102. package/app/components/xep-menu-surface.js +1 -0
  103. package/app/components/xep-menu.js +2 -0
  104. package/app/components/xep-radio.js +1 -0
  105. package/app/components/xep-slider.js +1 -0
  106. package/app/components/xep-snackbar.js +1 -0
  107. package/app/components/xep-switch.js +1 -0
  108. package/app/components/xep-textarea.js +0 -0
  109. package/app/components/xep-toolbar-divider.js +0 -0
  110. package/app/components/xep-toolbar-item-icon.js +0 -0
  111. package/app/components/xep-toolbar-item-text.js +0 -0
  112. package/app/components/xep-toolbar-item.js +0 -0
  113. package/app/components/xep-toolbar-section.js +0 -0
  114. package/app/components/xep-toolbar.js +0 -0
  115. package/app/mixins/xep-resize.js +0 -0
  116. package/app/services/xep-manager.js +0 -0
  117. package/app/styles/ember-partials/components/xep-avatar.scss +24 -24
  118. package/app/styles/ember-partials/components/xep-bubble.scss +20 -20
  119. package/app/styles/ember-partials/components/xep-button.scss +58 -58
  120. package/app/styles/ember-partials/components/xep-drawer.scss +21 -21
  121. package/app/styles/ember-partials/components/xep-snackbar.scss +3 -3
  122. package/app/styles/ember-partials/components/xep-toolbar.scss +107 -107
  123. package/app/styles/ember-partials/dark-theme.scss +42 -42
  124. package/app/styles/ember-partials/helpers/alignment.scss +59 -59
  125. package/app/styles/ember-partials/helpers/color.scss +27 -27
  126. package/app/styles/ember-partials/helpers/display.scss +27 -27
  127. package/app/styles/ember-partials/helpers/overrides.scss +7 -7
  128. package/app/styles/ember-partials/helpers/root.scss +13 -13
  129. package/app/styles/ember-partials/helpers/rotate.scss +11 -11
  130. package/app/styles/ember-partials/helpers/spacing.scss +25 -25
  131. package/app/styles/ember-partials/helpers/typography.scss +5 -5
  132. package/app/styles/ember-partials/helpers/visibility.scss +23 -23
  133. package/app/styles/ember-partials/light-theme.scss +42 -42
  134. package/app/styles/ember-partials/mixins/breakpoints.scss +24 -24
  135. package/app/styles/ember-partials/mixins/strip-unit.scss +12 -12
  136. package/app/styles/ember-partials/variables.scss +35 -35
  137. package/app/styles/ember-partials/xdam-theme.scss +49 -49
  138. package/app/styles/ember-partials.scss +50 -48
  139. package/app/utils/style-string.js +0 -0
  140. package/backstop.json +168 -168
  141. package/blueprints/xep-component/files/__root__/__path__/__name__.js +0 -0
  142. package/blueprints/xep-component/files/__root__/__templatepath__/__templatename__.hbs +0 -0
  143. package/blueprints/xep-component/index.js +1 -1
  144. package/blueprints/xep-component-test/index.js +1 -1
  145. package/blueprints/xep-component-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -0
  146. package/config/addon-docs.js +1 -1
  147. package/config/deploy.js +0 -0
  148. package/config/environment.js +1 -1
  149. package/config/release.js +0 -0
  150. package/index.js +70 -115
  151. package/package.json +151 -129
@@ -1,59 +1,59 @@
1
- .xep-text {
2
- &-center {
3
- text-align: center !important;
4
- }
5
-
6
- &-left {
7
- text-align: left !important;
8
- }
9
-
10
- &-right {
11
- text-align: right !important;
12
- }
13
- }
14
-
15
- .xep-flex {
16
- &-justify-center {
17
- justify-content: center !important;
18
- }
19
-
20
- &-justify-flex-end {
21
- justify-content: flex-end !important;
22
- }
23
-
24
- &-justify-flex-start {
25
- justify-content: flex-start !important;
26
- }
27
-
28
- &-align-center {
29
- align-items: center !important;
30
- }
31
-
32
- &-align-flex-end {
33
- align-items: flex-end !important;
34
- }
35
-
36
- &-align-flex-start {
37
- align-items: flex-start !important;
38
- }
39
-
40
- &-grow {
41
- flex: 1 0 auto;
42
- }
43
-
44
- &-auto {
45
- flex: 1 1 auto;
46
- }
47
-
48
- &-shrink {
49
- flex: 0 1 auto;
50
- }
51
-
52
- &-direction-row {
53
- flex-direction: row;
54
- }
55
-
56
- &-direction-column {
57
- flex-direction: column;
58
- }
59
- }
1
+ .xep-text {
2
+ &-center {
3
+ text-align: center !important;
4
+ }
5
+
6
+ &-left {
7
+ text-align: left !important;
8
+ }
9
+
10
+ &-right {
11
+ text-align: right !important;
12
+ }
13
+ }
14
+
15
+ .xep-flex {
16
+ &-justify-center {
17
+ justify-content: center !important;
18
+ }
19
+
20
+ &-justify-flex-end {
21
+ justify-content: flex-end !important;
22
+ }
23
+
24
+ &-justify-flex-start {
25
+ justify-content: flex-start !important;
26
+ }
27
+
28
+ &-align-center {
29
+ align-items: center !important;
30
+ }
31
+
32
+ &-align-flex-end {
33
+ align-items: flex-end !important;
34
+ }
35
+
36
+ &-align-flex-start {
37
+ align-items: flex-start !important;
38
+ }
39
+
40
+ &-grow {
41
+ flex: 1 0 auto;
42
+ }
43
+
44
+ &-auto {
45
+ flex: 1 1 auto;
46
+ }
47
+
48
+ &-shrink {
49
+ flex: 0 1 auto;
50
+ }
51
+
52
+ &-direction-row {
53
+ flex-direction: row;
54
+ }
55
+
56
+ &-direction-column {
57
+ flex-direction: column;
58
+ }
59
+ }
@@ -1,27 +1,27 @@
1
- @each $name, $value in $xep-colors {
2
- .xep-#{"" + $name}-color {
3
- color: $value !important;
4
- }
5
-
6
- .xep-#{"" + $name}-background {
7
- background-color: $value !important;
8
- }
9
-
10
- .xep-#{"" + $name}-border {
11
- border-color: $value !important;
12
- }
13
- }
14
-
15
- @each $name, $value in $xep-shades {
16
- .xep-#{"" + $name}-color {
17
- color: $value !important;
18
- }
19
-
20
- .xep-#{"" + $name}-background {
21
- background-color: $value !important;
22
- }
23
-
24
- .xep-#{"" + $name}-border {
25
- border-color: $value !important;
26
- }
27
- }
1
+ @each $name, $value in $xep-colors {
2
+ .xep-#{"" + $name}-color {
3
+ color: $value !important;
4
+ }
5
+
6
+ .xep-#{"" + $name}-background {
7
+ background-color: $value !important;
8
+ }
9
+
10
+ .xep-#{"" + $name}-border {
11
+ border-color: $value !important;
12
+ }
13
+ }
14
+
15
+ @each $name, $value in $xep-shades {
16
+ .xep-#{"" + $name}-color {
17
+ color: $value !important;
18
+ }
19
+
20
+ .xep-#{"" + $name}-background {
21
+ background-color: $value !important;
22
+ }
23
+
24
+ .xep-#{"" + $name}-border {
25
+ border-color: $value !important;
26
+ }
27
+ }
@@ -1,27 +1,27 @@
1
- .xep-display-block {
2
- display: block !important;
3
- }
4
-
5
- .xep-display-inline-block {
6
- display: inline-block !important;
7
- }
8
-
9
- .xep-display-inline {
10
- display: inline !important;
11
- }
12
-
13
- .xep-display-flex {
14
- display: flex !important;
15
- }
16
-
17
- .xep-display-inline-flex {
18
- display: inline-flex !important;
19
- }
20
-
21
- .xep-width-100 {
22
- width: 100% !important;
23
- }
24
-
25
- .xep-height-100 {
26
- height: 100% !important;
27
- }
1
+ .xep-display-block {
2
+ display: block !important;
3
+ }
4
+
5
+ .xep-display-inline-block {
6
+ display: inline-block !important;
7
+ }
8
+
9
+ .xep-display-inline {
10
+ display: inline !important;
11
+ }
12
+
13
+ .xep-display-flex {
14
+ display: flex !important;
15
+ }
16
+
17
+ .xep-display-inline-flex {
18
+ display: inline-flex !important;
19
+ }
20
+
21
+ .xep-width-100 {
22
+ width: 100% !important;
23
+ }
24
+
25
+ .xep-height-100 {
26
+ height: 100% !important;
27
+ }
@@ -1,7 +1,7 @@
1
- // Extra layers are creating performance issues
2
- :not(.mdc-list--non-interactive) > .mdc-list-item,
3
- :not(.mdc-list--non-interactive) > :not(.mdc-list-item--disabled).mdc-list-item,
4
- .mdc-button {
5
- will-change: initial;
6
- contain: initial;
7
- }
1
+ // Extra layers are creating performance issues
2
+ :not(.mdc-list--non-interactive) > .mdc-list-item,
3
+ :not(.mdc-list--non-interactive) > :not(.mdc-list-item--disabled).mdc-list-item,
4
+ .mdc-button {
5
+ will-change: initial;
6
+ contain: initial;
7
+ }
@@ -1,13 +1,13 @@
1
- :root {
2
- @each $name, $value in $xep-colors {
3
- --xep-#{"" + $name}-color: #{$value};
4
- }
5
-
6
- @each $name, $value in $xep-shades {
7
- --xep-#{"" + $name}-shade: #{$value};
8
- }
9
-
10
- @each $name, $value in $xep-breakpoints {
11
- --xep-#{"" + $name}-breakpoint: #{strip-unit($value)};
12
- }
13
- }
1
+ :root {
2
+ @each $name, $value in $xep-colors {
3
+ --xep-#{"" + $name}-color: #{$value};
4
+ }
5
+
6
+ @each $name, $value in $xep-shades {
7
+ --xep-#{"" + $name}-shade: #{$value};
8
+ }
9
+
10
+ @each $name, $value in $xep-breakpoints {
11
+ --xep-#{"" + $name}-breakpoint: #{strip-unit($value)};
12
+ }
13
+ }
@@ -1,11 +1,11 @@
1
- .xep-rotate-90 {
2
- transform: rotate(90deg);
3
- }
4
-
5
- .xep-rotate-180 {
6
- transform: rotate(180deg);
7
- }
8
-
9
- .xep-rotate-270 {
10
- transform: rotate(270deg);
11
- }
1
+ .xep-rotate-90 {
2
+ transform: rotate(90deg);
3
+ }
4
+
5
+ .xep-rotate-180 {
6
+ transform: rotate(180deg);
7
+ }
8
+
9
+ .xep-rotate-270 {
10
+ transform: rotate(270deg);
11
+ }
@@ -1,25 +1,25 @@
1
- $xep-spacing-types: 'margin' 'padding';
2
- $xep-spacing-positions: 'top' 'bottom' 'left' 'right';
3
-
4
- $xep-spacing-amounts: (
5
- none: 0,
6
- quarter: 0.25,
7
- half: 0.5,
8
- one: 1,
9
- two: 2,
10
- three: 3
11
- );
12
-
13
- @each $type in $xep-spacing-types {
14
- @each $name, $amount in $xep-spacing-amounts {
15
- @each $position in $xep-spacing-positions {
16
- .xep-#{$type}-#{$position}-#{$name} {
17
- #{$type}-#{$position}: $xep-global-spacing * $amount !important;
18
- }
19
- }
20
-
21
- .xep-#{$type}-#{$name} {
22
- #{$type}: $xep-global-spacing * $amount !important;
23
- }
24
- }
25
- }
1
+ $xep-spacing-types: 'margin' 'padding';
2
+ $xep-spacing-positions: 'top' 'bottom' 'left' 'right';
3
+
4
+ $xep-spacing-amounts: (
5
+ none: 0,
6
+ quarter: 0.25,
7
+ half: 0.5,
8
+ one: 1,
9
+ two: 2,
10
+ three: 3
11
+ );
12
+
13
+ @each $type in $xep-spacing-types {
14
+ @each $name, $amount in $xep-spacing-amounts {
15
+ @each $position in $xep-spacing-positions {
16
+ .xep-#{$type}-#{$position}-#{$name} {
17
+ #{$type}-#{$position}: $xep-global-spacing * $amount !important;
18
+ }
19
+ }
20
+
21
+ .xep-#{$type}-#{$name} {
22
+ #{$type}: $xep-global-spacing * $amount !important;
23
+ }
24
+ }
25
+ }
@@ -1,5 +1,5 @@
1
- .xep-truncate {
2
- white-space: nowrap;
3
- overflow: hidden;
4
- text-overflow: ellipsis;
5
- }
1
+ .xep-truncate {
2
+ white-space: nowrap;
3
+ overflow: hidden;
4
+ text-overflow: ellipsis;
5
+ }
@@ -1,23 +1,23 @@
1
- @each $type, $value in $xep-breakpoints {
2
- .xep-hide-for-#{$type} {
3
- @include breakpoint(#{$type}, up) {
4
- display: none !important;
5
- }
6
- }
7
-
8
- .xep-show-for-#{$type} {
9
- display: none !important;
10
-
11
- @include breakpoint(#{$type}, up) {
12
- display: inherit !important;
13
- }
14
- }
15
- }
16
-
17
- .xep-hide {
18
- display: none !important;
19
- }
20
-
21
- .xep-hidden {
22
- visibility: hidden !important;
23
- }
1
+ @each $type, $value in $xep-breakpoints {
2
+ .xep-hide-for-#{$type} {
3
+ @include breakpoint(#{$type}, up) {
4
+ display: none !important;
5
+ }
6
+ }
7
+
8
+ .xep-show-for-#{$type} {
9
+ display: none !important;
10
+
11
+ @include breakpoint(#{$type}, up) {
12
+ display: inherit !important;
13
+ }
14
+ }
15
+ }
16
+
17
+ .xep-hide {
18
+ display: none !important;
19
+ }
20
+
21
+ .xep-hidden {
22
+ visibility: hidden !important;
23
+ }
@@ -1,42 +1,42 @@
1
- $xep-colors: (
2
- primary: #2284ff,
3
- success: #3adb76,
4
- warning: #ffae00,
5
- alert: #cc4b37
6
- ) !default;
7
-
8
- $xep-shades: (
9
- typography: #2d364f,
10
- typography-1: #646974,
11
- typography-2: #949cae,
12
- typography-3: #bfc5d1,
13
- typography-4: #fff,
14
- background: #fff,
15
- background-1: #f7f7f7,
16
- background-2: #f5f6fa,
17
- background-3: #e0e4ee,
18
- background-4: #e0e4ee
19
- ) !default;
20
-
21
- $xep-surface-border: map-get($xep-shades, background-3) !default;
22
-
23
- /* ============= MDC Color ============= */
24
-
25
- $mdc-theme-primary: map-get($xep-colors, primary) !default;
26
- $mdc-theme-secondary: map-get($xep-colors, success) !default;
27
- $mdc-theme-background: map-get($xep-shades, background-2) !default;
28
- $mdc-theme-surface: map-get($xep-shades, background) !default;
29
- $mdc-theme-on-primary: map-get($xep-shades, typography-4) !default;
30
- $mdc-theme-on-secondary: map-get($xep-shades, typography-4) !default;
31
- $mdc-theme-on-surface: map-get($xep-shades, typography-1) !default;
32
-
33
- $mdc-theme-text-primary-on-light: map-get($xep-colors, primary) !default;
34
- $mdc-theme-text-primary-on-dark: map-get($xep-colors, primary) !default;
35
- $mdc-theme-text-secondary-on-dark: map-get($xep-colors, success) !default;
36
- $mdc-theme-text-secondary-on-light: map-get($xep-colors, success) !default;
37
- $mdc-theme-text-hint-on-dark: map-get($xep-shades, typography-2) !default;
38
- $mdc-theme-text-hint-on-light: map-get($xep-shades, typography-2) !default;
39
- $mdc-theme-text-disabled-on-dark: map-get($xep-shades, typography-3) !default;
40
- $mdc-theme-text-disabled-on-light: map-get($xep-shades, typography-3) !default;
41
- $mdc-theme-text-icon-on-dark: map-get($xep-shades, typography-1) !default;
42
- $mdc-theme-text-icon-on-light: map-get($xep-shades, typography-1) !default;
1
+ $xep-colors: (
2
+ primary: #2284ff,
3
+ success: #3adb76,
4
+ warning: #ffae00,
5
+ alert: #cc4b37
6
+ ) !default;
7
+
8
+ $xep-shades: (
9
+ typography: #2d364f,
10
+ typography-1: #646974,
11
+ typography-2: #949cae,
12
+ typography-3: #bfc5d1,
13
+ typography-4: #fff,
14
+ background: #fff,
15
+ background-1: #f7f7f7,
16
+ background-2: #f5f6fa,
17
+ background-3: #e0e4ee,
18
+ background-4: #e0e4ee
19
+ ) !default;
20
+
21
+ $xep-surface-border: map-get($xep-shades, background-3) !default;
22
+
23
+ /* ============= MDC Color ============= */
24
+
25
+ $mdc-theme-primary: map-get($xep-colors, primary) !default;
26
+ $mdc-theme-secondary: map-get($xep-colors, success) !default;
27
+ $mdc-theme-background: map-get($xep-shades, background-2) !default;
28
+ $mdc-theme-surface: map-get($xep-shades, background) !default;
29
+ $mdc-theme-on-primary: map-get($xep-shades, typography-4) !default;
30
+ $mdc-theme-on-secondary: map-get($xep-shades, typography-4) !default;
31
+ $mdc-theme-on-surface: map-get($xep-shades, typography-1) !default;
32
+
33
+ $mdc-theme-text-primary-on-light: map-get($xep-colors, primary) !default;
34
+ $mdc-theme-text-primary-on-dark: map-get($xep-colors, primary) !default;
35
+ $mdc-theme-text-secondary-on-dark: map-get($xep-colors, success) !default;
36
+ $mdc-theme-text-secondary-on-light: map-get($xep-colors, success) !default;
37
+ $mdc-theme-text-hint-on-dark: map-get($xep-shades, typography-2) !default;
38
+ $mdc-theme-text-hint-on-light: map-get($xep-shades, typography-2) !default;
39
+ $mdc-theme-text-disabled-on-dark: map-get($xep-shades, typography-3) !default;
40
+ $mdc-theme-text-disabled-on-light: map-get($xep-shades, typography-3) !default;
41
+ $mdc-theme-text-icon-on-dark: map-get($xep-shades, typography-1) !default;
42
+ $mdc-theme-text-icon-on-light: map-get($xep-shades, typography-1) !default;
@@ -1,24 +1,24 @@
1
- // Usage:
2
- // @include breakpoint(phone, up)
3
- // @include breakpoint(tablet, up)
4
- // @include breakpoint(desktop, down)
5
-
6
- @mixin breakpoint($point, $direction: up, $breakpoints: $xep-breakpoints) {
7
- // If $mq-breakpoint is a key that exists in
8
- // $mq-breakpoints, get and use the value
9
- @if map-has-key($breakpoints, $point) {
10
- $point: map-get($breakpoints, $point);
11
- }
12
-
13
- @if $direction == down {
14
- @media screen and (max-width: #{$point}) {
15
- @content;
16
- }
17
- }
18
-
19
- @else if $direction == up {
20
- @media screen and (min-width: #{$point}) {
21
- @content;
22
- }
23
- }
24
- }
1
+ // Usage:
2
+ // @include breakpoint(phone, up)
3
+ // @include breakpoint(tablet, up)
4
+ // @include breakpoint(desktop, down)
5
+
6
+ @mixin breakpoint($point, $direction: up, $breakpoints: $xep-breakpoints) {
7
+ // If $mq-breakpoint is a key that exists in
8
+ // $mq-breakpoints, get and use the value
9
+ @if map-has-key($breakpoints, $point) {
10
+ $point: map-get($breakpoints, $point);
11
+ }
12
+
13
+ @if $direction == down {
14
+ @media screen and (max-width: #{$point}) {
15
+ @content;
16
+ }
17
+ }
18
+
19
+ @else if $direction == up {
20
+ @media screen and (min-width: #{$point}) {
21
+ @content;
22
+ }
23
+ }
24
+ }
@@ -1,12 +1,12 @@
1
- @use 'sass:math';
2
-
3
- /// Remove the unit of a length
4
- /// @param {Number} $number - Number to remove unit from
5
- /// @return {Number} - Unitless number
6
- @function strip-unit($number) {
7
- @if type-of($number) == 'number' and not unitless($number) {
8
- @return math.div($number, ($number * 0 + 1));
9
- }
10
-
11
- @return $number;
12
- }
1
+ @use 'sass:math';
2
+
3
+ /// Remove the unit of a length
4
+ /// @param {Number} $number - Number to remove unit from
5
+ /// @return {Number} - Unitless number
6
+ @function strip-unit($number) {
7
+ @if type-of($number) == 'number' and not unitless($number) {
8
+ @return math.div($number, ($number * 0 + 1));
9
+ }
10
+
11
+ @return $number;
12
+ }
@@ -1,35 +1,35 @@
1
- $xep-breakpoints: (
2
- desktop: 1025px,
3
- tablet: 860px,
4
- phone: 0px
5
- ) !default;
6
-
7
- $mdc-layout-grid-breakpoints: $xep-breakpoints;
8
-
9
- $mdc-layout-grid-columns: (
10
- desktop: 12,
11
- tablet: 8,
12
- phone: 4
13
- ) !default;
14
-
15
- $xep-global-spacing: 1rem;
16
-
17
- /* ============= MDC Typography ============= */
18
-
19
- $mdc-typography-font-family: unquote("Lato, sans-serif");
20
- $mdc-typography-styles-headline1: () !default;
21
- $mdc-typography-styles-headline2: () !default;
22
- $mdc-typography-styles-headline3: () !default;
23
- $mdc-typography-styles-headline4: () !default;
24
- $mdc-typography-styles-headline5: () !default;
25
- $mdc-typography-styles-headline6: () !default;
26
- $mdc-typography-styles-subtitle1: () !default;
27
- $mdc-typography-styles-subtitle2: () !default;
28
- $mdc-typography-styles-body1: () !default;
29
- $mdc-typography-styles-body2: () !default;
30
- $mdc-typography-styles-caption: () !default;
31
- $mdc-typography-styles-button: (
32
- text-transform: none,
33
- letter-spacing: 0.015em,
34
- ) !default;
35
- $mdc-typography-styles-overline: () !default;
1
+ $xep-breakpoints: (
2
+ desktop: 1025px,
3
+ tablet: 860px,
4
+ phone: 0
5
+ ) !default;
6
+
7
+ $mdc-layout-grid-breakpoints: $xep-breakpoints;
8
+
9
+ $mdc-layout-grid-columns: (
10
+ desktop: 12,
11
+ tablet: 8,
12
+ phone: 4
13
+ ) !default;
14
+
15
+ $xep-global-spacing: 1rem;
16
+
17
+ /* ============= MDC Typography ============= */
18
+
19
+ $mdc-typography-font-family: unquote("Lato, sans-serif");
20
+ $mdc-typography-styles-headline1: () !default;
21
+ $mdc-typography-styles-headline2: () !default;
22
+ $mdc-typography-styles-headline3: () !default;
23
+ $mdc-typography-styles-headline4: () !default;
24
+ $mdc-typography-styles-headline5: () !default;
25
+ $mdc-typography-styles-headline6: () !default;
26
+ $mdc-typography-styles-subtitle1: () !default;
27
+ $mdc-typography-styles-subtitle2: () !default;
28
+ $mdc-typography-styles-body1: () !default;
29
+ $mdc-typography-styles-body2: () !default;
30
+ $mdc-typography-styles-caption: () !default;
31
+ $mdc-typography-styles-button: (
32
+ text-transform: none,
33
+ letter-spacing: 0.015em,
34
+ ) !default;
35
+ $mdc-typography-styles-overline: () !default;