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

View file

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

View file

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

View file

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

View file

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

View file

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