Skip to content

Commit 5d02553

Browse files
Merge pull request #55 from mcclatchy/z-index-layers
Z index layers + Story body link underline fix
2 parents 175665d + a43cce9 commit 5d02553

File tree

4 files changed

+60
-2
lines changed

4 files changed

+60
-2
lines changed

dist/saratoga.css

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@
5656
/* Link properties */
5757
--link-color: var(--blue);
5858
--link-decoration: none;
59+
/* Z-index */
60+
--z-content: 1;
61+
--z-advertising: 2;
62+
--z-overlay: 3;
5963
/* Paper properties */
6064
--paper-color: var(--white);
6165
--paper-shadow: none;
@@ -149,6 +153,7 @@ li {
149153

150154
.kicker {
151155
color: var(--secondary-text-color);
156+
--link-color: var(--secondary-text-color);
152157
font: 0.667rem/1em var(--sans);
153158
font-weight: bold;
154159
text-transform: uppercase;
@@ -1645,7 +1650,6 @@ html.msb .masthead {
16451650
background-color: var(--story-background-color, var(--paper-color));
16461651
--header-family: var(--story-subhead-family, var(--sans));
16471652
--header-transform: var(--story-subhead-transform, inherit);
1648-
--link-hover-decoration: underline;
16491653
}
16501654

16511655
.story-body > * {
@@ -1671,6 +1675,12 @@ html.msb .masthead {
16711675
line-height: 1.66em;
16721676
}
16731677

1678+
.story-body p,
1679+
.story-body ol,
1680+
.story-body ul {
1681+
--link-hover-decoration: underline;
1682+
}
1683+
16741684
/**
16751685
* Embeds
16761686
*/
@@ -3266,6 +3276,24 @@ section.big-news {
32663276
display: none;
32673277
}
32683278

3279+
/*
3280+
* Z-index
3281+
*/
3282+
.z-content {
3283+
position: relative;
3284+
z-index: var(--z-content, 1);
3285+
}
3286+
3287+
.z-advertising {
3288+
position: relative;
3289+
z-index: var(--z-advertising, 2);
3290+
}
3291+
3292+
.z-overlay {
3293+
position: relative;
3294+
z-index: var(--z-overlay, 3);
3295+
}
3296+
32693297
/**
32703298
* Promo banner beneath nav for default rules and
32713299
* demo purposes only. Banner is styled by Performance

static/css/atoms.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@
6565
--link-color: var(--blue);
6666
--link-decoration: none;
6767

68+
/* Z-index */
69+
--z-content: 1;
70+
--z-advertising: 2;
71+
--z-overlay: 3;
72+
6873
/* Paper properties */
6974
--paper-color: var(--white);
7075
--paper-shadow: none;
@@ -161,6 +166,7 @@ li {
161166

162167
.kicker {
163168
color: var(--secondary-text-color);
169+
--link-color: var(--secondary-text-color);
164170
font: 0.667rem/1em var(--sans);
165171
font-weight: bold;
166172
text-transform: uppercase;

static/css/cards/story.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
background-color: var(--story-background-color, var(--paper-color));
1010
--header-family: var(--story-subhead-family, var(--sans));
1111
--header-transform: var(--story-subhead-transform, inherit);
12-
--link-hover-decoration: underline;
1312
}
1413

1514
.story-body > * {
@@ -36,6 +35,12 @@
3635
line-height: 1.66em;
3736
}
3837

38+
.story-body p,
39+
.story-body ol,
40+
.story-body ul {
41+
--link-hover-decoration: underline;
42+
}
43+
3944
/**
4045
* Embeds
4146
*/

static/css/cards/utilities.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,22 @@
144144
.grid > .zone-el.hidden {
145145
display: none;
146146
}
147+
148+
/*
149+
* Z-index
150+
*/
151+
152+
.z-content {
153+
position: relative;
154+
z-index: var(--z-content, 1);
155+
}
156+
157+
.z-advertising {
158+
position: relative;
159+
z-index: var(--z-advertising, 2);
160+
}
161+
162+
.z-overlay {
163+
position: relative;
164+
z-index: var(--z-overlay, 3);
165+
}

0 commit comments

Comments
 (0)