Skip to content

Commit 5478223

Browse files
Merge pull request #42 from mcclatchy/2.8.2
2.8.2
2 parents 2b860d0 + b801f5b commit 5478223

File tree

3 files changed

+33
-11
lines changed

3 files changed

+33
-11
lines changed

static/css/cards/breaking-news-banner.css

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88
background-color: var(--red);
99
color: var(--white);
1010
max-width: 100%;
11+
height: 41px;
1112
}
1213

1314
.breaking-news-macro {
1415
display: flex;
15-
justify-content: space-between;
1616
flex-direction: row;
17+
justify-content: space-between;
18+
max-width: var(--section-width);
19+
margin: 0 auto;
20+
padding: 10px;
1721
font-family: var(--sans);
18-
font-size: 20px;
1922
line-height: 1;
20-
max-width: var(--section-width);
21-
padding: 15px;
22-
margin:0 auto;
2323
}
2424

2525
.breaking-news-macro h3 {
@@ -34,6 +34,7 @@
3434
padding-left: 20px;
3535
opacity: 1;
3636
transition: all .6s ease;
37+
min-width: 10px;
3738
}
3839

3940
.breaking-news-macro .icon-wrap {
@@ -42,4 +43,22 @@
4243

4344
.breaking-news-macro .icon-wrap .close-breaking-news::before {
4445
content: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="8" height="9" viewBox="0 0 8 9" fill="none"%3E%3Cpath d="M7.59049 1.05497C7.81823 0.781777 7.78195 0.376006 7.50786 0.149016C7.23376 -0.0779743 6.82664 -0.0418166 6.5989 0.231375L3.87 3.49562L1.1411 0.231375C0.91336 -0.0418166 0.506242 -0.0779743 0.232143 0.149016C-0.0419554 0.376006 -0.0782332 0.781777 0.149511 1.05497L3.02956 4.5L0.149511 7.94503C-0.0782332 8.21822 -0.0419554 8.62399 0.232143 8.85098C0.506242 9.07797 0.91336 9.04182 1.1411 8.76862L3.87 5.50438L6.5989 8.76862C6.82664 9.04182 7.23376 9.07797 7.50786 8.85098C7.78195 8.62399 7.81823 8.21822 7.59049 7.94503L4.71044 4.5L7.59049 1.05497Z" fill="white"/%3E%3C/svg%3E');
46+
}
47+
48+
/*
49+
* Mobile CLS fix
50+
*/
51+
@media (max-width: 767px) {
52+
.breaking-news-organism {
53+
height: 62px;
54+
overflow: hidden;
55+
}
56+
57+
.breaking-news-macro > div {
58+
overflow: hidden;
59+
display: -webkit-box;
60+
-webkit-line-clamp: 2;
61+
line-clamp: 2;
62+
-webkit-box-orient: vertical;
63+
}
4564
}

static/css/cards/zones.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@
9999

100100
#zone-el-2.sticky-leaderboard {
101101
position: fixed;
102-
top: 90px;
103102
z-index: 98;
104103
width: 100vw;
105104
height: 106px;
@@ -115,8 +114,4 @@
115114
#zone-el-2.sticky-leaderboard {
116115
height: 66px;
117116
}
118-
119-
#zone-el-2.sticky-leaderboard {
120-
top: 45px;
121-
}
122117
}

static/css/decks/fixes.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ custom-digest {
129129
}
130130

131131
/*
132-
* Viafoura
132+
* Viafoura - comments vendor
133133
*/
134134

135135
.viafoura {
@@ -163,6 +163,14 @@ custom-digest {
163163
padding: 5px 10px;
164164
}
165165

166+
.viafoura span.vf-follow-button__visible-text[data-v-25cf7183] {
167+
position: relative;
168+
}
169+
170+
.viafoura .vf-follow-button__hidden-text[data-v-25cf7183] {
171+
display: none;
172+
}
173+
166174
.viafoura #commentingIntro,
167175
.viafoura .v3-comments__post-form {
168176
border-top: 1px solid #ECEEF2;

0 commit comments

Comments
 (0)