Skip to content

Commit 4de9783

Browse files
author
Hugues Signamarcheix
committed
change button style
1 parent 15c786d commit 4de9783

File tree

4 files changed

+79
-14
lines changed

4 files changed

+79
-14
lines changed

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
</head>
99
<body>
1010
<h1>Javascript workers in action</h1>
11+
<p>Click on the pokeball and see which Pokemon you catched !</p>
1112
<div class="container">
12-
<button id="refresh" class="btn">Générer un Pokémon</button>
13+
<button id="refresh" class="btn"><span></span></button>
1314
<div id="text-placeholder" class="is-empty">
1415
<img class="sprite" src="">
1516
<div>Name : <span class="name"></span></div>

scss/pages/index.scss

Lines changed: 39 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,52 @@
1-
h1 { font-family: sans-serif; }
1+
h1,p {
2+
font-family: sans-serif;
3+
text-align: center;
4+
}
25

36
.container {
47
position: relative;
58
display: flex;
69
flex-direction: column;
710
align-items: center;
811
#refresh {
9-
width: 30%;
10-
padding: 10px;
11-
background-color: #268fc3;
12-
color: white;
12+
position: relative;
13+
padding: 20px;
14+
background-color: red;
15+
color: black;
1316
font-size: 16px;
14-
border-radius: 5px;
17+
border-radius: 50px;
18+
border: 2px solid black;
1519
outline: none;
1620
margin-bottom: 20px;
21+
&::before {
22+
content: '';
23+
position: absolute;
24+
bottom: 0;
25+
left: 0;
26+
background-color: white;
27+
border-bottom-left-radius: 50px;
28+
border-bottom-right-radius: 50px;
29+
height: 50%;
30+
width: 100%;
31+
}
32+
&::after {
33+
content: '';
34+
position: absolute;
35+
top: 50%;
36+
left: 50%;
37+
transform: translate(-50%,-50%);
38+
width: 7px;
39+
height: 7px;
40+
border: 2px solid black;
41+
border-radius: 50%;
42+
}
43+
span {
44+
position: absolute;
45+
top: 50%;
46+
left: 50%;
47+
transform: translate(-50%,-50%);
48+
font-weight: bold;
49+
}
1750
}
1851
#text-placeholder {
1952
display: flex;

style.css

Lines changed: 37 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

style.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)