-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
86 lines (74 loc) · 1.25 KB
/
styles.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
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap");
:root {
--white: #fff;
--black: #1c2b2d;
--blue: #31326f;
--light-blue: #005490;
--color-primary: #9d0191;
--color-sec: #db6400;
--grey: #eee;
--dark-grey: #222831;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 10px;
}
body {
font-family: "Open Sans", sans-serif;
}
p {
font-size: 1.6rem;
line-height: 1.5;
}
img {
width: 100%;
}
.container {
max-width: 900px;
margin: 0 auto;
padding: 0 20px;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.counter-div {
width: 40rem;
border: 1px solid var(--grey);
padding: 1rem;
background-color: var(--light-blue);
color: var(--white);
text-align: center;
border-radius: 5px;
}
.counter-div > * {
margin-bottom: 2rem;
}
.count {
font-size: 4rem;
}
.buttons button {
padding: 1rem;
margin: 0 1rem;
font-size: 1.5rem;
color: var(--white);
font-weight: 700;
border: none;
outline: none;
border-radius: 3px;
cursor: pointer;
}
button.subtract {
background-color: orangered;
}
button.reset {
background-color: var(--white);
color: var(--black);
}
button.add {
background-color: green;
}