Skip to content

Commit 0d09c8d

Browse files
committed
Update initial global styles
1 parent ab52039 commit 0d09c8d

File tree

5 files changed

+96
-14
lines changed

5 files changed

+96
-14
lines changed

blocks/footer/footer.css

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,30 @@
11
footer {
2-
background-color: var(--light-color);
2+
background-color: #000;
33
font-size: var(--body-font-size-xs);
4+
color: #fff;
45
}
56

67
footer .footer > div {
78
margin: auto;
89
max-width: 1200px;
9-
padding: 40px 24px 24px;
10+
padding: 24px;
1011
}
1112

1213
footer .footer p {
1314
margin: 0;
1415
}
1516

17+
footer .default-content-wrapper span.icon {
18+
width: 90px;
19+
height: auto;
20+
}
21+
22+
footer .default-content-wrapper span.icon img {
23+
filter: invert(1);
24+
}
25+
1626
@media (width >= 900px) {
1727
footer .footer > div {
18-
padding: 40px 32px 24px;
28+
padding: 32px 24px;
1929
}
20-
}
30+
}

blocks/header/header.css

Lines changed: 58 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ header nav[aria-expanded='true'] {
4747

4848
header nav p {
4949
margin: 0;
50-
line-height: 1;
50+
51+
/* line-height: 1; BOILERPLATE DOESN'T HAVE a P tag in header, */
5152
}
5253

5354
header nav a:any-link {
@@ -145,7 +146,7 @@ header .nav-brand {
145146
}
146147

147148
header nav .nav-brand img {
148-
width: 128px;
149+
width: 88px;
149150
height: auto;
150151
}
151152

@@ -220,6 +221,7 @@ header nav .nav-sections ul > li > ul > li {
220221

221222
header nav .nav-sections ul {
222223
display: flex;
224+
align-items: center;
223225
gap: 24px;
224226
margin: 0;
225227
}
@@ -243,6 +245,7 @@ header nav .nav-sections ul > li > ul > li {
243245
padding: 16px;
244246
background-color: var(--light-color);
245247
white-space: initial;
248+
z-index: 1;
246249
}
247250

248251
header nav .nav-sections .default-content-wrapper > ul > li > ul::before {
@@ -266,3 +269,56 @@ header nav .nav-sections ul > li > ul > li {
266269
header nav .nav-tools {
267270
grid-area: tools;
268271
}
272+
273+
header nav .nav-tools .button {
274+
margin: 0;
275+
border: none;
276+
padding: 0.5em;
277+
background: none;
278+
line-height: 0;
279+
}
280+
281+
/* breadcrumbs */
282+
header .breadcrumbs {
283+
display: none;
284+
margin: auto;
285+
max-width: 1248px;
286+
height: var(--breadcrumbs-height);
287+
padding: 0 24px;
288+
font-size: var(--body-font-size-xs);
289+
overflow: hidden;
290+
}
291+
292+
header .breadcrumbs ol {
293+
display: flex;
294+
flex-flow: wrap;
295+
list-style: none;
296+
padding: 0;
297+
margin-top: 0;
298+
margin-bottom: 0;
299+
gap: 1ch;
300+
}
301+
302+
/* stylelint-disable-next-line no-descending-specificity */
303+
header .breadcrumbs ol li {
304+
padding: 0;
305+
color: var(--dark-color);
306+
}
307+
308+
header .breadcrumbs ol li:not(:last-child)::after {
309+
content: '/';
310+
padding-left: 1ch;
311+
}
312+
313+
/* stylelint-disable-next-line no-descending-specificity */
314+
header .breadcrumbs ol li[aria-current] {
315+
color: var(--text-color);
316+
}
317+
318+
@media (width >= 900px) {
319+
header .breadcrumbs {
320+
display: block;
321+
max-width: 1264px;
322+
padding: 0 32px;
323+
}
324+
}

icons/logo.svg

Lines changed: 1 addition & 0 deletions
Loading

scripts/scripts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function buildAutoBlocks(main) {
6464
});
6565
}
6666

67-
buildHeroBlock(main);
67+
// buildHeroBlock(main);
6868
} catch (error) {
6969
// eslint-disable-next-line no-console
7070
console.error('Auto Blocking failed', error);

styles/styles.css

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@
3636
--heading-font-size-s: 24px;
3737
--heading-font-size-xs: 22px;
3838

39-
/* nav height */
40-
--nav-height: 64px;
39+
/* nav heights */
40+
--nav-height: 80px;
41+
--breadcrumbs-height: 34px;
42+
--header-height: var(--nav-height);
4143
}
4244

4345
/* fallback fonts */
@@ -71,21 +73,29 @@
7173
}
7274

7375
body {
74-
display: none;
76+
/* display: none; */
7577
margin: 0;
7678
background-color: var(--background-color);
7779
color: var(--text-color);
7880
font-family: var(--body-font-family);
7981
font-size: var(--body-font-size-m);
8082
line-height: 1.6;
83+
display: flex;
84+
flex-direction: column;
85+
height: 100vh;
8186
}
8287

83-
body.appear {
88+
/* body.appear {
8489
display: block;
90+
} */
91+
92+
main {
93+
flex: 1;
8594
}
8695

8796
header {
88-
height: var(--nav-height);
97+
height: var(--header-height);
98+
border-bottom: 1px solid #ccc;
8999
}
90100

91101
header .header,
@@ -98,6 +108,12 @@ footer .footer[data-block-status="loaded"] {
98108
visibility: visible;
99109
}
100110

111+
@media (width >= 900px) {
112+
body[data-breadcrumbs] {
113+
--header-height: calc(var(--nav-height) + var(--breadcrumbs-height));
114+
}
115+
}
116+
101117
h1,
102118
h2,
103119
h3,
@@ -157,7 +173,7 @@ button {
157173
a:any-link {
158174
color: var(--link-color);
159175
text-decoration: none;
160-
overflow-wrap: break-word;
176+
word-break: break-word;
161177
}
162178

163179
a:hover {
@@ -184,7 +200,6 @@ button {
184200
background-color: var(--link-color);
185201
color: var(--background-color);
186202
cursor: pointer;
187-
overflow: hidden;
188203
text-overflow: ellipsis;
189204
white-space: nowrap;
190205
}

0 commit comments

Comments
 (0)