mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
re-structure to monorepo.
This commit is contained in:
368
packages/webapp/src/style/containers/Dashboard/Sidebar.scss
Normal file
368
packages/webapp/src/style/containers/Dashboard/Sidebar.scss
Normal file
@@ -0,0 +1,368 @@
|
||||
@import 'src/style/Base.scss';
|
||||
|
||||
.sidebar {
|
||||
background: $sidebar-background;
|
||||
width: $sidebar-width;
|
||||
color: $sidebar-text-color;
|
||||
height: 100%;
|
||||
z-index: $sidebar-zindex;
|
||||
position: relative;
|
||||
|
||||
.ScrollbarsCustom-Track {
|
||||
|
||||
&.ScrollbarsCustom-TrackY,
|
||||
&.ScrollbarsCustom-TrackX {
|
||||
background: rgba(0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
.ScrollbarsCustom-Thumb {
|
||||
|
||||
&.ScrollbarsCustom-ThumbX,
|
||||
&.ScrollbarsCustom-ThumbY {
|
||||
background: rgba(0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
.ScrollbarsCustom-Content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
.ScrollbarsCustom-Thumb {
|
||||
|
||||
&.ScrollbarsCustom-ThumbX,
|
||||
&.ScrollbarsCustom-ThumbY {
|
||||
background: rgba(255, 255, 255, 0.25);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__head {
|
||||
padding: 20px 20px;
|
||||
|
||||
&-logo {
|
||||
position: absolute;
|
||||
top: 16px;
|
||||
left: 12px;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
|
||||
svg {
|
||||
opacity: $sidebar-logo-opacity;
|
||||
}
|
||||
}
|
||||
|
||||
&-organization {
|
||||
.title {
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
min-height: auto;
|
||||
min-width: auto;
|
||||
max-width: 100%;
|
||||
font-weight: 600;
|
||||
outline: 0;
|
||||
font-size: 15px;
|
||||
|
||||
&:not([class*="bp3-intent-"]):not(.bp3-minimal) {
|
||||
color: rgb(255, 255, 255);
|
||||
}
|
||||
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active,
|
||||
&.bp3-active {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.bp3-button-text {
|
||||
margin-right: 4px;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
display: block;
|
||||
}
|
||||
|
||||
svg {
|
||||
fill: rgba(255, 255, 255, 0.3);
|
||||
}
|
||||
}
|
||||
|
||||
.bp3-popover-wrapper,
|
||||
.bp3-popover-target {
|
||||
max-width: 100%;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.subtitle {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
margin-top: 8px;
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar__head-logo {
|
||||
transition: transform 0.05s ease-in-out;
|
||||
}
|
||||
|
||||
.is-subscription-inactive:not(.sidebar--mini-sidebar) & {
|
||||
opacity: 0.6;
|
||||
}
|
||||
}
|
||||
|
||||
&__scroll-wrapper {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
&__version {
|
||||
margin-top: auto;
|
||||
padding: 0 20px 20px;
|
||||
font-size: 12px;
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
}
|
||||
|
||||
&__inner {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
&-menu {
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
min-width: $sidebar-width;
|
||||
border-radius: 0;
|
||||
padding-bottom: 2rem;
|
||||
|
||||
.#{$ns}-menu-item {
|
||||
color: $sidebar-menu-item-color;
|
||||
border-radius: 0;
|
||||
padding: 8px 20px;
|
||||
font-size: 15px;
|
||||
font-weight: 400;
|
||||
|
||||
&:hover,
|
||||
&.bp3-active {
|
||||
background: $sidebar-submenu-item-bg-color;
|
||||
color: $sidebar-menu-item-color-active;
|
||||
}
|
||||
|
||||
&:focus,
|
||||
&:active {
|
||||
background: #01143e;
|
||||
}
|
||||
|
||||
>.#{$ns}-icon {
|
||||
color: #767b9b;
|
||||
margin-right: 16px;
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
>.#{$ns}-icon-caret-right {
|
||||
margin-right: -4px;
|
||||
margin-top: 3px;
|
||||
color: rgba(255, 255, 255, 0.25);
|
||||
}
|
||||
|
||||
&-labeler {
|
||||
display: block;
|
||||
color: $sidebar-menu-label-color;
|
||||
font-size: 11px;
|
||||
padding: 8px 20px;
|
||||
margin-top: 4px;
|
||||
text-transform: uppercase;
|
||||
font-weight: 500;
|
||||
letter-spacing: 1px;
|
||||
|
||||
html[lang^="ar"] & {
|
||||
font-size: 12px;
|
||||
letter-spacing: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover .bp3-button.menu-item__add-btn {
|
||||
display: inline-block;
|
||||
}
|
||||
}
|
||||
|
||||
.#{$ns}-submenu {
|
||||
.#{$ns}-collapse {
|
||||
&-body {
|
||||
background-color: rgba(255, 255, 255, 0.03);
|
||||
padding-bottom: 6px;
|
||||
padding-top: 6px;
|
||||
}
|
||||
|
||||
.#{$ns}-menu-item {
|
||||
padding: 8px 20px;
|
||||
font-size: 15px;
|
||||
color: $sidebar-submenu-item-color;
|
||||
|
||||
&:hover,
|
||||
&.bp3-active {
|
||||
background: transparent;
|
||||
color: $sidebar-submenu-item-hover-color;
|
||||
}
|
||||
|
||||
&.bp3-active {
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.#{$ns}-popover {
|
||||
padding: 0;
|
||||
|
||||
&-content {
|
||||
box-shadow: 0 0 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.#{$ns}-popover-target.#{$ns}-popover-open .#{$ns}-menu-item {
|
||||
color: $sidebar-menu-item-color;
|
||||
}
|
||||
|
||||
.#{$ns}-menu-divider {
|
||||
border-top-color: rgba(255, 255, 255, 0.1);
|
||||
color: #6b708c;
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
.#{$ns}-menu-spacer {
|
||||
margin: 4px 0;
|
||||
height: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
&--mini-sidebar {
|
||||
position: fixed;
|
||||
white-space: nowrap;
|
||||
width: 50px;
|
||||
|
||||
.sidebar__head {
|
||||
.sidebar__head-logo {
|
||||
transition: opacity 0.3s ease-in-out;
|
||||
transition-delay: 0.15s;
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
// Hide text of bigcapital logo.
|
||||
&-logo {}
|
||||
|
||||
&-organization {
|
||||
opacity: 0;
|
||||
transition: opacity 0.3s ease-in-out;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar__menu,
|
||||
.sidebar__version {
|
||||
transition: opacity 0.3s ease-in-out;
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.sidebar__scroll-wrapper {
|
||||
background: $sidebar-background;
|
||||
transition: min-width 0.15s ease-in-out;
|
||||
min-width: 50px;
|
||||
|
||||
.ScrollbarsCustom-Scroller {
|
||||
overflow: hidden !important;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
min-width: 190px;
|
||||
|
||||
.sidebar__head-logo {
|
||||
opacity: 0;
|
||||
transition-delay: 0s;
|
||||
}
|
||||
|
||||
.sidebar__head-organization,
|
||||
.sidebar__menu,
|
||||
.sidebar__version {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.ScrollbarsCustom-Scroller {
|
||||
overflow: scroll !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bp3-button.menu-item__add-btn {
|
||||
width: auto;
|
||||
padding: 2px;
|
||||
margin-right: 0px;
|
||||
position: relative;
|
||||
top: 1px;
|
||||
border-radius: 3px;
|
||||
display: none;
|
||||
vertical-align: top;
|
||||
|
||||
&:not([class*='bp3-intent-']):not(.bp3-minimal):not(:disabled) {
|
||||
.bp3-icon {
|
||||
color: rgba(255, 255, 255, 0.4);
|
||||
}
|
||||
|
||||
&,
|
||||
&:hover {
|
||||
min-height: auto;
|
||||
min-width: auto;
|
||||
outline: 0;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background-color: rgba(255, 255, 255, 0.12);
|
||||
|
||||
.bp3-icon {
|
||||
color: rgba(255, 255, 255, 0.6);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bp3-icon {
|
||||
margin: 0;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.menu--dashboard-organization {
|
||||
padding: 10px;
|
||||
|
||||
.org-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
&__logo {
|
||||
height: 40px;
|
||||
width: 40px;
|
||||
line-height: 40px;
|
||||
border-radius: 3px;
|
||||
background-color: #CB22E5;
|
||||
text-align: center;
|
||||
font-weight: 400;
|
||||
font-size: 16px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
&__name {
|
||||
margin-left: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
&__divider {
|
||||
margin: 4px 0;
|
||||
height: 1px;
|
||||
background: #ebebeb;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
//
|
||||
// Financial sheet - Drawer header.
|
||||
// --------------------
|
||||
.financial-header-drawer {
|
||||
padding: 25px 26px 25px;
|
||||
position: absolute;
|
||||
top: 101px;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
overflow: hidden;
|
||||
|
||||
&.is-hidden {
|
||||
visibility: hidden;
|
||||
}
|
||||
.bp3-drawer {
|
||||
box-shadow: 0 0 0 transparent;
|
||||
max-height: 550px;
|
||||
height: 100%;
|
||||
padding-bottom: 49px;
|
||||
background-color: #fff;
|
||||
|
||||
> form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1 0 0;
|
||||
height: 100%;
|
||||
}
|
||||
.bp3-drawer-backdrop {
|
||||
background-color: rgba(2, 9, 19, 0.65);
|
||||
}
|
||||
}
|
||||
|
||||
.bp3-button.button--submit-filter {
|
||||
min-height: 34px;
|
||||
padding-left: 16px;
|
||||
padding-right: 16px;
|
||||
}
|
||||
.radio-group---accounting-basis {
|
||||
.bp3-label {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
.bp3-tabs {
|
||||
height: 100%;
|
||||
|
||||
&.bp3-vertical > .bp3-tab-panel {
|
||||
flex: 1 0 0;
|
||||
border-top: 24px solid transparent;
|
||||
padding-left: 20px;
|
||||
padding-right: 20px;
|
||||
padding-bottom: 24px;
|
||||
overflow: auto;
|
||||
}
|
||||
}
|
||||
|
||||
.bp3-tabs.bp3-vertical {
|
||||
flex: 1 0 0;
|
||||
|
||||
.bp3-tab-list {
|
||||
width: 220px;
|
||||
border-right: 1px solid #c3cdd5;
|
||||
padding-top: 10px;
|
||||
|
||||
> *:not(:last-child) {
|
||||
margin-right: 0;
|
||||
}
|
||||
.bp3-tab-indicator-wrapper {
|
||||
width: 100%;
|
||||
|
||||
.bp3-tab-indicator {
|
||||
border-left: 3px solid #0350f8;
|
||||
background-color: #edf5ff;
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.bp3-tab {
|
||||
color: #333;
|
||||
line-height: 45px;
|
||||
border-radius: 0;
|
||||
padding-left: 14px;
|
||||
padding-right: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&__footer {
|
||||
background-color: #ecf0f3;
|
||||
border-top: 1px solid #c3cdd5;
|
||||
padding: 8px;
|
||||
padding-left: 230px;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
}
|
||||
.row {
|
||||
margin-left: -0.85rem;
|
||||
margin-right: -0.85rem;
|
||||
|
||||
.col {
|
||||
padding-left: 0.85rem;
|
||||
padding-right: 0.85rem;
|
||||
}
|
||||
}
|
||||
.bp3-popover-target {
|
||||
.bp3-tag-input {
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user