-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
96 lines (88 loc) · 1.65 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
html {
box-sizing: border-box; /* */
}
*,
*:before,
*:after {
box-sizing: inherit;
}
body {
margin: 0;
padding: 0;
display: flex; /* All the children will be flexibly sized */
flex-direction: column;
justify-content: center;
align-items: center;
height: 100vh; /* 100% of the viewport height */
}
button:focus {
outline: none; /* Remove the outline when you click the reset button */
}
.canvas-box { /* the black "frame" of the canvas*/
padding: 1px;
border: 20px solid black;
width: 50%;
height: 50%;
position: relative;
}
.canvas-box::before {
content: "";
position: absolute;
left: calc(100% + 20px + 1px);
top: -10px;
background-color: black;
height: calc(100% + 20px * 2);
width: 20px;
transform: skew(0, 45deg);
}
.canvas-box::after {
content: "";
position: absolute;
top: calc(100% + 20px + 1px);
left: -10px;
background-color: black;
width: calc(100% + 20px * 2);
height: 20px;
transform: skew(45deg, 0);
}
.canvas-container {
width: 100%;
height: 100%;
}
#canvas { /* Remove the cursor */
cursor: none;
}
#controls{
margin-top: 32px;
width: 50%;
padding-left: 20px;
text-align: right;
}
.rakeSelect{ /* Remove the radiobuttons */
display: none;
}
.rakeSelect:checked + .rakeLabel { /* Change the button background color on click */
color: black;
background-color: hsl(44, 100%, 65%);
}
.rakeLabel,
#reset,
#header h1 {
background-color: black;
color: white;
padding: 0.5em;
font-family: monospace;
font-size: 1em;
}
.rakeLabel {
display: inline-block;
}
#reset{
border: none;
float: left;
}
#header h1 {
font-size: 3em;
color: hsl(44, 100%, 65%);
letter-spacing: 0.2em;
}