-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.sass
190 lines (161 loc) · 3.88 KB
/
main.sass
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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
$limegreen: #32CD32
// CSS resets per Kevin Powell
*, *::before, *::after
box-sizing: border-box
*
margin: 0
padding: 0
html
color-scheme: dark light
body
height: 100svh
position: absolute // prevent margin collapse, to prevent unneeded scrollbars
width: 100%
#feliz-app, #feliz-app > div, #feliz-app > div > div
max-height: 100svh
img, picture, svg, video
display: block
max-width: 100%
// ShiningSword-specific logic here
ul
list-style-position: inside
margin-left: 1rem
.slideFromTop
animation: fromTop 0.5s ease-in-out
.slideFromLeft
animation: fromLeft 0.5s ease-in-out
.fadeIn
animation: fromTransparent 0.3s ease-in-out
@keyframes fromTop
0%
transform: translateY(-100%)
100%
transform: translateY(0)
@keyframes fromLeft
0%
transform: translateX(-100%)
100%
transform: translateY(0)
@keyframes fromTransparent
0%
opacity: 0
100%
opacity: 1
.busy
height: 30vh
display: flex
justify-content: center
align-items: center
background: #000
.wave
width: 10px
height: 100px
background: linear-gradient(45deg, cyan, #fff)
margin: 3vw
animation: wave 1s linear infinite
border-radius: 20px
transform: scale(0)
.wave:nth-child(2)
animation-delay: 0.1s
.wave:nth-child(3)
animation-delay: 0.2s
.wave:nth-child(4)
animation-delay: 0.3s
.wave:nth-child(5)
animation-delay: 0.4s
.wave:nth-child(6)
animation-delay: 0.5s
.wave:nth-child(7)
animation-delay: 0.6s
.wave:nth-child(8)
animation-delay: 0.7s
.wave:nth-child(9)
animation-delay: 0.8s
.wave:nth-child(10)
animation-delay: 0.9s
@keyframes wave
0%
transform: scale(0)
50%
transform: scale(1)
100%
transform: scale(0)
.control
user-select: none
.hasMargins
box-sizing: border-box
margin: 3px
.header
.internalLink
margin: auto 5px
// prevent bold items from growing by preemptively giving them an invisible bold twin already
display: inline-flex
flex-direction: column
align-items: center
justify-content: space-between
.internalLink::after // prevent bold items from growing by preemptively giving them an invisible bold twin already
content: attr(data-text)
content: attr(data-text) / ""
overflow: hidden
height: 0
visibility: hidden
user-select: none
pointer-events: none
font-weight: bold
@media speech
display: none
.fullWidth
width: 100%
.srcLink
max-width: 6rem
float: right
background-color: white
.horizontalStack
display: flex
width: calc(100% - 6px)
gap: 10px
> *
flex: 1
max-height: 100%
width: 100px
overflow-wrap: anywhere
.scrollParent
display: flex
flex-direction: column
align-items: flex-start
max-height: 100%
.scrollable
overflow: auto
flex: 1
align-self: stretch
.bordered
border: thin solid black
padding: 2px
margin: 2px
.mainPage // page styling for most pages in ShiningSword: display a basic layout with a header, some data items and links
@extend .fadeIn
@extend .hasMargins
max-height: calc(100svh - 6px)
table
border: thin solid
td
border: thin solid
> * // put the padding on the child element so that e.g. dangerouslyLow can be all red with no gap for parent padding
padding: 2px
.dangerouslyLow
background-color: red
color: white
.mediumLow
background-color: yellow
.enough
background-color: $limegreen
.playground-frame
display: grid
grid-template-columns: minmax(auto, 30%) auto
> *
grid-column: 1
.sidebar-right
grid-column: 2
grid-row: 1/-1
.fullWidth
grid-column: 1/-1