Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/JS-6266: Sidebar settings refactoring #1242

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 19 additions & 8 deletions src/scss/component/sidebar/settings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,24 @@
gap: 0px 8px; overflow: hidden;
}

> .body { display: flex; flex-direction: column; justify-content: space-between; height: calc(100% - 52px); padding: 0px 12px 12px 12px; position: relative; flex-grow: 1; overflow: scroll; overscroll-behavior: none; }
> .body { display: flex; flex-direction: column; justify-content: space-between; height: calc(100% - 52px); padding: 0px 12px 12px 12px; position: relative; flex-grow: 1; overscroll-behavior: none; }
> .body {
.list { border-radius: 12px; background: var(--color-bg-primary); padding: 8px 0px; }
.list { display: flex; flex-direction: column; justify-content: space-between; height: 100%; border-radius: 12px; background: var(--color-bg-primary); padding: 8px 0px; }
.list {
> .head { display: flex; gap: 0px 8px; align-items: center; border-bottom: 1px solid var(--color-shape-secondary); @include text-paragraph; font-weight: 600; padding: 4px 16px 12px 8px; margin-bottom: 12px; }
> .head { display: flex; gap: 0px 8px; align-items: center; border-bottom: 1px solid var(--color-shape-secondary); @include text-paragraph; font-weight: 600; padding: 4px 16px 12px 8px; }
> .head {
.icon.back { background-image: url('~img/icon/widget/back.svg'); width: 28px; height: 28px; background-size: 20px; border-radius: 4px; cursor: default; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.icon.back:hover { background-color: var(--color-shape-highlight-medium); }
}

.inner { display: flex; flex-direction: column; gap: 12px 0px; padding: 0px 8px; }
.inner { height: 100%; display: flex; flex-direction: column; padding: 0px 8px; }
.row {
> .section { padding-top: 16px; }
> .section.isFirst { padding-top: 12px; }
}

.section {
> .name { @include text-small; color: var(--color-text-secondary); margin: 0px 0px 4px 0px; padding: 0px 8px; }
> .name { @include text-small; color: var(--color-text-secondary); margin: 0px; padding: 0px 8px; }
}
.section.isLabel {
> .name { margin-bottom: -4px; }
Expand All @@ -41,7 +45,7 @@

.toggle,
.item {
display: flex; position: relative; align-items: center; flex-direction: row; gap: 0px 6px; padding: 4px 8px; border-radius: 8px;
display: flex; position: relative; align-items: center; flex-direction: row; gap: 0px 6px; padding: 3px 8px; border-radius: 8px;
transition: background-color $transitionCommon;
}
.toggle:hover,
Expand All @@ -56,6 +60,8 @@
.caption.join { font-weight: 500; padding: 2px 8px; border-radius: 4px; @include text-small; background: var(--color-control-accent); color: var(--color-bg-primary); }
}

.item.isTypeOrRelation { padding-left: 26px; }

.item.itemAccount { padding: 8px; gap: 0px 14px; align-items: center; border-radius: 8px; }
.item.itemAccount {
.iconObject { flex-shrink: 0; }
Expand All @@ -66,9 +72,12 @@
.toggle {
.icon { width: 20px; height: 20px; flex-shrink: 0; background-image: url('~img/arrow/select/dark.svg'); transform: rotate(-90deg); }
}
.toggle.isOpen {
.icon { transform: rotate(0deg); }
}
}

.logout { display: flex; align-items: center; justify-content: center; gap: 0px 8px; border-radius: 8px; padding: 4px 0px; }
.logout { flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 0px 8px; border-radius: 8px; padding: 4px 0px; margin: 0px 8px; }
.logout {
.icon { width: 20px; height: 20px; background-size: 20px; background-image: url('~img/icon/popup/settings/logout.svg'); }
}
Expand All @@ -78,6 +87,8 @@

> #containerSettings.spaceSettings {
> .body {
> .list { height: 100%; overflow: auto; }
> .list {
.inner { height: calc(100% - 45px); }
}
}
}
Loading