<header class="c-banner" id="top">
<a class="c-banner__skip" href="#main">Skip to content</a>
<p class="c-banner__title">
<a class="c-banner__home" href="/pages/" rel="home">24 ways <span>to impress your friends</span></a>
</p>
</header>
<header class="c-banner" id="top">
<a class="c-banner__skip" href="#main">Skip to content</a>
<p class="c-banner__title">
<a class="c-banner__home" href="/pages/" rel="home">24 ways <span>to impress your friends</span></a>
</p>
</header>
{
"site": {
"title": "24 ways",
"handle": "24ways",
"description": "24 ways is the advent calendar for web geeks. Each day throughout December we publish a daily dose of web design and development goodness to bring you all a little Christmas cheer.",
"url": "https://24ways.org",
"feed": "https://feeds.feedburner.com/24ways",
"theme_color": "#f04"
},
"theme": {
"year": [
348,
344,
340,
336,
332,
328,
324,
320,
316,
312,
308,
304,
300,
296,
292,
288
],
"day": [
360,
353,
346,
339,
332,
325,
318,
311,
304,
297,
290,
283,
276,
269,
262,
255,
248,
241,
234,
227,
220,
213,
206,
199
]
}
}
.c-banner {
background-color: $color-year--dark;
background-color: var(--color-year--dark, $color-year--dark);
.has-js & {
@media (--from-medium-screen) {
margin-right: $navigation-width--large;
}
}
@media (-ms-high-contrast: active) {
border-bottom: 1px solid;
}
}
.c-banner__title {
padding: map(spaces, medium) map(spaces, large);
font-size: 1.25em;
line-height: calc(16 / 20);
.has-js & {
@media (--upto-medium-screen) {
position: fixed;
top: 0;
right: 0;
left: 0;
z-index: calc(map(layers, modal) + 1);
margin-right: map(sizes, large);
}
}
@media (--from-medium-screen) {
padding: map(spaces, large);
font-size: 1.5em;
line-height: calc(24 / 24);
}
@media (--from-large-screen) {
padding-left: 25%;
}
}
.c-banner__home {
text-transform: uppercase;
color: white;
&:hover {
color: white;
}
span {
font-size: 0.6667em;
text-transform: lowercase;
white-space: nowrap;
color: map(colors, primary, light);
@media (--upto-xsmall-screen) {
@apply --hidden;
}
}
}
.c-banner__skip {
@apply --typeset-ui;
position: fixed;
top: 0;
left: map(spaces, medium);
z-index: map(layers, overlay);
display: block;
background-color: $navigation-color;
box-shadow: 0 8px 8px 0 $navigation-color--shadow;
padding: map(spaces, xlarge) map(spaces, small) map(spaces, xsmall);
color: $navigation-color--text;
transform: translateY(0);
&:hover {
color: $color-ui-link--hover;
}
&:active {
color: $color-ui-link--active;
}
&:not(:focus) {
@apply --hidden;
transform: translateY(-100%);
transition: transform 0.5s ease-out;
}
}
There are no notes for this item.