More mobile friendly

This commit is contained in:
jableader 2024-01-18 00:34:42 +11:00
parent 8a989bc1d0
commit dbeec48da8
6 changed files with 30 additions and 19 deletions

View file

@ -12,7 +12,9 @@
</li> </li>
</ul> </ul>
</p> </p>
<div class="viewport">
<router-view/> <router-view/>
</div>
</template> </template>
<script> <script>
@ -38,6 +40,12 @@ export default {
/* Make nav bar links buttons across top of screen */ /* Make nav bar links buttons across top of screen */
.nav { .nav {
position: fixed;
left: 0;
right: 0;
top: 0;
z-index: 1;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
list-style-type: none; list-style-type: none;
@ -63,4 +71,10 @@ export default {
background-color: #4CAF50; background-color: #4CAF50;
color: white; color: white;
} }
.viewport {
max-width: 1200px;
margin: auto;
}
</style> </style>

View file

@ -40,7 +40,6 @@ export default {
.compact-parse-results { .compact-parse-results {
display: flex; display: flex;
justify-content: left; justify-content: left;
font-weight: bold;
text-align: left; text-align: left;
} }
@ -48,6 +47,7 @@ export default {
margin: auto 0; margin: auto 0;
margin-right: 1em; margin-right: 1em;
border-bottom: solid 1px #ccc; border-bottom: solid 1px #ccc;
font-weight: bold;
} }
.parse-element.missing { .parse-element.missing {
@ -57,6 +57,7 @@ export default {
.parse-element.teaser-image, .parse-element.helper { .parse-element.teaser-image, .parse-element.helper {
border: none; border: none;
font-weight: normal;
} }
.parse-element.teaser-image img { .parse-element.teaser-image img {

View file

@ -100,13 +100,8 @@ export default {
.container { .container {
margin: 1em auto; margin: 1em auto;
max-width: 1200px;
} }
.fields {
width: 80%;
margin: 0 auto;
}
ul { ul {
list-style-type: none; list-style-type: none;
@ -114,6 +109,10 @@ ul {
padding: 0; padding: 0;
} }
li {
padding-bottom: 0.5vh;
}
.saved-ingredient { .saved-ingredient {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@ -125,7 +124,6 @@ ul {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin: 1vh 1em;
} }
.saved-ingredient p { .saved-ingredient p {
@ -140,8 +138,7 @@ ul {
} }
.saved-recipe .recipe-card { .saved-recipe .recipe-card {
flex: 1; margin: 0;
margin: 0 1em;
} }
</style> </style>

View file

@ -61,7 +61,7 @@ input.recipe-name {
} }
ul { ul {
padding-right: 1em; padding: 0;
} }
li { li {
@ -72,7 +72,6 @@ li {
border: 1px solid #ccc; border: 1px solid #ccc;
border-radius: 5px; border-radius: 5px;
padding: 5px; padding: 5px;
margin: 1vh;
} }
.ingredient-line { .ingredient-line {

View file

@ -56,10 +56,10 @@ input {
border-bottom: 1px solid #ccc; border-bottom: 1px solid #ccc;
border-left: 1px solid #ccc; border-left: 1px solid #ccc;
width: 100%; width: 100%;
padding: 0.5vh;
} }
.product-link-input { .product-link-input {
padding: 0.5vh;
color: #777; color: #777;
margin-top: 0.5vh; margin-top: 0.5vh;
} }

View file

@ -21,24 +21,24 @@ export default {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
border: solid 1px #ccc;
border-radius: 3px;
padding: 1vh;
text-align: left; text-align: left;
max-height: 10em; max-height: 10em;
margin: 0;
}
.recipe-card p {
margin: auto 0;
margin-right: 1em;
} }
li img { li img {
display: block; display: block;
width: 3em; width: 3em;
height: 3em; height: 3em;
margin: 3px;
object-fit: cover; object-fit: cover;
} }
.recipe-name { .recipe-name {
font-size: larger;
font-weight: bold;
flex: 1; flex: 1;
margin: auto; margin: auto;
} }