-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathstyle.css
135 lines (122 loc) · 1.96 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
/* Main Stylesheet */
html, body {
margin: 0;
padding: 0;
font-family: -apple-system, "Segoe UI", "Ubuntu", "Helevetica Neue", sans-serif;
min-height: 100vh;
}
* {
box-sizing: border-box;
}
body {
border: 1em solid #FCC062;
}
hr {
max-width: 400px;
margin-left: auto;
margin-right: auto;
}
a {
font-family: Georgia;
font-style: italic;
text-decoration: none;
}
/* Hero section */
section.hero {
padding: 2em 1em;
}
section.hero img {
display: block;
width: 80%;
max-width: 280px;
margin-left: auto;
margin-right: auto;
}
section.hero h1, section.hero h2 {
text-align: center;
font-style: italic;
}
section.hero h1 {
font-size: 2.5em;
margin-bottom: 0.3em;
}
section.hero h2 {
margin-top: 0.3em;
margin-bottom: 0;
}
/* Menu section */
section.menu {
max-width: 600px;
margin-left: auto;
margin-right: auto;
padding-bottom: 3em;
}
section.menu h1 {
text-align: center;
font-size: 2.5em;
}
section.menu .menu-item {
display: flex;
align-items: center;
padding: 0.5em;
margin-bottom: 1em;
border: 1px solid #E6E6E6;
}
section.menu .menu-item:last-child {
margin-bottom: 0;
}
section.menu .menu-item img {
display: block;
padding: 0.5em;
width: 150px;
height: 150px;
}
section.menu .menu-item .details {
flex: 1;
padding: 0.5em;
}
section.menu .menu-item *:first-child {
margin-top: 0;
}
section.menu .menu-item *:last-child {
margin-bottom: 0;
}
section.menu .menu-item .details h2 {
margin-bottom: 0;
}
/* Footer */
footer {
padding: 4em 1em;
background-color: #323232;
color: #FFF;
text-align: center;
}
footer *:first-child {
margin-top: 0;
}
footer *:last-child {
margin-bottom: 0;
}
footer a {
color: #FFF;
}
footer p.github {
color: #FCC062;
font-weight: bold;
}
footer p.github a {
color: #FCC062;
}
/* Responsiveness */
@media screen and (max-width: 660px) {
section.menu {
padding-left: 1em;
padding-right: 1em;
}
section.menu .menu-item {
flex-direction: column;
}
section.menu .menu-item .details {
width: 100%;
}
}