-
-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathteaser.scss
More file actions
121 lines (100 loc) · 2.12 KB
/
teaser.scss
File metadata and controls
121 lines (100 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
.m-teaser {
display: flex;
text-decoration: none;
}
.m-teaser__wrapper {
text-decoration: none;
background-color: var(--bg-default);
box-shadow: var(--box-shadow);
border-radius: var(--border-radius-l);
display: flex;
flex-direction: column;
outline: var(--border);
&:hover,
&:focus {
background: rgba($link-hovered, 0.15);
.m-teaser__headline {
text-decoration: underline;
}
}
@include focus-indicator(0.3rem);
.material-symbols-rounded::before {
font-size: 2.4rem;
margin-top: 1rem;
}
@media print {
box-shadow: none;
border: 1px solid black;
}
}
.m-teaser--listview {
margin-bottom: 2.4rem;
.m-teaser__wrapper {
display: grid;
grid-template-columns: 1fr 2fr;
@media (max-width: #{$breakpoint-md}) {
display: flex;
flex-direction: column;
}
.m-teaser__image figure {
border-radius: var(--border-radius-l) 0 0 var(--border-radius-l);
@media (max-width: #{$breakpoint-md}) {
border-radius: var(--border-radius-l) var(--border-radius-l) 0 0;
width: 100%;
}
}
}
}
.m-teaser--shortcut-tile {
flex-basis: calc(50% - 0.5rem);
.m-teaser__wrapper {
width: 100%;
height: 10rem;
padding: 1.4rem;
justify-content: space-between;
}
a {
h2 {
overflow-wrap: normal;
word-break: normal;
white-space: normal;
hyphens: manual;
margin-bottom: 0;
font-size: 2rem;
}
transition:
background 0.2s,
color 0.2s;
}
}
.m-teaser__image figure {
border-radius: var(--border-radius-l) var(--border-radius-l) 0 0;
object-fit: cover;
height: 100%;
}
.m-teaser__dateline {
font-size: 1.4rem;
color: var(--link-special);
}
.m-teaser__headline {
margin-bottom: 0.5rem;
}
.m-teaser__content {
padding: 1.4rem;
display: flex;
flex-direction: column;
justify-content: space-between;
> .material-symbols-rounded {
@media print {
display: none;
}
}
}
.m-teaser__text {
line-clamp: 3;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
color: var(--link-special);
}