@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.
- package/.gitattributes +5 -5
- package/.yarnrc.yml +1 -0
- package/LICENSE.md +9 -9
- package/README.md +9 -3
- package/addon/components/xep-avatar.js +9 -4
- package/addon/components/xep-bubble.js +6 -3
- package/addon/components/xep-button.hbs +2 -0
- package/addon/components/xep-button.js +9 -1
- package/addon/components/xep-checkbox.js +12 -8
- package/addon/components/xep-chip-icon.js +1 -3
- package/addon/components/xep-chip-set.js +14 -6
- package/addon/components/xep-chip-text.js +0 -0
- package/addon/components/xep-chip.js +11 -5
- package/addon/components/xep-dialog-actions.hbs +0 -0
- package/addon/components/xep-dialog-actions.js +7 -1
- package/addon/components/xep-dialog-content.hbs +0 -0
- package/addon/components/xep-dialog-content.js +7 -1
- package/addon/components/xep-dialog-title.hbs +0 -0
- package/addon/components/xep-dialog-title.js +7 -1
- package/addon/components/xep-dialog.js +4 -3
- package/addon/components/xep-drawer-content.js +0 -0
- package/addon/components/xep-drawer-header.js +0 -0
- package/addon/components/xep-drawer.js +14 -6
- package/addon/components/xep-input.js +14 -6
- package/addon/components/xep-list-divider.js +5 -1
- package/addon/components/xep-list-item-graphic.hbs +0 -0
- package/addon/components/xep-list-item-graphic.js +7 -1
- package/addon/components/xep-list-item-meta.js +4 -1
- package/addon/components/xep-list-item-text.js +5 -1
- package/addon/components/xep-list-item.js +13 -4
- package/addon/components/xep-list.js +8 -4
- package/addon/components/xep-menu-surface.js +4 -1
- package/addon/components/xep-menu.js +12 -5
- package/addon/components/xep-radio.js +11 -6
- package/addon/components/xep-slider.js +11 -6
- package/addon/components/xep-snackbar.js +12 -4
- package/addon/components/xep-switch.js +6 -4
- package/addon/components/xep-textarea.js +12 -5
- package/addon/components/xep-toolbar-divider.js +0 -0
- package/addon/components/xep-toolbar-item-icon.js +4 -1
- package/addon/components/xep-toolbar-item-text.js +4 -1
- package/addon/components/xep-toolbar-item.js +0 -0
- package/addon/components/xep-toolbar-section.js +5 -2
- package/addon/components/xep-toolbar.js +4 -3
- package/addon/mixins/xep-resize.js +1 -1
- package/addon/services/xep-manager.js +1 -1
- package/addon/templates/components/xep-avatar.hbs +0 -1
- package/addon/templates/components/xep-bubble.hbs +0 -0
- package/addon/templates/components/xep-checkbox.hbs +1 -1
- package/addon/templates/components/xep-chip-icon.hbs +0 -0
- package/addon/templates/components/xep-chip-set.hbs +0 -0
- package/addon/templates/components/xep-chip-text.hbs +0 -0
- package/addon/templates/components/xep-chip.hbs +0 -0
- package/addon/templates/components/xep-dialog.hbs +0 -0
- package/addon/templates/components/xep-drawer-content.hbs +0 -0
- package/addon/templates/components/xep-drawer-header.hbs +0 -0
- package/addon/templates/components/xep-drawer.hbs +0 -0
- package/addon/templates/components/xep-input.hbs +3 -6
- package/addon/templates/components/xep-list-divider.hbs +0 -0
- package/addon/templates/components/xep-list-item-meta.hbs +0 -0
- package/addon/templates/components/xep-list-item-text.hbs +0 -0
- package/addon/templates/components/xep-list-item.hbs +0 -0
- package/addon/templates/components/xep-list.hbs +0 -0
- package/addon/templates/components/xep-menu-surface.hbs +0 -0
- package/addon/templates/components/xep-menu.hbs +0 -0
- package/addon/templates/components/xep-power-select.hbs +0 -0
- package/addon/templates/components/xep-radio.hbs +5 -1
- package/addon/templates/components/xep-slider.hbs +0 -0
- package/addon/templates/components/xep-snackbar.hbs +0 -0
- package/addon/templates/components/xep-switch.hbs +10 -1
- package/addon/templates/components/xep-textarea.hbs +1 -2
- package/addon/templates/components/xep-toolbar-divider.hbs +0 -0
- package/addon/templates/components/xep-toolbar-item-icon.hbs +0 -0
- package/addon/templates/components/xep-toolbar-item-text.hbs +0 -0
- package/addon/templates/components/xep-toolbar-item.hbs +0 -0
- package/addon/templates/components/xep-toolbar-section.hbs +0 -0
- package/addon/templates/components/xep-toolbar.hbs +0 -0
- package/addon/utils/style-string.js +9 -3
- package/addon/utils/update-dirty-props.js +9 -4
- package/app/components/xep-avatar.js +0 -0
- package/app/components/xep-bubble.js +0 -0
- package/app/components/xep-button.js +0 -0
- package/app/components/xep-checkbox.js +1 -0
- package/app/components/xep-chip-icon.js +0 -0
- package/app/components/xep-chip-set.js +1 -0
- package/app/components/xep-chip-text.js +0 -0
- package/app/components/xep-chip.js +0 -0
- package/app/components/xep-dialog-actions.js +0 -0
- package/app/components/xep-dialog-content.js +0 -0
- package/app/components/xep-dialog-title.js +0 -0
- package/app/components/xep-dialog.js +1 -0
- package/app/components/xep-drawer-content.js +0 -0
- package/app/components/xep-drawer-header.js +0 -0
- package/app/components/xep-drawer.js +1 -0
- package/app/components/xep-input.js +1 -0
- package/app/components/xep-list-divider.js +0 -0
- package/app/components/xep-list-item-graphic.js +0 -0
- package/app/components/xep-list-item-meta.js +0 -0
- package/app/components/xep-list-item-text.js +0 -0
- package/app/components/xep-list-item.js +0 -0
- package/app/components/xep-list.js +1 -0
- package/app/components/xep-menu-surface.js +1 -0
- package/app/components/xep-menu.js +2 -0
- package/app/components/xep-radio.js +1 -0
- package/app/components/xep-slider.js +1 -0
- package/app/components/xep-snackbar.js +1 -0
- package/app/components/xep-switch.js +1 -0
- package/app/components/xep-textarea.js +0 -0
- package/app/components/xep-toolbar-divider.js +0 -0
- package/app/components/xep-toolbar-item-icon.js +0 -0
- package/app/components/xep-toolbar-item-text.js +0 -0
- package/app/components/xep-toolbar-item.js +0 -0
- package/app/components/xep-toolbar-section.js +0 -0
- package/app/components/xep-toolbar.js +0 -0
- package/app/mixins/xep-resize.js +0 -0
- package/app/services/xep-manager.js +0 -0
- package/app/styles/ember-partials/components/xep-avatar.scss +24 -24
- package/app/styles/ember-partials/components/xep-bubble.scss +20 -20
- package/app/styles/ember-partials/components/xep-button.scss +58 -58
- package/app/styles/ember-partials/components/xep-drawer.scss +21 -21
- package/app/styles/ember-partials/components/xep-snackbar.scss +3 -3
- package/app/styles/ember-partials/components/xep-toolbar.scss +107 -107
- package/app/styles/ember-partials/dark-theme.scss +42 -42
- package/app/styles/ember-partials/helpers/alignment.scss +59 -59
- package/app/styles/ember-partials/helpers/color.scss +27 -27
- package/app/styles/ember-partials/helpers/display.scss +27 -27
- package/app/styles/ember-partials/helpers/overrides.scss +7 -7
- package/app/styles/ember-partials/helpers/root.scss +13 -13
- package/app/styles/ember-partials/helpers/rotate.scss +11 -11
- package/app/styles/ember-partials/helpers/spacing.scss +25 -25
- package/app/styles/ember-partials/helpers/typography.scss +5 -5
- package/app/styles/ember-partials/helpers/visibility.scss +23 -23
- package/app/styles/ember-partials/light-theme.scss +42 -42
- package/app/styles/ember-partials/mixins/breakpoints.scss +24 -24
- package/app/styles/ember-partials/mixins/strip-unit.scss +12 -12
- package/app/styles/ember-partials/variables.scss +35 -35
- package/app/styles/ember-partials/xdam-theme.scss +49 -49
- package/app/styles/ember-partials.scss +50 -48
- package/app/utils/style-string.js +0 -0
- package/backstop.json +168 -168
- package/blueprints/xep-component/files/__root__/__path__/__name__.js +0 -0
- package/blueprints/xep-component/files/__root__/__templatepath__/__templatename__.hbs +0 -0
- package/blueprints/xep-component/index.js +1 -1
- package/blueprints/xep-component-test/index.js +1 -1
- package/blueprints/xep-component-test/qunit-files/__root__/__testType__/__path__/__test__.js +0 -0
- package/config/addon-docs.js +1 -1
- package/config/deploy.js +0 -0
- package/config/environment.js +1 -1
- package/config/release.js +0 -0
- package/index.js +70 -115
- package/package.json +151 -129
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/app/mixins/xep-resize.js
CHANGED
|
File without changes
|
|
File without changes
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
.xep-avatar {
|
|
2
|
-
display: inline-block;
|
|
3
|
-
position: relative;
|
|
4
|
-
border-radius: 50%;
|
|
5
|
-
overflow: hidden;
|
|
6
|
-
text-decoration: none;
|
|
7
|
-
display: flex;
|
|
8
|
-
justify-content: center;
|
|
9
|
-
align-items: center;
|
|
10
|
-
|
|
11
|
-
&__image,
|
|
12
|
-
&__text {
|
|
13
|
-
display: block;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&__image {
|
|
17
|
-
border: 0;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&__text {
|
|
21
|
-
color: $mdc-theme-on-primary;
|
|
22
|
-
text-transform: uppercase;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
1
|
+
.xep-avatar {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
position: relative;
|
|
4
|
+
border-radius: 50%;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
text-decoration: none;
|
|
7
|
+
display: flex;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
align-items: center;
|
|
10
|
+
|
|
11
|
+
&__image,
|
|
12
|
+
&__text {
|
|
13
|
+
display: block;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&__image {
|
|
17
|
+
border: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&__text {
|
|
21
|
+
color: $mdc-theme-on-primary;
|
|
22
|
+
text-transform: uppercase;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
$xep-bubble-font-size: 0.65rem;
|
|
2
|
-
|
|
3
|
-
.xep-bubble {
|
|
4
|
-
display: inline-block;
|
|
5
|
-
min-width: $xep-bubble-font-size * 2;
|
|
6
|
-
line-height: $xep-bubble-font-size * 2;
|
|
7
|
-
// padding: 3px;
|
|
8
|
-
border-radius: 50%;
|
|
9
|
-
font-size: $xep-bubble-font-size;
|
|
10
|
-
text-align: center;
|
|
11
|
-
background: $mdc-theme-primary;
|
|
12
|
-
color: $mdc-theme-on-primary;
|
|
13
|
-
font-weight: bold;
|
|
14
|
-
|
|
15
|
-
&--floating {
|
|
16
|
-
position: absolute;
|
|
17
|
-
top: -#{calc($xep-bubble-font-size / 2)};
|
|
18
|
-
right: -#{calc($xep-bubble-font-size / 2)};
|
|
19
|
-
}
|
|
20
|
-
}
|
|
1
|
+
$xep-bubble-font-size: 0.65rem;
|
|
2
|
+
|
|
3
|
+
.xep-bubble {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
min-width: $xep-bubble-font-size * 2;
|
|
6
|
+
line-height: $xep-bubble-font-size * 2;
|
|
7
|
+
// padding: 3px;
|
|
8
|
+
border-radius: 50%;
|
|
9
|
+
font-size: $xep-bubble-font-size;
|
|
10
|
+
text-align: center;
|
|
11
|
+
background: $mdc-theme-primary;
|
|
12
|
+
color: $mdc-theme-on-primary;
|
|
13
|
+
font-weight: bold;
|
|
14
|
+
|
|
15
|
+
&--floating {
|
|
16
|
+
position: absolute;
|
|
17
|
+
top: -#{calc($xep-bubble-font-size / 2)};
|
|
18
|
+
right: -#{calc($xep-bubble-font-size / 2)};
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
.xep-button {
|
|
2
|
-
&__trailing-icon {
|
|
3
|
-
// Note: styles reflect .mdc-button__icon
|
|
4
|
-
margin-right: 0;
|
|
5
|
-
margin-left: 8px;
|
|
6
|
-
display: inline-block;
|
|
7
|
-
width: 18px;
|
|
8
|
-
height: 18px;
|
|
9
|
-
font-size: 18px;
|
|
10
|
-
vertical-align: top;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// Attempt to strip down some properties
|
|
14
|
-
&--unstyled {
|
|
15
|
-
min-width: 0;
|
|
16
|
-
|
|
17
|
-
&:not(:disabled) {
|
|
18
|
-
color: currentColor;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
&::before,
|
|
22
|
-
&::after {
|
|
23
|
-
background-color: transparent;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&.mdc-icon-button {
|
|
28
|
-
min-width: 0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Button colors...
|
|
32
|
-
@each $name, $value in $xep-colors {
|
|
33
|
-
&--#{"" + $name}-color {
|
|
34
|
-
&:not(:disabled) {
|
|
35
|
-
color: $value;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&.mdc-button--raised,
|
|
39
|
-
&.mdc-button--unelevated {
|
|
40
|
-
&:not(:disabled) {
|
|
41
|
-
background-color: $value;
|
|
42
|
-
color: $mdc-theme-on-primary;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&.mdc-button--outlined {
|
|
47
|
-
&:not(:disabled) {
|
|
48
|
-
border-color: $value;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&::before,
|
|
53
|
-
&::after {
|
|
54
|
-
background-color: $value;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
1
|
+
.xep-button {
|
|
2
|
+
&__trailing-icon {
|
|
3
|
+
// Note: styles reflect .mdc-button__icon
|
|
4
|
+
margin-right: 0;
|
|
5
|
+
margin-left: 8px;
|
|
6
|
+
display: inline-block;
|
|
7
|
+
width: 18px;
|
|
8
|
+
height: 18px;
|
|
9
|
+
font-size: 18px;
|
|
10
|
+
vertical-align: top;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// Attempt to strip down some properties
|
|
14
|
+
&--unstyled {
|
|
15
|
+
min-width: 0;
|
|
16
|
+
|
|
17
|
+
&:not(:disabled) {
|
|
18
|
+
color: currentColor;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&::before,
|
|
22
|
+
&::after {
|
|
23
|
+
background-color: transparent;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.mdc-icon-button {
|
|
28
|
+
min-width: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Button colors...
|
|
32
|
+
@each $name, $value in $xep-colors {
|
|
33
|
+
&--#{"" + $name}-color {
|
|
34
|
+
&:not(:disabled) {
|
|
35
|
+
color: $value;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.mdc-button--raised,
|
|
39
|
+
&.mdc-button--unelevated {
|
|
40
|
+
&:not(:disabled) {
|
|
41
|
+
background-color: $value;
|
|
42
|
+
color: $mdc-theme-on-primary;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.mdc-button--outlined {
|
|
47
|
+
&:not(:disabled) {
|
|
48
|
+
border-color: $value;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&::before,
|
|
53
|
+
&::after {
|
|
54
|
+
background-color: $value;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
.xep-drawer {
|
|
2
|
-
top: 0;
|
|
3
|
-
border: none;
|
|
4
|
-
|
|
5
|
-
&--right {
|
|
6
|
-
right: 0;
|
|
7
|
-
left: initial;
|
|
8
|
-
|
|
9
|
-
&.mdc-drawer--animate {
|
|
10
|
-
transform: translateX(100%);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&.mdc-drawer--opening {
|
|
14
|
-
transform: translateX(0);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&.mdc-drawer--closing {
|
|
18
|
-
transform: translateX(100%);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
1
|
+
.xep-drawer {
|
|
2
|
+
top: 0;
|
|
3
|
+
border: none;
|
|
4
|
+
|
|
5
|
+
&--right {
|
|
6
|
+
right: 0;
|
|
7
|
+
left: initial;
|
|
8
|
+
|
|
9
|
+
&.mdc-drawer--animate {
|
|
10
|
+
transform: translateX(100%);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&.mdc-drawer--opening {
|
|
14
|
+
transform: translateX(0);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.mdc-drawer--closing {
|
|
18
|
+
transform: translateX(100%);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.xep-snackbar {
|
|
2
|
-
z-index: 2; // snackbar show be elevated above toolbars
|
|
3
|
-
}
|
|
1
|
+
.xep-snackbar {
|
|
2
|
+
z-index: 2; // snackbar show be elevated above toolbars
|
|
3
|
+
}
|
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
$xep-toolbar-spacing: 5px;
|
|
2
|
-
$xep-toolbar-divider-thickness: 2px;
|
|
3
|
-
|
|
4
|
-
.xep-toolbar {
|
|
5
|
-
background: $mdc-theme-surface;
|
|
6
|
-
display: flex;
|
|
7
|
-
box-sizing: border-box;
|
|
8
|
-
flex-flow: row nowrap;
|
|
9
|
-
overflow: visible;
|
|
10
|
-
z-index: 1;
|
|
11
|
-
|
|
12
|
-
&--fixed {
|
|
13
|
-
position: fixed;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&__section {
|
|
17
|
-
display: inline-flex;
|
|
18
|
-
|
|
19
|
-
&--align-start {
|
|
20
|
-
justify-content: flex-start;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&--align-end {
|
|
24
|
-
justify-content: flex-end;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&--align-middle {
|
|
28
|
-
justify-content: center;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
&--flex-grow {
|
|
32
|
-
flex: 1 1 auto;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&--flex-shrink {
|
|
36
|
-
flex: 0 1 auto;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&__item {
|
|
41
|
-
cursor: pointer;
|
|
42
|
-
display: flex;
|
|
43
|
-
align-items: center;
|
|
44
|
-
position: relative;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&__item-button,
|
|
48
|
-
&__item-text,
|
|
49
|
-
&__item-icon {
|
|
50
|
-
padding: $xep-toolbar-spacing;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
&__divider {
|
|
54
|
-
background: map-get($xep-shades, typography-3);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&__item-text {
|
|
58
|
-
text-overflow: ellipsis;
|
|
59
|
-
white-space: nowrap;
|
|
60
|
-
overflow: hidden;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&--horizontal {
|
|
64
|
-
padding: 0 $xep-toolbar-spacing;
|
|
65
|
-
|
|
66
|
-
.xep-toolbar__section {
|
|
67
|
-
flex-flow: row nowrap;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.xep-toolbar__divider {
|
|
71
|
-
width: $xep-toolbar-divider-thickness;
|
|
72
|
-
margin: ($xep-toolbar-spacing * 2) $xep-toolbar-spacing;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
&--vertical {
|
|
77
|
-
height: 100%;
|
|
78
|
-
padding: $xep-toolbar-spacing 0;
|
|
79
|
-
flex-flow: column nowrap;
|
|
80
|
-
|
|
81
|
-
.xep-toolbar__section {
|
|
82
|
-
flex-flow: column nowrap;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.xep-toolbar__item {
|
|
86
|
-
display: flex;
|
|
87
|
-
text-align: center;
|
|
88
|
-
justify-content: center;
|
|
89
|
-
flex-direction: column;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.xep-toolbar__item-text {
|
|
93
|
-
font-size: 10px;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.xep-toolbar__divider {
|
|
97
|
-
height: $xep-toolbar-divider-thickness;
|
|
98
|
-
margin: $xep-toolbar-spacing ($xep-toolbar-spacing * 2);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.xep-toolbar__item-icon,
|
|
102
|
-
.xep-toolbar__item-text {
|
|
103
|
-
display: block;
|
|
104
|
-
line-height: 1;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
1
|
+
$xep-toolbar-spacing: 5px;
|
|
2
|
+
$xep-toolbar-divider-thickness: 2px;
|
|
3
|
+
|
|
4
|
+
.xep-toolbar {
|
|
5
|
+
background: $mdc-theme-surface;
|
|
6
|
+
display: flex;
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
flex-flow: row nowrap;
|
|
9
|
+
overflow: visible;
|
|
10
|
+
z-index: 1;
|
|
11
|
+
|
|
12
|
+
&--fixed {
|
|
13
|
+
position: fixed;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&__section {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
|
|
19
|
+
&--align-start {
|
|
20
|
+
justify-content: flex-start;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&--align-end {
|
|
24
|
+
justify-content: flex-end;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&--align-middle {
|
|
28
|
+
justify-content: center;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&--flex-grow {
|
|
32
|
+
flex: 1 1 auto;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&--flex-shrink {
|
|
36
|
+
flex: 0 1 auto;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&__item {
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
position: relative;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&__item-button,
|
|
48
|
+
&__item-text,
|
|
49
|
+
&__item-icon {
|
|
50
|
+
padding: $xep-toolbar-spacing;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&__divider {
|
|
54
|
+
background: map-get($xep-shades, typography-3);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&__item-text {
|
|
58
|
+
text-overflow: ellipsis;
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&--horizontal {
|
|
64
|
+
padding: 0 $xep-toolbar-spacing;
|
|
65
|
+
|
|
66
|
+
.xep-toolbar__section {
|
|
67
|
+
flex-flow: row nowrap;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.xep-toolbar__divider {
|
|
71
|
+
width: $xep-toolbar-divider-thickness;
|
|
72
|
+
margin: ($xep-toolbar-spacing * 2) $xep-toolbar-spacing;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&--vertical {
|
|
77
|
+
height: 100%;
|
|
78
|
+
padding: $xep-toolbar-spacing 0;
|
|
79
|
+
flex-flow: column nowrap;
|
|
80
|
+
|
|
81
|
+
.xep-toolbar__section {
|
|
82
|
+
flex-flow: column nowrap;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.xep-toolbar__item {
|
|
86
|
+
display: flex;
|
|
87
|
+
text-align: center;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
flex-direction: column;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.xep-toolbar__item-text {
|
|
93
|
+
font-size: 10px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.xep-toolbar__divider {
|
|
97
|
+
height: $xep-toolbar-divider-thickness;
|
|
98
|
+
margin: $xep-toolbar-spacing ($xep-toolbar-spacing * 2);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.xep-toolbar__item-icon,
|
|
102
|
+
.xep-toolbar__item-text {
|
|
103
|
+
display: block;
|
|
104
|
+
line-height: 1;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
@@ -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: #fefefe,
|
|
10
|
-
typography-1: #b2b3b4,
|
|
11
|
-
typography-2: #8d9192,
|
|
12
|
-
typography-3: #7c8081,
|
|
13
|
-
typography-4: #616364,
|
|
14
|
-
background: #1b1e22,
|
|
15
|
-
background-1: #1f2327,
|
|
16
|
-
background-2: #282b2f,
|
|
17
|
-
background-3: #383b3f,
|
|
18
|
-
background-4: #44474b
|
|
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) !default;
|
|
28
|
-
$mdc-theme-surface: map-get($xep-shades, background-2) !default;
|
|
29
|
-
$mdc-theme-on-primary: map-get($xep-shades, typography) !default;
|
|
30
|
-
$mdc-theme-on-secondary: map-get($xep-shades, typography) !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: #fefefe,
|
|
10
|
+
typography-1: #b2b3b4,
|
|
11
|
+
typography-2: #8d9192,
|
|
12
|
+
typography-3: #7c8081,
|
|
13
|
+
typography-4: #616364,
|
|
14
|
+
background: #1b1e22,
|
|
15
|
+
background-1: #1f2327,
|
|
16
|
+
background-2: #282b2f,
|
|
17
|
+
background-3: #383b3f,
|
|
18
|
+
background-4: #44474b
|
|
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) !default;
|
|
28
|
+
$mdc-theme-surface: map-get($xep-shades, background-2) !default;
|
|
29
|
+
$mdc-theme-on-primary: map-get($xep-shades, typography) !default;
|
|
30
|
+
$mdc-theme-on-secondary: map-get($xep-shades, typography) !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;
|