-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
159 lines (142 loc) · 2.38 KB
/
style.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
/* STYLE GUIDE */
/* Featured Inputs Extra */
#responseInput button::after {
content: 'Submit';
}
#playerInput button::after {
content: 'Add';
}
/* Footer Extra */
/*Keep at bottom*/
body {
display: flex;
flex-direction: column;
}
footer {
margin-top: auto;
}
/* Modal Extra */
.modal {
height: fit-content;
}
/* STYLES */
/* playerOperator */
#playerOperator {
padding: 1rem;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
/* Main */
main {
margin: auto;
padding: 1rem;
display: none;
flex-direction: column;
align-items: center;
gap: 1.5rem;
width: 100%;
max-width: 75ch;
box-sizing: border-box;
}
#responses,
#players {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
width: 100%;
}
h3,
h4 {
margin: 0;
}
/* Displays */
#responseDisplay,
#playerDisplay {
display: flex;
gap: 0.5rem;
width: 100%;
}
#responseDisplay {
flex-direction: column;
}
#playerDisplay {
flex-wrap: wrap;
}
/* Responses and players */
.response {
background-color: var(--dark1);
border-radius: 0.5rem;
padding: 0.5rem 1rem 0.5rem 1rem;
}
.player {
flex: 1;
background-color: var(--dark1);
border-radius: 0.5rem;
padding: 0.5rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
align-items: center;
}
.response:hover,
.response:focus-visible,
.player:hover,
.player:focus-visible {
background-color: var(--dark2);
}
p {
margin: 0;
overflow-wrap: break-word;
}
.player div {
display: flex;
gap: 0.25rem;
}
.restrictOptions .player div {
display: none;
}
.player button {
padding: 0.2rem 0.5rem 0.15rem 0.5rem;
background-color: var(--dark2);
}
.player:has(button:hover),
.player:has(button:focus-visible) {
background-color: var(--dark1);
}
.player:hover button,
.player:focus-visible button,
.player button:hover,
.player button:focus-visible {
background-color: var(--dark3);
}
.player:has(button:hover) button:not(:hover),
.player:has(button:focus-visible) button:not(:focus-visible) {
background-color: var(--dark2);
}
/* Inputs */
form,
.options {
margin: 0;
width: 100%;
display: flex;
gap: 0.5rem;
justify-content: center;
flex-wrap: wrap;
}
.restrictOptions .options {
display: none;
}
form input[type='text'] {
flex: 1;
}
.response.clicked,
.player.clicked {
opacity: 0.25;
}
.restrictOptions #playerInput {
display: none;
}