Skip to content

Commit

Permalink
Merge pull request #649 from contember/pr/clean-up-styles
Browse files Browse the repository at this point in the history
feat(layout,ui): remove unnecessary html and body styles
  • Loading branch information
matej21 authored Dec 8, 2023
2 parents 9360d35 + 248759a commit c2005dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 28 deletions.
12 changes: 4 additions & 8 deletions packages/layout/src/kit/Frame.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
:where(.cui-layout-frame) {
background-color: rgb(var(--cui-background-color--rgb-0));
max-height: 100vh;
max-height: 100dvh;
height: 100%;
max-width: 100vw;
max-width: 100dvw;
overflow: hidden;
Expand All @@ -16,13 +15,10 @@
}

:where(.cui-layout-frame-container) {
background-color: rgb(var(--cui-background-color--rgb-0));;
background-color: rgb(var(--cui-background-color--rgb-0));
}

:where(
.cui-layout-frame-header,
.cui-layout-frame-footer,
) {
:where(.cui-layout-frame-header, .cui-layout-frame-footer) {
display: flex;
flex-direction: column;
gap: var(--cui-padding);
Expand All @@ -35,7 +31,7 @@

:where(
.cui-layout-frame[data-header-is-fixed] .cui-layout-frame-header,
.cui-layout-frame[data-footer-is-fixed] .cui-layout-frame-footer,
.cui-layout-frame[data-footer-is-fixed] .cui-layout-frame-footer
) {
position: fixed;
}
Expand Down
22 changes: 2 additions & 20 deletions packages/ui/src/styles/globals.css
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
:where(html),
:where(body) {
display: flex;
flex-direction: column;
min-height: 100vh;
min-height: 100dvh;
min-width: 100vw;
min-width: 100dvw;
:where(html, body) {
margin: 0;
overscroll-behavior: none;
padding: 0;
}

:where(html) {
display: flex;
min-height: 100vh;
min-height: 100dvh;
-webkit-text-size-adjust: 100%;
}

:where(body) {
flex: 1 1 100%;
height: 100%;
}

:where(body > div) {
Expand Down

0 comments on commit c2005dc

Please sign in to comment.