-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfix.css
140 lines (116 loc) · 2.54 KB
/
fix.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
.main-flex {
display: flex;
}
.edit-area {
padding: 1rem;
flex: 1 1 auto;
display: flex;
flex-direction: column;
align-items: stretch;
}
#edit-input {
white-space: nowrap;
overflow: auto;
}
#outputs {
margin: 1em;
padding: 1em;
min-width: 5em;
padding: 1rem;
overflow-x: visible;
flex: 0 0 auto;
display: flex;
flex-direction: column;
align-items: center;
gap: 1.5rem;
background: var(--bg2-color);
border: 0px solid transparent;
border-radius: 0.5em;
}
@media (orientation: portrait) {
.main-flex { flex-direction: column; }
.main-flex .edit-area { height: 70vh; }
}
#create, #reset {
font: inherit;
padding: 0.5em;
appearance: none;
border: 0px solid transparent;
border-radius: 999999px;
cursor: pointer;
}
#reset {
background: var(--button-color);
color: var(--text-color);
}
#reset:hover { background: var(--button-hover) }
#create {
background: var(--primary-color);
color: var(--primary-contrast-color);
}
#create:hover { filter: brightness(115%); }
.text-area {
flex: 1 1 auto;
border: 0px solid transparent;
border-radius: 0.5em;
overflow: hidden;
display: flex;
}
.text-area > * {
flex: 1 1 auto;
padding: 0.5rem;
appearance: none;
resize: none;
border: none;
outline: none;
overflow: scroll;
font-family: monospace;
background: var(--bg2-color);
color: var(--text-color);
}
#collapse-button {
display: flex;
justify-content: center;
align-items: center;
}
#collapse-button > * {
display: inline;
padding: 0.5em;
border: 0px solid transparent;
border-radius: 999999px;
background: var(--button-color);
cursor: pointer;
}
#collapse-button > *:hover { background: var(--button-hover) }
#collapse-button > * > * {
display: block;
fill: none;
stroke: var(--hint-color);
height: 1em; /*sadly, we cant use lh instaed of em. now this button is smaller than others (but at least it is square) */
width: 1em;
stroke-width: 0.2;
stroke-linecap: round;
transform: rotate(180deg);
transition: transform 250ms;
}
#collapse-button[data-collapsed=true] > * > * {
transform: rotate(0);
}
#collapse-content {
margin-top: 1em;
}
.outputs-name {
font-size: 1.25em;
text-align: center;
}
.hint-text {
font-size: 1.3em;
max-width: max(60vw, 120vh);
}
@keyframes opac01 {
from { opacity: 0 } to { opacity: 1 }
}
#status {
animation: opac01;
animation-duration: 300ms;
}