2018-12-02 16:19:25 +00:00
|
|
|
$display-break-1: 700px;
|
|
|
|
$display-break-2: 900px;
|
|
|
|
$display-break-3: 1200px;
|
|
|
|
$display-break-4: 1600px;
|
|
|
|
$display-break-5: 1800px;
|
|
|
|
|
|
|
|
// CSS GRID WITH FIXED SIDEBAR OUTSIDE GRID
|
|
|
|
// Mobile-first layout
|
|
|
|
.master-container {
|
|
|
|
display: block;
|
|
|
|
height: auto;
|
|
|
|
width: 100%;
|
2018-12-04 17:26:57 +00:00
|
|
|
// z-index: 777;
|
2018-12-02 16:19:25 +00:00
|
|
|
|
|
|
|
.master-content {
|
|
|
|
display: block;
|
|
|
|
height: auto;
|
|
|
|
width: 100%;
|
2018-12-03 19:51:34 +00:00
|
|
|
padding: 10px;
|
2018-12-04 17:26:57 +00:00
|
|
|
// z-index: 666;
|
2018-12-02 16:19:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
.master-sidebar-container {
|
|
|
|
display: block;
|
|
|
|
height: auto;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
.master-navbar {
|
|
|
|
display: block;
|
|
|
|
height: auto;
|
|
|
|
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;
|
2018-12-03 19:51:34 +00:00
|
|
|
z-index: 999;
|
2018-12-02 16:19:25 +00:00
|
|
|
|
|
|
|
> .nav-content {
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
> .nav-options {
|
|
|
|
> .option {
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
|
|
>.dicon {
|
|
|
|
display: inline-block;
|
|
|
|
color: $color-white;
|
|
|
|
font-size: 20px;
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .name {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .meta {
|
|
|
|
> .logo {
|
|
|
|
display: none;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2018-12-03 19:51:34 +00:00
|
|
|
|
|
|
|
> .bookmarks {
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
>.dicon {
|
|
|
|
cursor: pointer;
|
|
|
|
color: $color-white;
|
|
|
|
font-size: 20px;
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .user-gravatar-container {
|
|
|
|
display: inline-block;
|
|
|
|
margin: 0 10px 0 0;
|
|
|
|
padding: 0;
|
|
|
|
vertical-align: text-bottom;
|
|
|
|
|
|
|
|
> .user-gravatar {
|
|
|
|
cursor: pointer;
|
|
|
|
position: relative;
|
|
|
|
width: 25px;
|
|
|
|
height: 25px;
|
|
|
|
line-height: 24px;
|
|
|
|
padding: 0;
|
|
|
|
border-radius: 50%;
|
|
|
|
font-size: 0.75rem;
|
|
|
|
text-align: center;
|
2018-12-04 17:26:57 +00:00
|
|
|
color: $theme-500;
|
2018-12-03 19:51:34 +00:00
|
|
|
font-weight: bold;
|
|
|
|
background-color: $color-white;
|
|
|
|
@extend .no-select;
|
|
|
|
}
|
|
|
|
}
|
2018-12-02 16:19:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.master-sidebar {
|
|
|
|
display: block;
|
|
|
|
height: auto;
|
|
|
|
width: 100%;
|
2018-12-03 19:51:34 +00:00
|
|
|
padding: 5px 10px;
|
|
|
|
z-index: 888;
|
2018-12-04 17:26:57 +00:00
|
|
|
background-color: map-get($gray-shades, 100);
|
2018-12-02 16:19:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Tablet starts around 700px
|
|
|
|
@media (min-width: $display-break-1) {
|
|
|
|
.master-container {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 240px auto;
|
|
|
|
|
|
|
|
.master-content {
|
|
|
|
grid-column-start: 2;
|
2018-12-03 19:51:34 +00:00
|
|
|
padding: 10px;
|
2018-12-02 16:19:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.master-sidebar-container {
|
|
|
|
position: fixed;
|
|
|
|
width: 240px;
|
|
|
|
height: 100vh;
|
|
|
|
|
|
|
|
.master-navbar {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 40px;
|
|
|
|
height: 100vh;
|
|
|
|
text-align: center;
|
|
|
|
padding: 10px 0;
|
|
|
|
|
|
|
|
> .nav-content {
|
|
|
|
display: flex;
|
|
|
|
flex-grow: 1;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
height: 100vh;
|
|
|
|
|
|
|
|
> .nav-options {
|
|
|
|
> .option {
|
|
|
|
>.dicon {
|
|
|
|
display: block;
|
|
|
|
color: $color-white;
|
|
|
|
font-size: 20px;
|
|
|
|
padding: 20px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .meta {
|
|
|
|
padding-bottom: 30px;
|
|
|
|
|
|
|
|
> .logo {
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
> img {
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .documize {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2018-12-03 19:51:34 +00:00
|
|
|
|
|
|
|
> .bookmarks {
|
|
|
|
>.dicon {
|
|
|
|
display: block;
|
|
|
|
color: $color-white;
|
|
|
|
font-size: 20px;
|
|
|
|
padding: 20px 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .user-gravatar-container {
|
|
|
|
display: block;
|
|
|
|
text-align: center;
|
|
|
|
margin: 0 0 15px 4px;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
> .user-gravatar {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
2018-12-02 16:19:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.master-sidebar {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 40px;
|
|
|
|
width: 200px;
|
|
|
|
height: 100vh;
|
2018-12-03 19:51:34 +00:00
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
2018-12-02 16:19:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Small screen starts around 900px
|
|
|
|
@media (min-width: $display-break-2) {
|
|
|
|
.master-container {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 290px auto;
|
|
|
|
|
|
|
|
.master-content {
|
|
|
|
grid-column-start: 2;
|
2018-12-03 19:51:34 +00:00
|
|
|
padding: 20px;
|
2018-12-02 16:19:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.master-sidebar-container {
|
|
|
|
position: fixed;
|
|
|
|
width: 290px;
|
|
|
|
height: 100vh;
|
|
|
|
|
|
|
|
.master-navbar {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 70px;
|
|
|
|
height: 100vh;
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
> .nav-content {
|
|
|
|
> .nav-options {
|
|
|
|
> .option {
|
|
|
|
> .dicon {
|
|
|
|
display: block;
|
|
|
|
color: $color-white;
|
|
|
|
font-size: 24px;
|
|
|
|
padding: 25px 0 10px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .name {
|
|
|
|
display: block;
|
|
|
|
padding: 0 0 10px 0;
|
|
|
|
font-size: 0.8rem;
|
|
|
|
font-weight: 700;
|
|
|
|
color: white;
|
|
|
|
text-transform: uppercase;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .meta {
|
|
|
|
> .logo {
|
|
|
|
> img {
|
|
|
|
width: 32px;
|
|
|
|
height: 32px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .documize {
|
|
|
|
display: block;
|
|
|
|
font-size: 0.7rem;
|
|
|
|
color: white;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
}
|
2018-12-03 19:51:34 +00:00
|
|
|
|
|
|
|
> .user-gravatar-container {
|
|
|
|
margin: 0 0 15px 8px;
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
> .user-gravatar {
|
|
|
|
width: 30px;
|
|
|
|
height: 30px;
|
|
|
|
line-height: 30px;
|
|
|
|
font-size: 0.9rem;
|
|
|
|
}
|
|
|
|
}
|
2018-12-02 16:19:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.master-sidebar {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 70px;
|
|
|
|
width: 220px;
|
|
|
|
height: 100vh;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Medium screen starts around 1200px
|
|
|
|
@media (min-width: $display-break-3) {
|
|
|
|
.master-container {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 320px auto;
|
|
|
|
|
|
|
|
.master-content {
|
|
|
|
grid-column-start: 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.master-sidebar-container {
|
|
|
|
position: fixed;
|
|
|
|
width: 320px;
|
|
|
|
height: 100vh;
|
|
|
|
|
|
|
|
.master-navbar {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 70px;
|
|
|
|
height: 100vh;
|
|
|
|
}
|
|
|
|
|
|
|
|
.master-sidebar {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 70px;
|
|
|
|
width: 250px;
|
|
|
|
height: 100vh;
|
2018-12-03 19:51:34 +00:00
|
|
|
padding: 20px 10px;
|
2018-12-02 16:19:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Large screen starts around 1600px
|
|
|
|
@media (min-width: $display-break-4) {
|
|
|
|
.master-container {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: 370px auto;
|
|
|
|
|
|
|
|
.master-content {
|
|
|
|
grid-column-start: 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.master-sidebar-container {
|
|
|
|
position: fixed;
|
|
|
|
width: 370px;
|
|
|
|
height: 100vh;
|
|
|
|
|
|
|
|
.master-navbar {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 70px;
|
|
|
|
height: 100vh;
|
|
|
|
}
|
|
|
|
|
|
|
|
.master-sidebar {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 70px;
|
|
|
|
width: 300px;
|
|
|
|
height: 100vh;
|
2018-12-03 19:51:34 +00:00
|
|
|
padding: 20px 15px;
|
2018-12-02 16:19:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|