-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
121 lines (108 loc) · 2.12 KB
/
styles.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
#wrapper {
border: solid 4px red;
width: min-content;
margin: 0 auto;
}
button {
position: absolute;
}
body {
display: flex;
justify-content: space-around;
flex-direction: column;
font-family: 'Helvetica';
font-size: 20px;
text-align: center;
}
input { width: 60px; font-size: 18px; }
div > div { width: 80%; margin: 0 auto; }
div { background-color: var(--color); line-height: 30px; }
div[empty] { outline: solid 2px var(--color); }
pre {
text-align: initial;
margin: 30px 0;
}
#controls {
display: flex;
flex-direction: column;
width: max-content;
text-align: end;
margin: 0 auto;
}
label { margin: 10px 0 0 0; }
layout {
--size: 10px;
--main-color: #ccc;
display: layout(example);
width: 200px;
margin: 0 auto;
background:
linear-gradient(
45deg,
var(--main-color) 25%,
rgba(0,0,0,0) 25%,
rgba(0,0,0,0) 75%,
var(--main-color) 75%,
var(--main-color) 0),
linear-gradient(
45deg,
var(--main-color) 25%,
rgba(0,0,0,0) 25%,
rgba(0,0,0,0) 75%,
var(--main-color) 75%,
var(--main-color) 0),
rgb(255, 255, 255);
background-repeat: repeat none;
background-position: 0 0, var(--size) var(--size);
background-size: calc(var(--size) * 2) calc(var(--size) * 2);
}
#A { --color: #03a9f4; }
#B { --color: #ffc107; }
#C { --color: #7e57c2; }
#D { --color: #ec407a; }
#E { --color: #8bc34a; }
div[float-left] {
--type: left;
}
div[float-right] {
--type: right;
}
div[float-left],
div[float-right] {
float: var(--type);
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
background: repeating-linear-gradient(
45deg,
white,
white 10px,
var(--color) 10px,
var(--color) 20px
);
border: solid 4px var(--color);
box-sizing: border-box;
}
div[float-left]::after {
content: 'L';
}
div[float-right]::after {
content: 'R';
}
div[float-left]::after,
div[float-right]::after {
padding: 0 5px;
background: white;
border-radius: 4px;
}
div[inflow] {
font-family: 'Ahem';
font-size: 20px;
background: initial;
border: solid 4px var(--color);
box-sizing: border-box;
color: var(--color);
line-height: 1.5em;
}