@eeacms/volto-eea-design-system 0.5.4 → 0.6.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/CHANGELOG.md +79 -0
- package/package.json +3 -2
- package/src/ui/Banner/Banner.stories.jsx +0 -3
- package/src/ui/Tag/Tag.stories.jsx +6 -1
- package/src/ui/TagList/TagList.jsx +0 -6
- package/src/ui/TagList/TagList.stories.jsx +9 -8
- package/src/ui/UnderlinedTitle/UnderlinedTitle.stories.jsx +98 -0
- package/theme/themes/eea/assets/logo/eea-white.svg +14 -0
- package/theme/themes/eea/collections/breadcrumb.overrides +1 -0
- package/theme/themes/eea/collections/breadcrumb.variables +1 -0
- package/theme/themes/eea/collections/menu.overrides +247 -7
- package/theme/themes/eea/elements/button.overrides +1 -0
- package/theme/themes/eea/elements/button.variables +1 -0
- package/theme/themes/eea/elements/container.overrides +15 -0
- package/theme/themes/eea/extras/banner.less +6 -1
- package/theme/themes/eea/extras/banner.variables +3 -2
- package/theme/themes/eea/extras/contentBox.less +16 -0
- package/theme/themes/eea/extras/custom.overrides +76 -4
- package/theme/themes/eea/extras/footer.variables +1 -1
- package/theme/themes/eea/extras/header.less +19 -8
- package/theme/themes/eea/extras/header.variables +4 -5
- package/theme/themes/eea/extras/tagList.less +4 -22
- package/theme/themes/eea/globals/site.variables +4 -4
- package/theme/themes/eea/globals/utilities.less +17 -4
- package/theme/themes/eea/tokens/fonts.less +9 -9
- package/theme/themes/eea/views/card.overrides +6 -0
- package/theme/themes/eea/views/card.variables +1 -1
- package/theme/themes/eea/views/item.overrides +100 -0
- package/theme/themes/eea/views/item.variables +46 -3
- package/theme/themes/eea/assets/logo/eea.svg +0 -9
|
@@ -65,6 +65,21 @@ body {
|
|
|
65
65
|
.contentWidth(0);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
// WIP container fixes for edit interface
|
|
69
|
+
.section-edit .container {
|
|
70
|
+
max-width: 1120px !important;
|
|
71
|
+
}
|
|
72
|
+
@media only screen and (max-width: 1600px) {
|
|
73
|
+
.has-sidebar.section-edit .container {
|
|
74
|
+
margin-left: 0 !important;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
@media only screen and (min-width: 1601px) {
|
|
78
|
+
.has-sidebar.section-edit .main.bar .ui.container {
|
|
79
|
+
margin-left: 10% !important;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
68
83
|
.drag.handle.wrapper {
|
|
69
84
|
margin-left: -15px !important;
|
|
70
85
|
}
|
|
@@ -127,6 +127,12 @@
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
+
@media only screen and (max-width: @tabletBreakpoint - 1) {
|
|
131
|
+
.actions .action {
|
|
132
|
+
margin-bottom: @mobileActionsActionMarginBottom;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
130
136
|
@media only screen and (min-width: @tabletBreakpoint) {
|
|
131
137
|
.eea.banner {
|
|
132
138
|
.gradient {
|
|
@@ -174,7 +180,6 @@
|
|
|
174
180
|
.actions {
|
|
175
181
|
flex-flow: row;
|
|
176
182
|
display: flex;
|
|
177
|
-
justify-content: space-between;
|
|
178
183
|
|
|
179
184
|
.action {
|
|
180
185
|
display: inherit;
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
|
|
39
39
|
/* Metadata */
|
|
40
40
|
@metadataTypeFontWeight : @bold;
|
|
41
|
-
@mobileMetadataFontSize : 0.
|
|
41
|
+
@mobileMetadataFontSize : 0.75rem;
|
|
42
42
|
@tabletMetadataFontSize : 0.875rem;
|
|
43
|
-
@mobileMetadataLineHeight :
|
|
43
|
+
@mobileMetadataLineHeight : 1.2;
|
|
44
44
|
@tabletMetadataLineHeight : 1rem;
|
|
45
45
|
// Metadata field
|
|
46
46
|
@metadataFieldDividerContent: ' | ';
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
@tabletActionsAlignItems : flex-end;
|
|
51
51
|
@tabletActionsFlexDirection : column;
|
|
52
52
|
// Action
|
|
53
|
+
@mobileActionsActionMarginBottom : 0.5rem;
|
|
53
54
|
@tabletActionsActionMinWidth : 95px;
|
|
54
55
|
// Button
|
|
55
56
|
@mobileBannerActionButtonFontSize : 0.75rem;
|
|
@@ -33,16 +33,25 @@
|
|
|
33
33
|
&.primary {
|
|
34
34
|
background-color: @contentBoxBackgroundColorPrimary;
|
|
35
35
|
color: @contentBoxColor;
|
|
36
|
+
.header {
|
|
37
|
+
color: @contentBoxColor !important;
|
|
38
|
+
}
|
|
36
39
|
}
|
|
37
40
|
|
|
38
41
|
&.secondary {
|
|
39
42
|
background-color: @contentBoxBackgroundColorSecondary;
|
|
40
43
|
color: @contentBoxColor;
|
|
44
|
+
.header {
|
|
45
|
+
color: @contentBoxColor !important;
|
|
46
|
+
}
|
|
41
47
|
}
|
|
42
48
|
|
|
43
49
|
&.tertiary {
|
|
44
50
|
background-color: @contentBoxBackgroundColorTertiary;
|
|
45
51
|
color: @contentBoxColor;
|
|
52
|
+
.header {
|
|
53
|
+
color: @contentBoxColor !important;
|
|
54
|
+
}
|
|
46
55
|
}
|
|
47
56
|
}
|
|
48
57
|
|
|
@@ -55,3 +64,10 @@
|
|
|
55
64
|
.content-box[class*="ary"] a {
|
|
56
65
|
color: inherit;
|
|
57
66
|
}
|
|
67
|
+
|
|
68
|
+
// set color of default cards to black when we are inside a content-box which has the ability to set
|
|
69
|
+
// color classes
|
|
70
|
+
.content-box[class*="ary"] [class="ui fluid card"] {
|
|
71
|
+
color: @grey-6;
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
/*-------------------
|
|
2
|
+
Homepage
|
|
3
|
+
--------------------*/
|
|
1
4
|
// hide stagingBanner on homepage
|
|
2
5
|
.homepage .stagingBanner {
|
|
3
6
|
display: none !important;
|
|
@@ -15,10 +18,13 @@
|
|
|
15
18
|
|
|
16
19
|
}
|
|
17
20
|
|
|
18
|
-
//
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
// use homepage text color for color of cards that are within a content-box that has a variant class
|
|
22
|
+
.homepage .content-box[class*="ary"] [class="ui fluid card"] {
|
|
23
|
+
color: @blue-grey-5;
|
|
24
|
+
}
|
|
25
|
+
// set carousel arrow to homepage color
|
|
26
|
+
.homepage .cards-carousel .ui.button.icon.slider-arrow .icon {
|
|
27
|
+
color: @blue-grey-5;
|
|
22
28
|
}
|
|
23
29
|
|
|
24
30
|
// remove text decoration on links that might be added by content-box a rule
|
|
@@ -52,3 +58,69 @@
|
|
|
52
58
|
.block .ui.basic.button.delete-button {
|
|
53
59
|
z-index: @z-index-5;
|
|
54
60
|
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
// inherit font weight of styled headers so that if we set 300 weight it's visible also on
|
|
64
|
+
// the edit page
|
|
65
|
+
#page-edit .slate .styled h1,
|
|
66
|
+
#page-edit .slate .styled h2,
|
|
67
|
+
#page-edit .slate .styled h3,
|
|
68
|
+
#page-edit .slate .styled h4,
|
|
69
|
+
#page-edit .slate .styled h5,
|
|
70
|
+
#page-edit .slate .styled h6 {
|
|
71
|
+
font-weight: inherit;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// tweak padding of workflow progress titles now that
|
|
75
|
+
// we have larger font size
|
|
76
|
+
.progress__item .progress__title {
|
|
77
|
+
padding-top: 0;
|
|
78
|
+
line-height: 25px; // center bullet of progress item
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// inherit color of description and link from homepage cards
|
|
82
|
+
.homepage .ui.items > .item > .content > .description,
|
|
83
|
+
.homepage .grid-block-teaser a {
|
|
84
|
+
color: inherit;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Tabs block border left/top
|
|
88
|
+
.tabs-block {
|
|
89
|
+
.border-left {
|
|
90
|
+
border-right: none !important;
|
|
91
|
+
border-left: 0.0625rem solid @midGray !important;
|
|
92
|
+
|
|
93
|
+
.item.active {
|
|
94
|
+
border-right: none !important;
|
|
95
|
+
border-left-style: solid !important;
|
|
96
|
+
margin: 0em 0em 0em -0.2rem !important;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.item:active {
|
|
100
|
+
border-right: none !important;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.border-top {
|
|
105
|
+
border: none !important;
|
|
106
|
+
border-top: 0.0625rem solid @midGray !important;
|
|
107
|
+
|
|
108
|
+
&::before {
|
|
109
|
+
border-top: none !important;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.item {
|
|
113
|
+
border: none !important;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.item.active {
|
|
117
|
+
border-bottom: none !important;
|
|
118
|
+
border-top-style: solid !important;
|
|
119
|
+
margin: 0em 0em 0em -0.2rem !important;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.item:active {
|
|
123
|
+
border-bottom: none !important;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -132,7 +132,6 @@
|
|
|
132
132
|
|
|
133
133
|
/* Theme sites dropdown */
|
|
134
134
|
#theme-sites.ui.dropdown .menu {
|
|
135
|
-
left: @themeSitesMenuLeft;
|
|
136
135
|
|
|
137
136
|
.wrapper {
|
|
138
137
|
width: @mobileThemeSitesMenuWidth;
|
|
@@ -303,6 +302,11 @@
|
|
|
303
302
|
z-index: 1;
|
|
304
303
|
width: 100%;
|
|
305
304
|
}
|
|
305
|
+
// reduce width of header when we have toolbar open for better placement
|
|
306
|
+
.has-toolbar.homepage .eea.header {
|
|
307
|
+
width: 96%;
|
|
308
|
+
}
|
|
309
|
+
|
|
306
310
|
/*----------------------------------------------------------------------------
|
|
307
311
|
Header Actions - Burger and Search Icons
|
|
308
312
|
----------------------------------------------------------------------------*/
|
|
@@ -470,11 +474,6 @@
|
|
|
470
474
|
margin-top: @computerDropdownMenuMarginTop;
|
|
471
475
|
}
|
|
472
476
|
|
|
473
|
-
#theme-sites.ui.dropdown .menu {
|
|
474
|
-
.wrapper {
|
|
475
|
-
width: @computerThemeSitesMenuWidth;
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
477
|
/*----------------------------------------------------------------------------
|
|
479
478
|
HEADER MAIN BAR DESKTOP
|
|
480
479
|
----------------------------------------------------------------------------*/
|
|
@@ -487,7 +486,7 @@
|
|
|
487
486
|
flex-wrap: wrap;
|
|
488
487
|
display: flex;
|
|
489
488
|
width: 88%;
|
|
490
|
-
max-height:
|
|
489
|
+
max-height: 100%;
|
|
491
490
|
justify-content: space-between;
|
|
492
491
|
margin: 0;
|
|
493
492
|
|
|
@@ -650,7 +649,19 @@
|
|
|
650
649
|
}
|
|
651
650
|
|
|
652
651
|
#main #mega-menu .ui.accordion .title:first-child {
|
|
653
|
-
display:
|
|
652
|
+
display: flex;
|
|
653
|
+
}
|
|
654
|
+
//#main #mega-menu .ui.accordion .title:first-child {
|
|
655
|
+
// display: none; // hide home link from mobile menu
|
|
656
|
+
//}
|
|
657
|
+
#main #mega-menu .mobile > .ui.accordion > .title:first-child {
|
|
658
|
+
display: none;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
@media all and (max-width: @tabletBreakpoint - 1) {
|
|
662
|
+
#theme-sites.ui.dropdown .menu {
|
|
663
|
+
left: @mobileThemeSitesMenuLeft;
|
|
664
|
+
}
|
|
654
665
|
}
|
|
655
666
|
|
|
656
667
|
@media all and (min-width: @tabletBreakpoint) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
--------------------*/
|
|
4
4
|
|
|
5
5
|
/* Heights */
|
|
6
|
-
@mobileTopSectionHeight :
|
|
6
|
+
@mobileTopSectionHeight : 22px;
|
|
7
7
|
@tabletTopSectionHeight : 30px;
|
|
8
8
|
@computerTopSectionHeight : 33px;
|
|
9
9
|
|
|
@@ -72,11 +72,10 @@
|
|
|
72
72
|
@tabletOfficialUnionMenuLeft : -54px;
|
|
73
73
|
|
|
74
74
|
// Theme Sites
|
|
75
|
-
@mobileThemeSitesMenuWidth :
|
|
76
|
-
@computerThemeSitesMenuWidth : 200px;
|
|
75
|
+
@mobileThemeSitesMenuWidth : 200px;
|
|
77
76
|
@themeSitesMenuSiteLinkColor : @blue-grey-6;
|
|
78
77
|
@themeSitesMenuSiteLinkFontWeight : @normal;
|
|
79
|
-
@
|
|
78
|
+
@mobileThemeSitesMenuLeft : 0px;
|
|
80
79
|
|
|
81
80
|
// Language
|
|
82
81
|
@tabletLanguageMenuTop : 18px;
|
|
@@ -97,7 +96,7 @@
|
|
|
97
96
|
@logoWidth : 100%;
|
|
98
97
|
@mobileLogoMaxWidth : 122px;
|
|
99
98
|
@tabletLogoMaxWidth : 252px;
|
|
100
|
-
@computerLogoMaxWidth :
|
|
99
|
+
@computerLogoMaxWidth : 347px; //348 rendered fuzzy :(
|
|
101
100
|
@mobileLogoMarginTop : @rem-space-2;
|
|
102
101
|
@tabletLogoMarginTop : @rem-space-3-5;
|
|
103
102
|
@computerLogoMarginTop : @rem-space-5;
|
|
@@ -9,9 +9,10 @@
|
|
|
9
9
|
|
|
10
10
|
.tags {
|
|
11
11
|
display: flex;
|
|
12
|
-
flex-direction:
|
|
13
|
-
align-items:
|
|
12
|
+
flex-direction: row;
|
|
13
|
+
align-items: center;
|
|
14
14
|
justify-content: right;
|
|
15
|
+
flex-wrap: wrap;
|
|
15
16
|
width: @tagsBodyWidth;
|
|
16
17
|
line-height: @tagsLineHeight;
|
|
17
18
|
|
|
@@ -23,27 +24,8 @@
|
|
|
23
24
|
font-weight: @tagsFontWeight;
|
|
24
25
|
font-size: @tagsFontSize;
|
|
25
26
|
}
|
|
26
|
-
|
|
27
|
-
.tags-content {
|
|
28
|
-
line-height: @tagsLineHeight;
|
|
29
|
-
display: inline-flex;
|
|
30
|
-
align-items: center;
|
|
31
|
-
flex-wrap: wrap;
|
|
32
|
-
flex-direction: column;
|
|
33
|
-
}
|
|
34
27
|
}
|
|
35
28
|
|
|
36
29
|
.tags.left {
|
|
37
30
|
justify-content: left;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@media only screen and (min-width: @tabletBreakpoint) {
|
|
41
|
-
.tags {
|
|
42
|
-
flex-direction: row;
|
|
43
|
-
align-items: center;
|
|
44
|
-
|
|
45
|
-
.tags-content {
|
|
46
|
-
flex-direction: inherit;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
31
|
+
}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
@googleFontRequest : '@{googleFontName}:@{googleFontSizes}&subset=@{googleSubset}';
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
@bold :
|
|
27
|
+
@bold : @font-weight-7;
|
|
28
28
|
@normal : normal;
|
|
29
29
|
|
|
30
30
|
/*-------------------
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
---------------*/
|
|
71
71
|
|
|
72
72
|
@headerLineHeight : 1.25;
|
|
73
|
-
@headerFontWeight :
|
|
73
|
+
@headerFontWeight : @font-weight-7;
|
|
74
74
|
|
|
75
75
|
@h1 : unit((48 / @fontSize), rem);
|
|
76
76
|
@h2 : unit((40 / @fontSize), rem);
|
|
@@ -176,8 +176,8 @@
|
|
|
176
176
|
@pageBackground : @white;
|
|
177
177
|
@pageOverflowX : hidden;
|
|
178
178
|
|
|
179
|
-
@lineHeight :
|
|
180
|
-
@mobileLineHeight :
|
|
179
|
+
@lineHeight : @font-lineheight-3;
|
|
180
|
+
@mobileLineHeight : @font-lineheight-3;
|
|
181
181
|
@textColor : rgba(0, 0, 0, 1);
|
|
182
182
|
|
|
183
183
|
/*-------------------
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
// Color
|
|
1
|
+
// Color
|
|
2
|
+
h1, h2, h3, h4, h5, h6, p, span, .header {
|
|
3
|
+
&.primary { color: @primaryColor !important; }
|
|
4
|
+
&.secondary { color: @secondaryColor !important; }
|
|
5
|
+
&.tertiary { color: @tertiaryColor !important; }
|
|
6
|
+
&.white { color: @white !important; }
|
|
7
|
+
}
|
|
8
|
+
|
|
2
9
|
.color-fg-primary { color: @primaryColor !important; }
|
|
3
10
|
.color-fg-secondary { color: @secondaryColor !important; }
|
|
4
11
|
.color-fg-tertiary { color: @tertiaryColor !important; }
|
|
@@ -20,18 +27,18 @@
|
|
|
20
27
|
z-index: 0;
|
|
21
28
|
}
|
|
22
29
|
|
|
23
|
-
//
|
|
30
|
+
// Flexbox
|
|
24
31
|
.d-flex { display: flex !important; }
|
|
25
32
|
.flex-items-start { align-items: flex-start !important; }
|
|
26
33
|
.flex-items-end { align-items: flex-end !important; }
|
|
27
34
|
.flex-items-center { align-items: center !important; }
|
|
28
35
|
|
|
29
|
-
// Align text
|
|
36
|
+
// Align text
|
|
30
37
|
.text-left { text-align: left !important; }
|
|
31
38
|
.text-center { text-align: center !important;}
|
|
32
39
|
.text-right { text-align: right !important; }
|
|
33
40
|
|
|
34
|
-
//Quotes
|
|
41
|
+
// Quotes
|
|
35
42
|
.quoted::before {
|
|
36
43
|
content: "\ec51";
|
|
37
44
|
font-family: 'remixicon' !important;
|
|
@@ -40,3 +47,9 @@
|
|
|
40
47
|
content: "\ec52";
|
|
41
48
|
font-family: 'remixicon' !important;
|
|
42
49
|
}
|
|
50
|
+
|
|
51
|
+
// Borders
|
|
52
|
+
.bordered {
|
|
53
|
+
border-bottom: @border-size-1 solid !important;
|
|
54
|
+
padding-bottom: @rem-space-2 !important;
|
|
55
|
+
}
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
@font-lineheight-3: 1.5;
|
|
15
15
|
@font-lineheight-4: 1.75;
|
|
16
16
|
@font-lineheight-5: 2;
|
|
17
|
-
@font-letterspacing-
|
|
18
|
-
@font-letterspacing-
|
|
19
|
-
@font-letterspacing-
|
|
20
|
-
@font-letterspacing-
|
|
21
|
-
@font-letterspacing-
|
|
22
|
-
@font-letterspacing-
|
|
23
|
-
@font-letterspacing-
|
|
24
|
-
@font-letterspacing-
|
|
17
|
+
@font-letterspacing-000: -.02em;
|
|
18
|
+
@font-letterspacing-00: -.015em;
|
|
19
|
+
@font-letterspacing-0: -.005em;
|
|
20
|
+
@font-letterspacing-1: .005em;
|
|
21
|
+
@font-letterspacing-2: .015em;
|
|
22
|
+
@font-letterspacing-3: .02em;
|
|
23
|
+
@font-letterspacing-4: .075em;
|
|
24
|
+
@font-letterspacing-5: .15em;
|
|
25
25
|
@font-size-00: .75rem;
|
|
26
26
|
@font-size-0: .875rem;
|
|
27
27
|
@font-size-1: 1rem;
|
|
@@ -36,4 +36,4 @@
|
|
|
36
36
|
@font-size-fluid-0: clamp(.75rem, 2vw, 1rem);
|
|
37
37
|
@font-size-fluid-1: clamp(1rem, 4vw, 1.5rem);
|
|
38
38
|
@font-size-fluid-2: clamp(1.5rem, 6vw, 2.5rem);
|
|
39
|
-
@font-size-fluid-3: clamp(2rem, 9vw, 3.5rem);
|
|
39
|
+
@font-size-fluid-3: clamp(2rem, 9vw, 3.5rem);
|
|
@@ -31,6 +31,12 @@
|
|
|
31
31
|
font-size: @metaFontSize;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
// add bottom margin also when meta isn't inside .content
|
|
35
|
+
//
|
|
36
|
+
.ui.cards > .card .meta, .ui.card .meta {
|
|
37
|
+
margin-bottom: @rem-space-4;
|
|
38
|
+
}
|
|
39
|
+
|
|
34
40
|
.ui.card .extra.content a {
|
|
35
41
|
font-weight: @contentLinkFontWeight;
|
|
36
42
|
|
|
@@ -7,6 +7,69 @@
|
|
|
7
7
|
margin: @imageMargin;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
+
.ui.items {
|
|
11
|
+
&:not(.unstackable) > .item.default > .content {
|
|
12
|
+
padding: @mobileDefaultItemContentPadding;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.item.default {
|
|
16
|
+
background-color: @defaultItemBackgroundColor;
|
|
17
|
+
|
|
18
|
+
.image {
|
|
19
|
+
img {
|
|
20
|
+
height: @defaultItemImageHeight;
|
|
21
|
+
border-radius: 0;
|
|
22
|
+
object-fit: cover;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.content {
|
|
27
|
+
.extra {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
margin-top: @mobileDefaultItemExtraMarginTop;
|
|
32
|
+
margin-bottom: @mobileDefaultItemExtraMarginBottom;
|
|
33
|
+
|
|
34
|
+
.meta {
|
|
35
|
+
color: @defaultItemColor;
|
|
36
|
+
font-size: @defaultItemMetaFontSize;
|
|
37
|
+
font-weight: @defaultItemMetaFontWeight;
|
|
38
|
+
opacity: @defaultItemMetaOpacity;
|
|
39
|
+
|
|
40
|
+
&.date {
|
|
41
|
+
font-size: @defaultItemDateMetaFontSize;
|
|
42
|
+
font-weight: @defaultItemDateMetaFontWeight;
|
|
43
|
+
opacity: @defaultItemDateMetaOpacity;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:after {
|
|
48
|
+
display: none;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.header {
|
|
53
|
+
margin-bottom: @mobileDefaultItemHeaderMarginBottom;
|
|
54
|
+
color: @defaultItemColor;
|
|
55
|
+
font-size: @mobileDefaultItemHeaderFontSize;
|
|
56
|
+
font-weight: @defaultItemHeaderFontWeight;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.description {
|
|
60
|
+
color: @defaultItemColor;
|
|
61
|
+
font-size: @mobileDefaultItemDescriptionFontSize;
|
|
62
|
+
font-weight: @defaultItemDescriptionFontWeight;
|
|
63
|
+
display: -webkit-box;
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
-webkit-box-orient: vertical;
|
|
66
|
+
text-overflow: ellipsis;
|
|
67
|
+
-webkit-line-clamp: @defaultItemDescriptionLineClamp;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
10
73
|
.item .tile.image,
|
|
11
74
|
.block .item .tile.image {
|
|
12
75
|
width: @tileImageWidth;
|
|
@@ -34,12 +97,49 @@
|
|
|
34
97
|
}
|
|
35
98
|
|
|
36
99
|
@media only screen and (min-width: @tabletBreakpoint) {
|
|
100
|
+
.ui.items .item.default {
|
|
101
|
+
.image {
|
|
102
|
+
width: @tabletDefaultItemWidth;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.content {
|
|
106
|
+
padding: @tabletDefaultItemContentPadding;
|
|
107
|
+
|
|
108
|
+
.extra {
|
|
109
|
+
margin-top: inherit;
|
|
110
|
+
margin-bottom: @tabletDefaultItemExtraMarginBottom;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.header {
|
|
114
|
+
margin-bottom: @tabletDefaultItemHeaderMarginBottom;
|
|
115
|
+
font-size: @tabletDefaultItemHeaderFontSize;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
37
119
|
.ui.items.row > .item {
|
|
38
120
|
margin: @tabletRowItemMargin;
|
|
39
121
|
}
|
|
40
122
|
}
|
|
41
123
|
|
|
42
124
|
@media only screen and (min-width: @computerBreakpoint) {
|
|
125
|
+
.ui.items .item.default {
|
|
126
|
+
.content {
|
|
127
|
+
padding: @computerDefaultItemContentPadding;
|
|
128
|
+
|
|
129
|
+
.extra {
|
|
130
|
+
margin-bottom: @computerDefaultItemExtraMarginBottom;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.header {
|
|
134
|
+
margin-bottom: @computerDefaultItemHeaderMarginBottom;
|
|
135
|
+
font-size: @desktopDefaultItemHeaderFontSize;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.description {
|
|
139
|
+
font-size: @desktopDefaultItemDescriptionFontSize;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
43
143
|
.ui.items.row > .item {
|
|
44
144
|
margin: @desktopRowItemMargin;
|
|
45
145
|
}
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
@tabletContentImageDistance: 2rem;
|
|
32
32
|
|
|
33
33
|
@mobileItemSpacing: 2em;
|
|
34
|
-
@mobileImageWidth:
|
|
35
|
-
@mobileImageMaxHeight:
|
|
36
|
-
@mobileContentImageDistance: 1.
|
|
34
|
+
@mobileImageWidth: 100%;
|
|
35
|
+
@mobileImageMaxHeight: 100%;
|
|
36
|
+
@mobileContentImageDistance: 1.5em;
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
/*-------------------
|
|
@@ -164,3 +164,46 @@
|
|
|
164
164
|
@tabletRowItemMargin : 1.5rem 0;
|
|
165
165
|
@desktopRowItemMargin : 2rem 0;
|
|
166
166
|
|
|
167
|
+
/*-------------------
|
|
168
|
+
Default
|
|
169
|
+
--------------------*/
|
|
170
|
+
@defaultItemImageHeight: 100%;
|
|
171
|
+
@tabletDefaultItemWidth: 35%;
|
|
172
|
+
|
|
173
|
+
@defaultItemBackgroundColor: @white;
|
|
174
|
+
@defaultItemColor: @deepBlue;
|
|
175
|
+
|
|
176
|
+
/* Extra */
|
|
177
|
+
@mobileDefaultItemExtraMarginBottom: 1.5rem;
|
|
178
|
+
@tabletDefaultItemExtraMarginBottom: 2.5rem;
|
|
179
|
+
@computerDefaultItemExtraMarginBottom: 4.5rem;
|
|
180
|
+
@mobileDefaultItemExtraMarginTop: 0;
|
|
181
|
+
|
|
182
|
+
/* Meta */
|
|
183
|
+
@defaultItemMetaFontSize: 1rem;
|
|
184
|
+
@defaultItemMetaOpacity: 1;
|
|
185
|
+
@defaultItemMetaFontWeight: 100;
|
|
186
|
+
|
|
187
|
+
@defaultItemDateMetaFontSize: 1.125rem;
|
|
188
|
+
@defaultItemDateMetaOpacity: 1;
|
|
189
|
+
@defaultItemDateMetaFontWeight: 400;
|
|
190
|
+
|
|
191
|
+
/* Header */
|
|
192
|
+
@mobileDefaultItemHeaderFontSize: 1.125rem;
|
|
193
|
+
@tabletDefaultItemHeaderFontSize: 1rem;
|
|
194
|
+
@desktopDefaultItemHeaderFontSize: 1.5rem;
|
|
195
|
+
@defaultItemHeaderFontWeight: 700;
|
|
196
|
+
@mobileDefaultItemHeaderMarginBottom: 0.375rem;
|
|
197
|
+
@tabletDefaultItemHeaderMarginBottom: 0.875rem;
|
|
198
|
+
@computerDefaultItemHeaderMarginBottom: 1.25rem;
|
|
199
|
+
|
|
200
|
+
/* Description */
|
|
201
|
+
@mobileDefaultItemDescriptionFontSize: 1rem;
|
|
202
|
+
@desktopDefaultItemDescriptionFontSize: 1.25rem;
|
|
203
|
+
@defaultItemDescriptionFontWeight: 400;
|
|
204
|
+
@defaultItemDescriptionLineClamp: 4;
|
|
205
|
+
|
|
206
|
+
/* Content */
|
|
207
|
+
@mobileDefaultItemContentPadding: 1.5em;
|
|
208
|
+
@tabletDefaultItemContentPadding: 1em;
|
|
209
|
+
@computerDefaultItemContentPadding: 1.5em;
|