mirror of
https://github.com/zoriya/flood.git
synced 2026-05-31 18:25:25 +00:00
Add floating action object
This commit is contained in:
@@ -57,6 +57,7 @@
|
||||
&--primary {
|
||||
background: $button--primary--background;
|
||||
color: $button--primary--foreground;
|
||||
white-space: nowrap;
|
||||
|
||||
&:hover {
|
||||
background: $button--primary--background--hover;
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
.floating-action {
|
||||
|
||||
&__button {
|
||||
background: $textbox-repeater--button--background;
|
||||
border: none;
|
||||
border-radius: 16px;
|
||||
box-shadow: 0 0 0 1px $textbox-repeater--button--border;
|
||||
cursor: pointer;
|
||||
height: 16px;
|
||||
outline: none;
|
||||
margin-right: 8px;
|
||||
padding: 0;
|
||||
position: relative;
|
||||
transition: background 0.25s, box-shadow 0.25s;
|
||||
width: 16px;
|
||||
|
||||
&:last-child {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: $textbox-repeater--button--background--hover;
|
||||
box-shadow: 0 0 0 1px $textbox-repeater--button--border--hover;
|
||||
|
||||
.icon {
|
||||
fill: $textbox-repeater--button--foreground--hover;
|
||||
}
|
||||
}
|
||||
|
||||
.icon {
|
||||
height: 8px;
|
||||
fill: $textbox-repeater--button--foreground;
|
||||
left: 50%;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transition: fill 0.25s;
|
||||
transform: translate(-50%, -50%);
|
||||
width: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user