mirror of https://github.com/vizality/vizality
misc code cleanup
parent
9673945330
commit
c57dcd58ab
@ -1,79 +0,0 @@
|
||||
.vz-aside-nav {
|
||||
$base: &;
|
||||
padding: 0 0 0 40px;
|
||||
top: 40px;
|
||||
position: sticky;
|
||||
height: calc(100vh - 104px); /* titlebar height (24px) + top padding (40px) + bottom padding (40px) */
|
||||
flex: 0;
|
||||
&-header {
|
||||
font-weight: 600;
|
||||
font-size: 20px;
|
||||
margin-bottom: 10px;
|
||||
width: 100%;
|
||||
height: 20px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
color: var(--header-primary);
|
||||
&-icon-wrapper {
|
||||
transform: translate3d(0, 0, 0);
|
||||
transition: transform .3s;
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
transform: translate3d(3px, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
&-inner {
|
||||
height: 100%;
|
||||
transition: opacity .3s .3s, transform .3s .3s, width 0s .3s, min-width 0s .3s;
|
||||
width: 25%;
|
||||
min-width: 180px;
|
||||
max-width: 300px;
|
||||
opacity: 1;
|
||||
}
|
||||
&-items {
|
||||
height: 100%;
|
||||
overflow: hidden auto;
|
||||
}
|
||||
&-item {
|
||||
margin: 15px;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
}
|
||||
&-collapser {
|
||||
background: var(--background-secondary);
|
||||
height: 50px;
|
||||
width: 50px;
|
||||
border-radius: 4px;
|
||||
overflow: hidden;
|
||||
box-shadow: var(--elevation-medium);
|
||||
border: 1px solid var(--background-tertiary);
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
transform: translate3d(1000%, 0, 0);
|
||||
transition: opacity .3s, background .3s, transform 1s 0s;
|
||||
&:hover {
|
||||
background: var(--background-secondary-alt);
|
||||
}
|
||||
}
|
||||
&.collapsed {
|
||||
#{$base}-inner {
|
||||
width: 50px;
|
||||
transform: translate3d(200%, 0, 0);
|
||||
min-width: 0;
|
||||
opacity: 0;
|
||||
transition: opacity .3s, transform .6s, width 0s .3s, min-width 0s .3s;
|
||||
}
|
||||
#{$base}-collapser {
|
||||
transform: translate3d(0, 0, 0);
|
||||
transition: opacity .3s, background .3s, transform .3s .3s;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,105 @@
|
||||
@use '@vizality' as vz;
|
||||
|
||||
.vz-dashboard-content-sidebar {
|
||||
$base: &;
|
||||
margin: 0 0 0 60px;
|
||||
top: 40px;
|
||||
position: sticky;
|
||||
height: calc(100vh - 104px); /* titlebar height (24px) + top padding (40px) + bottom padding (40px) */
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
flex: 0;
|
||||
&-header {
|
||||
flex: 1 100%;
|
||||
&-wrapper {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin: 0 10px 10px;
|
||||
}
|
||||
}
|
||||
&-inner {
|
||||
@include vz.size(100%);
|
||||
opacity: 1;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
&-item {
|
||||
margin: 15px;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
}
|
||||
&-item-wrapper {
|
||||
margin: 0;
|
||||
}
|
||||
&-collapser,
|
||||
&-expander {
|
||||
@include vz.size(30px);
|
||||
position: relative;
|
||||
margin: 0 auto;
|
||||
cursor: pointer;
|
||||
flex: 1 0 auto;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
&::before {
|
||||
transform: rotate(0deg);
|
||||
}
|
||||
&::before,
|
||||
&::after {
|
||||
@include vz.size(14px, 3px);
|
||||
content: '';
|
||||
position: absolute;
|
||||
background-color: var(--channels-default);
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
&:hover {
|
||||
&::before,
|
||||
&::after {
|
||||
background-color: var(--header-primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
&-expander {
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
transform: scale(0);
|
||||
transition: transform .15s;
|
||||
&::before,
|
||||
&::after {
|
||||
@include vz.size(20px, 4px);
|
||||
}
|
||||
&::before {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
&::after {
|
||||
opacity: 1;
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
}
|
||||
.textBadge-1iylP6 {
|
||||
display: inline;
|
||||
margin-left: 7px;
|
||||
font-size: 10px;
|
||||
padding: 2px 6px;
|
||||
}
|
||||
&.test {
|
||||
height: 50px !important;
|
||||
width: 50px;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
#{$base}-expander {
|
||||
@include vz.size(50px);
|
||||
opacity: 1;
|
||||
transform: scale(1);
|
||||
}
|
||||
#{$base}-inner {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,14 +1,47 @@
|
||||
@use '@vizality' as vz;
|
||||
|
||||
.vz-dashboard-section {
|
||||
$base: &;
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
&-contents {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
}
|
||||
& + & {
|
||||
margin-top: 40px;
|
||||
}
|
||||
&-header {
|
||||
line-height: 1.4;
|
||||
&-description {
|
||||
font-family: var(--font-primary);
|
||||
font-weight: 500;
|
||||
font-size: 18px;
|
||||
}
|
||||
&-icon-wrapper {
|
||||
@include vz.size(24px);
|
||||
margin-right: 10px;
|
||||
color: var(--header-secondary);
|
||||
}
|
||||
p {
|
||||
margin: 0;
|
||||
line-height: 1.4;
|
||||
}
|
||||
}
|
||||
&[vz-collapsible] {
|
||||
background: var(--background-secondary);
|
||||
border-radius: 8px;
|
||||
#{$base}-header-wrapper {
|
||||
background: var(--background-tertiary);
|
||||
border-radius: 8px 8px 0 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 20px;
|
||||
}
|
||||
#{$base}-contents {
|
||||
margin: 20px 40px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in new issue