-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.css
154 lines (133 loc) Β· 2.46 KB
/
style.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/* Make styles for header so it centers the text and creates a min-height 300px background color. It should be centered horizontally and vertically */
body {
margin: 0;
/* Use font Gothic A1 */
font-family: "Gothic A1", sans-serif;
font-size: 1.2em;
line-height: 1.5;
color: hsl(0, 0%, 20%);
}
a {
color: hsl(210, 45%, 48%);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
header {
text-align: center;
min-height: 400px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
color: white;
/* Make the background into img/bg.jpeg and make it cover */
background-image: url("img/bg.png");
background-size: cover;
background-position: top right;
margin-bottom: 60px;
}
header > p {
font-size: 0.8em;
color: hsl(0, 0%, 80%);
margin: 0;
}
main {
background-color: white;
}
section {
max-width: 900px;
margin: 0 auto;
padding: 0px 20px;
}
h1 {
font-size: 2em;
margin: 0;
}
h2 {
font-size: 1.5em;
margin: 0;
color: hsl(210, 45%, 48%);
}
.speakers,
.organizers {
display: flex;
flex-wrap: wrap;
justify-content: left;
}
.speaker > img,
.Organizer > img {
width: 150px;
height: 150px;
margin-right: 20px;
/* Cover the square */
object-fit: cover;
}
.speaker,
.Organizer {
display: flex;
align-items: center;
margin-bottom: 20px;
margin-right: 20px;
width: 40%;
}
.speaker > div > h3,
.Organizer > div > h3 {
margin: 0;
}
.speaker > div > p,
.Organizer > div > p {
margin: 0;
font-size: 0.8em;
color: hsl(0, 0%, 50%);
}
table.schedule {
width: 100%;
border-collapse: collapse;
}
table.schedule td {
padding: 10px;
border: 1px solid hsl(0, 0%, 80%);
}
table.schedule td:first-child {
width: 100px;
text-align: right;
font-weight: bold;
color: hsl(0, 0%, 50%);
}
table.schedule td:nth-child(2) {
width: 70%;
text-align: left;
}
/* Style for minimum width of first column of 100px */
@media (min-width: 600px) {
table.schedule td:first-child {
width: 150px;
}
}
/* Add animation to everything of fade-in from the bottom */
.fade-in {
animation: fade-in 0.5s ease-in-out;
}
@keyframes fade-in {
0% {
opacity: 0;
transform: translateY(20px);
}
100% {
opacity: 1;
transform: translateY(0);
}
}
/* Make width of speakers and organizers full width if screen is smaller than 600px */
@media (max-width: 900px) {
.speakers,
.organizers {
width: 100%;
}
.speaker,
.Organizer {
width: 100%;
}
}