Skip to content

Commit 83056d0

Browse files
committed
flexbox
1 parent 15fd1d3 commit 83056d0

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

src/03 - CSS Variables/index-START-flexbox-sandbox.css

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22
--flex-direction: row;
33
--justify-content: flex-start;
44
--align-items: center;
5+
56
--flex-grow-item-1: 0;
67
--flex-grow-item-2: 0;
78
--flex-grow-item-3: 0;
89
--flex-grow-item-4: 0;
9-
--flex-grow-item-5: 0;
10+
--flex-grow-item-5: 0;
11+
1012
--flex-shrink-item-1: 1;
1113
--flex-shrink-item-2: 1;
1214
--flex-shrink-item-3: 1;
@@ -103,27 +105,27 @@ h1, h2 {
103105
}
104106

105107
.item-1 {
106-
font-size: 140%;
108+
font-size: 100%;
107109
flex-grow: var(--flex-grow-item-1);
108110
flex-shrink: var(--flex-shrink-item-1);
109111
}
110112
.item-2 {
111-
font-size: 110%;
113+
font-size: 120%;
112114
flex-grow: var(--flex-grow-item-2);
113115
flex-shrink: var(--flex-shrink-item-2);
114116
}
115117
.item-3 {
116-
font-size: 120%;
118+
font-size: 140%;
117119
flex-grow: var(--flex-grow-item-3);
118120
flex-shrink: var(--flex-shrink-item-3);
119121
}
120122
.item-4 {
121-
font-size:130%;
123+
font-size:160%;
122124
flex-grow: var(--flex-grow-item-4);
123125
flex-shrink: var(--flex-shrink-item-4);
124126
}
125127
.item-5 {
126-
font-size: 150%;
128+
font-size: 180%;
127129
flex-grow: var(--flex-grow-item-5);
128130
flex-shrink: var(--flex-shrink-item-5);
129131
}

src/03 - CSS Variables/index-START-flexbox-sandbox.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ <h2>Scoped CSS Variables and JS</h2>
221221
<div
222222
class="info"
223223
title="Click on items to increase or decrease flex-shrink;
224-
- ctrl + right click: increase
225-
- ctrl + left click: decrease">
224+
- shift + right click: increase
225+
- shift + left click: decrease">
226226
?
227227
</div>
228228
</div>

0 commit comments

Comments
 (0)