common-ui/src/assets/styles/common-layout.scss
2024-11-27 16:24:51 +02:00

274 lines
4.7 KiB
SCSS

@use 'common-mixins';
html,
body {
margin: 0;
padding: 0;
height: 100vh;
font-family: var(--iqser-font-family);
color: var(--iqser-text);
background-color: var(--iqser-background);
font-size: var(--iqser-font-size);
line-height: 16px;
display: flex;
overflow: hidden;
}
body > *:first-child {
display: flex;
overflow: hidden;
router-outlet + * {
display: flex;
flex: 1;
flex-direction: column;
overflow: auto;
@include common-mixins.scroll-bar;
}
}
section.settings {
display: flex;
.content-inner {
width: calc(100vw - 200px);
}
}
.page-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 24px;
height: 50px;
width: 100%;
box-sizing: border-box;
background-color: var(--iqser-background);
border-bottom: 1px solid var(--iqser-separator);
.filters {
display: flex;
align-items: center;
> *:not(:last-child) {
margin-right: 2px;
}
> div:first-child {
margin-right: 8px;
}
form {
margin-left: 6px;
.iqser-input-group {
width: 250px;
}
}
.reset-filters {
margin-left: 12px;
color: var(--iqser-primary);
cursor: pointer;
}
}
.actions {
display: flex;
align-items: center;
justify-content: flex-end;
> *:not(:last-child) {
margin-right: 2px;
}
}
}
.fullscreen {
.content-inner {
height: calc(100% - 50px);
}
.right-container {
transform: translateY(61px);
height: calc(100% - 61px);
}
}
.content-inner {
display: flex;
flex-direction: row;
right: 0;
bottom: 0;
width: 100%;
height: calc(100vh - var(--iqser-top-bar-height) - 50px);
transition: height ease-in-out 0.2s;
}
.content-container {
overflow: hidden;
position: relative;
flex: 1;
}
.dialog:not(section) {
border-radius: 8px;
margin-top: 40px;
margin-bottom: 70px;
background-color: var(--iqser-background);
max-width: 650px;
height: fit-content;
@include common-mixins.drop-shadow;
position: unset;
.heading-l {
margin-bottom: 16px;
}
.dialog-content {
display: flex;
.dialog-content-left {
min-width: 300px;
margin-right: 64px;
}
.link-action {
margin-top: 8px;
}
}
}
@media only screen and (max-width: 1600px) {
.user-column {
justify-content: center;
align-items: center;
iqser-initials-avatar .username {
display: none;
}
}
}
.right-container {
border-left: 1px solid var(--iqser-separator);
box-sizing: border-box;
background: var(--iqser-background);
overflow: hidden;
&.with-transition {
transition:
width ease-in-out 0.2s,
min-width ease-in-out 0.2s;
}
@include common-mixins.scroll-bar;
&:hover {
overflow-y: auto;
}
.collapsed-wrapper {
display: none;
}
&.collapsed {
padding-left: 0 !important;
padding-right: 0 !important;
width: 60px !important;
min-width: 60px !important;
display: flex;
div:not(.collapsed-wrapper) {
display: none;
}
.collapsed-wrapper {
display: flex;
flex-direction: column;
align-items: center;
width: 60px;
div {
display: initial;
}
.all-caps-label {
transform: rotate(90deg) translateX(50%);
white-space: nowrap;
margin-top: 10px;
}
}
}
}
.fields-container {
flex-direction: column;
&:first-child {
margin-right: 40px;
}
}
.flex {
display: flex !important;
}
.flex-column {
@extend .flex;
flex-direction: column;
}
.flex-end {
display: flex;
justify-content: flex-end;
}
.flex-center {
display: flex;
justify-content: center;
}
.flex-align-items-center {
display: flex;
align-items: center;
}
.w-100 {
min-width: 100px !important;
width: 100px !important;
}
.break-20 {
height: 20px;
background: transparent;
display: block;
}
.hidden {
display: none !important;
}
.not-visible {
visibility: hidden;
}
.pointer {
cursor: pointer;
}
.cursor-default {
cursor: default;
}
.fit-content {
width: fit-content;
}
.cdk-overlay-container {
z-index: 800;
}
.overflow-hidden {
overflow: hidden;
}