-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
81 lines (69 loc) · 1.36 KB
/
styles.css
File metadata and controls
81 lines (69 loc) · 1.36 KB
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
*, *::after, *::before {
box-sizing: border-box;
}
body {
margin: 0;
display: grid;
grid-template-columns: repeat(2, 4rem);
grid-template-rows: 7rem 2rem 7rem;
gap: .5rem;
cursor: pointer;
justify-content: center;
padding-top: 1rem;
}
.deck {
height: 100%;
width: 100%;
border: 1px solid black;
display: flex;
justify-content: center;
align-items: center;
font-size: 3rem;
border-radius: .5rem;
color: white;
user-select: none;
}
.computer-deck {
background-color: green;
}
.player-deck {
background-color: blue;
}
.text {
grid-column: span 2;
display: flex;
justify-content: center;
align-items: center;
}
.card {
position: relative;
height: 100%;
width: 100%;
border: 1px solid black;
border-radius: .5rem;
display: flex;
justify-content: center;
align-items: center;
font-size: 4rem;
}
.card.red {
color: red;
}
.card.black {
color: black;
}
.card::before,
.card::after {
position: absolute;
content: attr(data-value);
font-size: 1rem;
}
.card::before {
top: .5rem;
left: .5rem
}
.card::after {
bottom: .5rem;
right: .5rem;
transform: rotate(180deg);
}