Skip to content

Commit

Permalink
Separate css into files by media queries
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterBenc committed Feb 1, 2021
1 parent 7205896 commit 1e2245d
Show file tree
Hide file tree
Showing 8 changed files with 1,545 additions and 1,542 deletions.
2 changes: 1 addition & 1 deletion app/frontend/components/pages/dashboard/dashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const useViewport = () => {
const [isViewportSmall, setIsViewportSmall] = useState(false)

const handleScreenResize = () => {
setIsViewportSmall(window.innerWidth < 1024)
setIsViewportSmall(window.innerWidth <= 1024)
}
useEffect(() => {
handleScreenResize()
Expand Down
28 changes: 28 additions & 0 deletions app/public/css/0-1366px.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
@media screen and (max-height: 1366px) {
.welcome {
position: relative;
margin-bottom: -112px;
margin-left: -56px;
margin-right: -56px;
}

.welcome-body {
padding-left: 56px;
padding-right: 56px;
}

.welcome-footer {
position: -webkit-sticky;
position: sticky;
width: 100%;
bottom: -56px;
border-top: 1px solid var(--color-border);
padding: 24px 56px;
margin-top: 0;
background-color: white;
}

.welcome .credits {
border-bottom-width: 0;
}
}
Loading

0 comments on commit 1e2245d

Please sign in to comment.