@enigmatry/entry-components 1.15.1-preview.3 → 1.15.1-preview.5
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/esm2020/dialog/entry-dialog-buttons-alignment.type.mjs +2 -1
- package/package.json +1 -1
- package/styles/_generator.scss +13 -0
- package/styles/modules/_default-theme.scss +90 -0
- package/styles/modules/components/dialogs/_generator.scss +11 -0
- package/styles/modules/components/headers/_generator.scss +12 -0
- package/styles/modules/elements/_generator.scss +20 -0
- package/styles/modules/elements/anchors/_generator.scss +16 -0
- package/styles/modules/elements/buttons/_default.scss +12 -0
- package/styles/modules/elements/buttons/_generator.scss +45 -0
- package/styles/modules/states/_hover.scss +11 -20
- package/styles/modules/typography/_fonts.scss +40 -55
- package/{dialog/styles → styles}/partials/core/components/dialogs/_general.scss +3 -0
- package/styles/partials/core/components/headers/_general.scss +7 -0
- package/styles/partials/main.scss +18 -0
- package/dialog/styles/modules/_generator.scss +0 -11
- package/dialog/styles/modules/components/dialogs/_general.scss +0 -11
- package/dialog/styles/modules/components/dialogs/footers/_general.scss +0 -26
- package/dialog/styles/modules/components/dialogs/headers/_general.scss +0 -16
- package/dialog/styles/modules/theming/_default-theming.scss +0 -29
- package/dialog/styles/partials/core/_index.scss +0 -3
- package/dialog/styles/partials/core/components/_index.scss +0 -1
- package/dialog/styles/partials/core/components/dialogs/_index.scss +0 -1
- package/dialog/styles/partials/core/elements/_general.scss +0 -10
- package/dialog/styles/partials/core/elements/_index.scss +0 -1
- package/dialog/styles/partials/core/layouts/_alignments.scss +0 -13
- package/dialog/styles/partials/core/layouts/_index.scss +0 -1
- package/dialog/styles/partials/main.scss +0 -1
- package/header/styles/modules/_generator.scss +0 -13
- package/header/styles/modules/components/buttons/_general.scss +0 -26
- package/header/styles/modules/components/headers/_general.scss +0 -13
- package/header/styles/modules/theming/_default-theming.scss +0 -21
- package/header/styles/partials/core/_index.scss +0 -3
- package/header/styles/partials/core/components/_index.scss +0 -2
- package/header/styles/partials/core/components/buttons/_general.scss +0 -42
- package/header/styles/partials/core/components/buttons/_index.scss +0 -1
- package/header/styles/partials/core/components/headers/_general.scss +0 -9
- package/header/styles/partials/core/components/headers/_index.scss +0 -1
- package/header/styles/partials/core/elements/_index.scss +0 -1
- package/header/styles/partials/core/elements/headings.scss +0 -3
- package/header/styles/partials/core/layouts/_alignment.scss +0 -6
- package/header/styles/partials/core/layouts/_index.scss +0 -1
- package/header/styles/partials/main.scss +0 -1
- package/styles/_generate.scss +0 -15
- package/styles/modules/_breakpoints.scss +0 -37
- package/styles/modules/_generate.scss +0 -5
- package/styles/modules/_variables.scss +0 -22
- package/styles/modules/theming/_default-theming.scss +0 -9
- package/styles/modules/typography/_generate.scss +0 -7
- package/toolbar/styles/modules/_generate.scss +0 -10
- package/toolbar/styles/modules/components/toolbar/_general.scss +0 -34
- package/toolbar/styles/modules/theming/_default-theming.scss +0 -8
- package/toolbar/styles/partials/core/_index.scss +0 -1
- package/toolbar/styles/partials/core/components/_index.scss +0 -1
- package/toolbar/styles/partials/core/components/toolbar/_general.scss +0 -100
- package/toolbar/styles/partials/core/components/toolbar/_index.scss +0 -1
- package/toolbar/styles/partials/main.scss +0 -1
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
|
|
2
|
+
// TODO: sort out this by using classes from Scss Foundation instead of reinventing the wheel
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50cnktZGlhbG9nLWJ1dHRvbnMtYWxpZ25tZW50LnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2VudHJ5LWNvbXBvbmVudHMvZGlhbG9nL2VudHJ5LWRpYWxvZy1idXR0b25zLWFsaWdubWVudC50eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFFQSw2RkFBNkYiLCJzb3VyY2VzQ29udGVudCI6WyIvKiogRGVmaW5lcyBob3Jpem9udGFsIGFsaWdubWVudCBvZiBkaWFsb2cgYnV0dG9ucy4gKi9cbmV4cG9ydCB0eXBlIEVudHJ5RGlhbG9nQnV0dG9uc0FsaWdubWVudCA9ICdhbGlnbi1sZWZ0JyB8ICdhbGlnbi1jZW50ZXInIHwgJ2FsaWduLXJpZ2h0Jztcbi8vIFRPRE86IHNvcnQgb3V0IHRoaXMgYnkgdXNpbmcgY2xhc3NlcyBmcm9tIFNjc3MgRm91bmRhdGlvbiBpbnN0ZWFkIG9mIHJlaW52ZW50aW5nIHRoZSB3aGVlbFxuIl19
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@enigmatry/entry-components",
|
|
3
|
-
"version": "1.15.1-preview.
|
|
3
|
+
"version": "1.15.1-preview.5",
|
|
4
4
|
"author": "Enigmatry",
|
|
5
5
|
"description": "Enigmatry entry angular material components",
|
|
6
6
|
"homepage": "https://github.com/enigmatry/entry-angular-building-blocks/tree/master/libs/entry-components#readme",
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@use 'modules/components/dialogs/generator' as dialog;
|
|
2
|
+
@use 'modules/components/headers/generator' as header;
|
|
3
|
+
@use 'modules/elements/generator' as elements;
|
|
4
|
+
@use 'modules/default-theme' as default;
|
|
5
|
+
@use 'sass:map';
|
|
6
|
+
|
|
7
|
+
@mixin generate-from($custom-theme: ()) {
|
|
8
|
+
$merged-theme: map.deep-merge(default.$theme, $custom-theme);
|
|
9
|
+
|
|
10
|
+
@include elements.generate-from($merged-theme);
|
|
11
|
+
@include dialog.generate-from($merged-theme);
|
|
12
|
+
@include header.generate-from($merged-theme);
|
|
13
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* stylelint-disable number-max-precision */
|
|
2
|
+
$theme: (
|
|
3
|
+
general: (
|
|
4
|
+
colors: (
|
|
5
|
+
primary: #2581C4,
|
|
6
|
+
accent: #EA518D,
|
|
7
|
+
dark: #323232,
|
|
8
|
+
disabled: #D9D9D9,
|
|
9
|
+
disabled-light: #F5F5F5
|
|
10
|
+
),
|
|
11
|
+
font: (
|
|
12
|
+
family: '',
|
|
13
|
+
size: 14px
|
|
14
|
+
),
|
|
15
|
+
buttons: (
|
|
16
|
+
color: #FFF
|
|
17
|
+
),
|
|
18
|
+
inputs: (
|
|
19
|
+
background-color: #FFF
|
|
20
|
+
)
|
|
21
|
+
),
|
|
22
|
+
forms: (
|
|
23
|
+
fields: (
|
|
24
|
+
infix-padding-top: .4375em,
|
|
25
|
+
infix-padding-bottom: .4375em,
|
|
26
|
+
label-color: #0000008A,
|
|
27
|
+
underline-display: block,
|
|
28
|
+
outline: (
|
|
29
|
+
border: 2px solid #EBEBEB,
|
|
30
|
+
border-hover: 2px solid #2581C4,
|
|
31
|
+
border-right: none,
|
|
32
|
+
border-left: none,
|
|
33
|
+
disabled-background: #F5F5F5,
|
|
34
|
+
disabled-hover: 2px solid #EBEBEB,
|
|
35
|
+
)
|
|
36
|
+
),
|
|
37
|
+
checkboxes: (
|
|
38
|
+
width: 20px,
|
|
39
|
+
height: 20px,
|
|
40
|
+
background-color: #FFF,
|
|
41
|
+
checkmark-color: #000,
|
|
42
|
+
selected-border-color: #000,
|
|
43
|
+
selected-background-color: #FFF,
|
|
44
|
+
border: 2px solid #0000008A,
|
|
45
|
+
border-hover: 2px solid #0000008A,
|
|
46
|
+
border-radius: 0,
|
|
47
|
+
label-breaking: nowrap,
|
|
48
|
+
),
|
|
49
|
+
radio-buttons: (
|
|
50
|
+
align: flex-start,
|
|
51
|
+
white-space: nowrap,
|
|
52
|
+
),
|
|
53
|
+
),
|
|
54
|
+
tables: (
|
|
55
|
+
cells: (
|
|
56
|
+
first-cell-padding-left: 4px,
|
|
57
|
+
last-cell-padding-right: 4px,
|
|
58
|
+
min-width: unset
|
|
59
|
+
),
|
|
60
|
+
rows: (
|
|
61
|
+
selected-background-color: #06C,
|
|
62
|
+
selected-color: #FFF,
|
|
63
|
+
odd-even-row: odd,
|
|
64
|
+
odd-even-background: #F0F0F0
|
|
65
|
+
),
|
|
66
|
+
columns: (
|
|
67
|
+
sorted: (
|
|
68
|
+
font-weight: 700,
|
|
69
|
+
content-align: left
|
|
70
|
+
)
|
|
71
|
+
),
|
|
72
|
+
contents: (
|
|
73
|
+
no-result: (
|
|
74
|
+
font-size: 13px,
|
|
75
|
+
font-weight: 500,
|
|
76
|
+
text-transform: none
|
|
77
|
+
)
|
|
78
|
+
)
|
|
79
|
+
),
|
|
80
|
+
headers: (
|
|
81
|
+
title: (
|
|
82
|
+
size: 32px
|
|
83
|
+
)
|
|
84
|
+
),
|
|
85
|
+
dialogs: (
|
|
86
|
+
title: (
|
|
87
|
+
size: 20px
|
|
88
|
+
)
|
|
89
|
+
)
|
|
90
|
+
);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@mixin generate-from($theme) {
|
|
4
|
+
.entry-dialog {
|
|
5
|
+
.title {
|
|
6
|
+
color: map.get($theme, 'general', 'colors', 'dark');
|
|
7
|
+
font-size: map.get($theme, 'dialogs', 'title', 'size');
|
|
8
|
+
}
|
|
9
|
+
font-size: map.get($theme, 'general', 'font', 'size');
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@mixin generate-from($theme) {
|
|
4
|
+
.entry-header {
|
|
5
|
+
background-color: map.get($theme, 'general', 'colors', 'primary');
|
|
6
|
+
|
|
7
|
+
.title {
|
|
8
|
+
color: map.get($theme, 'general', 'colors', 'dark');
|
|
9
|
+
font-size: map.get($theme, 'headers', 'title', 'size');
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../default-theme' as default;
|
|
3
|
+
@use '../typography/fonts';
|
|
4
|
+
@use 'anchors/generator' as anchors;
|
|
5
|
+
@use 'buttons/generator' as buttons;
|
|
6
|
+
|
|
7
|
+
$default-theme: default.$theme;
|
|
8
|
+
|
|
9
|
+
@mixin generate-from($custom-theme: ()) {
|
|
10
|
+
$merged-theme: map.deep-merge($default-theme, $custom-theme);
|
|
11
|
+
|
|
12
|
+
$font-family: map.get($merged-theme, 'general', 'font', 'family');
|
|
13
|
+
|
|
14
|
+
@if $font-family == '' {
|
|
15
|
+
@include fonts.generate-default-font();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@include anchors.generate-from($merged-theme);
|
|
19
|
+
@include buttons.generate-from($merged-theme);
|
|
20
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@mixin generate-from($theme) {
|
|
4
|
+
$colors: map.get($theme, 'general', 'colors');
|
|
5
|
+
$primary-color: map.get($colors, 'primary');
|
|
6
|
+
$accent-color: map.get($colors, 'accent');
|
|
7
|
+
|
|
8
|
+
.entry-link {
|
|
9
|
+
color: $primary-color;
|
|
10
|
+
text-decoration: none;
|
|
11
|
+
|
|
12
|
+
&:hover {
|
|
13
|
+
color: $accent-color;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
@use 'default';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
@use '../../typography/fonts';
|
|
4
|
+
@use '../../states/hover';
|
|
5
|
+
|
|
6
|
+
@mixin generate-from($theme) {
|
|
7
|
+
$button-color: map.get($theme, 'general', 'buttons', 'color');
|
|
8
|
+
$colors: map.get($theme, 'general', 'colors');
|
|
9
|
+
$primary-color: map.get($colors, 'primary');
|
|
10
|
+
$accent-color: map.get($colors, 'accent');
|
|
11
|
+
$disabled-color: map.get($colors, 'disabled');
|
|
12
|
+
|
|
13
|
+
.entry-button-accent, .entry-button-primary, .entry-button-dark {
|
|
14
|
+
@extend %entry-button;
|
|
15
|
+
@include fonts.font-family-from($theme) {
|
|
16
|
+
@include fonts.main-bolded-font();
|
|
17
|
+
}
|
|
18
|
+
color: $button-color;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.entry-button-primary {
|
|
22
|
+
@include hover.default($primary-color, $accent-color, $button-color, $disabled-color);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.entry-button-accent {
|
|
26
|
+
@include hover.default($accent-color, $primary-color, $button-color, $disabled-color);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.entry-button-dark {
|
|
30
|
+
@include hover.default(map.get($colors, 'dark'), $primary-color, $button-color, $disabled-color);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.entry-button-blank {
|
|
34
|
+
@include fonts.font-family-from($theme) {
|
|
35
|
+
@include fonts.main-font();
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@include hover.default(transparent, transparent, $accent-color, transparent);
|
|
39
|
+
color: $primary-color;
|
|
40
|
+
|
|
41
|
+
&:disabled {
|
|
42
|
+
color: $primary-color;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -1,27 +1,18 @@
|
|
|
1
|
-
@
|
|
1
|
+
@mixin default($background, $hover-background, $color, $disabled-background) {
|
|
2
|
+
background-color: $background;
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
color: $default;
|
|
7
|
-
|
|
8
|
-
&:active {
|
|
9
|
-
color: $hover;
|
|
4
|
+
&:hover, &:active {
|
|
5
|
+
background-color: $hover-background;
|
|
6
|
+
color: $color;
|
|
10
7
|
}
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
9
|
+
&:disabled, &.disabled {
|
|
10
|
+
background-color: $disabled-background;
|
|
11
|
+
cursor: not-allowed;
|
|
12
|
+
|
|
13
|
+
/* stylelint-disable-next-line selector-max-pseudo-class */
|
|
15
14
|
&:hover {
|
|
16
|
-
color: $
|
|
15
|
+
background-color: $disabled-background;
|
|
17
16
|
}
|
|
18
17
|
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
@mixin background-hover($regular-background, $hover-background) {
|
|
22
|
-
background-color: $regular-background;
|
|
23
|
-
|
|
24
|
-
&:hover {
|
|
25
|
-
background-color: $hover-background;
|
|
26
|
-
}
|
|
27
18
|
}
|
|
@@ -1,19 +1,33 @@
|
|
|
1
|
-
@use 'sass:string';
|
|
2
1
|
@use 'sass:map';
|
|
3
|
-
@use 'sass:math';
|
|
4
2
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
$font-path: '../../../../assets/fonts/';
|
|
4
|
+
$font-sources: (
|
|
5
|
+
(
|
|
6
|
+
name: 'OpenSans',
|
|
7
|
+
style: normal,
|
|
8
|
+
formats: ('eot', 'woff', 'woff2', 'ttf')
|
|
9
|
+
),
|
|
10
|
+
(
|
|
11
|
+
name: 'OpenSans',
|
|
12
|
+
style: bold,
|
|
13
|
+
formats: ('eot', 'woff', 'woff2', 'ttf')
|
|
14
|
+
),
|
|
15
|
+
(
|
|
16
|
+
name: 'Montserrat',
|
|
17
|
+
style: bold,
|
|
18
|
+
formats: ('eot', 'woff', 'woff2', 'ttf')
|
|
19
|
+
)
|
|
20
|
+
);
|
|
8
21
|
|
|
22
|
+
@mixin generate-default-font() {
|
|
9
23
|
@each $font in $font-sources {
|
|
10
24
|
$name: map.get($font, name);
|
|
11
25
|
$style: map.get($font, style);
|
|
12
26
|
$formats: map.get($font, formats);
|
|
13
|
-
|
|
27
|
+
|
|
14
28
|
@each $format in $formats {
|
|
15
29
|
$url: '#{$font-path}#{$name}/#{$name}-#{$style}.#{$format}';
|
|
16
|
-
|
|
30
|
+
|
|
17
31
|
@font-face {
|
|
18
32
|
font: {
|
|
19
33
|
family: '#{$name}-#{$style}';
|
|
@@ -23,64 +37,35 @@
|
|
|
23
37
|
}
|
|
24
38
|
}
|
|
25
39
|
}
|
|
26
|
-
|
|
27
|
-
// Generate icomoon icons font face:
|
|
28
|
-
@include entry-icomoon-icons($font-path);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// TODO: Hardcoded icons font, must be configurable but also to support default value!
|
|
32
|
-
@mixin entry-icomoon-icons($font-path) {
|
|
33
|
-
@font-face {
|
|
34
|
-
font-family: 'icomoon';
|
|
35
|
-
font-style: normal;
|
|
36
|
-
font-weight: normal;
|
|
37
|
-
src: url($font-path + 'icomoon/fonts/icomoon.eot?s68r7n');
|
|
38
|
-
src: url($font-path + 'icomoon/fonts/icomoon.eot?s68r7n#iefix') format('embedded-opentype'),
|
|
39
|
-
url($font-path + 'icomoon/fonts/icomoon.ttf?s68r7n') format('truetype'),
|
|
40
|
-
url($font-path + 'icomoon/fonts//icomoon.woff?s68r7n') format('woff'),
|
|
41
|
-
url($font-path + 'icomoon/fonts//icomoon.svg?s68r7n#icomoon') format('svg');
|
|
42
|
-
font-display: block;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
[class ^= 'icon-'], [class *= ' icon-'] {
|
|
46
|
-
/* use !important to prevent issues with browser extensions that change fonts */
|
|
47
|
-
font-family: 'icomoon' !important;
|
|
48
|
-
|
|
49
|
-
/* Better Font Rendering =========== */
|
|
50
|
-
-webkit-font-smoothing: antialiased;
|
|
51
|
-
-moz-osx-font-smoothing: grayscale;
|
|
52
|
-
font-style: normal;
|
|
53
|
-
font-variant: normal;
|
|
54
|
-
font-weight: normal;
|
|
55
|
-
line-height: 1;
|
|
56
|
-
text-transform: none;
|
|
57
|
-
speak: never;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.icon-close::before {
|
|
61
|
-
content: '\e900';
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.icon-menu:before {
|
|
65
|
-
content: "\e9bd";
|
|
66
|
-
}
|
|
67
40
|
}
|
|
68
41
|
|
|
69
|
-
|
|
70
|
-
/*
|
|
71
|
-
@mixin -font($family, $size) {
|
|
42
|
+
@mixin font($family: 'OpenSans-normal', $size: 14px) {
|
|
72
43
|
font: {
|
|
73
44
|
family: $family;
|
|
74
45
|
size: $size;
|
|
75
46
|
};
|
|
76
47
|
}
|
|
48
|
+
|
|
77
49
|
@mixin main-font($size: 14px) {
|
|
78
|
-
@include
|
|
50
|
+
@include font('OpenSans-normal', $size);
|
|
79
51
|
}
|
|
52
|
+
|
|
80
53
|
@mixin main-bolded-font($size: 14px) {
|
|
81
|
-
@include
|
|
54
|
+
@include font('OpenSans-Bold', $size);
|
|
82
55
|
}
|
|
56
|
+
|
|
83
57
|
@mixin title-font($size: 20px) {
|
|
84
|
-
@include
|
|
58
|
+
@include font('Montserrat-bold', $size);
|
|
85
59
|
}
|
|
86
|
-
|
|
60
|
+
|
|
61
|
+
@mixin font-family-from($theme) {
|
|
62
|
+
$font-family: map.get($theme, 'general', 'font', 'family');
|
|
63
|
+
|
|
64
|
+
@if $font-family == '' {
|
|
65
|
+
@content;
|
|
66
|
+
}
|
|
67
|
+
@else {
|
|
68
|
+
$font-size: map.get($theme, 'general', 'font', 'size');
|
|
69
|
+
@include font($font-family, $font-size);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -5,7 +5,10 @@
|
|
|
5
5
|
@use '../../../../../../styles/modules/typography/fonts' as fonts;
|
|
6
6
|
|
|
7
7
|
$border-dark: #000;
|
|
8
|
+
$default-gap: 16px;
|
|
9
|
+
$large-gap: calc(#{$default-gap} * 2);
|
|
8
10
|
|
|
11
|
+
// TODO: Refactor me. Rename things adequately taking care of context, try minimizing styles required for this to look as expected.
|
|
9
12
|
.dialog-container {
|
|
10
13
|
/* stylelint-disable-next-line declaration-no-important */
|
|
11
14
|
position: absolute !important;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@use '../generator';
|
|
2
|
+
|
|
3
|
+
$custom-theme: (
|
|
4
|
+
general: (
|
|
5
|
+
colors: (
|
|
6
|
+
primary: #FAE3C1
|
|
7
|
+
),
|
|
8
|
+
font: (
|
|
9
|
+
family: 'Some Custom font',
|
|
10
|
+
size: 13px
|
|
11
|
+
),
|
|
12
|
+
buttons: (
|
|
13
|
+
color: #AAA
|
|
14
|
+
)
|
|
15
|
+
)
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
@include generator.generate-from($custom-theme);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
|
|
3
|
-
@use 'theming/default-theming' as default_theme;
|
|
4
|
-
@use 'components/dialogs/general' as dialogs;
|
|
5
|
-
|
|
6
|
-
$default-theme: default_theme.$theme;
|
|
7
|
-
|
|
8
|
-
@mixin generate($custom-theme: ()) {
|
|
9
|
-
$merged-theme: map.deep-merge($default-theme, $custom-theme);
|
|
10
|
-
@include dialogs.generate-dialog-from($merged-theme);
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
@use '@enigmatry/scss-foundation/src/modules/map';
|
|
2
|
-
@use 'headers/general' as headers;
|
|
3
|
-
@use 'footers/general' as footers;
|
|
4
|
-
|
|
5
|
-
@mixin generate-dialog-from($theme) {
|
|
6
|
-
.entry-dialog {
|
|
7
|
-
@include headers.generate-headers-from($theme);
|
|
8
|
-
@include footers.generate-footers-from($theme);
|
|
9
|
-
font-size: map.value-from($theme, 'default-font-size');
|
|
10
|
-
}
|
|
11
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
@use '@enigmatry/scss-foundation/src/modules/map';
|
|
2
|
-
@use '../../../../../../styles/modules/states/hover';
|
|
3
|
-
|
|
4
|
-
@mixin generate-footers-from($theme) {
|
|
5
|
-
.button-confirm {
|
|
6
|
-
@include hover.default(
|
|
7
|
-
map.value-from($theme, 'button-confirm.default-font-color'),
|
|
8
|
-
map.value-from($theme, 'button-confirm.hover-font-color'));
|
|
9
|
-
background-color: map.value-from($theme, 'button-confirm.default-background');
|
|
10
|
-
|
|
11
|
-
&:hover {
|
|
12
|
-
background-color: map.value-from($theme, 'button-confirm.hover-background');
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.button-cancel {
|
|
17
|
-
@include hover.default(
|
|
18
|
-
map.value-from($theme, 'button-cancel.default-font-color'),
|
|
19
|
-
map.value-from($theme, 'button-cancel.hover-font-color'));
|
|
20
|
-
background-color: map.value-from($theme, 'button-cancel.default-background');
|
|
21
|
-
|
|
22
|
-
&:hover {
|
|
23
|
-
background-color: map.value-from($theme, 'button-cancel.hover-background');
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
@use '@enigmatry/scss-foundation/src/modules/map';
|
|
2
|
-
@use '../../../../../../styles/modules/states/hover';
|
|
3
|
-
|
|
4
|
-
@mixin generate-headers-from($theme) {
|
|
5
|
-
.title {
|
|
6
|
-
color: map.value-from($theme, 'header.title.color');
|
|
7
|
-
font-size: map.value-from($theme, 'header.title.size');
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.close-button {
|
|
11
|
-
@include hover.default(
|
|
12
|
-
map.value-from($theme, 'header.close-icon.default-color'),
|
|
13
|
-
map.value-from($theme, 'header.close-icon.hover-color'));
|
|
14
|
-
font-size: map.value-from($theme, 'header.close-icon.size');
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
@use '../../../../styles/modules/variables' as vars;
|
|
2
|
-
|
|
3
|
-
$theme: (
|
|
4
|
-
header: (
|
|
5
|
-
title: (
|
|
6
|
-
size: 20px,
|
|
7
|
-
color: vars.$font-color-default,
|
|
8
|
-
),
|
|
9
|
-
close-icon: (
|
|
10
|
-
size: 12px,
|
|
11
|
-
default-color: vars.$font-color-default,
|
|
12
|
-
hover-color: vars.$primary,
|
|
13
|
-
)
|
|
14
|
-
),
|
|
15
|
-
content-color: vars.$font-color-default,
|
|
16
|
-
default-font-size: 14px,
|
|
17
|
-
button-confirm: (
|
|
18
|
-
default-background: vars.$primary,
|
|
19
|
-
default-font-color: vars.$font-color-light,
|
|
20
|
-
hover-background: vars.$accent,
|
|
21
|
-
hover-font-color: vars.$font-color-light,
|
|
22
|
-
),
|
|
23
|
-
button-cancel: (
|
|
24
|
-
default-background: transparent,
|
|
25
|
-
default-font-color: vars.$primary,
|
|
26
|
-
hover-background: transparent,
|
|
27
|
-
hover-font-color: vars.$accent,
|
|
28
|
-
)
|
|
29
|
-
);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@use 'dialogs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@use 'general';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@use 'general';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@use 'alignments';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@use 'core';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
|
|
3
|
-
@use 'theming/default-theming' as default;
|
|
4
|
-
@use 'components/headers/general' as headers;
|
|
5
|
-
@use 'components/buttons/general' as buttons;
|
|
6
|
-
|
|
7
|
-
$default-theme: default.$theme;
|
|
8
|
-
|
|
9
|
-
@mixin generate($custom-theme: ()) {
|
|
10
|
-
$merged-theme: map.deep-merge($default-theme, $custom-theme);
|
|
11
|
-
@include headers.generate-headers-from($merged-theme);
|
|
12
|
-
@include buttons.generate-buttons-from($merged-theme);
|
|
13
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
@use '@enigmatry/scss-foundation/src/modules/map';
|
|
2
|
-
@use '../../../../../styles/modules/states/hover';
|
|
3
|
-
|
|
4
|
-
@mixin generate-buttons-from($theme) {
|
|
5
|
-
.entry-button-primary {
|
|
6
|
-
@include hover.background-hover(
|
|
7
|
-
map.value-from($theme, 'button-primary.default-background'),
|
|
8
|
-
map.value-from($theme, 'button-primary.hover-background'));
|
|
9
|
-
color: map.value-from($theme, 'button-primary.default-font-color');
|
|
10
|
-
|
|
11
|
-
&:hover {
|
|
12
|
-
color: map.value-from($theme, 'button-accent.default-font-color');
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.entry-button-accent {
|
|
17
|
-
@include hover.background-hover(
|
|
18
|
-
map.value-from($theme, 'button-accent.default-background'),
|
|
19
|
-
map.value-from($theme, 'button-accent.hover-background'));
|
|
20
|
-
color: map.value-from($theme, 'button-accent.default-font-color');
|
|
21
|
-
|
|
22
|
-
&:hover {
|
|
23
|
-
color: map.value-from($theme, 'button-accent.default-font-color');
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
@use '@enigmatry/scss-foundation/src/modules/map';
|
|
2
|
-
|
|
3
|
-
@mixin generate-headers-from($theme) {
|
|
4
|
-
|
|
5
|
-
.entry-header {
|
|
6
|
-
background-color: map.value-from($theme, 'header.background');
|
|
7
|
-
|
|
8
|
-
.title {
|
|
9
|
-
font-size: map.value-from($theme, 'header.title.size');
|
|
10
|
-
color: map.value-from($theme, 'header.title.color');
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
@use '../../../../styles/modules/variables' as vars;
|
|
2
|
-
|
|
3
|
-
$theme: (
|
|
4
|
-
header: (
|
|
5
|
-
background: vars.$primary-lightest,
|
|
6
|
-
title-size: 32px,
|
|
7
|
-
title-color: vars.$primary,
|
|
8
|
-
),
|
|
9
|
-
button-primary: (
|
|
10
|
-
default-background: vars.$primary,
|
|
11
|
-
default-font-color: vars.$font-color-light,
|
|
12
|
-
hover-background: vars.$accent,
|
|
13
|
-
hover-font-color: vars.$font-color-light,
|
|
14
|
-
),
|
|
15
|
-
button-accent: (
|
|
16
|
-
default-background: vars.$accent,
|
|
17
|
-
default-font-color: vars.$font-color-light,
|
|
18
|
-
hover-background: vars.$primary,
|
|
19
|
-
hover-font-color: vars.$font-color-light,
|
|
20
|
-
)
|
|
21
|
-
);
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
@use '../../../../../../styles/modules/variables' as vars;
|
|
2
|
-
@use '../../../../../../styles/modules/typography/fonts' as fonts;
|
|
3
|
-
|
|
4
|
-
.button, %button {
|
|
5
|
-
// @include fonts.main-bolded-font(14px);
|
|
6
|
-
display: inline-block;
|
|
7
|
-
position: relative;
|
|
8
|
-
padding: 10px 20px;
|
|
9
|
-
transition: vars.$default-transition;
|
|
10
|
-
border: 1px solid transparent;
|
|
11
|
-
background-color: transparent;
|
|
12
|
-
color: vars.$font-color-light;
|
|
13
|
-
line-height: 1.25;
|
|
14
|
-
text: {
|
|
15
|
-
align: center;
|
|
16
|
-
decoration: none;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&:disabled {
|
|
20
|
-
background-color: vars.$disabled;
|
|
21
|
-
cursor: not-allowed;
|
|
22
|
-
|
|
23
|
-
/* stylelint-disable-next-line selector-max-pseudo-class */
|
|
24
|
-
&:hover {
|
|
25
|
-
background-color: vars.$disabled;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.entry-button-primary, .entry-button-accent {
|
|
31
|
-
@extend %button;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.action-buttons {
|
|
35
|
-
.button {
|
|
36
|
-
margin-left: 12px;
|
|
37
|
-
|
|
38
|
-
.first-button {
|
|
39
|
-
margin-left: 0;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@use 'general';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@use 'general';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@use 'headings';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@use 'alignment';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@use 'core';
|
package/styles/_generate.scss
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
@use '../dialog/styles/modules/generator' as dialog;
|
|
2
|
-
@use '../dialog/styles/partials/main.scss' as dialogPartials;
|
|
3
|
-
@use '../header/styles/modules/generator' as header;
|
|
4
|
-
@use '../header/styles/partials/main.scss' as headerPartials;
|
|
5
|
-
@use '../toolbar/styles/modules/generate' as toolbar;
|
|
6
|
-
@use '../toolbar/styles/partials/main.scss' as toolbarPartials;
|
|
7
|
-
@use './modules/generate' as modules;
|
|
8
|
-
@use 'sass:map';
|
|
9
|
-
|
|
10
|
-
@mixin generate($theme, $font-config: null) {
|
|
11
|
-
@include modules.generate($font-config);
|
|
12
|
-
@include dialog.generate(map.get($theme, dialog));
|
|
13
|
-
@include header.generate(map.get($theme, header));
|
|
14
|
-
@include toolbar.generate(map.get($theme, toolbar));
|
|
15
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
@use 'sass:list';
|
|
2
|
-
@use 'sass:string';
|
|
3
|
-
@use 'sass:map';
|
|
4
|
-
@use './variables' as vars;
|
|
5
|
-
|
|
6
|
-
@forward '@enigmatry/scss-foundation/src/modules/layout/grid' with (
|
|
7
|
-
$breakpoints: vars.$breakpoints
|
|
8
|
-
);
|
|
9
|
-
@use '@enigmatry/scss-foundation/src/modules/layout/grid' as breakpoints;
|
|
10
|
-
|
|
11
|
-
@mixin apply-on-mobile() {
|
|
12
|
-
@include breakpoints.apply-on(mobile) {
|
|
13
|
-
@content;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
@mixin apply-on-tablet() {
|
|
18
|
-
@include breakpoints.apply-on(tablet) {
|
|
19
|
-
@content;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
@mixin apply-on-desktop() {
|
|
24
|
-
@include breakpoints.apply-on(desktop) {
|
|
25
|
-
@content;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@mixin apply-on-large-desktop() {
|
|
30
|
-
@include breakpoints.apply-on(largeDesktop) {
|
|
31
|
-
@content;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
@mixin set-up() {
|
|
36
|
-
@include breakpoints.set-up();
|
|
37
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
$breakpoints: (
|
|
2
|
-
mobile: (description: 'sm', size: 480px ),
|
|
3
|
-
tablet: (description: 'md', size: 768px ),
|
|
4
|
-
desktop: (description: 'lg', size: 992px),
|
|
5
|
-
largeDesktop: (description: 'xl', size: 1200px));
|
|
6
|
-
|
|
7
|
-
$primary: #2581C4;
|
|
8
|
-
$primary-lightest: #DFF1FD;
|
|
9
|
-
|
|
10
|
-
$accent: #EA518D;
|
|
11
|
-
|
|
12
|
-
$font-color-default: #323232;
|
|
13
|
-
$font-color-light: #FFF;
|
|
14
|
-
|
|
15
|
-
$disabled: #D9D9D9;
|
|
16
|
-
|
|
17
|
-
$font-size-default: 14px;
|
|
18
|
-
|
|
19
|
-
$default-gap: 16px;
|
|
20
|
-
$large-gap: calc(#{$default-gap} * 2);
|
|
21
|
-
|
|
22
|
-
$default-transition: .4s;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
@use '../../../dialog/styles/modules/theming/default-theming' as dialogTheme;
|
|
2
|
-
@use '../../../header/styles/modules/theming/default-theming' as headerTheme;
|
|
3
|
-
@use '../../../toolbar/styles/modules/theming/default-theming' as toolbarTheme;
|
|
4
|
-
|
|
5
|
-
$theme: (
|
|
6
|
-
header: headerTheme.$theme,
|
|
7
|
-
dialog: dialogTheme.$theme,
|
|
8
|
-
toolbar: toolbarTheme.$theme
|
|
9
|
-
);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use 'theming/default-theming' as default;
|
|
3
|
-
@use 'components/toolbar/general' as toolbar;
|
|
4
|
-
|
|
5
|
-
$default-theme: default.$theme;
|
|
6
|
-
|
|
7
|
-
@mixin generate($custom-theme: ()) {
|
|
8
|
-
$merged-theme: map.deep-merge($default-theme, $custom-theme);
|
|
9
|
-
@include toolbar.generate($merged-theme);
|
|
10
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
@use '@enigmatry/scss-foundation/src/modules/map';
|
|
2
|
-
@use '../../../../../styles/modules/variables' as vars;
|
|
3
|
-
@use '../../../../../styles/modules/states/hover' as hover;
|
|
4
|
-
|
|
5
|
-
@mixin generate($theme) {
|
|
6
|
-
.entry-toolbar {
|
|
7
|
-
background-color: map.value-from($theme, 'background');
|
|
8
|
-
|
|
9
|
-
.entry-toolbar-nav {
|
|
10
|
-
height: map.value-from($theme, 'height');
|
|
11
|
-
|
|
12
|
-
.entry-toolbar-logo {
|
|
13
|
-
a {
|
|
14
|
-
color: map.value-from($theme, 'title-color');
|
|
15
|
-
@include hover.default(
|
|
16
|
-
map.value-from($theme, 'title-color'),
|
|
17
|
-
map.value-from($theme, 'title-hover-color'));
|
|
18
|
-
|
|
19
|
-
img {
|
|
20
|
-
height: map.value-from($theme, 'height');
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.entry-toolbar-nav-toggle {
|
|
26
|
-
.nav-toggle-menu, .nav-toggle-close {
|
|
27
|
-
@include hover.default(
|
|
28
|
-
map.value-from($theme, 'title-color'),
|
|
29
|
-
map.value-from($theme, 'title-hover-color'));
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@use 'components';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@use 'toolbar';
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
.entry-toolbar {
|
|
2
|
-
top: 0;
|
|
3
|
-
left: 0;
|
|
4
|
-
width: 100%;
|
|
5
|
-
box-shadow: 0 2px 8px hsla(220, 68%, 12%, 0.1);
|
|
6
|
-
|
|
7
|
-
.entry-toolbar-nav {
|
|
8
|
-
margin: 10px;
|
|
9
|
-
|
|
10
|
-
.entry-toolbar-data {
|
|
11
|
-
height: 100%;
|
|
12
|
-
display: flex;
|
|
13
|
-
justify-content: space-between;
|
|
14
|
-
align-items: center;
|
|
15
|
-
|
|
16
|
-
.entry-toolbar-logo {
|
|
17
|
-
display: inline-flex;
|
|
18
|
-
align-items: center;
|
|
19
|
-
column-gap: 0.25rem;
|
|
20
|
-
|
|
21
|
-
a {
|
|
22
|
-
text-decoration: none;
|
|
23
|
-
font-weight: 600;
|
|
24
|
-
transition: color 0.3s;
|
|
25
|
-
|
|
26
|
-
img {
|
|
27
|
-
display: block;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.entry-toolbar-nav-toggle {
|
|
33
|
-
position: relative;
|
|
34
|
-
width: 32px;
|
|
35
|
-
height: 32px;
|
|
36
|
-
|
|
37
|
-
.nav-toggle-menu,
|
|
38
|
-
.nav-toggle-close {
|
|
39
|
-
font-size: 1.25rem;
|
|
40
|
-
position: absolute;
|
|
41
|
-
display: grid;
|
|
42
|
-
place-items: center;
|
|
43
|
-
inset: 0;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
transition: opacity 0.1s, transform 0.4s;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.nav-toggle-close {
|
|
49
|
-
opacity: 0;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.show-toolbar-icon .nav-toggle-menu {
|
|
54
|
-
opacity: 0;
|
|
55
|
-
transform: rotate(90deg);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.show-toolbar-icon .nav-toggle-close {
|
|
59
|
-
opacity: 1;
|
|
60
|
-
transform: rotate(90deg);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.entry-toolbar-content {
|
|
67
|
-
&.show-toolbar-content {
|
|
68
|
-
opacity: 1;
|
|
69
|
-
top: 3.5rem;
|
|
70
|
-
pointer-events: initial;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// TODO: do this properly with connection to _breakpoints.scss. Move it to modules/ maybe?
|
|
75
|
-
// Big screen
|
|
76
|
-
@media screen and (min-width: 1118px) {
|
|
77
|
-
.entry-toolbar-nav {
|
|
78
|
-
height: calc(var(--header-height) + 2rem);
|
|
79
|
-
display: flex;
|
|
80
|
-
justify-content: space-between;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.entry-toolbar-nav-toggle {
|
|
84
|
-
display: none;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.entry-toolbar-nav li {
|
|
88
|
-
display: flex;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.entry-toolbar-content {
|
|
92
|
-
opacity: 1;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
// Small screen
|
|
96
|
-
@media screen and (max-width: 1118px) {
|
|
97
|
-
.entry-toolbar-content {
|
|
98
|
-
opacity: 0;
|
|
99
|
-
}
|
|
100
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@use 'general';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@use 'core';
|