Common layout

This commit is contained in:
Adina Țeudan 2021-10-02 16:19:48 +03:00
parent e09d56e9bf
commit e7d6b34870
2 changed files with 332 additions and 1 deletions

View File

@ -52,7 +52,7 @@
iqser-icon-button,
iqser-chevron-button,
redaction-user-button,
redaction-user-button, // TODO
iqser-circle-button {
position: relative;
display: flex;

View File

@ -1,3 +1,334 @@
@use 'common-mixins';
html,
body {
margin: 0;
padding: 0;
height: 100vh;
font-family: 'Inter', sans-serif;
color: var(--iqser-accent);
font-size: 13px;
line-height: 16px;
}
section.settings {
display: flex;
.page-header,
.content-inner {
width: calc(100vw - 200px);
}
// TODO
redaction-admin-side-nav {
height: calc(100vh - 61px);
}
}
.page-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 24px;
height: 50px;
width: 100vw;
box-sizing: border-box;
background-color: var(--iqser-white);
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 {
.page-header {
position: absolute;
top: 0;
}
.content-inner {
height: calc(100% - 50px);
}
.overlay-shadow {
top: 50px;
}
}
.content-inner {
display: flex;
flex-direction: row;
position: absolute;
bottom: 0;
width: 100%;
height: calc(100% - 111px);
transition: height ease-in-out 0.2s;
}
.content-container {
overflow: hidden;
position: relative;
width: 100%;
.dialog {
border-radius: 8px;
margin-top: 40px;
margin-bottom: 70px;
background-color: var(--iqser-white);
max-width: 650px;
height: fit-content;
box-shadow: 0 1px 5px 0 rgba(40, 50, 65, 0.19);
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;
// TODO
redaction-initials-avatar .username {
display: none;
}
}
}
}
.right-container {
border-left: 1px solid var(--iqser-grey-4);
box-sizing: border-box;
background: var(--iqser-white);
overflow: hidden;
transition: width ease-in-out 0.2s, min-width ease-in-out 0.2s;
&:hover {
overflow-y: auto;
@include common-mixins.scroll-bar;
}
.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;
}
}
}
}
.flex {
display: flex !important;
}
.flex-end {
display: flex;
justify-content: flex-end;
}
.flex-center {
display: flex;
justify-content: center;
}
.flex-align-items-center {
display: flex;
align-items: center;
}
.flex-1 {
flex: 1;
}
.flex-2 {
flex: 2;
}
.mt-0 {
margin-top: 0 !important;
}
.mt-5 {
margin-top: 5px;
}
.mt-8 {
margin-top: 8px;
}
.mt-16 {
margin-top: 16px !important;
}
.mt-20 {
margin-top: 20px;
}
.mt-24 {
margin-top: 24px;
}
.mt-32 {
margin-top: 32px;
}
.mb-6 {
margin-bottom: 6px;
}
.mb-8 {
margin-bottom: 8px !important;
}
.mb-12 {
margin-bottom: 12px !important;
}
.ml-8 {
margin-left: 8px;
}
.ml-14 {
margin-left: 14px;
}
.ml-16 {
margin-left: 16px;
}
.mr-24 {
margin-right: 24px;
}
.pb-24 {
padding-bottom: 24px;
}
.pb-32 {
padding-bottom: 32px;
}
.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;
}
.mr-4 {
margin-right: 4px !important;
}
.mr-8 {
margin-right: 8px !important;
}
.mr-16 {
margin-right: 16px;
}
.mr-34 {
margin-right: 34px;
}
.fit-content {
width: fit-content;
}
.d-flex {
display: flex;
}
.cdk-overlay-container {
z-index: 800;
}