Skip to content

Commit c279f9a

Browse files
committed
Style buttons
1 parent ee901fa commit c279f9a

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

css/style.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@ nav ul {
1717
padding: 0;
1818
}
1919

20+
.img-button {
21+
background: none;
22+
border: solid 3px white;
23+
border-radius: 10%;
24+
cursor: pointer;
25+
padding: 8px;
26+
margin: 10px;
27+
display: inline-flex;
28+
align-items: center;
29+
justify-content: center;
30+
}
31+
32+
.img-button svg {
33+
color: white;
34+
width: 48px;
35+
height: 48px;
36+
}
37+
2038
main {
2139
height: 100%;
2240
display: flex;

index.html

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,13 @@
1414
<body>
1515
<nav>
1616
<ul>
17-
<li><button id="leaderboard-button">Leadboard</button></li>
17+
<li>
18+
<button id="leaderboard-button" class="img-button">
19+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor">
20+
<path d="M22,7H16.333V4a1,1,0,0,0-1-1H8.667a1,1,0,0,0-1,1v7H2a1,1,0,0,0-1,1v8a1,1,0,0,0,1,1H22a1,1,0,0,0,1-1V8A1,1,0,0,0,22,7ZM7.667,19H3V13H7.667Zm6.666,0H9.667V5h4.666ZM21,19H16.333V9H21Z"/>
21+
</svg>
22+
</button>
23+
</li>
1824
</ul>
1925
</nav>
2026

@@ -41,7 +47,14 @@
4147
</main>
4248

4349
<div>
44-
<button id="reset-button">Reset</button>
50+
<button id="reset-button" class="img-button">
51+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 1200" fill="currentColor">
52+
<path d="M600,0C268.629,0,0,268.629,0,600s268.629,600,600,600
53+
c222.411,0,416.39-121.104,520.02-300.879L908.79,777.612C847.217,884.405,732.127,956.47,600,956.47
54+
c-196.873,0-356.47-159.597-356.47-356.47S403.127,243.53,600,243.53c84.387,0,161.732,29.521,222.729,78.589L665.186,434.18
55+
L1200,612.524V53.613l-174.17,123.926C917.124,67.952,766.553,0,600,0z"/>
56+
</svg>
57+
</button>
4558
</div>
4659

4760
<article id="leaderboard" style="display: none;">

0 commit comments

Comments
 (0)