2017-04-19 08:54:51 +08:00
|
|
|
@import "../../../stylesheets/variables/_all";
|
|
|
|
|
2018-10-19 04:37:14 +08:00
|
|
|
:root {
|
|
|
|
--toolbar-margin: .8rem;
|
|
|
|
--toolbar-box-shadow: 0 0 10px -2px rgba(0, 0, 0, .25);
|
2018-10-25 20:46:31 +08:00
|
|
|
--toolbar-button-color: var(--btn-default-color);
|
2019-05-14 21:15:54 +08:00
|
|
|
--toolbar-button-bg: var(--btn-default-bg);
|
2018-10-19 04:37:14 +08:00
|
|
|
--toolbar-button-width: 3rem;
|
|
|
|
--toolbar-button-height: 3rem;
|
|
|
|
--toolbar-button-font-size: 1.75rem;
|
|
|
|
--toolbar-button-border: 1px;
|
|
|
|
--toolbar-button-border-radius: 5px;
|
2018-10-25 20:46:31 +08:00
|
|
|
--toolbar-button-border-color: var(--color-gray-lighter);
|
2018-10-19 04:37:14 +08:00
|
|
|
--toolbar-list-bg: #ddd;
|
|
|
|
--toolbar-list-bg-focus: #c6c6c6;
|
|
|
|
--toolbar-list-color: var(--color-gray);
|
2019-04-08 22:22:22 +08:00
|
|
|
--toolbar-item-outline-offset: -.19rem;
|
2019-06-14 06:42:20 +08:00
|
|
|
--toolbar-item-triangle-padding: 2px;
|
2018-10-19 04:37:14 +08:00
|
|
|
}
|
2017-04-19 08:54:51 +08:00
|
|
|
|
|
|
|
.toolbarContainer {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
2019-05-14 21:15:54 +08:00
|
|
|
margin: 0 var(--toolbar-margin) 0 0;
|
2018-04-05 02:18:46 +08:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
2019-05-14 21:15:54 +08:00
|
|
|
left: auto;
|
2018-04-05 02:18:46 +08:00
|
|
|
bottom: 0;
|
2018-04-10 04:06:11 +08:00
|
|
|
pointer-events: none;
|
2018-04-05 02:18:46 +08:00
|
|
|
|
2019-05-14 21:15:54 +08:00
|
|
|
[dir="rtl"] & {
|
|
|
|
margin: 0 0 0 var(--toolbar-margin);
|
|
|
|
right: auto;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
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-10-19 04:37:14 +08:00
|
|
|
box-shadow: var(--toolbar-box-shadow);
|
|
|
|
border-radius: var(--toolbar-button-border-radius);
|
2018-04-10 04:06:11 +08:00
|
|
|
pointer-events: all;
|
2018-04-05 02:18:46 +08:00
|
|
|
|
|
|
|
.buttonWrapper > .toolbarButton {
|
2019-04-08 22:22:22 +08:00
|
|
|
outline-offset: var(--toolbar-item-outline-offset);
|
2018-10-25 20:46:31 +08:00
|
|
|
border-bottom: var(--toolbar-button-border) solid var(--toolbar-button-border-color);
|
2018-04-05 02:18:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.buttonWrapper:first-child > .toolbarButton {
|
2018-10-19 04:37:14 +08:00
|
|
|
border-top-left-radius: var(--toolbar-button-border-radius);
|
|
|
|
border-top-right-radius: var(--toolbar-button-border-radius);
|
2018-04-05 02:18:46 +08:00
|
|
|
|
|
|
|
&.toolbarActive {
|
|
|
|
border-top-left-radius: 0;
|
2019-05-14 21:15:54 +08:00
|
|
|
border-top-right-radius: var(--toolbar-button-border-radius);
|
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
border-top-left-radius: var(--toolbar-button-border-radius);
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
}
|
2018-04-05 02:18:46 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.buttonWrapper:last-child > .toolbarButton {
|
|
|
|
border-bottom: 0;
|
2018-10-19 04:37:14 +08:00
|
|
|
border-bottom-left-radius: var(--toolbar-button-border-radius);
|
|
|
|
border-bottom-right-radius: var(--toolbar-button-border-radius);
|
2018-04-05 02:18:46 +08:00
|
|
|
|
|
|
|
&.toolbarActive {
|
|
|
|
border-bottom-left-radius: 0;
|
2019-05-14 21:15:54 +08:00
|
|
|
border-top-right-radius: var(--toolbar-button-border-radius);
|
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
border-bottom-left-radius: var(--toolbar-button-border-radius);
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
}
|
2018-04-05 02:18:46 +08:00
|
|
|
}
|
|
|
|
}
|
2017-04-19 08:54:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.buttonWrapper {
|
2018-10-19 04:37:14 +08:00
|
|
|
width: var(--toolbar-button-width);
|
|
|
|
min-width: var(--toolbar-button-width);
|
|
|
|
height: var(--toolbar-button-height);
|
|
|
|
min-height: var(--toolbar-button-height);
|
2018-04-05 02:18:46 +08:00
|
|
|
position: relative;
|
2017-04-19 08:54:51 +08:00
|
|
|
}
|
|
|
|
|
2019-06-14 06:42:20 +08:00
|
|
|
.cornerTriangle::before {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
border-color: transparent;
|
|
|
|
border-style: solid;
|
|
|
|
z-index: 100;
|
|
|
|
border-radius: 0;
|
|
|
|
border-width: 0.35em;
|
|
|
|
bottom: var(--toolbar-item-triangle-padding);
|
|
|
|
left: var(--toolbar-item-triangle-padding);
|
|
|
|
border-left-color: var(--toolbar-list-color);
|
|
|
|
border-bottom-color: var(--toolbar-list-color);
|
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
left: auto;
|
|
|
|
right: var(--toolbar-item-triangle-padding);
|
|
|
|
|
|
|
|
border-left-color: transparent;
|
2019-06-18 03:11:06 +08:00
|
|
|
border-right-color: var(--toolbar-list-color);
|
2019-06-14 06:42:20 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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;
|
2019-05-14 21:15:54 +08:00
|
|
|
justify-content: center !important;
|
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;
|
2018-10-25 20:46:31 +08:00
|
|
|
font-size: var(--toolbar-button-font-size);
|
|
|
|
color: var(--toolbar-button-color);
|
|
|
|
background-color: var(--toolbar-button-bg);
|
|
|
|
border-color: var(--toolbar-button-border-color);
|
2018-04-05 02:18:46 +08:00
|
|
|
|
2018-10-19 04:37:14 +08:00
|
|
|
&:focus,
|
|
|
|
&:hover {
|
2018-04-05 02:18:46 +08:00
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
2017-04-19 08:54:51 +08:00
|
|
|
i {
|
2018-10-25 20:46:31 +08:00
|
|
|
color: var(--toolbar-button-color);
|
2017-04-19 08:54:51 +08:00
|
|
|
}
|
2018-04-05 02:18:46 +08:00
|
|
|
|
|
|
|
&.toolbarActive {
|
2018-10-19 04:37:14 +08:00
|
|
|
background-color: var(--toolbar-list-bg);
|
2018-04-05 02:18:46 +08:00
|
|
|
|
|
|
|
i {
|
2018-10-19 04:37:14 +08:00
|
|
|
color: var(--toolbar-list-color);
|
2018-04-05 02:18:46 +08:00
|
|
|
}
|
|
|
|
}
|
2017-04-19 08:54:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.toolbarList {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2018-10-19 04:37:14 +08:00
|
|
|
height: var(--toolbar-button-height);
|
2018-04-05 02:18:46 +08:00
|
|
|
position: absolute;
|
2018-10-19 04:37:14 +08:00
|
|
|
right: var(--toolbar-button-height);
|
2019-05-14 21:15:54 +08:00
|
|
|
left: auto;
|
2018-04-05 02:18:46 +08:00
|
|
|
top: 0;
|
2018-10-19 04:37:14 +08:00
|
|
|
box-shadow: var(--toolbar-box-shadow);
|
2018-04-05 02:18:46 +08:00
|
|
|
|
2019-05-14 21:15:54 +08:00
|
|
|
[dir="rtl"] & {
|
|
|
|
right: auto;
|
|
|
|
left: var(--toolbar-button-height);
|
|
|
|
}
|
|
|
|
|
2018-04-05 02:18:46 +08:00
|
|
|
.buttonWrapper:first-child > .toolbarListButton {
|
2018-10-19 04:37:14 +08:00
|
|
|
border-top-left-radius: var(--toolbar-button-border-radius);
|
|
|
|
border-bottom-left-radius: var(--toolbar-button-border-radius);
|
2019-05-14 21:15:54 +08:00
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
border-top-left-radius: 0;
|
|
|
|
border-bottom-left-radius: 0;
|
|
|
|
border-top-right-radius: var(--toolbar-button-border-radius);
|
|
|
|
border-bottom-right-radius: var(--toolbar-button-border-radius);
|
|
|
|
}
|
2018-04-05 02:18:46 +08:00
|
|
|
}
|
2017-04-19 08:54:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.toolbarListButton {
|
2018-10-19 04:37:14 +08:00
|
|
|
width: var(--toolbar-button-width);
|
|
|
|
height: var(--toolbar-button-height);
|
2017-04-19 08:54:51 +08:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2018-10-19 04:37:14 +08:00
|
|
|
font-size: var(--toolbar-button-font-size);
|
|
|
|
background-color: var(--toolbar-list-bg);
|
2018-04-05 02:18:46 +08:00
|
|
|
border: 0 !important;
|
|
|
|
box-shadow: none;
|
|
|
|
border-radius: 0;
|
|
|
|
padding: initial;
|
2019-04-08 22:22:22 +08:00
|
|
|
outline-offset: var(--toolbar-item-outline-offset);
|
2018-04-05 02:18:46 +08:00
|
|
|
|
2018-10-19 04:37:14 +08:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background-color: #bbb;
|
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-10-19 04:37:14 +08:00
|
|
|
color: var(--toolbar-list-color);
|
2018-04-05 02:18:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
svg {
|
2018-10-19 04:37:14 +08:00
|
|
|
fill: var(--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-10-19 04:37:14 +08:00
|
|
|
background-color: var(--toolbar-list-color) !important;
|
2018-04-05 02:18:46 +08:00
|
|
|
|
|
|
|
i {
|
2018-10-19 04:37:14 +08:00
|
|
|
color: var(--toolbar-list-bg-focus) !important;
|
2018-04-05 02:18:46 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
svg {
|
2018-10-19 04:37:14 +08:00
|
|
|
fill: var(--toolbar-list-bg-focus);
|
2018-04-05 02:18:46 +08:00
|
|
|
}
|
2017-04-19 08:54:51 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.customSvgIcon {
|
|
|
|
position: absolute;
|
2018-10-19 04:37:14 +08:00
|
|
|
width: var(--toolbar-button-width);
|
|
|
|
height: var(--toolbar-button-height);
|
2017-04-19 08:54:51 +08:00
|
|
|
}
|
|
|
|
|
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-10-19 04:37:14 +08:00
|
|
|
text-shadow: -1px 0 var(--toolbar-list-bg-focus), 0 1px var(--toolbar-list-bg-focus), 1px 0 var(--toolbar-list-bg-focus), 0 -1px var(--toolbar-list-bg-focus);
|
2017-06-03 07:46:02 +08:00
|
|
|
margin: auto;
|
2018-10-19 04:37:14 +08:00
|
|
|
color: var(--toolbar-list-color);
|
2017-04-19 08:54:51 +08:00
|
|
|
}
|
2018-10-25 20:46:31 +08:00
|
|
|
|