Skip to content

Commit

Permalink
Make calendar better with narrow viewport
Browse files Browse the repository at this point in the history
  • Loading branch information
captainbrosset committed Dec 18, 2023
1 parent 071b05c commit 9786082
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions slow-calendar/public/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,21 @@

html {
font-family: system-ui;
font-size: .8rem;
font-size: clamp(.6rem, 2vw, .8rem);
}

html, body {
margin: 0;
padding: 0;
overflow: hidden;
overflow-x: auto;
height: 100%;
}

body {
min-width: 350px;
}

button {
border: 1px solid var(--border-color);
background: #eee;
Expand All @@ -41,10 +46,20 @@ button:active {
display: grid;
gap: 1rem;
grid-template-rows: max-content 1fr;
grid-template-columns: 1fr 200px;
grid-template-columns: 1fr clamp(100px, 25%, 200px);
background-color: var(--background-color);
}

@media (max-width: 400px) {
#app {
grid-template-columns: 1fr;
column-gap: 0;
}
#sidebar {
display: none;
}
}

#toolbar {
padding: 1rem;
background: white;
Expand Down

0 comments on commit 9786082

Please sign in to comment.