-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
149 lines (119 loc) · 2.39 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
.title {
text-align: center;
padding: 2rem 0rem;
}
.main-content {
text-align: center;
}
#login-bar {
display: flex;
justify-content: center;
margin: 1rem 0rem;
}
#login-bar button {
margin: 0rem 1rem;
}
.footer {
text-align: center;
margin: 2rem 0rem;
}
#rules-btn {
margin: 0rem 1rem;
}
.main-content form{
margin: 1rem 0rem;
}
#userStatus{
margin-bottom: 0;
}
#game-rules {
max-width: 50rem;
display: inline-block;
}
.inner-box{
text-align: start;
margin-left: 3rem;
}
#player-list{
list-style-type: none!important;
margin-left: -40px;
}
#player1, #player2{
margin-top: 1rem;
}
/* Define color variables */
:root {
--red: red;
--blue: blue;
--green: green;
--yellow: yellow;
}
.color-container{
display: flex;
margin: 1rem 0;
}
.color-buttons {
display: flex;
justify-content: space-around;
width: 9rem;
}
.color-button {
width: 1.7rem;
height: 1.7rem;
border: 7px solid lightgrey;
border-radius: 5px;
cursor: pointer;
}
.color-button.active {
background-color: #ccc;
}
/* Set initial color for the first option */
.color-button[data-color="r"] {
background-color: var(--red);
}
/* Dynamically set color based on selected option */
.color-button[data-color="b"] {
background-color: var(--blue);
}
.color-button[data-color="g"] {
background-color: var(--green);
}
.color-button[data-color="y"] {
background-color: var(--yellow);
}
/* #player1-color {
appearance: none;
-webkit-appearance: none;
-moz-appearance: none;
border: none;
background-color: transparent;
cursor: pointer;
}
#player1-color option {
width: 1.7rem;
height: 1.7rem;
border: 7px solid lightgrey;
border-radius: 5px;
cursor: pointer;
} */
/* #player1-color::after {
content: '';
display: inline-block;
width: 100%;
height: 100%;
background-color: var(--player-color);
border-radius: inherit;
cursor: pointer;
}
#player1-color[value="r"]::after {
background-color: red;
}
#player1-color[value="b"]::after {
background-color: blue;
}
#player1-color[value="g"]::after {
background-color: green;
}
#player1-color[value="y"]::after {
background-color: yellow;
} */