-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlayout.css
175 lines (157 loc) · 2.79 KB
/
layout.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
/* License: GPL3 */
/* layout.css */
/* LAYOUT */
/* Consider borders included when tweaking margins and padding */
*
{
box-sizing: border-box;
}
/* Lists have no bullets and no margins by default */
ul
{
margin: 0;
padding: 0;
}
/* To center frame titles using <legend> */
legend
{
margin: auto;
}
/* Full screen body, no padding, no margin, no scrollbars */
body
{
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden; /* for testing, use visible; otherwise, hidden */
/* display: flex;
flex-direction: column;
justify-content: center;
align-items: center; */
}
/* Z-indexes */
.editor-space
{
z-index: 0;
}
.dialog-container
{
z-index: 1;
}
.menu
{
z-index: 2;
}
/* MENUS */
/* Menus are fixed on the screen, 100% wide, 1em tall, no margin, no padding */
/* No scrollbars */
.menu
{
position: fixed;
width: 100%;
height: 1em;
margin: 0px;
padding: 0px;
overflow: visible;
}
/* Top menu is at top */
nav.menu
{
top: 0px;
}
/* Bottom menu is at bottom */
footer.menu
{
bottom: 0px;
}
/* Menu lists are horizontal, begin at the start of the block */
/* Are vertically aligned, no scrollbars */
.menu ul
{
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
overflow: visible;
}
/* Menu items are as high as their parent, are as wide as their content */
/* No margin, display text centered, no scrollbars */
.menu ul li
{
height: 100%;
width: max-content;
margin: 0em 0.5em;
display: flex;
justify-content: center;
align-items: center;
overflow: visible;
}
/* EDITOR */
body div.editor-space
{
position: fixed;
inset: 1em 0 1em 0;
margin: 0 0.5em 0.5em 5px;
}
.editor-space .frame
{
position: relative;
width: 100%;
height: 100%;
padding: 0 0.5em 0.5em 0.5em;
}
/* All frames have auto margins for their legend */
.frame legend
{
margin: auto;
}
/* Editor frames use uppercase text-transform */
.editor-space .frame legend
{
text-transform: uppercase;
}
/* Textarea properties, the home of the editor */
textarea
{
width: 100%;
height: 100%;
border-width: 0px;
overflow: scroll;
overflow-wrap: normal;
white-space: pre;
resize: none;
}
/* DIALOGS */
.dialog-container
{
position: absolute;
inset: 0px;
/* margin-block: auto; */
/* margin-inline: auto; */
margin: auto;
height: max-content;
width: max-content;
}
.dialog-container .frame
{
height: auto;
width: auto;
padding: 0px;
}
.dialog-container .frame .dialog
{
margin: 0.5em;
}
.dialog-container .buttons
{
/* margin: 1em; */
padding: 1em;
width: 100%;
display: flex;
flex-direction: row;
justify-content: flex-end;
}
button {
margin: 0 1em;
}