2017-04-19 08:54:51 +08:00
|
|
|
@import "../../../stylesheets/variables/_all";
|
|
|
|
|
2018-04-05 02:18:46 +08:00
|
|
|
$toolbar-margin: .8rem;
|
|
|
|
$toolbar-box-shadow: 0 0 10px -2px rgba(0, 0, 0, .25);
|
|
|
|
$toolbar-button-width: 3rem;
|
|
|
|
$toolbar-button-height: 3rem;
|
|
|
|
$toolbar-button-font-size: 1.75rem;
|
|
|
|
$toolbar-button-border: 1px;
|
|
|
|
$toolbar-button-border-radius: 5px;
|
|
|
|
$toolbar-list-bg: darken($color-white, 10%);
|
|
|
|
$toolbar-list-color: $color-gray;
|
2017-04-19 08:54:51 +08:00
|
|
|
|
|
|
|
.toolbarContainer {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
2018-04-05 02:18:46 +08:00
|
|
|
margin-right: $toolbar-margin;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
2018-04-10 04:06:11 +08:00
|
|
|
pointer-events: none;
|
2018-04-05 02:18:46 +08:00
|
|
|
|
|
|
|
@include mq("#{$landscape} and (max-height:#{upper-bound($small-range)}), #{$small-only}") {
|
|
|
|
transform: scale(.75);
|
|
|
|
transform-origin: right;
|
|
|
|
}
|
2017-04-19 08:54:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.toolbarWrapper {
|
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2018-04-05 02:18:46 +08:00
|
|
|
box-shadow: $toolbar-box-shadow;
|
2018-04-10 04:06:11 +08:00
|
|
|
pointer-events: all;
|
2018-04-05 02:18:46 +08:00
|
|
|
|
|
|
|
.buttonWrapper > .toolbarButton {
|
|
|
|
border-bottom: 1px solid $color-gray-lighter;
|
|
|
|
}
|
|
|
|
|
|
|
|
.buttonWrapper:first-child > .toolbarButton {
|
|
|
|
border-top-left-radius: $toolbar-button-border-radius;
|
|
|
|
border-top-right-radius: $toolbar-button-border-radius;
|
|
|
|
|
|
|
|
&.toolbarActive {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.buttonWrapper:last-child > .toolbarButton {
|
|
|
|
border-bottom: 0;
|
|
|
|
border-bottom-left-radius: $toolbar-button-border-radius;
|
|
|
|
border-bottom-right-radius: $toolbar-button-border-radius;
|
|
|
|
|
|
|
|
&.toolbarActive {
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
}
|
|
|
|
}
|
2017-04-19 08:54:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.buttonWrapper {
|
|
|
|
width: $toolbar-button-width;
|
|
|
|
min-width: $toolbar-button-width;
|
|
|
|
height: $toolbar-button-height;
|
|
|
|
min-height: $toolbar-button-height;
|
2018-04-05 02:18:46 +08:00
|
|
|
position: relative;
|
2017-04-19 08:54:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.toolbarButton {
|
|
|
|
padding: 0;
|
|
|
|
border: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center !important;
|
|
|
|
justify-content: center !important;
|
2018-04-05 02:18:46 +08:00
|
|
|
font-size: $toolbar-button-font-size;
|
2017-04-19 08:54:51 +08:00
|
|
|
position: relative;
|
2018-04-05 02:18:46 +08:00
|
|
|
border-radius: 0;
|
|
|
|
box-shadow: none !important;
|
|
|
|
z-index: 1;
|
|
|
|
|
|
|
|
&:focus, &:hover {
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
2017-04-19 08:54:51 +08:00
|
|
|
i {
|
|
|
|
color: $color-gray;
|
|
|
|
}
|
2018-04-05 02:18:46 +08:00
|
|
|
|
|
|
|
&.toolbarActive {
|
|
|
|
background-color: $toolbar-list-bg;
|
|
|
|
|
|
|
|
i {
|
|
|
|
color: $toolbar-list-color;
|
|
|
|
}
|
|
|
|
}
|
2017-04-19 08:54:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.toolbarList {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
height: $toolbar-button-height;
|
2018-04-05 02:18:46 +08:00
|
|
|
position: absolute;
|
|
|
|
right: $toolbar-button-height;
|
|
|
|
top: 0;
|
|
|
|
box-shadow: $toolbar-box-shadow;
|
|
|
|
|
|
|
|
.buttonWrapper:first-child > .toolbarListButton {
|
|
|
|
border-top-left-radius: $toolbar-button-border-radius;
|
|
|
|
border-bottom-left-radius: $toolbar-button-border-radius;
|
|
|
|
}
|
2017-04-19 08:54:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.toolbarListButton {
|
|
|
|
width: $toolbar-button-width;
|
|
|
|
height: $toolbar-button-height;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2018-04-05 02:18:46 +08:00
|
|
|
font-size: $toolbar-button-font-size;
|
|
|
|
background-color: $toolbar-list-bg;
|
|
|
|
border: 0 !important;
|
|
|
|
box-shadow: none;
|
|
|
|
border-radius: 0;
|
|
|
|
padding: initial;
|
|
|
|
|
|
|
|
&:hover, &:focus {
|
|
|
|
background-color: darken($toolbar-list-bg, 10%);
|
2017-04-19 08:54:51 +08:00
|
|
|
}
|
2018-04-05 02:18:46 +08:00
|
|
|
|
2017-04-19 08:54:51 +08:00
|
|
|
i {
|
2018-04-05 02:18:46 +08:00
|
|
|
color: $toolbar-list-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
svg {
|
|
|
|
fill: $toolbar-list-color;
|
2017-04-19 08:54:51 +08:00
|
|
|
}
|
2017-06-03 07:46:02 +08:00
|
|
|
}
|
|
|
|
|
2017-04-19 08:54:51 +08:00
|
|
|
.selectedListButton {
|
2018-04-05 02:18:46 +08:00
|
|
|
background-color: $toolbar-list-color !important;
|
|
|
|
|
|
|
|
i {
|
|
|
|
color: darken($toolbar-list-bg, 10%) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
svg {
|
|
|
|
fill: darken($toolbar-list-bg, 10%);
|
|
|
|
}
|
2017-04-19 08:54:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.customSvgIcon {
|
|
|
|
position: absolute;
|
|
|
|
width: $toolbar-button-width;
|
|
|
|
height: $toolbar-button-height;
|
|
|
|
}
|
|
|
|
|
2017-06-03 07:46:02 +08:00
|
|
|
.textThickness {
|
2017-09-21 05:05:17 +08:00
|
|
|
font-family: Arial, sans-serif;
|
2017-09-06 06:55:18 +08:00
|
|
|
font-weight: normal;
|
2018-04-05 02:18:46 +08:00
|
|
|
text-shadow: -1px 0 darken($toolbar-list-bg, 10%), 0 1px darken($toolbar-list-bg, 10%), 1px 0 darken($toolbar-list-bg, 10%), 0 -1px darken($toolbar-list-bg, 10%);
|
2017-06-03 07:46:02 +08:00
|
|
|
margin: auto;
|
2018-04-05 02:18:46 +08:00
|
|
|
color: $toolbar-list-color;
|
2017-04-19 08:54:51 +08:00
|
|
|
}
|