mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-16 22:25:30 +08:00
145 lines
2.4 KiB
SCSS
145 lines
2.4 KiB
SCSS
// scss-lint:disable SelectorDepth
|
|
// scss-lint:disable NestingDepth
|
|
|
|
.dashboard-background {
|
|
background: $color-concrete;
|
|
height: 100%;
|
|
left: 0;
|
|
position: fixed;
|
|
top: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.dashboard-view {
|
|
--dashboard-widgets-gap: 30px;
|
|
padding: 1.5rem 0;
|
|
}
|
|
|
|
.dashboard-header {
|
|
padding-bottom: 1.5rem;
|
|
}
|
|
|
|
.dashboard-container {
|
|
--widget-header-size: 44px;
|
|
display: grid;
|
|
grid-auto-rows: 26em;
|
|
grid-column-gap: var(--dashboard-widgets-gap);
|
|
grid-row-gap: var(--dashboard-widgets-gap);
|
|
grid-template-columns: repeat(auto-fit, minmax(7em, 1fr));
|
|
width: 100%;
|
|
|
|
.basic-widget {
|
|
background: $color-white;
|
|
border-radius: $border-radius-modal;
|
|
box-shadow: $flyout-shadow;
|
|
position: relative;
|
|
|
|
&.large-widget {
|
|
grid-column: auto / 9 span;
|
|
}
|
|
|
|
&.medium-widget {
|
|
grid-column: auto / 6 span;
|
|
}
|
|
|
|
&.small-widget {
|
|
grid-column: auto / 3 span;
|
|
}
|
|
|
|
.widget-header {
|
|
align-items: center;
|
|
border-bottom: $border-tertiary;
|
|
display: flex;
|
|
height: var(--widget-header-size);
|
|
padding-left: 16px;
|
|
|
|
.widget-title {
|
|
@include font-h2;
|
|
flex-shrink: 0;
|
|
}
|
|
}
|
|
|
|
.widget-body {
|
|
height: calc(100% - var(--widget-header-size));
|
|
position: absolute;
|
|
width: 100%;
|
|
|
|
.widget-placeholder {
|
|
padding: 24px;
|
|
|
|
.widget-placeholder-title {
|
|
@include font-h1;
|
|
}
|
|
|
|
.widget-placeholder-description {
|
|
@include font-main;
|
|
color: $color-alto;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
.quick-start-buttons {
|
|
display: flex;
|
|
position: relative;
|
|
|
|
.btn {
|
|
margin-right: .25em;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1240px) {
|
|
.dashboard-container {
|
|
--dashboard-widgets-gap: 15px;
|
|
grid-template-columns: 100%;
|
|
|
|
.basic-widget {
|
|
&.large-widget,
|
|
&.medium-widget,
|
|
&.small-widget {
|
|
grid-column: auto / 1 span;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (max-height: 800px) {
|
|
.dashboard-container {
|
|
grid-auto-rows: 20em;
|
|
}
|
|
|
|
.dashboard-view {
|
|
--dashboard-widgets-gap: 15px;
|
|
}
|
|
}
|
|
|
|
@media (min-height: 1080px) {
|
|
.dashboard-container {
|
|
grid-auto-rows: 32em;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 700px) {
|
|
|
|
.dashboard-container {
|
|
--widget-header-size: 72px;
|
|
|
|
.basic-widget {
|
|
&.large-widget,
|
|
&.medium-widget,
|
|
&.small-widget {
|
|
grid-column: 1 span;
|
|
}
|
|
}
|
|
|
|
.widget-header {
|
|
flex-wrap: wrap;
|
|
|
|
.sci-secondary-navbar {
|
|
height: 36px;
|
|
}
|
|
}
|
|
}
|
|
}
|