Skip to content

Commit 8422d4a

Browse files
committed
commit css
1 parent 1d99874 commit 8422d4a

1 file changed

Lines changed: 93 additions & 0 deletions

File tree

index.html

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,97 @@ <h2>Awards</h2>
5959

6060
</main>
6161
</body>
62+
63+
<style>
64+
:root {
65+
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
66+
font-size: 16px;
67+
}
68+
69+
body {
70+
margin: 0;
71+
width: 90%;
72+
max-width: 880px;
73+
margin: 50px auto;
74+
}
75+
76+
header {
77+
display: flex;
78+
height: auto;
79+
justify-content: space-between;
80+
margin: 40px auto;
81+
}
82+
83+
header img {
84+
margin: 0;
85+
height: 200px;
86+
}
87+
88+
header p.actions {
89+
margin: 0;
90+
align-self: center;
91+
font-size: 1.5em;
92+
}
93+
94+
header p.actions button {
95+
margin-right: 10px;
96+
padding: 6px 8px;
97+
background-color: white;
98+
border-radius: 4px;
99+
border: 2px solid #3367d1;
100+
color: #3367d1;
101+
}
102+
103+
header p.actions button > a {
104+
color: #3367d1;
105+
text-decoration: none;
106+
}
107+
108+
header p.actions button:hover {
109+
background-color: #3367d1;
110+
}
111+
112+
header p.actions button:hover > a {
113+
color: white;
114+
}
115+
116+
ul.pub a {
117+
color: #3367d1;
118+
}
119+
120+
/* common overrides */
121+
h2 {
122+
margin: 30px 0 10px 0;
123+
}
124+
125+
a {
126+
color: black;
127+
text-decoration: none;
128+
font-weight: bold;
129+
}
130+
131+
a:hover {
132+
color: #3367d1;
133+
text-decoration: underline;
134+
}
135+
136+
li {
137+
margin-bottom: 10px;
138+
}
139+
140+
@media screen and (max-width: 600px) {
141+
header {
142+
flex-direction: column;
143+
height: auto;
144+
}
145+
146+
header img {
147+
height: auto;
148+
max-height: 300px;
149+
margin: 20px auto 20px 0;
150+
}
151+
}
152+
153+
154+
</style>
62155
</html>

0 commit comments

Comments
 (0)