-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
111 lines (95 loc) · 1.94 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
/********************************************
* Styles for Rock, Paper, Scissors. *
* Author: Nikos-Nikitas *
* GitHub: https://github.com/nikosnikitas *
*********************************************/
:root {
--main: #222222;
--secondary: #887676;
--other: #045757;
--font: serif;
--white: #f6f6f6;
}
* {
font-family: var(--font);
margin: 0;
padding: 0;
box-sizing: content-box;
}
a {
color: var(--secondary);
text-decoration: none;
}
a:hover {color: var(--white);}
a:hover::after {
content: ' <<< Visit for more!';
color: var(--secondary);
font-size: smaller;
font-weight: normal;
}
body {
background-color: var(--main);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
height: 100%;
}
.container {
font-size: x-large;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: var(--main);
color: var(--other);
border: 1px solid var(--main);
border-radius: 25px;
width: 80%;
margin-top: 8%;
}
button {
opacity: 60%;
background-color: var(--main);
color: var(--other);
border: 3px solid var(--other);
border-radius: 25px;
margin: 24px;
padding: 4px;
width: 250px;
height: 50px;
font-family: sans-serif;
font-size: inherit;
font-weight: bold;
cursor: pointer;
}
button:hover::before {
content: '< ';
color: var(--other);
}
button:not(#start):hover::after {
content: ' >';
color: var(--other);
}
#start:hover::after {
content: '! >';
color: var(--other);
}
button:hover, button:focus {
opacity: 100%;
animation-name: show;
animation-duration: 0.4s;
animation-fill-mode: forwards;
}
p {
color: var(--secondary);
font-size: larger;
}
@keyframes show {
from {
padding: 4px;
}
to {
padding: 8px;
}
}