A web-based drawing app
git clone git://soophie.de/outline
blob: 0bdb2c2b2617ef41e077616bd825c75345ecd845 (3100 bytes)[doc][blame][raw]
1
* {2
margin: 0;3
padding: 0;4
box-sizing: border-box;5
color: #424242;6
}7
html {8
width: 100vw;9
heigth: 100vh;10
overflow: hidden;11
}12
body {13
font-family: 'Roboto', sans-serif;14
font-size: 14px;15
}16
/* Base Unit */17
/* Breakpoint */18
/* Ico */19
.ico {20
font-family: 'Material Icons';21
font-weight: normal;22
font-style: normal;23
font-size: 24px;24
display: inline-block;25
line-height: 1;26
text-transform: none;27
letter-spacing: normal;28
word-wrap: normal;29
white-space: nowrap;30
direction: ltr;31
user-select: none;32
pointer-events: none;33
/* Support for all WebKit browsers. */34
-webkit-font-smoothing: antialiased;35
/* Support for Safari and Chrome. */36
text-rendering: optimizeLegibility;37
/* Support for Firefox. */38
-moz-osx-font-smoothing: grayscale;39
/* Support for IE. */40
font-feature-settings: 'liga';41
}42
/* Pages */43
.toolbar {44
position: fixed;45
left: calc(50% - 360px);46
bottom: 30px;47
display: flex;48
}49
.toolbar .bucket {50
width: 56px;51
height: 56px;52
border-radius: 9999px;53
background: #CCC;54
margin: 8px;55
transition: transform 0.2s;56
box-shadow: 0 0px 8px 2px rgba(0, 0, 0, 0.05);57
cursor: pointer;58
transform: scale(0.9);59
}60
.toolbar .bucket:hover {61
transition: transform 0.2s;62
transform: scale(1);63
}64
.toolbar .bucket.focused {65
transform: scale(1.1);66
}67
.actions {68
position: fixed;69
top: 30px;70
left: 30px;71
display: flex;72
}73
.action {74
position: relative;75
width: 46px;76
height: 46px;77
border: none;78
border-radius: 9999px;79
background: transparent;80
cursor: pointer;81
outline: none;82
position: fixed;83
margin-right: 8px;84
}85
.action:hover {86
background: #ECECEC;87
}88
.action::after {89
bottom: -60%;90
}91
/* Tooltip */92
.tooltip {93
position: relative;94
display: flex;95
justify-content: center;96
/*97
&::before {98
display: flex;99
opacity: 0;100
content: '';101
position: absolute;102
width: 0;103
height: 0;104
top: auto;105
bottom: ~'calc(-110% + 26px)';106
border-left: 6px solid transparent;107
border-right: 6px solid transparent;108
border-top: none;109
border-bottom: 6px solid #404040;110
z-index: 99;111
pointer-events: none;112
}113
*/114
}115
.tooltip:hover::before {116
opacity: 1;117
transition-delay: 0.6s;118
}119
.tooltip:hover::after {120
opacity: 1;121
transition-delay: 0.6s;122
}123
.tooltip::after {124
display: flex;125
opacity: 0;126
content: attr(data-title);127
justify-content: center;128
align-items: center;129
position: absolute;130
background: #212121;131
color: white;132
min-height: 24px;133
padding: 0 10px;134
border-radius: 4px;135
font-size: 12px;136
top: auto;137
bottom: -90%;138
white-space: nowrap;139
z-index: 9999;140
pointer-events: none;141
}142
.tooltip.up::before {143
top: calc(-90% + 26px);144
bottom: auto;145
border-left: 6px solid transparent;146
border-right: 6px solid transparent;147
border-top: 6px solid #212121;148
border-bottom: none;149
}150
.tooltip.up::after {151
top: -60%;152
bottom: auto;153
}154
.tooltip.down::before {155
top: auto;156
bottom: calc(-90% + 26px);157
border-left: 6px solid transparent;158
border-right: 6px solid transparent;159
border-top: none;160
border-bottom: 6px solid #212121;161
}162
.tooltip.down::after {163
top: auto;164
bottom: -60%;165
}