bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/whiteboard/whiteboard-toolbar/styles.scss

248 lines
5.8 KiB
SCSS
Raw Normal View History

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