A web-based drawing app
git clone git://soophie.de/outline
blob: 2f7d7973943b7ffa98087c667fcf0e31795713cd (2136 bytes)[doc][blame][raw]
1
canvas.canvas {2
position: relative;3
z-index: 1;4
cursor: none;5
}7
canvas.overlay {8
pointer-events: none;9
user-select: none;10
position: absolute;11
top: 0;12
left: 0;13
right: 0;14
bottom: 0;15
z-index: 99;16
}18
.toolbar {19
position: fixed;20
left: calc(50% - 360px);21
bottom: 30px;22
z-index: 2;23
display: flex;25
.bucket {26
width: 56px;27
height: 56px;28
border-radius: 9999px;29
background: #CCC;30
margin: 8px;31
transition: transform 0.2s;32
box-shadow: 0 0px 8px 2px rgba(0, 0, 0, 0.05);33
cursor: pointer;34
transform: scale(0.9);35
user-select: none;37
&:hover {38
transition: transform 0.2s;39
transform: scale(1);40
}42
&.focused {43
transform: scale(1.1);44
}45
}46
}48
.actions {49
position: fixed;50
top: 30px;51
left: 30px;52
display: flex;53
}55
.action {56
position: relative;57
width: 46px;58
height: 46px;59
border: none;60
border-radius: 9999px;61
background: transparent;62
cursor: pointer;63
outline: none;64
position: fixed;65
margin-right: 8px;67
&:hover {68
background: #ECECEC;69
}71
&::after {72
bottom: -60%;73
}74
}76
/* Tooltip */77
.tooltip {78
position: relative;79
display: flex;80
justify-content: center;82
&:hover {84
&::before {85
opacity: 1;86
transition-delay: 0.6s;87
}89
&::after {90
opacity: 1;91
transition-delay: 0.6s;92
}93
}95
&::after {96
display: flex;97
opacity: 0;98
content: attr(data-title);99
justify-content: center;100
align-items: center;101
position: absolute;102
background: #212121;103
color: white;104
min-height: 24px;105
padding: 0 10px;106
border-radius: 4px;107
font-size: 12px;108
top: auto;109
bottom: -90%;110
white-space: nowrap;111
z-index: 9999;112
pointer-events: none;113
}115
&.up {117
&::before {118
top: ~'calc(-90% + 26px)';119
bottom: auto;120
border-left: 6px solid transparent;121
border-right: 6px solid transparent;122
border-top: 6px solid #212121;123
border-bottom: none;124
}126
&::after {127
top: -60%;128
bottom: auto;129
}130
}132
&.down {134
&::before {135
top: auto;136
bottom: ~'calc(-90% + 26px)';137
border-left: 6px solid transparent;138
border-right: 6px solid transparent;139
border-top: none;140
border-bottom: 6px solid #212121;141
}143
&::after {144
top: auto;145
bottom: -60%;146
}147
}148
}