Skip to content

Commit 3d6d72a

Browse files
Create stylesheet.css
1 parent 72b960c commit 3d6d72a

File tree

1 file changed

+127
-0
lines changed

1 file changed

+127
-0
lines changed

Tic Tac Toe/stylesheet.css

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
/* Created by THE YOUNG PROGRAMMER aka NEMONET */
2+
3+
:root {
4+
--primary-color: #ebf2ac;
5+
--secondary-color: #512B58;
6+
}
7+
* {
8+
margin: 0;
9+
padding: 0;
10+
color: var(--secondary-color);
11+
box-sizing: border-box;
12+
font-family: "Times New Roman";
13+
}
14+
15+
#container {
16+
min-height: 100vh;
17+
width: 100vw;
18+
display: flex;
19+
flex-direction: column;
20+
justify-content: center;
21+
align-items: center;
22+
background-color: var(--primary-color);
23+
overflow: hidden;
24+
padding-bottom: 100px;
25+
}
26+
27+
#header {
28+
width: 100vw;
29+
padding: 41px 7px;
30+
text-align: center;
31+
font-size: 43px;
32+
font-weight: bolder;
33+
}
34+
small {
35+
font-size: 21px;
36+
}
37+
a {
38+
text-decoration: none;
39+
color: lightblue;
40+
}
41+
#data {
42+
width: 80vw;
43+
max-width: 450px;
44+
padding: 21px;
45+
margin-bottom: 30px;
46+
display: none;
47+
}
48+
#playero {
49+
margin-left: auto;
50+
}
51+
div[nplayer] {
52+
opacity: 50%;
53+
}
54+
55+
#board {
56+
background-color: var(--secondary-color);
57+
width: 80vw;
58+
max-width: 450px;
59+
max-height: 450px;
60+
height: 80vw;
61+
display: grid;
62+
overflow: hidden;
63+
grid-gap: 3%;
64+
grid-template-rows: repeat(3,1fr);
65+
grid-template-columns: repeat(3,1fr);
66+
}
67+
.box {
68+
background-color: var(--primary-color);
69+
display: flex;
70+
justify-content: center;
71+
align-items: center;
72+
background-repeat: no-repeat;
73+
background-size: cover;
74+
border: 3vw solid var(--primary-color);
75+
}
76+
div[x]{
77+
background-image: url('https://i.imgur.com/eCjmmKK.png');
78+
}
79+
div[o] {
80+
background-image: url('https://i.imgur.com/KXT3HQy.png');
81+
}
82+
.box[out]:after {
83+
content: '';
84+
height: 100%;
85+
width: 100%;
86+
opacity: 50%;
87+
background: var(--primary-color);
88+
}
89+
90+
#playbox {
91+
position: absolute;
92+
background-color: var(--primary-color);
93+
width: 80vw;
94+
max-width: 450px;
95+
max-height: 450px;
96+
height: 80vw;
97+
display: flex;
98+
justify-content: center;
99+
align-items: center;
100+
}
101+
#playbtn {
102+
font-size: 21px;
103+
text-transform: uppercase;
104+
padding: 14px 42px;
105+
background-color: red;
106+
text-align: center;
107+
border-radius: 15px;
108+
letter-spacing: 2px;
109+
transition: 0.2s;
110+
text-shadow: 0 0 21px #000;
111+
box-shadow: 0 0 10px #000 ,
112+
inset 0 0 10px #000;
113+
border: 5px solid var(--primary-color);
114+
color: var(--primary-color);
115+
background-color: var(--secondary-color);
116+
}
117+
#playbtn:active {
118+
border: 5px solid var(--secondary-color);
119+
color: var(--secondary-color);
120+
background-color: var(--primary-color);
121+
}
122+
123+
#rights {
124+
margin-top: 30px;
125+
align-self: flex-end;
126+
padding: 0 21px;
127+
}

0 commit comments

Comments
 (0)