Debian Codegraph @

example/tutorial/step3/connect4.css

raw
1 /* General layout */
2
3 body {
4 background-color: white;
5 display: flex;
6 flex-direction: column-reverse;
7 justify-content: center;
8 align-items: center;
9 margin: 0;
10 min-height: 100vh;
11 }
12
13 /* Action buttons */
14
15 .actions {
16 display: flex;
17 flex-direction: row;
18 justify-content: space-evenly;
19 align-items: flex-end;
20 width: 720px;
21 height: 100px;
22 }
23
24 .action {
25 color: darkgray;
26 font-family: "Helvetica Neue", sans-serif;
27 font-size: 20px;
28 line-height: 20px;
29 font-weight: 300;
30 text-align: center;
31 text-decoration: none;
32 text-transform: uppercase;
33 padding: 20px;
34 width: 120px;
35 }
36
37 .action:hover {
38 background-color: darkgray;
39 color: white;
40 font-weight: 700;
41 }
42
43 .action[href=""] {
44 display: none;
45 }
46
47 /* Connect Four board */
48
49 .board {
50 background-color: blue;
51 display: flex;
52 flex-direction: row;
53 padding: 0 10px;
54 position: relative;
55 }
56
57 .board::before,
58 .board::after {
59 background-color: blue;
60 content: "";
61 height: 720px;
62 width: 20px;
63 position: absolute;
64 }
65
66 .board::before {
67 left: -20px;
68 }
69
70 .board::after {
71 right: -20px;
72 }
73
74 .column {
75 display: flex;
76 flex-direction: column-reverse;
77 padding: 10px;
78 }
79
80 .cell {
81 border-radius: 50%;
82 width: 80px;
83 height: 80px;
84 margin: 10px 0;
85 }
86
87 .empty {
88 background-color: white;
89 }
90
91 .column:hover .empty {
92 background-color: lightgray;
93 }
94
95 .column:hover .empty ~ .empty {
96 background-color: white;
97 }
98
99 .red {
100 background-color: red;
101 }
102
103 .yellow {
104 background-color: yellow;
105 }