forked from edemaine/svgtiler-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.styl
84 lines (77 loc) · 1.48 KB
/
index.styl
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
// Full-page layout
body
width: 100vw
height: 100vh
margin: 0
font-family: 'Merriweather', serif
// Monospace font including ␣
code, pre, #key
font-family: 'Inconsolata', monospace
@font-face
font-family: 'Inconsolata'
font-style: normal
font-weight: 400
font-display: swap
src: local('Inconsolata Regular'), local('Inconsolata-Regular'), url(https://cdn.jsdelivr.net/gh/googlefonts/Inconsolata/fonts/otf/Inconsolata-Regular.otf)
// Toolbar on top
.toolbar, .sidebar
padding: 5px
.toolbar, .sidebar, .tabs
background: #ccc
// Tabs on bottom
.tabs
margin-left: -2px
.tab
display: inline-block
margin: 2px 2px
box-shadow: 0 1px 3px 1px rgba(60,60,60,.2)
background: #eee
padding: 5px
cursor: pointer
// Tileset on left
form
margin-bottom: 0
input
font-size: 16
width: 100%
.delete:hover
cursor: pointer
#tiles
overflow-y: scroll
margin-right: -5px
margin-top: 5px
.tile
margin-bottom: 5px
margin-right: 3px
padding: 5px
text-align: center
background: #ddd
border: solid #bbb
&.selected
background: #6d6
> div
display: flex
justify-content: space-between
> svg
background: white
box-shadow: 0 1px 6px 1px rgba(60,60,60,.4)
#board
// center the board
display: flex
justify-content: center
align-items: center
> svg
user-select: none;
// Flex
.flexcol
display: flex
flex-direction: column
.flexrow
display: flex
flex-direction: row
.grow
flex-grow: 1
.shrink
flex-shrink: 1
.hide
display: none