Skip to content

Commit 73db73f

Browse files
introduce new molecules concepts of item, collection, and container; beginning of file restructure; update footer DOM and design
1 parent 9fd4e97 commit 73db73f

File tree

10 files changed

+239
-174
lines changed

10 files changed

+239
-174
lines changed

layouts/_default/baseof.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,15 @@
3030
<!-- base cards -->
3131
<link rel="stylesheet" href="/css/cards/flag.css">
3232
<link rel="stylesheet" href="/css/cards/menu.css">
33-
<link rel="stylesheet" href="/css/cards/footer.css">
33+
<link rel="stylesheet" href="/css/template/footer.css">
3434
<link rel="stylesheet" href="/css/cards/grid.css">
3535
<link rel="stylesheet" href="/css/cards/story.css">
3636

37+
<!-- molecules -->
38+
<link rel="stylesheet" href="/css/molecules/items.css">
39+
<link rel="stylesheet" href="/css/molecules/collections.css">
40+
<link rel="stylesheet" href="/css/molecules/containers.css">
41+
3742
<!-- cards -->
3843
<link rel="stylesheet" href="/css/cards/premium-topper.css">
3944
<link rel="stylesheet" href="/css/cards/flex-columns.css">

layouts/partials/footer.html

Lines changed: 105 additions & 65 deletions
Large diffs are not rendered by default.

layouts/shortcodes/header.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ <h1 class="h1">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce te
88
<span class="credit">Sample Newspaper</span>
99
</div>
1010
<div class="article-details">
11-
<time datetime="">Updated August 13, 2018 3:19 PM</time>
12-
<!--comments DOM added for demo purposes only -->
13-
<span class="comments">
11+
<time datetime="">Updated August 13, 2018 3:19 PM</time>
12+
<span class="comments"> <!--comments DOM added for demo purposes only -->
1413
<svg viewBox="0 0 512 512" aria-hidden="true"><path d="M160 368c26.5 0 48 21.5 48 48l0 16 72.5-54.4c8.3-6.2 18.4-9.6 28.8-9.6L448 368c8.8 0 16-7.2 16-16l0-288c0-8.8-7.2-16-16-16L64 48c-8.8 0-16 7.2-16 16l0 288c0 8.8 7.2 16 16 16l96 0zm48 124l-.2 .2-5.1 3.8-17.1 12.8c-4.8 3.6-11.3 4.2-16.8 1.5s-8.8-8.2-8.8-14.3l0-21.3 0-6.4 0-.3 0-4 0-48-48 0-48 0c-35.3 0-64-28.7-64-64L0 64C0 28.7 28.7 0 64 0L448 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64l-138.7 0L208 492z"></path></svg>
1514
<span class="vf-comments-count vf-body-text--deprecated viafoura vf-is-logged-in" style="min-height: 0px;">35</span>
1615
</span>

static/css/atoms.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@
2222

2323
--grid-row-gap: var(--space);
2424
--grid-column-gap: var(--space);
25+
--container-gap: calc(var(--space)*2);
2526
--page-padding: var(--space);
27+
--content-width: 1360px;
2628
--section-width: 1140px;
2729
--story-width: 728px;
2830
--menu-width: 390px;

static/css/cards/footer.css

Lines changed: 0 additions & 105 deletions
This file was deleted.

static/css/molecules.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ section, .section {
246246

247247
.social-media {
248248
place-content: center;
249+
justify-content: flex-start;
249250
display: flex;
250251
align-items: center;
251252
gap: var(--social-media-gap, var(--space-sm));
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/**
2+
* Collections - multiple items
3+
*/
4+
5+
.collection {
6+
display: grid;
7+
align-content: start;
8+
gap: var(--space);
9+
}
10+
11+
.collection > * {
12+
margin: 0;
13+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Containers - multiple collections
3+
*/
4+
5+
.container {
6+
display: grid;
7+
justify-content: start;
8+
grid-template-columns: 1fr;
9+
gap: var(--container-gap, var(--grid-row-gap) var(--grid-column-gap));
10+
grid-auto-flow: var(--grid-flow, dense);
11+
align-items: var(--container-align, start);
12+
padding: var(--container-padding, 0);
13+
background-color: var(--container-background-color, transparent);
14+
color: var(--container-text-color, var(--text-color));
15+
--link-color: var(--text-color);
16+
}
17+
18+
@media (min-width: 767px) {
19+
.container {
20+
grid-template-columns: repeat(2, 1fr);
21+
}
22+
}
23+
24+
@media (min-width: 1040px) {
25+
.container {
26+
grid-template-columns: repeat(4, 1fr);
27+
}
28+
}
29+
30+
.container > * {
31+
margin: 0;
32+
}

static/css/molecules/items.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* Items - multiple elements */
2+
3+
.item {
4+
display: grid;
5+
gap: var(--item-gap, calc(var(--space-sm)/2));
6+
align-content: start;
7+
line-height: 1em;
8+
--header-transform: none;
9+
--link-color: var(--text-color);
10+
--link-decoration: none;
11+
--link-hover-decoration: underline;
12+
}
13+
14+
.item > * {
15+
margin: 0;
16+
}

static/css/template/footer.css

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/**
2+
* Footer
3+
*
4+
*/
5+
6+
.footer {
7+
display: grid;
8+
grid-template-columns: 1fr minmax(auto, var(--section-width)) 1fr;
9+
gap: calc(var(--space)*2) 0;
10+
font: 16px var(--sans);
11+
padding: var(--space) var(--page-padding);
12+
background-color: var(--footer-background-color, var(--background-color));
13+
}
14+
15+
.footer > * {
16+
grid-column: 2;
17+
max-width: 100%;
18+
margin: 0;
19+
padding: 0;
20+
}
21+
22+
.footer-logo {
23+
height: 20px;
24+
}
25+
26+
.footer .container .item {
27+
gap: var(--space-sm);
28+
}
29+
30+
.footer a {
31+
display: flex;
32+
gap: var(--space-sm);
33+
--link-color: var(--text-color);
34+
}
35+
36+
.footer svg {
37+
height: 20px;
38+
--fill-color: var(--text-color);
39+
}
40+
41+
.footer .h3 {
42+
text-transform: uppercase;
43+
}
44+
45+
.footer .social-media svg {
46+
width: 15px;
47+
height: 15px;
48+
}
49+
50+
.item.bottom-nav {
51+
gap: var(--space);
52+
font-size: 0.75em;
53+
}
54+
55+
@media (min-width: 600px) {
56+
.item.bottom-nav {
57+
grid-auto-flow: column;
58+
justify-content: center;
59+
margin: 0 auto;
60+
gap: calc(var(--space)*2);
61+
}
62+
}

0 commit comments

Comments
 (0)