Skip to content

Commit

Permalink
feat(Sidebar): minor fixes on the height of the total sidebar and imp…
Browse files Browse the repository at this point in the history
…roved import of css vars
  • Loading branch information
Utzel-Butzel committed Feb 10, 2021
1 parent f57d968 commit a5e6565
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 12 deletions.
1 change: 1 addition & 0 deletions .storybook/storybook.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

.sbdocs-preview {
overflow: visible !important;
background: var(--ui-01) i !important;
> div {
> div {
overflow: visible !important;
Expand Down
5 changes: 2 additions & 3 deletions src/components/Item/Item.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ export const Item = ({
{image ? (
<div className={`${prefix}--item__image`}>{image}</div>
) : noImage ? (
<div className={`${prefix}--item__image ${prefix}--item__image-empty`}>
Empty
</div>
<div
className={`${prefix}--item__image ${prefix}--item__image-empty`}></div>
) : null}

<div className={`${prefix}--item__content`}>
Expand Down
8 changes: 7 additions & 1 deletion src/components/Item/_item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@
background: var(--ui-02);
}
}
&--repeater {
cursor: pointer;
background: var(--ui-02);
margin-bottom: 1em;
}
&--button {
padding: 1em;
&:hover {
Expand Down Expand Up @@ -149,7 +154,8 @@
.#{$prefix}--item__image {
svg,
.svg-inline--fa,
img {
img,
video {
margin: 0;
display: block;
width: 100%;
Expand Down
3 changes: 2 additions & 1 deletion src/components/Sidebar/_sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
top: 0;
background: var(--ui-01);
width: 100%;
min-height: 100%;
height: 100%;
overflow: auto;
transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
z-index: 100;
}
Expand Down
14 changes: 7 additions & 7 deletions src/globals/scss/_theme-tokens.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
--text-01: #{$color__white};
--text-02: #{$color__navy-gray-8};
--text-03: #{$color__navy-gray-9};
--field-01: #{$color__navy-gray-2};
--field-01: #{$color__gray-80};
--field-02: #{$color__navy-gray-2};
--field-border-01: #{$color__navy-gray-4};
--field-border-01: #{$color__gray-60};
--focus-01: #{$color__navy-gray-1};
--support-01: #{$color__red};
--support-light-01: #{saturate(darken($color__red, 20), 40)}; //#{$color__red-60};
Expand Down Expand Up @@ -136,12 +136,12 @@
@include darkTheme();
background-color: var(--ui-01) !important;
}
}

@media (prefers-color-scheme: dark) {
body {
&.wfp--theme-dark--auto {
@include darkTheme();
@media (prefers-color-scheme: dark) {
body {
&.wfp--theme-dark--auto {
@include darkTheme();
}
}
}
}
Expand Down

0 comments on commit a5e6565

Please sign in to comment.