-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathflare26-mediacontent.css
More file actions
152 lines (124 loc) · 3.29 KB
/
flare26-mediacontent.css
File metadata and controls
152 lines (124 loc) · 3.29 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
.fl-mediacontent {
align-items: center;
display: grid;
gap: var(--token-spacing-xl);
grid-template-columns: 1fr;
inline-size: 100%;
margin-inline: auto;
max-inline-size: var(--token-width-desktop-wide-banner);
position: relative;
}
.fl-mediacontent-media {
block-size: auto;
border-radius: var(--token-spacing-lg);
overflow: hidden;
}
.fl-mediacontent-content .heading,
.fl-mediacontent-content .fl-body,
.fl-mediacontent-content .fl-superheading {
text-align: start;
}
.fl-mediacontent-content .fl-heading-group {
margin-block-end: var(--token-spacing-lg);
}
.fl-mediacontent-content .fl-superheading {
color: var(--fl-theme-color-brand-text);
font-size: var(--fl-theme-label-caps-sm);
text-transform: uppercase;
}
.fl-mediacontent-tags {
display: flex;
flex-wrap: wrap;
gap: var(--token-spacing-sm);
margin-block-end: var(--token-spacing-xl);
.fl-tag {
margin: 0;
}
}
.fl-mediacontent.is-narrow .fl-video {
aspect-ratio: 11/12;
}
.fl-mediacontent.is-narrow .fl-video video {
object-fit: cover;
object-position: center;
}
@media (--viewport-md-up) {
.fl-mediacontent {
gap: var(--token-layout-md);
grid-template-columns: 1fr 1fr;
}
.fl-mediacontent-reverse {
grid-auto-flow: dense;
}
.fl-mediacontent-reverse .fl-mediacontent-media {
order: 2;
}
.fl-mediacontent-reverse .fl-mediacontent-content {
order: 1;
}
.fl-mediacontent-content {
padding: 0;
}
/* todo: This makes these components match Figma, but we should revisit container gaps. */
.fl-mediacontent + .fl-mediacontent {
padding-block-start: 16px;
}
.fl-mediacontent-content .fl-buttons {
margin-block-start: var(--token-spacing-xl);
}
.fl-mediacontent .fl-button {
inline-size: fit-content;
}
.fl-mediacontent.is-narrow {
gap: var(--token-layout-md);
grid-template-columns: minmax(0, 6fr) minmax(0, 9fr);
margin-inline: auto;
max-inline-size: var(--token-width-desktop-wide-banner);
}
.fl-mediacontent.fl-mediacontent-reverse.is-narrow {
grid-template-columns: minmax(0, 9fr) minmax(0, 6fr);
}
}
@media (--viewport-xs) {
.fl-mediacontent-content .fl-button {
inline-size: 100%;
}
.fl-mediacontent {
gap: var(--token-spacing-xl);
}
.fl-mediacontent-media {
block-size: auto;
}
}
.fl-mediacontent .fl-subtitle a {
color: inherit;
text-decoration: none;
}
.fl-mediacontent .fl-subtitle a:hover {
text-decoration: underline;
}
.fl-mediacontent .fl-subtitle a:focus {
outline: 2px solid var(--fl-theme-color-link);
outline-offset: 2px;
}
.fl-mediacontent .fl-button {
align-self: flex-start;
}
.fl-mediacontent-media img {
block-size: auto;
border-radius: var(--token-spacing-lg);
display: block;
inline-size: 100%;
margin: 0;
}
.fl-mediacontent-media iframe {
aspect-ratio: 16 / 9;
block-size: auto;
border-radius: var(--token-spacing-lg);
inline-size: 100%;
}