@internetstiftelsen/styleguide 4.1.13 → 5.0.0
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/package.json +18 -18
- package/src/app.scss +85 -88
- package/src/atoms/archive-link/archive-link.scss +24 -17
- package/src/atoms/button/_button.scss +209 -203
- package/src/atoms/checkbox/_checkbox.scss +33 -26
- package/src/atoms/file/_file.scss +23 -13
- package/src/atoms/grid-toggle/_grid-toggle.scss +11 -6
- package/src/atoms/height-limiter/_height-limiter.scss +21 -14
- package/src/atoms/input/_input.scss +23 -16
- package/src/atoms/label/label.scss +11 -5
- package/src/atoms/logotype/_logotype.scss +3 -2
- package/src/atoms/main-menu/_main-menu.scss +67 -60
- package/src/atoms/meta/_meta.scss +44 -33
- package/src/atoms/meta/meta.config.js +1 -1
- package/src/atoms/paging/_paging.scss +27 -21
- package/src/atoms/password-toggle/_password-toggle.scss +9 -6
- package/src/atoms/progress/_progress.scss +19 -11
- package/src/atoms/quote/_quote.scss +17 -10
- package/src/atoms/radiobutton/_radiobutton.scss +33 -26
- package/src/atoms/range/_range.scss +46 -39
- package/src/atoms/rating/_rating.scss +11 -4
- package/src/atoms/ribbon/_ribbon.scss +16 -9
- package/src/atoms/select/_select.scss +18 -10
- package/src/atoms/skip/_skip.scss +9 -6
- package/src/atoms/spinner/_spinner.scss +4 -3
- package/src/atoms/tag/_tag.scss +26 -19
- package/src/atoms/textarea/_textarea.scss +22 -13
- package/src/atoms/tooltip/_tooltip.scss +28 -21
- package/src/base/_grid.scss +4 -4
- package/src/base/_normalize.scss +29 -27
- package/src/base/fonts/_fonts.scss +1 -1
- package/src/components.js +0 -2
- package/src/configurations/_bem.scss +10 -7
- package/src/configurations/_config.scss +11 -10
- package/src/configurations/_extends.scss +38 -34
- package/src/configurations/_functions.scss +23 -7
- package/src/configurations/_mixins.scss +23 -19
- package/src/configurations/_recaptcha.scss +2 -2
- package/src/configurations/_variables.scss +19 -25
- package/src/configurations/_wordpress.scss +64 -57
- package/src/configurations/colors/_background-colors.scss +3 -2
- package/src/configurations/colors/_colors-functions.scss +41 -39
- package/src/configurations/colors/_colors.scss +1 -1
- package/src/configurations/colors/_text-colors.scss +3 -2
- package/src/configurations/colors/_wordpress-colors.scss +3 -2
- package/src/configurations/forms/_fields.scss +28 -23
- package/src/configurations/grid/_grid.scss +33 -28
- package/src/configurations/typography/_typography.scss +113 -105
- package/src/configurations/typography/readme.md +1 -1
- package/src/globals.scss +16 -18
- package/src/isolated-footer.scss +25 -25
- package/src/molecules/alert/_alert.scss +44 -35
- package/src/molecules/breadcrumb/_breadcrumb.scss +43 -35
- package/src/molecules/byline/_byline.scss +30 -21
- package/src/molecules/card/_card.scss +87 -77
- package/src/molecules/context-menu/_context-menu.scss +32 -15
- package/src/molecules/continue-video-guide/continue-video-guide.scss +37 -28
- package/src/molecules/cookie-disclaimer/cookie-disclaimer.scss +32 -23
- package/src/molecules/download/_download.scss +38 -30
- package/src/molecules/form-control/_form-control.scss +66 -58
- package/src/molecules/glider/_glider-course.scss +29 -23
- package/src/molecules/glider/_glider-hero.scss +112 -104
- package/src/molecules/glider/_glider.scss +36 -30
- package/src/molecules/icon-overlay/_icon-overlay.scss +29 -20
- package/src/molecules/info-box/_info-box.scss +31 -22
- package/src/molecules/input-group/_input-group.scss +23 -13
- package/src/molecules/modal/_modal.scss +77 -65
- package/src/molecules/multi-select/_multi-select.scss +44 -33
- package/src/molecules/natural-language-form/_natural-language-form.scss +33 -23
- package/src/molecules/overview-navigation/_overview-navigation.scss +54 -45
- package/src/molecules/readspeaker/_readspeaker.scss +1 -1
- package/src/molecules/share/_share.scss +23 -15
- package/src/molecules/submenu/_submenu.scss +77 -69
- package/src/molecules/system-error/_system-error.scss +26 -17
- package/src/molecules/table/_table.scss +50 -42
- package/src/molecules/teaser-news-list/_teaser-news-list.scss +21 -12
- package/src/organisms/accordion/_accordion.scss +59 -49
- package/src/organisms/domain-search/_domain-search.scss +54 -45
- package/src/organisms/event-listing-item/_event-listing-item.scss +36 -26
- package/src/organisms/features-box/_features-box.scss +30 -19
- package/src/organisms/filter/_filter.scss +15 -10
- package/src/organisms/footer/_footer.scss +119 -109
- package/src/organisms/header/_header.scss +24 -14
- package/src/organisms/hero/_hero--bbk.scss +50 -38
- package/src/organisms/hero/_hero--dynamic-headline.scss +49 -39
- package/src/organisms/hero/_hero.scss +222 -207
- package/src/organisms/hero/hero.config.js +2 -2
- package/src/organisms/mailchimp/_mailchimp.scss +52 -42
- package/src/organisms/mega-menu/_mega-menu.scss +55 -45
- package/src/organisms/members-service-product/_members-service-product.scss +29 -18
- package/src/organisms/members-service-product/members-service-product.config.js +5 -5
- package/src/organisms/podcast/_podcast-episodes.scss +85 -75
- package/src/organisms/podcast/_podcast-player.scss +73 -64
- package/src/organisms/schedule/_schedule.scss +92 -82
- package/src/organisms/search/_search.scss +68 -58
- package/src/organisms/search-result/_search-result.scss +50 -40
- package/src/organisms/sections/_sections.scss +41 -31
- package/src/organisms/tabs/_tabs.scss +58 -46
- package/src/organisms/timeline/_timeline.scss +92 -81
- package/src/organisms/video-guide/_video-guide.scss +148 -138
- package/src/pages/animate-footer/animate-footer.config.js +180 -1
- package/src/print.scss +1 -1
- package/src/structures/_article.scss +39 -28
- package/src/structures/_core-values.scss +14 -2
- package/src/structures/_manifest.scss +4 -4
- package/src/structures/_section.scss +32 -20
- package/src/structures/_site.scss +19 -7
- package/src/theme/_dark-mode.scss +14 -13
- package/src/theme/_theme.scss +28 -25
- package/src/utilities/_align.scss +1 -1
- package/src/utilities/_border.scss +5 -3
- package/src/utilities/_box-shadow.scss +5 -2
- package/src/utilities/_display.scss +1 -1
- package/src/utilities/_fill.scss +5 -4
- package/src/utilities/_flex.scss +1 -1
- package/src/utilities/_font-size.scss +6 -5
- package/src/utilities/_fonts.scss +6 -5
- package/src/utilities/_gutter.scss +3 -2
- package/src/utilities/_hide.scss +17 -15
- package/src/utilities/_icons.scss +37 -33
- package/src/utilities/_indent.scss +8 -6
- package/src/utilities/_links.scss +22 -18
- package/src/utilities/_lists.scss +19 -14
- package/src/utilities/_manifest.scss +27 -27
- package/src/utilities/_margin.scss +20 -17
- package/src/utilities/_misc.scss +3 -2
- package/src/utilities/_padding.scss +18 -15
- package/src/utilities/_position.scss +3 -2
- package/src/utilities/_show.scss +7 -6
- package/src/utilities/_text.scss +1 -1
- package/src/utilities/_vertical-align.scss +1 -1
- package/src/utilities/_wrap.scss +1 -1
- package/src/utilities/_z-index.scss +7 -6
- package/src/utilities/tab-highlighting/_tab-highlighting.scss +6 -5
- package/src/vendor/baseline/_plumber.scss +14 -13
- package/src/vendor/grid/_breakpoints.scss +17 -13
- package/src/vendor/grid/_flex.scss +8 -4
- package/src/vendor/grid/_functions.scss +9 -6
- package/src/vendor/grid/_grid-framework.scss +14 -9
- package/src/vendor/grid/_grid.scss +19 -16
- package/src/vendor/grid/_spacing.scss +8 -3
- package/src/atoms/toggle-high-contrast/readme.md +0 -6
- package/src/atoms/toggle-high-contrast/toggle-high-contrast.config.js +0 -8
- package/src/atoms/toggle-high-contrast/toggle-high-contrast.js +0 -10
- package/src/molecules/modal/modal-graph.js +0 -40
|
@@ -1,74 +1,85 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use '../../configurations/variables' as var;
|
|
3
|
+
@use '../../configurations/functions' as func;
|
|
4
|
+
@use '../../configurations/mixins' as mixin;
|
|
5
|
+
@use '../../configurations/bem' as bem;
|
|
6
|
+
@use '../../configurations/functions' as f;
|
|
7
|
+
@use '../../configurations/colors/colors' as colors;
|
|
8
|
+
@use '../../configurations/colors/colors-functions' as colorFunc;
|
|
9
|
+
@use '../../vendor/baseline/plumber' as plumber;
|
|
10
|
+
@use '../../vendor/grid/breakpoints' as breakpoint;
|
|
2
11
|
|
|
3
|
-
@include atom(meta) {
|
|
12
|
+
@include mixin.atom(meta) {
|
|
4
13
|
display: flex;
|
|
5
14
|
position: relative;
|
|
6
15
|
align-items: center;
|
|
7
16
|
color: var(--cyberspace-color);
|
|
8
|
-
font-family:
|
|
9
|
-
text-
|
|
17
|
+
font-family: var.$font-family-mono;
|
|
18
|
+
text-decoratiosn: none;
|
|
10
19
|
text-transform: uppercase;
|
|
11
20
|
white-space: nowrap;
|
|
12
21
|
|
|
13
|
-
@include plumber(
|
|
14
|
-
|
|
15
|
-
$baseline:
|
|
22
|
+
@include plumber.plumber(
|
|
23
|
+
var.$font-size: 1.7,
|
|
24
|
+
$baseline: var.$mono-baseline,
|
|
16
25
|
$leading-bottom: 0
|
|
17
26
|
);
|
|
18
27
|
|
|
19
|
-
@include color_values(
|
|
28
|
+
@include colorFunc.color_values(colorFunc.$colors, 'fill', $prefix: '--', $separator: '-');
|
|
20
29
|
|
|
21
30
|
span {
|
|
22
|
-
margin-left:
|
|
31
|
+
margin-left: func.to_rem(3px);
|
|
23
32
|
}
|
|
24
33
|
|
|
25
|
-
@include b(icon) {
|
|
34
|
+
@include bem.b(icon) {
|
|
26
35
|
display: flex;
|
|
27
36
|
flex-shrink: 0;
|
|
28
37
|
align-items: center;
|
|
29
|
-
width:
|
|
30
|
-
height:
|
|
31
|
-
margin-right: rhythm(1);
|
|
32
|
-
fill: inherit;
|
|
38
|
+
width: var.$icon-size;
|
|
39
|
+
height: var.$icon-size;
|
|
40
|
+
margin-right: func.rhythm(1);
|
|
33
41
|
color: var(--color-cyberspace);
|
|
34
|
-
|
|
42
|
+
|
|
43
|
+
svg {
|
|
44
|
+
fill: inherit;
|
|
45
|
+
}
|
|
35
46
|
}
|
|
36
47
|
|
|
37
|
-
@include m(light) {
|
|
38
|
-
color:
|
|
48
|
+
@include bem.m(light) {
|
|
49
|
+
color: colors.$color-snow;
|
|
39
50
|
|
|
40
|
-
@include b(icon) {
|
|
41
|
-
fill:
|
|
51
|
+
@include bem.b(icon) {
|
|
52
|
+
fill: colors.$color-snow;
|
|
42
53
|
}
|
|
43
54
|
}
|
|
44
55
|
|
|
45
|
-
@include m(lowercase) {
|
|
56
|
+
@include bem.m(lowercase) {
|
|
46
57
|
text-transform: initial;
|
|
47
58
|
}
|
|
48
59
|
|
|
49
|
-
@include m(wrap) {
|
|
60
|
+
@include bem.m(wrap) {
|
|
50
61
|
white-space: normal;
|
|
51
62
|
}
|
|
52
63
|
|
|
53
|
-
@include m(responsive) {
|
|
54
|
-
@include plumber(
|
|
55
|
-
|
|
56
|
-
$baseline:
|
|
64
|
+
@include bem.m(responsive) {
|
|
65
|
+
@include plumber.plumber(
|
|
66
|
+
var.$font-size: 1.4,
|
|
67
|
+
$baseline: var.$mono-baseline,
|
|
57
68
|
$leading-bottom: 0
|
|
58
69
|
);
|
|
59
70
|
|
|
60
|
-
@include bp-up(md) {
|
|
61
|
-
@include plumber(
|
|
62
|
-
|
|
63
|
-
$baseline:
|
|
71
|
+
@include breakpoint.bp-up(md) {
|
|
72
|
+
@include plumber.plumber(
|
|
73
|
+
var.$font-size: 1.6,
|
|
74
|
+
$baseline: var.$mono-baseline,
|
|
64
75
|
$leading-bottom: 0
|
|
65
76
|
);
|
|
66
77
|
}
|
|
67
78
|
|
|
68
|
-
@include bp-up(lg) {
|
|
69
|
-
@include plumber(
|
|
70
|
-
|
|
71
|
-
$baseline:
|
|
79
|
+
@include breakpoint.bp-up(lg) {
|
|
80
|
+
@include plumber.plumber(
|
|
81
|
+
var.$font-size: 1.7,
|
|
82
|
+
$baseline:var.$mono-baseline,
|
|
72
83
|
$leading-bottom: 0
|
|
73
84
|
);
|
|
74
85
|
}
|
|
@@ -1,57 +1,63 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
2
|
@use "sass:color";
|
|
3
|
+
@use '../../configurations/mixins' as mixin;
|
|
4
|
+
@use '../../configurations/bem' as bem;
|
|
5
|
+
@use '../../configurations/variables' as var;
|
|
6
|
+
@use '../../configurations/functions' as func;
|
|
7
|
+
@use '../../configurations/colors/colors' as colors;
|
|
8
|
+
@use '../../vendor/grid/breakpoints' as breakpoint;
|
|
3
9
|
|
|
4
10
|
// Forwards / backwards
|
|
5
11
|
/// @group Paging
|
|
6
|
-
@include atom(paging-wrapper) {
|
|
12
|
+
@include mixin.atom(paging-wrapper) {
|
|
7
13
|
display: flex;
|
|
8
14
|
position: relative;
|
|
9
15
|
width: 100%;
|
|
10
16
|
align-items: center;
|
|
11
17
|
|
|
12
|
-
@include e(text) {
|
|
18
|
+
@include bem.e(text) {
|
|
13
19
|
flex: 1;
|
|
14
|
-
font-family:
|
|
15
|
-
font-size:
|
|
20
|
+
font-family: var.$font-family-mono;
|
|
21
|
+
font-size: func.to_rem(var.$size-medium-plus);
|
|
16
22
|
text-align: center;
|
|
17
23
|
text-transform: uppercase;
|
|
18
24
|
}
|
|
19
25
|
}
|
|
20
26
|
|
|
21
|
-
@include atom(paging) {
|
|
27
|
+
@include mixin.atom(paging) {
|
|
22
28
|
display: inline-flex;
|
|
23
29
|
position: relative;
|
|
24
30
|
flex-grow: 0;
|
|
25
31
|
flex-shrink: 0;
|
|
26
32
|
align-items: center;
|
|
27
33
|
justify-content: center;
|
|
28
|
-
width: rhythm(4);
|
|
29
|
-
height: rhythm(4);
|
|
30
|
-
border: 1px solid
|
|
34
|
+
width: func.rhythm(4);
|
|
35
|
+
height: func.rhythm(4);
|
|
36
|
+
border: 1px solid colors.$color-ash;
|
|
31
37
|
border-radius: 50%;
|
|
32
|
-
background-color:
|
|
33
|
-
box-shadow: 0 3px 5px color.adjust(
|
|
38
|
+
background-color: colors.$color-snow;
|
|
39
|
+
box-shadow: 0 3px 5px color.adjust(colors.$color-granit, $lightness: 15%);
|
|
34
40
|
|
|
35
|
-
@include bp-up(sm) {
|
|
36
|
-
width: rhythm(6);
|
|
37
|
-
height: rhythm(6);
|
|
41
|
+
@include breakpoint.bp-up(sm) {
|
|
42
|
+
width: func.rhythm(6);
|
|
43
|
+
height: func.rhythm(6);
|
|
38
44
|
}
|
|
39
45
|
|
|
40
46
|
&:focus,
|
|
41
47
|
&:hover {
|
|
42
|
-
background-color:
|
|
48
|
+
background-color: colors.$color-ash;
|
|
43
49
|
}
|
|
44
50
|
|
|
45
|
-
@include e(icon) {
|
|
51
|
+
@include bem.e(icon) {
|
|
46
52
|
display: flex;
|
|
47
53
|
align-items: center;
|
|
48
54
|
justify-content: center;
|
|
49
|
-
width:
|
|
50
|
-
height:
|
|
55
|
+
width: var.$icon-size-small;
|
|
56
|
+
height: var.$icon-size-small;
|
|
51
57
|
|
|
52
|
-
@include bp-up(sm) {
|
|
53
|
-
width:
|
|
54
|
-
height:
|
|
58
|
+
@include breakpoint.bp-up(sm) {
|
|
59
|
+
width: var.$icon-size-medium;
|
|
60
|
+
height: var.$icon-size-medium;
|
|
55
61
|
}
|
|
56
62
|
}
|
|
57
63
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use '../../configurations/variables' as var;
|
|
3
|
+
@use '../../configurations/functions' as func;
|
|
4
|
+
@use '../../configurations/colors/colors' as colors;
|
|
2
5
|
|
|
3
6
|
input[type='password'],
|
|
4
7
|
input[type='text'] {
|
|
5
|
-
+ button.#{
|
|
8
|
+
+ button.#{var.$namespace}input-icon {
|
|
6
9
|
border: 0;
|
|
7
10
|
border-radius: 0;
|
|
8
11
|
background: transparent;
|
|
@@ -16,17 +19,17 @@ input[type='text'] {
|
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
input[type='password'] {
|
|
19
|
-
+ button.#{
|
|
22
|
+
+ button.#{var.$namespace}input-icon {
|
|
20
23
|
svg {
|
|
21
|
-
fill:
|
|
24
|
+
fill: colors.$color-granit;
|
|
22
25
|
}
|
|
23
26
|
}
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
input[type='text'] {
|
|
27
|
-
+ button.#{
|
|
30
|
+
+ button.#{var.$namespace}input-icon {
|
|
28
31
|
svg {
|
|
29
|
-
fill:
|
|
32
|
+
fill: colors.$color-cyberspace;
|
|
30
33
|
}
|
|
31
34
|
}
|
|
32
35
|
}
|
|
@@ -1,34 +1,42 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
+
@use '../../configurations/mixins' as mixin;
|
|
3
|
+
@use '../../configurations/bem' as bem;
|
|
4
|
+
@use '../../configurations/variables' as var;
|
|
5
|
+
@use '../../configurations/functions' as func;
|
|
6
|
+
@use '../../configurations/colors/colors' as colors;
|
|
7
|
+
@use '../../configurations/colors/colors-functions' as colorFunc;
|
|
8
|
+
@use '../../vendor/grid/breakpoints' as breakpoint;
|
|
2
9
|
|
|
3
|
-
|
|
10
|
+
|
|
11
|
+
@include mixin.atom(progress) {
|
|
4
12
|
&[value] {
|
|
5
13
|
-webkit-appearance: none;
|
|
6
14
|
-moz-appearance: none;
|
|
7
15
|
appearance: none;
|
|
8
16
|
display: block;
|
|
9
|
-
color:
|
|
10
|
-
background:
|
|
17
|
+
color: colors.$color-ocean;
|
|
18
|
+
background: colors.$color-concrete;
|
|
11
19
|
border: none;
|
|
12
20
|
width: 100%;
|
|
13
21
|
border-radius: 0;
|
|
14
|
-
height: rhythm(1);
|
|
22
|
+
height: func.rhythm(1);
|
|
15
23
|
|
|
16
|
-
@include bp-up(md) {
|
|
17
|
-
height: rhythm(2);
|
|
24
|
+
@include breakpoint.bp-up(md) {
|
|
25
|
+
height: func.rhythm(2);
|
|
18
26
|
}
|
|
19
27
|
}
|
|
20
28
|
&[value]::-webkit-progress-bar {
|
|
21
29
|
border-radius: 0;
|
|
22
|
-
background:
|
|
30
|
+
background: colors.$color-concrete;
|
|
23
31
|
}
|
|
24
32
|
&[value]::-webkit-progress-value {
|
|
25
33
|
border-radius: 0;
|
|
26
|
-
background:
|
|
34
|
+
background: colors.$color-ocean;
|
|
27
35
|
transition: width 5s ease;
|
|
28
36
|
}
|
|
29
37
|
&[value]::-moz-progress-bar {
|
|
30
38
|
border-radius: 0;
|
|
31
|
-
background:
|
|
39
|
+
background: colors.$color-ocean;
|
|
32
40
|
transition: padding-bottom 5s ease;
|
|
33
41
|
padding-left: 60px;
|
|
34
42
|
padding-bottom: var(--value);
|
|
@@ -38,11 +46,11 @@
|
|
|
38
46
|
}
|
|
39
47
|
}
|
|
40
48
|
|
|
41
|
-
@include atom(progress-label) {
|
|
49
|
+
@include mixin.atom(progress-label) {
|
|
42
50
|
display: flex;
|
|
43
51
|
align-items: center;
|
|
44
52
|
|
|
45
53
|
> progress {
|
|
46
|
-
margin-left: rhythm(1);
|
|
54
|
+
margin-left: func.rhythm(1);
|
|
47
55
|
}
|
|
48
56
|
}
|
|
@@ -1,25 +1,32 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
+
@use '../../configurations/mixins' as mixin;
|
|
3
|
+
@use '../../configurations/bem' as bem;
|
|
4
|
+
@use '../../configurations/variables' as var;
|
|
5
|
+
@use '../../configurations/functions' as func;
|
|
6
|
+
@use '../../configurations/colors/colors' as colors;
|
|
7
|
+
@use '../../configurations/colors/colors-functions' as colorFunc;
|
|
2
8
|
|
|
3
|
-
|
|
9
|
+
|
|
10
|
+
@include mixin.atom(quote) {
|
|
4
11
|
display: flex;
|
|
5
12
|
flex-direction: column;
|
|
6
13
|
justify-content: space-between;
|
|
7
|
-
max-width:
|
|
14
|
+
max-width: func.to_rem(500px);
|
|
8
15
|
margin: 0;
|
|
9
16
|
padding: 0;
|
|
10
17
|
|
|
11
|
-
@include e(footer) {
|
|
18
|
+
@include bem.e(footer) {
|
|
12
19
|
display: flex;
|
|
13
20
|
align-items: center;
|
|
14
|
-
padding-top: rhythm(1);
|
|
15
|
-
font-family:
|
|
21
|
+
padding-top: func.rhythm(1);
|
|
22
|
+
font-family: var.$font-family-headings;
|
|
16
23
|
}
|
|
17
24
|
|
|
18
|
-
@include e(avatar) {
|
|
19
|
-
width: rhythm(4);
|
|
20
|
-
height: rhythm(4);
|
|
21
|
-
margin-right: rhythm(2);
|
|
25
|
+
@include bem.e(avatar) {
|
|
26
|
+
width: func.rhythm(4);
|
|
27
|
+
height: func.rhythm(4);
|
|
28
|
+
margin-right: func.rhythm(2);
|
|
22
29
|
border-radius: 50%;
|
|
23
|
-
background-color:
|
|
30
|
+
background-color: colors.$color-snow;
|
|
24
31
|
}
|
|
25
32
|
}
|
|
@@ -1,30 +1,37 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
2
|
@use "sass:color";
|
|
3
|
+
@use '../../configurations/mixins' as mixin;
|
|
4
|
+
@use '../../configurations/extends';
|
|
5
|
+
@use '../../configurations/bem' as bem;
|
|
6
|
+
@use '../../configurations/variables' as var;
|
|
7
|
+
@use '../../configurations/functions' as func;
|
|
8
|
+
@use '../../configurations/colors/colors' as colors;
|
|
9
|
+
@use '../../configurations/colors/colors-functions' as colorFunc;
|
|
3
10
|
|
|
4
|
-
@include atom(radio) {
|
|
11
|
+
@include mixin.atom(radio) {
|
|
5
12
|
&[type='radio'] {
|
|
6
13
|
+ label {
|
|
7
14
|
display: inline-flex;
|
|
8
15
|
position: relative;
|
|
9
16
|
align-items: flex-start;
|
|
10
|
-
padding-top: rhythm(0.5);
|
|
11
|
-
padding-right: rhythm(2);
|
|
12
|
-
padding-bottom: rhythm(0.5);
|
|
13
|
-
font-family:
|
|
17
|
+
padding-top: func.rhythm(0.5);
|
|
18
|
+
padding-right: func.rhythm(2);
|
|
19
|
+
padding-bottom: func.rhythm(0.5);
|
|
20
|
+
font-family: var.$font-family-base;
|
|
14
21
|
|
|
15
22
|
&::before {
|
|
16
23
|
content: '';
|
|
17
24
|
display: block;
|
|
18
25
|
flex-shrink: 0;
|
|
19
|
-
width:
|
|
20
|
-
height:
|
|
21
|
-
margin-top:
|
|
22
|
-
margin-right: rhythm(1);
|
|
23
|
-
transform: translateX(
|
|
26
|
+
width: func.to_rem(15px);
|
|
27
|
+
height: func.to_rem(15px);
|
|
28
|
+
margin-top: func.to_rem(3px);
|
|
29
|
+
margin-right: func.rhythm(1);
|
|
30
|
+
transform: translateX(func.to_rem(1px));
|
|
24
31
|
border: 2px solid transparent;
|
|
25
32
|
border-radius: 50%;
|
|
26
|
-
background-color:
|
|
27
|
-
box-shadow: 0 0 0 1px
|
|
33
|
+
background-color: colors.$color-snow;
|
|
34
|
+
box-shadow: 0 0 0 1px colors.$color-cyberspace;
|
|
28
35
|
}
|
|
29
36
|
}
|
|
30
37
|
|
|
@@ -32,7 +39,7 @@
|
|
|
32
39
|
&:hover {
|
|
33
40
|
+ label {
|
|
34
41
|
&::before {
|
|
35
|
-
background-color: color.adjust(
|
|
42
|
+
background-color: color.adjust(colors.$color-snow, $lightness: -5%);
|
|
36
43
|
}
|
|
37
44
|
}
|
|
38
45
|
}
|
|
@@ -40,8 +47,8 @@
|
|
|
40
47
|
&:checked {
|
|
41
48
|
+ label {
|
|
42
49
|
&::before {
|
|
43
|
-
border: 2px solid
|
|
44
|
-
background-color:
|
|
50
|
+
border: 2px solid colors.$color-ash;
|
|
51
|
+
background-color: colors.$color-cyberspace;
|
|
45
52
|
}
|
|
46
53
|
}
|
|
47
54
|
}
|
|
@@ -51,14 +58,14 @@
|
|
|
51
58
|
@extend %disabled;
|
|
52
59
|
|
|
53
60
|
&::before {
|
|
54
|
-
background-color: color.adjust(
|
|
61
|
+
background-color: color.adjust(colors.$color-concrete, $lightness: -5%);
|
|
55
62
|
}
|
|
56
63
|
}
|
|
57
64
|
|
|
58
65
|
&:checked {
|
|
59
66
|
+ label {
|
|
60
67
|
&::before {
|
|
61
|
-
background-color:
|
|
68
|
+
background-color: colors.$color-cyberspace;
|
|
62
69
|
}
|
|
63
70
|
}
|
|
64
71
|
}
|
|
@@ -67,34 +74,34 @@
|
|
|
67
74
|
&:invalid {
|
|
68
75
|
+ label {
|
|
69
76
|
&::before {
|
|
70
|
-
background-color:
|
|
71
|
-
box-shadow: 0 0 0 1px
|
|
77
|
+
background-color: colors.$color-ruby-light;
|
|
78
|
+
box-shadow: 0 0 0 1px colors.$color-ruby-dark;
|
|
72
79
|
}
|
|
73
80
|
}
|
|
74
81
|
}
|
|
75
82
|
}
|
|
76
83
|
}
|
|
77
84
|
|
|
78
|
-
@include b(radio) {
|
|
85
|
+
@include bem.b(radio) {
|
|
79
86
|
&.is-invalid {
|
|
80
87
|
[type='radio'] {
|
|
81
88
|
+ label {
|
|
82
89
|
&::before {
|
|
83
|
-
background-color:
|
|
84
|
-
box-shadow: 0 0 0 1px
|
|
90
|
+
background-color: colors.$color-ruby-light;
|
|
91
|
+
box-shadow: 0 0 0 1px colors.$color-ruby-dark;
|
|
85
92
|
}
|
|
86
93
|
}
|
|
87
94
|
}
|
|
88
95
|
}
|
|
89
96
|
|
|
90
|
-
@include m(inline) {
|
|
97
|
+
@include bem.m(inline) {
|
|
91
98
|
padding-top: 0;
|
|
92
99
|
padding-bottom: 0;
|
|
93
100
|
|
|
94
101
|
input[type='radio'] {
|
|
95
102
|
+ label {
|
|
96
|
-
margin-top: rhythm(1);
|
|
97
|
-
margin-bottom: rhythm(1);
|
|
103
|
+
margin-top: func.rhythm(1);
|
|
104
|
+
margin-bottom: func.rhythm(1);
|
|
98
105
|
}
|
|
99
106
|
}
|
|
100
107
|
}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
2
|
@use "sass:color";
|
|
3
|
+
@use '../../configurations/mixins' as mixin;
|
|
4
|
+
@use '../../configurations/bem' as bem;
|
|
5
|
+
@use '../../configurations/variables' as var;
|
|
6
|
+
@use '../../configurations/functions' as func;
|
|
7
|
+
@use '../../configurations/colors/colors' as colors;
|
|
8
|
+
@use '../../configurations/colors/colors-functions' as colorFunc;
|
|
3
9
|
|
|
4
|
-
|
|
10
|
+
|
|
11
|
+
@include mixin.atom(range) {
|
|
5
12
|
-webkit-appearance: none;
|
|
6
13
|
appearance: none;
|
|
7
14
|
background: transparent;
|
|
@@ -10,38 +17,38 @@
|
|
|
10
17
|
position: relative;
|
|
11
18
|
|
|
12
19
|
&::-webkit-slider-runnable-track {
|
|
13
|
-
background-color:
|
|
14
|
-
height: rhythm(1);
|
|
15
|
-
border-radius:
|
|
16
|
-
border-top: 1px solid color.adjust(
|
|
20
|
+
background-color: colors.$color-concrete;
|
|
21
|
+
height: func.rhythm(1);
|
|
22
|
+
border-radius: var.$border-radius;
|
|
23
|
+
border-top: 1px solid color.adjust(colors.$color-granit, $lightness: 15%);
|
|
17
24
|
}
|
|
18
25
|
|
|
19
26
|
&::-moz-range-track {
|
|
20
|
-
background-color:
|
|
21
|
-
height: rhythm(1);
|
|
22
|
-
border-radius:
|
|
23
|
-
border-top: 1px solid
|
|
27
|
+
background-color: colors.$color-concrete;
|
|
28
|
+
height: func.rhythm(1);
|
|
29
|
+
border-radius: var.$border-radius;
|
|
30
|
+
border-top: 1px solid colors.$color-granit;
|
|
24
31
|
}
|
|
25
32
|
|
|
26
33
|
&::-webkit-slider-thumb {
|
|
27
34
|
-webkit-appearance: none;
|
|
28
35
|
appearance: none;
|
|
29
|
-
margin-top: -#{rhythm(1.125)};
|
|
30
|
-
background-color:
|
|
31
|
-
height: rhythm(3);
|
|
32
|
-
width: rhythm(1.5);
|
|
33
|
-
border: 1px solid
|
|
34
|
-
border-radius:
|
|
36
|
+
margin-top: -#{func.rhythm(1.125)};
|
|
37
|
+
background-color: colors.$color-ash;
|
|
38
|
+
height: func.rhythm(3);
|
|
39
|
+
width: func.rhythm(1.5);
|
|
40
|
+
border: 1px solid colors.$color-granit;
|
|
41
|
+
border-radius: var.$border-radius;
|
|
35
42
|
}
|
|
36
43
|
|
|
37
44
|
&::-moz-range-thumb {
|
|
38
|
-
background-color:
|
|
39
|
-
height: rhythm(3);
|
|
40
|
-
width: rhythm(1.5);
|
|
45
|
+
background-color: colors.$color-ash;
|
|
46
|
+
height: func.rhythm(3);
|
|
47
|
+
width: func.rhythm(1.5);
|
|
41
48
|
border-radius: 0;
|
|
42
49
|
border: 0;
|
|
43
|
-
border: 1px solid
|
|
44
|
-
border-radius:
|
|
50
|
+
border: 1px solid colors.$color-granit;
|
|
51
|
+
border-radius: var.$border-radius;
|
|
45
52
|
}
|
|
46
53
|
|
|
47
54
|
&:focus {
|
|
@@ -49,10 +56,10 @@
|
|
|
49
56
|
box-shadow: none !important;
|
|
50
57
|
|
|
51
58
|
& + output {
|
|
52
|
-
background-color:
|
|
59
|
+
background-color: colors.$color-ocean-light;
|
|
53
60
|
|
|
54
61
|
&::after {
|
|
55
|
-
border-bottom-color:
|
|
62
|
+
border-bottom-color: colors.$color-ocean-light;
|
|
56
63
|
}
|
|
57
64
|
}
|
|
58
65
|
}
|
|
@@ -68,31 +75,31 @@
|
|
|
68
75
|
}
|
|
69
76
|
|
|
70
77
|
&:focus::-webkit-slider-thumb {
|
|
71
|
-
background-color:
|
|
72
|
-
border-color:
|
|
73
|
-
box-shadow: 0 0 0 inset rgba(
|
|
78
|
+
background-color: colors.$color-snow;
|
|
79
|
+
border-color: colors.$color-ocean;
|
|
80
|
+
box-shadow: 0 0 0 inset rgba(colors.$color-cyberspace, 0.2), 0 1px 2px rgba(colors.$color-cyberspace, 0.2), 0 0 0 3px colors.$color-ocean-light;
|
|
74
81
|
}
|
|
75
82
|
|
|
76
83
|
&:focus::-moz-range-thumb {
|
|
77
|
-
background-color:
|
|
78
|
-
border-color:
|
|
79
|
-
box-shadow: 0 0 0 inset rgba(
|
|
84
|
+
background-color: colors.$color-snow;
|
|
85
|
+
border-color: colors.$color-ocean;
|
|
86
|
+
box-shadow: 0 0 0 inset rgba(colors.$color-cyberspace, 0.2), 0 1px 2px rgba(colors.$color-cyberspace, 0.2), 0 0 0 3px colors.$color-ocean-light;
|
|
80
87
|
}
|
|
81
88
|
|
|
82
|
-
@include m(no-preview) {
|
|
89
|
+
@include bem.m(no-preview) {
|
|
83
90
|
& + output {
|
|
84
91
|
display: none;
|
|
85
92
|
}
|
|
86
93
|
}
|
|
87
94
|
|
|
88
|
-
@include e(value){
|
|
89
|
-
background-color:
|
|
90
|
-
padding: rhythm(0.5) rhythm(1);
|
|
95
|
+
@include bem.e(value){
|
|
96
|
+
background-color: colors.$color-concrete;
|
|
97
|
+
padding: func.rhythm(0.5) func.rhythm(1);
|
|
91
98
|
position: absolute;
|
|
92
|
-
border-radius:
|
|
99
|
+
border-radius: var.$border-radius;
|
|
93
100
|
left: 50%;
|
|
94
101
|
transform: translateX(-50%) translateY(calc(100% + 8px));
|
|
95
|
-
font-size:
|
|
102
|
+
font-size: var.$size-medium;
|
|
96
103
|
|
|
97
104
|
&::after {
|
|
98
105
|
bottom: 100%;
|
|
@@ -103,19 +110,19 @@
|
|
|
103
110
|
width: 0;
|
|
104
111
|
position: absolute;
|
|
105
112
|
pointer-events: none;
|
|
106
|
-
border-color: rgba(
|
|
107
|
-
border-bottom-color:
|
|
113
|
+
border-color: rgba(colors.$color-concrete, 0);
|
|
114
|
+
border-bottom-color: colors.$color-concrete;
|
|
108
115
|
border-width: 4px;
|
|
109
116
|
margin-left: -4px;
|
|
110
117
|
}
|
|
111
118
|
}
|
|
112
119
|
}
|
|
113
120
|
|
|
114
|
-
@include atom(range-input) {
|
|
121
|
+
@include mixin.atom(range-input) {
|
|
115
122
|
position: absolute;
|
|
116
123
|
top: 0;
|
|
117
124
|
right: 0;
|
|
118
125
|
z-index: 0;
|
|
119
|
-
width: rhythm(5);
|
|
126
|
+
width: func.rhythm(5);
|
|
120
127
|
}
|
|
121
128
|
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
+
@use '../../configurations/mixins' as mixin;
|
|
3
|
+
@use '../../configurations/bem' as bem;
|
|
4
|
+
@use '../../configurations/variables' as var;
|
|
5
|
+
@use '../../configurations/functions' as func;
|
|
6
|
+
@use '../../configurations/colors/colors' as colors;
|
|
7
|
+
@use '../../configurations/colors/colors-functions' as colorFunc;
|
|
2
8
|
|
|
3
|
-
|
|
9
|
+
|
|
10
|
+
@include mixin.atom(rating) {
|
|
4
11
|
display: inline-flex;
|
|
5
12
|
flex-direction: row-reverse;
|
|
6
13
|
|
|
7
14
|
> label {
|
|
8
|
-
width:
|
|
9
|
-
height:
|
|
15
|
+
width: var.$icon-size-large * 1.5;
|
|
16
|
+
height: var.$icon-size-large * 1.5;
|
|
10
17
|
display: inline-flex;
|
|
11
18
|
background-position: center center;
|
|
12
19
|
background-repeat: no-repeat;
|
|
@@ -14,7 +21,7 @@
|
|
|
14
21
|
background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 25.4.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 300 255' style='enable-background:new 0 0 300 255;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%238E9297;%7D%0A%3C/style%3E%3Cpath class='st0' d='M266.9,36.7V0.4h-99v36.3h-35.8V0.4h-99v36.3h-33v72.8h33.2v36.3h32.9v36.3h33.2v36.6h32.9V255h35.8v-36.3H201 v-36.6h33v-36.3h32.9v-36.3h33.2V36.7H266.9z M257.5,85h-45.7V36.7H235v24.5h22.5V85z'/%3E%3C/svg%3E%0A");
|
|
15
22
|
}
|
|
16
23
|
|
|
17
|
-
@include e(radio) {
|
|
24
|
+
@include bem.e(radio) {
|
|
18
25
|
&:hover,
|
|
19
26
|
&:checked {
|
|
20
27
|
~ label {
|