Skip to content

Commit aea3200

Browse files
committed
rework and restyle flex and grid chapters
1 parent feb7f0c commit aea3200

File tree

6 files changed

+311
-257
lines changed

6 files changed

+311
-257
lines changed

chapters/chapter3.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
.flex-example-parent-horizontal {
22
display: flex;
33
width: 100%;
4+
padding: .5rem;
5+
gap: .5rem;
6+
border: 2px solid var(--zuehlke-gray);
47
background-color: var(--zuehlke-bright-gray);
8+
font-size: .75em;
59
}
610

711
.flex-example-parent-horizontal-medium {
8-
height: 100px;
12+
height: 120px;
913
}
1014

1115
.flex-example-parent-horizontal > div {
1216
background-color: var(--zuehlke-bright-blue);
13-
border: 4px solid var(--zuehlke-purple);
17+
border: 2px solid var(--zuehlke-blue);
1418
padding: 0.5rem;
1519
}
1620

chapters/chapter4.css

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.grid-example {
2+
display: grid;
3+
padding: .5rem;
4+
grid-gap: .5rem;
5+
border: 2px solid var(--zuehlke-gray);
6+
background-color: var(--zuehlke-bright-gray);
7+
font-size: .75em;
8+
}
9+
10+
.grid-example > div {
11+
background-color: var(--zuehlke-bright-blue);
12+
border: 2px solid var(--zuehlke-blue);
13+
padding: 0.5rem;
14+
}
15+
16+
.grid-example .fragment {
17+
display: none;
18+
19+
&.visible {
20+
display: inherit;
21+
}
22+
}

0 commit comments

Comments
 (0)