-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathedit.css
149 lines (135 loc) · 3.42 KB
/
edit.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
form {
color: white;
}
label {
display: flex;
justify-content: center; /* This centers the child elements (including text) horizontally */
align-items: center; /* This centers the child elements (including text) vertically */
}
label input {
flex: 1;
}
html {
background-color: black;
font-family: 'Space-Age', sans-serif;
}
#feature-editor {
border-radius: 10px;
box-sizing: border-box;
padding: 1em;
}
.edit-feature {
display:grid;
grid-template-columns: 6em 6em auto 6em 2.5em 1.5em;
height: 2em;
}
.new-feature {
display: grid;
grid-template-columns: auto 6em;
margin-bottom: 0.5em;
}
.save-load {
margin-top: 0.5em;
display: flex;
flex-direction: row;
justify-content: start;
}
:root {
--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;
/* Cosmic Color Scheme */
--color-space-black: #000000;
--color-nebula-purple: #a365f2;
--color-asteroid-pink: #e16ce6;
--color-galaxy-blue: #a398f4;
--color-comet-tail: #e099e6;
--color-starlight-blue: #6195f9;
--color-deep-sky: #2198fb;
--color-twilight-purple: #6566f4;
--color-alien-green: #a22bec;
--color-rocket-metal: #2065f5;
--color-lunar-white: #e6e6e6;
--radius: 0.5rem;
}
/* Sparkly Class */
.sparkly {
background: linear-gradient(
270deg,
var(--color-nebula-purple),
var(--color-asteroid-pink),
var(--color-comet-tail),
var(--color-galaxy-blue),
var(--color-starlight-blue),
var(--color-deep-sky),
var(--color-twilight-purple),
var(--color-alien-green),
var(--color-rocket-metal),
var(--color-nebula-purple)
);
background-size: 800% 800%;
color: var(--color-lunar-white);
}
.sparkly.animated {
animation: sparkle 8s linear infinite;
}
/* Sparkly Animation */
@keyframes sparkle {
0%,
100% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
}
body {
display: grid;
grid-template-columns: 50% 50%;
grid-template-rows: auto; /* Define two rows, their size determined by the content */
height: 100vh; /* Ensure the body takes up the full viewport height */
}
body.no-editor {
display:flex;
/* reverse the order of the flex items */
flex-direction: row-reverse;
}
body.no-editor #save-and-publish, body.no-editor #monaco-editor{
display: none;
}
body.present #feature-editor {
display:none;
}
#feature-editor {
grid-column: 1; /* Places it in the first column */
grid-row: 1; /* Places it in the first row */
}
#save-and-publish {
grid-column:2;
grid-row: 1;
display: flex;
}
#save-and-publish > button {
flex: 1;
cursor:pointer;
margin: 1em;
}
#save-and-publish > button > a {
/* clear the default styles */
text-decoration: none;
color: inherit;
}
#monaco-editor {
grid-column: 2; /* Places it in the second column */
grid-row: 2; /* Places it in the first row */
/*span 2 rows*/
}
#visualizer {
grid-column: 1; /* Also in the first column */
grid-row: 2; /* But in the second row, under #feature-editor */
}
/* Optional adjustments for a better layout */
#feature-editor, #visualizer, #monaco-editor {
width: 100%; /* Ensures full utilization of their grid cell's width */
height: 100%; /* For #monaco-editor to fully expand vertically, depending on your design needs */
}