-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
116 lines (101 loc) · 1.8 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
:root {
--parent-width: 0;
--parent-height: 0;
--flat-width: 0;
--flat-height: 0;
--margin-top: 0;
--margin-bottom: 0;
--margin-left: 0;
--margin-right: 0;
--gutter: 0;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
display: grid;
place-content: 'center';
font-family: sans-serif;
font-size: 1rem;
}
#root {
display: flex;
width: 100%;
margin-inline: auto;
}
form {
flex-basis: 320px;
padding: 24px;
}
form > * + * {
margin-block-start: 16px;
}
fieldset {
background: #202020;
color: white;
border: none;
border-radius: 8px;
padding: 12px;
}
fieldset > * + * {
margin-block-start: 16px;
}
legend {
background: slateblue;
font-weight: bold;
padding: 4px 12px;
}
.control {
width: 100%;
display: flex;
justify-content: space-between;
}
label {
flex: 1;
font-size: 14px;
}
input,
select {
flex: 3;
padding: 4px;
}
#canvas {
flex: 4;
background: #ccc;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
#parent-sheet {
width: var(--parent-width);
height: var(--parent-height);
background: white;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.12),
0 4px 4px rgba(0, 0, 0, 0.12), 0 8px 8px rgba(0, 0, 0, 0.12), 0 16px 16px rgba(0, 0, 0, 0.12);
display: flex;
flex-wrap: wrap;
align-content: center;
justify-content: center;
padding-top: var(--margin-top);
padding-bottom: var(--margin-bottom);
padding-left: var(--margin-left);
padding-right: var(--margin-right);
gap: var(--gutter);
}
.flat-sheet {
width: var(--flat-width);
height: var(--flat-height);
background: green;
border: 1px solid black;
padding: var(--bleeds, 0);
}
.flat-sheet::before {
display: block;
z-index: 99;
content: '';
background: white;
width: 100%;
height: 100%;
}