/******************************************************************************
*
* Copyright (c) 2017, the Perspective Authors.
*
* This file is part of the Perspective library, distributed under the terms
* of the Apache License 2.0. The full license can be found in the LICENSE
* file.
*
*/
:host(:hover) {
#menu-bar {
opacity: 1 !important;
}
#settings_button, #settings_button.titled {
opacity: 1;
}
}
:host {
position: relative;
display: flex;
flex-direction: column;
align-items: stretch;
font-family: Arial;
* {
box-sizing: border-box;
line-height: 1.25;
}
#app_panel {
position: absolute;
bottom: 0px;
left: 0;
right: 0;
top: 0;
height: auto;
flex-direction: row-reverse;
& > .split-panel-divider {
border-left: 1px solid var(--inactive--color, #6E6E6E);
margin-right: -5px;
}
}
#status_bar {
// position: absolute;
// bottom: 0;
// left: 0;
// right: 0;
height: 48px;
}
#main_column {
display: flex;
flex-direction: column;
position: relative;
}
#main_panel_container {
position: absolute;
top: 48px;
bottom: 0;
left: 0;
right: 0;
box-shadow: var(--plugin--box-shadow, none);
background: var(--plugin--background, none);
overflow: hidden;
border: var(--plugin--border, none);
&.settings-closed.titled {
top: 48px;
}
&.settings-closed {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
}
#side_panel {
position: relative;
flex: 0 0 auto;
padding: var(--side-panel--padding, 10px 2px 0px 11px);
padding-left: 8px;
box-sizing: border-box;
width: 100%;
& > .split-panel-child {
overflow: hidden;
}
& > .split-panel-divider {
border-top: 1px solid var(--inactive--color, #6E6E6E);
border-bottom: 2px solid var(--inactive--color, #6E6E6E);
margin-left: -9px;
margin-right: 0px;
flex: 0 0 4px;
}
}
.noselect {
-webkit-touch-callout: none;
/* iOS Safari */
-webkit-user-select: none;
/* Safari */
-khtml-user-select: none;
/* Konqueror HTML */
-moz-user-select: none;
/* Firefox */
-ms-user-select: none;
/* Internet Explorer/Edge */
user-select: none;
/* Non-prefixed version, currently supported by Chrome and Opera */
}
.column {
display: flex;
list-style: none;
flex-direction: column;
flex: 1;
}
select {
height: 19px;
}
#plugin_selector {
margin-top: 3px;
border-bottom-width: 1px;
border-style: solid;
border-color: var(--inactive--color, #c5c9d0);
border-top-width: 0px;
border-left-width: 0px;
border-right-width: 0px;
}
#settings_button {
opacity: 0;
}
#settings_button.titled {
opacity: 0.2;
}
#settings_button {
position: absolute;
top: 0;
right: 0;
margin-top: 14px;
background-color: var(--plugin--background);
margin-right: 14px;
padding: 2px 12px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
border: 1px solid var(--inactive--color);
border-radius: 2px;
font-size: 10px;
font-weight: normal;
&:hover {
color: var(--plugin--background, inherit);
background-color: var(--icon--color);
cursor: pointer;
}
&:before {
font-feature-settings: "liga";
content: var(--config-button-icon--content, "\1f527");
}
}
#main_column #settings_button {
padding: 14px 0 0 0;
margin: 0;
border: none;
opacity: 1;
background-color: transparent;
&:before {
display: inline-block;
height: 18px;
width: 26px;
// content: url(../svg/drawer-tab.svg);;
content: "";
-webkit-mask-size: cover; //40px 35px;
background-repeat: no-repeat;
background-color: var(--icon--color);
-webkit-mask-image: url(../svg/drawer-tab.svg);
}
// &:hover {
// // color: var(--icon--color);
// background-color: var(--plugin--background);
// }
// .plugin-select-item:hover {
// background-color: #042121;
// color: #FDFFFD;
// }
// &:hover:before {
// background-color: #FDFFFD;
// }
// &:before {
// -webkit-mask-image: url(../svg/drawer-tab.svg);
// }
}
.split-panel {
.split-panel-child {
&:first-child:not(.is-width-override) {
max-width: 300px;
}
}
}
}