Skip to content

Commit 40e0b13

Browse files
author
ElaMoscicka
authored
added spacing
1 parent f75cf7a commit 40e0b13

1 file changed

Lines changed: 17 additions & 16 deletions

File tree

05 - Flex Panel Gallery/index-FINISHED.html

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,46 +9,47 @@
99
<style>
1010
html {
1111
box-sizing: border-box;
12-
background:#ffc600;
13-
font-family:'helvetica neue';
12+
background: #ffc600;
13+
font-family: 'helvetica neue';
1414
font-size: 20px;
1515
font-weight: 200;
1616
}
17+
1718
body {
1819
margin: 0;
1920
}
21+
2022
*, *:before, *:after {
2123
box-sizing: inherit;
2224
}
2325

2426
.panels {
25-
min-height:100vh;
27+
min-height: 100vh;
2628
overflow: hidden;
2729
display: flex;
2830
}
2931

3032
.panel {
31-
background:#6B0F9C;
32-
box-shadow:inset 0 0 0 5px rgba(255,255,255,0.1);
33-
color:white;
33+
background: #6B0F9C;
34+
box-shadow: inset 0 0 0 5px rgba(255,255,255,0.1);
35+
color: white;
3436
text-align: center;
35-
align-items:center;
37+
align-items: center;
3638
/* Safari transitionend event.propertyName === flex */
3739
/* Chrome + FF transitionend event.propertyName === flex-grow */
3840
transition:
3941
font-size 0.7s cubic-bezier(0.61,-0.19, 0.7,-0.11),
4042
flex 0.7s cubic-bezier(0.61,-0.19, 0.7,-0.11),
4143
background 0.2s;
4244
font-size: 20px;
43-
background-size:cover;
44-
background-position:center;
45+
background-size: cover;
46+
background-position: center;
4547
flex: 1;
4648
justify-content: center;
4749
display: flex;
4850
flex-direction: column;
4951
}
5052

51-
5253
.panel1 { background-image:url(https://source.unsplash.com/gYl-UtwNg_I/1500x1500); }
5354
.panel2 { background-image:url(https://source.unsplash.com/rFKUFzjPYiQ/1500x1500); }
5455
.panel3 { background-image:url(https://images.unsplash.com/photo-1465188162913-8fb5709d6d57?ixlib=rb-0.3.5&q=80&fm=jpg&crop=faces&cs=tinysrgb&w=1500&h=1500&fit=crop&s=967e8a713a4e395260793fc8c802901d); }
@@ -57,11 +58,11 @@
5758

5859
/* Flex Items */
5960
.panel > * {
60-
margin:0;
61+
margin: 0;
6162
width: 100%;
62-
transition:transform 0.5s;
63+
transition: transform 0.5s;
6364
flex: 1 0 auto;
64-
display:flex;
65+
display: flex;
6566
justify-content: center;
6667
align-items: center;
6768
}
@@ -74,18 +75,18 @@
7475
.panel p {
7576
text-transform: uppercase;
7677
font-family: 'Amatic SC', cursive;
77-
text-shadow:0 0 4px rgba(0, 0, 0, 0.72), 0 0 14px rgba(0, 0, 0, 0.45);
78+
text-shadow: 0 0 4px rgba(0, 0, 0, 0.72), 0 0 14px rgba(0, 0, 0, 0.45);
7879
font-size: 2em;
7980
}
81+
8082
.panel p:nth-child(2) {
8183
font-size: 4em;
8284
}
8385

8486
.panel.open {
8587
flex: 5;
86-
font-size:40px;
88+
font-size: 40px;
8789
}
88-
8990
</style>
9091

9192

0 commit comments

Comments
 (0)