A lightweight JavaScript game engine
git clone git://soophie.de/game-engine
blob: 08dd007244b88245ff1c58549247a81f3e6ae039 (3240 bytes)[doc][blame][raw]
1
@import './variable.less';2
@import '../std/less/normalize.less';3
@import '../std/less/color.less';4
@import '../std/less/icons.less';6
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700');7
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500');9
* {10
color: @color-gray-900;11
font-family: 'Inter';12
}14
header {15
padding: 50px 0;16
margin-bottom: 20px;18
h1 {19
font-size: 28px;20
margin-bottom: 10px;21
}23
p {24
font-size: 16px;25
color: @color-gray-700;26
}27
}29
main {30
margin-bottom: 100px;32
h2 {33
font-size: 24px;34
margin-top: 80px;35
margin-bottom: 30px;36
}38
h3 {39
font-size: 20px;40
margin-bottom: 20px;41
}43
.overview {44
padding-left: 20px;45
display: inline-block;47
li {48
margin-bottom: 25px;50
p {51
font-weight: 500;52
margin-bottom: 10px;53
}55
ul {56
padding-left: 20px;58
li {59
margin-bottom: 5px;60
}61
}63
a {64
color: @color-gray-800;65
font-size: 14px;66
text-decoration: underline;67
cursor: pointer;68
}69
}70
}72
article {73
border: 1px solid @color-gray-300;74
border-radius: 4px;75
padding: 20px;76
margin-bottom: 20px;77
overflow-x: hidden;79
label {80
display: block;81
font-size: 20px;82
font-weight: 600;83
margin-bottom: 10px;84
}86
& > pre {87
display: inline-block;88
font-size: 13px;89
font-family: 'Roboto Mono';90
line-height: 19px;91
padding: 6px 6px;92
border: 1px solid @color-gray-200;93
border-radius: 2px;94
margin-bottom: 10px;95
overflow-x: auto;96
max-width: 100%;98
&::-webkit-scrollbar {99
height: 8px;100
}102
&::-webkit-scrollbar-track {103
background: @color-gray-200;104
}106
&::-webkit-scrollbar-thumb {107
background: @color-gray-400;109
&:hover {110
background: @color-gray-500;111
}112
}113
}115
p {116
font-size: 14px;117
font-weight: 400;118
color: @color-gray-700;119
line-height: 20px;120
margin-bottom: 15px;121
}123
code {124
display: block;125
position: relative;126
background: @color-gray-100;127
border-radius: 2px;128
margin-bottom: 15px;129
overflow-x: hidden;131
pre {132
font-size: 13px;133
font-family: 'Roboto Mono';134
line-height: 19px;135
tab-size: 25px;136
overflow-x: auto;137
padding: 10px 10px;138
padding-right: 40px;140
&::-webkit-scrollbar {141
height: 8px;142
}144
&::-webkit-scrollbar-track {145
background: @color-gray-200;146
}148
&::-webkit-scrollbar-thumb {149
background: @color-gray-400;151
&:hover {152
background: @color-gray-500;153
}154
}155
}157
.clipboard {158
position: absolute;159
top: 4px;160
right: 4px;161
width: 30px;162
height: 30px;163
border-radius: 50%;164
color: @color-gray-500;165
display: grid;166
place-content: center;167
cursor: pointer;169
&:hover {170
color: @color-gray-800;171
}172
}173
}175
h3 {176
margin-bottom: 5px;177
}178
}179
}181
footer {182
margin-bottom: 50px;184
.container {185
display: flex;186
justify-content: flex-end;187
}189
span {190
flex: 1;191
align-self: flex-start;192
color: @color-gray-700;193
}195
a {196
margin-left: 15px;197
color: @color-gray-700;199
&:hover {200
color: @color-gray-800;201
}202
}203
}205
.message {206
border: 1px solid @color-gray-300;207
border-radius: 4px;208
padding: 20px;210
h3 {211
margin-bottom: 10px;212
}214
p {215
color: @color-gray-700;216
}