Skip to content

Commit

Permalink
SWED-2230 style topbar iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
goldenraphti committed Sep 7, 2023
1 parent 76b782c commit aae4b29
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 14 deletions.
34 changes: 21 additions & 13 deletions src/less/components/topbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@
flex-direction: column;
align-items: stretch;
padding: var(--topbar-opened-padding, 24px)
calc(var(--topbar-opened-padding-body, 30px) - 10px)
var(--topbar-opened-padding, 24px)
var(--topbar-opened-padding-body, 30px);
flex: 1;
border-top: 1px solid var(--gray);
Expand Down Expand Up @@ -205,6 +207,10 @@
width: var(--topbar-spacing-horizontal, 32px);
background-color: var(--gray);
border: transparent;

> i {
font-size: 24px;
}
}
}

Expand Down Expand Up @@ -255,7 +261,7 @@
content: "";
position: absolute;
background-color: currentcolor;
height: 2px;
height: 3px;
bottom: -4px;
left: 0;
right: 0;
Expand Down Expand Up @@ -361,21 +367,23 @@
);
margin: var(--topbar-links-container-spacing, 60px);
padding: 0;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: var(--brown-soft) transparent;

&::-webkit-scrollbar {
background-color: transparent;
width: 10px;
}
.topbar-modal-body {
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: var(--brown-soft) transparent;
scrollbar-gutter: stable;

&::-webkit-scrollbar {
background-color: transparent;
width: 10px;
}

&::-webkit-scrollbar-thumb {
background: var(--brown-soft);
border-radius: 5rem;
}
&::-webkit-scrollbar-thumb {
background: var(--brown-soft);
border-radius: 5rem;
}

.topbar-modal-body {
> a,
> a:not(.pinned) {
display: flex;
Expand Down
13 changes: 12 additions & 1 deletion src/less/documentation-swedbankpay.less
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,17 @@
}
}
}

@supports not selector(:has(a, b)) {
+ div.d-flex > div.d-flex {
max-width: 100%;
}
}
@supports selector(:has(a, b)) {
+ div > div:has(> .component-preview) {
max-width: 100%;
}
}
}

.component-preview {
Expand Down Expand Up @@ -1827,7 +1838,7 @@
.topbar {
z-index: calc(var(--sidebar-z-index, 400) - 1);

+ main {
&.legacy + main {
height: 10rem;
background-color: @light-gray;
}
Expand Down

0 comments on commit aae4b29

Please sign in to comment.