A web-based drawing app
git clone git://soophie.de/outline
blob: e4ce375ae4edb8d7fa24d428a1f5e07e4ba44886 (2230 bytes)[doc][blame][raw]
1
.toolbar {2
position: fixed;3
left: calc(50% - 360px);4
bottom: 30px;5
display: flex;7
.bucket {8
width: 56px;9
height: 56px;10
border-radius: 9999px;11
background: #CCC;12
margin: 8px;13
transition: transform 0.2s;14
box-shadow: 0 0px 8px 2px rgba(0, 0, 0, 0.05);15
cursor: pointer;16
transform: scale(0.9);18
&:hover {19
transition: transform 0.2s;20
transform: scale(1);21
}23
&.focused {24
transform: scale(1.1);25
}26
}27
}29
.actions {30
position: fixed;31
top: 30px;32
left: 30px;33
display: flex;34
}36
.action {37
position: relative;38
width: 46px;39
height: 46px;40
border: none;41
border-radius: 9999px;42
background: transparent;43
cursor: pointer;44
outline: none;45
position: fixed;46
margin-right: 8px;48
&:hover {49
background: #ECECEC;50
}52
&::after {53
bottom: -60%;54
}55
}57
/* Tooltip */58
.tooltip {59
position: relative;60
display: flex;61
justify-content: center;63
&:hover {65
&::before {66
opacity: 1;67
transition-delay: 0.6s;68
}70
&::after {71
opacity: 1;72
transition-delay: 0.6s;73
}74
}76
/*77
&::before {78
display: flex;79
opacity: 0;80
content: '';81
position: absolute;82
width: 0;83
height: 0;84
top: auto;85
bottom: ~'calc(-110% + 26px)';86
border-left: 6px solid transparent;87
border-right: 6px solid transparent;88
border-top: none;89
border-bottom: 6px solid #404040;90
z-index: 99;91
pointer-events: none;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
}