1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-22 14:49:42 +02:00
documize/gui/app/styles/core/layout/layout.scss

270 lines
5 KiB
SCSS
Raw Normal View History

// *****************************************************************
// Define mobile-first layout for top navigation bar and toolbar.
// *****************************************************************
.master-navigation {
2018-12-02 16:19:25 +00:00
display: block;
height: auto;
width: 100%;
> .navbar {
2018-12-02 16:19:25 +00:00
display: block;
height: 40px;
2018-12-02 16:19:25 +00:00
width: 100%;
2018-12-04 17:26:57 +00:00
background-color: $theme-500;
2018-12-02 16:19:25 +00:00
text-align: center;
padding: 0;
z-index: 999;
2018-12-02 16:19:25 +00:00
> .container {
2018-12-02 16:19:25 +00:00
display: flex;
flex-grow: 1;
flex-direction: row;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
width: 100%;
padding: 0 20px;
2018-12-02 16:19:25 +00:00
> .options {
> .selected {
> .dicon {
color: $color-white !important;
}
}
2018-12-02 16:19:25 +00:00
> .option {
cursor: pointer;
display: inline-block;
2018-12-02 16:19:25 +00:00
> .dicon {
2018-12-02 16:19:25 +00:00
display: inline-block;
color: $theme-300;
2018-12-02 16:19:25 +00:00
font-size: 20px;
padding: 10px 10px;
}
&:hover {
> .dicon {
color: $theme-400 !important;
}
2018-12-02 16:19:25 +00:00
}
}
> a.option {
color: $theme-300;
&:hover {
color: $color-white;
}
}
> .invalid-plan {
> .dicon {
color: map-get($yellow-shades, 600) !important;
}
}
> .user-gravatar-container {
display: inline-block;
margin: 0;
padding: 7px 10px;
vertical-align: top;
> .user-gravatar {
display: inline-block;
cursor: pointer;
position: relative;
width: 26px;
height: 26px;
line-height: 26px;
padding: 0;
border-radius: 50%;
font-size: 0.85rem;
text-align: center;
2018-12-04 17:26:57 +00:00
color: $theme-500;
font-weight: bold;
background-color: $color-white;
@extend .no-select;
}
}
2018-12-02 16:19:25 +00:00
}
}
}
> .toolbar {
2018-12-02 16:19:25 +00:00
display: block;
height: auto;
height: 50px;
2018-12-02 16:19:25 +00:00
width: 100%;
2019-03-08 15:51:19 +00:00
background-color: $color-sidebar;
background-color: $theme-100;
text-align: center;
padding: 0;
z-index: 999;
> .container {
display: flex;
flex-grow: 1;
flex-direction: row;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
width: 100%;
padding: 0 10px;
> div[class^="zone-"], div[class*=" zone-"] {
margin: 0;
padding: 10px 10px;
justify-content: center;
> .label {
font-size: 1rem;
}
}
}
2018-12-02 16:19:25 +00:00
}
}
// *****************************************************************
// Define mobile-first layout for main content zone with a sidebar.
// *****************************************************************
.master-grid-container {
display: block;
height: auto;
width: 100%;
.master-sidebar {
display: block;
height: auto;
width: 100%;
padding: 10px;
}
.master-content {
display: block;
height: auto;
width: 100%;
padding: 10px;
2018-12-02 16:19:25 +00:00
}
}
2018-12-02 16:19:25 +00:00
// $sidebar-height: calc(100vh - 90px);
$sidebar-height: auto;
// Tablet starts around 700px
@media (min-width: $display-break-1) {
.master-grid-container {
display: grid;
grid-template-columns: 200px auto;
2018-12-02 16:19:25 +00:00
.master-sidebar {
width: 200px;
height: $sidebar-height;
// overflow-x: hidden;
// overflow-y: auto;
padding: 20px 15px;
2018-12-02 16:19:25 +00:00
}
.master-content {
grid-column-start: 2;
padding: 20px;
max-width: calc(100vw - 210px);
}
2018-12-02 16:19:25 +00:00
}
}
// Small screen starts around 900px
@media (min-width: $display-break-2) and (min-height: 650px) {
.master-grid-container {
2018-12-02 16:19:25 +00:00
display: grid;
grid-template-columns: 240px auto;
.master-sidebar {
width: 240px;
}
2018-12-02 16:19:25 +00:00
.master-content {
grid-column-start: 2;
padding: 20px;
max-width: calc(100vw - 250px);
2018-12-02 16:19:25 +00:00
}
}
}
// Medium screen starts around 1200px
@media (min-width: $display-break-3) and (min-height: 650px) {
.master-grid-container {
2018-12-02 16:19:25 +00:00
display: grid;
grid-template-columns: 300px auto;
.master-sidebar {
width: 300px;
padding: 40px 20px;
}
2018-12-02 16:19:25 +00:00
.master-content {
grid-column-start: 2;
padding: 40px 30px;
max-width: calc(100vw - 310px);
2018-12-02 16:19:25 +00:00
}
}
}
// Large screen starts around 1600px
@media (min-width: $display-break-4) and (min-height: 650px) {
.master-grid-container {
2018-12-02 16:19:25 +00:00
display: grid;
grid-template-columns: 350px minmax(auto, 1200px);
.master-sidebar {
width: 350px;
padding: 40px 20px;
}
2018-12-02 16:19:25 +00:00
.master-content {
grid-column-start: 2;
padding: 40px 40px;
max-width: 1200px;
2018-12-02 16:19:25 +00:00
}
}
}
2018-12-02 16:19:25 +00:00
// *****************************************************************
// Define mobile-first layout for content without a sidebar.
// *****************************************************************
.master-container {
display: block;
height: auto;
width: 100%;
padding: 20px;
}
2018-12-02 16:19:25 +00:00
// Tablet starts around 700px
@media (min-width: $display-break-1) {
.master-container {
padding: 20px;
}
}
// Small screen starts around 900px
@media (min-width: $display-break-2) and (min-height: 650px) {
.master-container {
padding: 20px;
}
}
// Medium screen starts around 1200px
@media (min-width: $display-break-3) and (min-height: 650px) {
.master-container {
padding: 30px;
}
}
// Large screen starts around 1600px
@media (min-width: $display-break-4) and (min-height: 650px) {
.master-container {
padding: 40px;
max-width: 1200px;
2018-12-02 16:19:25 +00:00
}
}