Skip to content

Commit

Permalink
tweak mobile styles
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeWL committed Nov 17, 2024
1 parent 3ba45dd commit c854a46
Showing 1 changed file with 61 additions and 34 deletions.
95 changes: 61 additions & 34 deletions src/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,31 @@
#app {
width: 80vw;
margin: 0 auto;
padding: 2rem;

padding: 0 2rem;
font-weight: normal;
align-content: center;
justify-content: center;
align-items: center;
justify-items: center;
}

header {
font-weight: 500;
font-size: 1.6rem;
position: relative;
}
header,
main,
footer {
padding: 1rem 0;
width: 100%;
padding-bottom: 1rem;
}
header,
footer {
position: fixed;
left: 10%;
color: var(--color-text-contrast);
background-color: var(--color-background-soft);
text-align: center;
}
header {
top: 0;
}
footer {
bottom: 0;
}

body {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
margin: 0;
Expand All @@ -45,22 +42,18 @@ a {
color: var(--color-text-contrast);
transition: 0.4s;
}
section{
section {
margin: 1rem 0;
position: relative;
width: 100%;
}
section h2 {
padding-bottom: 0.25em;
margin-bottom: 1em;
border-bottom: var(--color-border) 1px solid;
margin-bottom: 1em;
}
@media (hover: hover) {
a:hover {
background-color: hsla(160, 100%, 37%, 0.2);
}
}
textarea{

textarea {
position: relative;
min-width: 70vw;
margin: 0;
Expand All @@ -70,19 +63,6 @@ textarea{
border: var(--color-border) 1px solid;
min-height: 10vh;
}
@media (min-width: 1024px) {
body {
display: flex;
place-items: center;
}

#app {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 100% 1fr;
padding: 0 2rem;
}
}

.text-block {
padding: 0 1rem;
Expand All @@ -95,7 +75,7 @@ textarea{
display: flex;
justify-content: flex-start;
flex-wrap: wrap;
max-height: 50vh;
max-height: 40vh;
overflow-y: auto;
}

Expand Down Expand Up @@ -155,6 +135,7 @@ h3,
h4,
h5,
h6 {
position: relative;
font-family: 'Avenir', Helvetica, Arial, sans-serif;
font-weight: 700;
color: var(--color-text-contrast);
Expand Down Expand Up @@ -207,3 +188,49 @@ textarea,
input {
margin: 0.25rem;
}

@media (min-width: 1024px) {
header,
footer {
position: fixed;
width: 100vw;
}
header {
top: 0;
}
footer {
bottom: 0;
}
}
@media (hover: hover) {
a:hover {
background-color: hsla(160, 100%, 37%, 0.2);
}
}
@media (min-width: 1024px) {
body {
display: flex;
place-items: center;
}

#app {
display: grid;
grid-template-columns: 1fr;
grid-template-rows: 100% 1fr;
}
}
@media (max-height: 805px) {
.unstyled-list {
max-height: 33vh;
}
}
@media (max-height: 605px) {
.unstyled-list {
max-height: 25vh;
}
}
@media (min-height: 1024px) {
.unstyled-list {
max-height: 50vh;
}
}

0 comments on commit c854a46

Please sign in to comment.