536 lines
8.9 KiB
SCSS
536 lines
8.9 KiB
SCSS
@import "variables.scss";
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
html,
|
|
body {
|
|
font-family: $font-family-sans-serif;
|
|
font-size: $font-size-base;
|
|
line-height: $line-height-base;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
|
|
body {
|
|
width: 375px !important;
|
|
height: 600px !important;
|
|
overflow: hidden;
|
|
color: $text-color;
|
|
background-color: $background-color;
|
|
|
|
@include themify($themes) {
|
|
color: themed("textColor");
|
|
background-color: themed("backgroundColor");
|
|
}
|
|
|
|
&.body-sm {
|
|
width: 375px !important;
|
|
height: 500px !important;
|
|
}
|
|
|
|
&.body-xs {
|
|
width: 375px !important;
|
|
height: 300px !important;
|
|
}
|
|
|
|
&.body-full {
|
|
width: 100% !important;
|
|
height: 100% !important;
|
|
}
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
font-family: $font-family-sans-serif;
|
|
font-size: $font-size-base;
|
|
font-weight: normal;
|
|
}
|
|
|
|
p {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
ul,
|
|
ol {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
img {
|
|
border: none;
|
|
}
|
|
|
|
a {
|
|
text-decoration: none;
|
|
|
|
@include themify($themes) {
|
|
color: themed("primaryColor");
|
|
}
|
|
|
|
&:hover,
|
|
&:focus {
|
|
@include themify($themes) {
|
|
color: darken(themed("primaryColor"), 6%);
|
|
}
|
|
}
|
|
}
|
|
|
|
input,
|
|
select,
|
|
textarea {
|
|
@include themify($themes) {
|
|
color: themed("textColor");
|
|
background-color: themed("inputBackgroundColor");
|
|
}
|
|
}
|
|
|
|
input,
|
|
select,
|
|
textarea,
|
|
button {
|
|
font-size: $font-size-base;
|
|
font-family: $font-family-sans-serif;
|
|
}
|
|
|
|
button {
|
|
white-space: nowrap;
|
|
cursor: pointer;
|
|
}
|
|
|
|
textarea {
|
|
resize: vertical;
|
|
}
|
|
|
|
app-root > div {
|
|
height: 100%;
|
|
}
|
|
|
|
main::-webkit-scrollbar,
|
|
cdk-virtual-scroll-viewport::-webkit-scrollbar,
|
|
.vault-select::-webkit-scrollbar {
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
|
|
main::-webkit-scrollbar-track,
|
|
.vault-select::-webkit-scrollbar-track {
|
|
background-color: transparent;
|
|
}
|
|
|
|
cdk-virtual-scroll-viewport::-webkit-scrollbar-track {
|
|
@include themify($themes) {
|
|
background-color: themed("backgroundColor");
|
|
}
|
|
}
|
|
|
|
main::-webkit-scrollbar-thumb,
|
|
cdk-virtual-scroll-viewport::-webkit-scrollbar-thumb,
|
|
.vault-select::-webkit-scrollbar-thumb {
|
|
border-radius: 10px;
|
|
margin-right: 1px;
|
|
|
|
@include themify($themes) {
|
|
background-color: themed("scrollbarColor");
|
|
}
|
|
|
|
&:hover {
|
|
@include themify($themes) {
|
|
background-color: themed("scrollbarHoverColor");
|
|
}
|
|
}
|
|
}
|
|
|
|
header {
|
|
min-height: 44px;
|
|
max-height: 44px;
|
|
display: flex;
|
|
border-bottom: 1px solid #000000;
|
|
|
|
@include themify($themes) {
|
|
color: themed("headerColor");
|
|
background-color: themed("headerBackgroundColor");
|
|
border-bottom-color: themed("headerBorderColor");
|
|
}
|
|
|
|
.left,
|
|
.right {
|
|
flex: 1;
|
|
display: flex;
|
|
min-width: -webkit-min-content; /* Workaround to Chrome bug */
|
|
.header-icon {
|
|
margin-right: 5px;
|
|
}
|
|
}
|
|
|
|
.right {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.center {
|
|
display: flex;
|
|
align-items: center;
|
|
text-align: center;
|
|
min-width: 0;
|
|
}
|
|
|
|
app-pop-out > button,
|
|
div > button,
|
|
div > a {
|
|
border: none;
|
|
padding: 0 10px;
|
|
text-decoration: none;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
@include themify($themes) {
|
|
color: themed("headerColor");
|
|
background-color: themed("headerBackgroundColor");
|
|
}
|
|
|
|
&:hover,
|
|
&:focus {
|
|
@include themify($themes) {
|
|
background-color: themed("headerBackgroundHoverColor");
|
|
color: themed("headerColor");
|
|
}
|
|
}
|
|
|
|
&[disabled] {
|
|
opacity: 0.65;
|
|
cursor: default !important;
|
|
}
|
|
|
|
i + span {
|
|
margin-left: 5px;
|
|
}
|
|
}
|
|
|
|
app-pop-out {
|
|
display: flex;
|
|
padding-right: 0.5em;
|
|
}
|
|
|
|
.title {
|
|
font-weight: bold;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.search {
|
|
padding: 7px 10px;
|
|
width: 100%;
|
|
text-align: left;
|
|
position: relative;
|
|
display: flex;
|
|
|
|
.bwi {
|
|
position: absolute;
|
|
top: 15px;
|
|
left: 20px;
|
|
|
|
@include themify($themes) {
|
|
color: themed("headerInputPlaceholderColor");
|
|
}
|
|
}
|
|
|
|
input {
|
|
width: 100%;
|
|
margin: 0;
|
|
border: none;
|
|
padding: 5px 10px 5px 30px;
|
|
border-radius: $border-radius;
|
|
|
|
@include themify($themes) {
|
|
background-color: themed("headerInputBackgroundColor");
|
|
color: themed("headerInputColor");
|
|
}
|
|
|
|
&:focus {
|
|
border-radius: $border-radius;
|
|
outline: none;
|
|
|
|
@include themify($themes) {
|
|
background-color: themed("headerInputBackgroundFocusColor");
|
|
}
|
|
}
|
|
|
|
&::-webkit-input-placeholder {
|
|
@include themify($themes) {
|
|
color: themed("headerInputPlaceholderColor");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.left + .search,
|
|
.left + .sr-only + .search {
|
|
padding-left: 0;
|
|
|
|
.bwi {
|
|
left: 10px;
|
|
}
|
|
}
|
|
|
|
.search + .right {
|
|
margin-left: -10px;
|
|
}
|
|
}
|
|
|
|
.content {
|
|
padding: 15px;
|
|
}
|
|
|
|
.tabs {
|
|
width: 100%;
|
|
height: 55px;
|
|
border-top: 1px solid #000000;
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
overflow: hidden;
|
|
|
|
@include themify($themes) {
|
|
background-color: themed("tabBackgroundColor");
|
|
border-top-color: themed("borderColor");
|
|
}
|
|
|
|
ul {
|
|
display: flex;
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
|
|
li {
|
|
flex: 1;
|
|
display: inline-block;
|
|
padding: 0;
|
|
margin: 0;
|
|
|
|
a,
|
|
button {
|
|
text-align: center;
|
|
display: block;
|
|
padding: 7px 0;
|
|
text-decoration: none;
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
width: 100%;
|
|
|
|
@include themify($themes) {
|
|
color: themed("mutedColor");
|
|
}
|
|
|
|
&:hover,
|
|
&:focus {
|
|
@include themify($themes) {
|
|
background-color: themed("tabBackgroundHoverColor");
|
|
}
|
|
}
|
|
|
|
i {
|
|
display: block;
|
|
margin-bottom: 2px;
|
|
text-align: center;
|
|
}
|
|
}
|
|
|
|
&.active {
|
|
a,
|
|
button {
|
|
@include themify($themes) {
|
|
color: themed("primaryColor");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
app-root {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 980;
|
|
@include themify($themes) {
|
|
background-color: themed("backgroundColor");
|
|
}
|
|
}
|
|
|
|
@media only screen and (min-width: 601px) {
|
|
app-login header {
|
|
padding: 0 calc((100% - 500px) / 2);
|
|
}
|
|
|
|
app-login main {
|
|
padding: 0 calc((100% - 500px) / 2);
|
|
}
|
|
|
|
app-two-factor header {
|
|
padding: 0 calc((100% - 500px) / 2);
|
|
}
|
|
|
|
app-two-factor main {
|
|
padding: 0 calc((100% - 500px) / 2);
|
|
}
|
|
|
|
app-lock header {
|
|
padding: 0 calc((100% - 500px) / 2);
|
|
}
|
|
|
|
app-lock main {
|
|
padding: 0 calc((100% - 500px) / 2);
|
|
}
|
|
}
|
|
|
|
main {
|
|
position: absolute;
|
|
top: 44px;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
|
|
@include themify($themes) {
|
|
background-color: themed("backgroundColor");
|
|
}
|
|
|
|
&.no-header {
|
|
top: 0;
|
|
}
|
|
|
|
&.flex {
|
|
display: flex;
|
|
flex-flow: column;
|
|
height: calc(100% - 44px);
|
|
|
|
&.tab-page {
|
|
height: calc(100% - 99px);
|
|
}
|
|
}
|
|
}
|
|
|
|
.tab-page {
|
|
main {
|
|
bottom: 55px;
|
|
}
|
|
}
|
|
|
|
.center-content,
|
|
.no-items,
|
|
.full-loading-spinner {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100%;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.no-items,
|
|
.full-loading-spinner {
|
|
text-align: center;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
|
|
.no-items-image {
|
|
@include themify($themes) {
|
|
content: url("../images/search-desktop" + themed("svgSuffix"));
|
|
}
|
|
}
|
|
|
|
.bwi {
|
|
margin-bottom: 10px;
|
|
|
|
@include themify($themes) {
|
|
color: themed("disabledIconColor");
|
|
}
|
|
}
|
|
}
|
|
|
|
// cdk-virtual-scroll
|
|
.cdk-virtual-scroll-viewport {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.cdk-virtual-scroll-content-wrapper {
|
|
width: 100%;
|
|
}
|
|
|
|
.org-filter-content {
|
|
padding-bottom: 5px;
|
|
padding-left: 7px;
|
|
.org-filter {
|
|
@include themify($themes) {
|
|
background-color: themed("backgroundColor");
|
|
}
|
|
border: 1px solid;
|
|
padding: 7px;
|
|
border-radius: $border-radius;
|
|
}
|
|
}
|
|
.vault-select {
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
|
|
@include themify($themes) {
|
|
background-color: themed("boxBackgroundColor");
|
|
}
|
|
margin-right: 5px;
|
|
margin-top: 1px;
|
|
width: 160px;
|
|
@include themify($themes) {
|
|
border: 1px solid themed("borderColor");
|
|
}
|
|
border-radius: $border-radius;
|
|
button {
|
|
border: none;
|
|
background: transparent;
|
|
width: 100%;
|
|
padding: 5px 10px;
|
|
text-align: start;
|
|
@include themify($themes) {
|
|
color: themed("textColor");
|
|
}
|
|
|
|
a {
|
|
@include themify($themes) {
|
|
color: themed("textColor");
|
|
}
|
|
}
|
|
|
|
&:hover {
|
|
@include themify($themes) {
|
|
background-color: themed("boxBackgroundHoverColor");
|
|
}
|
|
}
|
|
}
|
|
.border {
|
|
@include themify($themes) {
|
|
background: themed("borderColor");
|
|
}
|
|
left: 10px;
|
|
width: calc(100% - 20px);
|
|
height: 1px;
|
|
position: relative;
|
|
}
|
|
}
|