-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
88 lines (83 loc) · 1.66 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
87
88
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Poppins&family=VT323&display=swap');
/*
============================
Variables
============================
*/
:root {
--pixel: "VT323", sans-serif;
--primary: Consolas;
--clr-grey: #989898;
--clr-grey-2: #A9A9A9;
--clr-white: #fff;
--clr-black: black;
--transition: 0.3s all linear;
--radius: 0.25rem;
}
/*
============================
Global Styles
============================
*/
*,
::before,
::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: var(--primary);
font-size: 0.875rem;
}
@media screen and (min-width: 800px){
body {
line-height: 1;
}
}
/*
============================
Random Number Generator
============================
*/
main {
min-height: 100vh;
display: grid;
place-items: center;
}
label {
text-transform: capitalize;
font-size: 1.5rem;
}
.random-num {
font-size: 6rem;
margin-top: 1rem;
margin-bottom: 1rem;
}
input {
text-align: center;
outline: none;
background: var(--clr-grey);
font-family: var(--primary);
border-radius: var(--radius);
font-size: 1.5rem;
margin-bottom: 0.5rem;
min-width: 100%;
border: 2px solid var(--clr-black);
}
.generate-btn {
text-transform: capitalize;
font-family: var(--primary);
background: var(--clr-grey);
color: var(--clr-white);
padding: 2rem 6rem;
transition: var(--transition);
display: inline-block;
font-size: 1.25rem;
cursor: pointer;
border-radius: var(--radius);
border: 2px solid var(--clr-black);
}
.generate-btn:hover {
background: #B0B0B0;
}