nuxt/vuetify css rendering glitch fixes

This commit is contained in:
Nikita Krupin committed 2022-04-28 18:15:28 -04:00
1 parent 25d3cc762c
commit a622298559
4 files changed
+70 -39

No files matched your search

+37 -4
View File
@@ -141,6 +141,9 @@ body {
margin: 0.25em; margin: 0.25em;
} }
.title-text {
font-size: 3rem;
}
.topBar { .topBar {
padding: 0 3rem; padding: 0 3rem;
width: fit-content !important; width: fit-content !important;
@@ -151,10 +154,12 @@ body {
/* border: 1px solid #222; */ /* border: 1px solid #222; */
overflow: hidden; overflow: hidden;
} }
.title-text {
font-size: 3rem;
}
/* used in docs.vue */
.flex-wrapper {
display: flex;
flex-wrap: nowrap;
}
@media (max-width: 768px) { @media (max-width: 768px) {
/* mobile */ /* mobile */
.title-text { .title-text {
@@ -166,6 +171,35 @@ body {
) !important; /* (2rem = mx-4) 1rem on left, 1rem on right */ ) !important; /* (2rem = mx-4) 1rem on left, 1rem on right */
padding: 0; padding: 0;
} }
.flex-wrapper {
display: flex;
flex-wrap: wrap;
}
}
/* used in docs.vue, help.vue and faq.vue */
.width-constraint {
max-width: auto;
margin: 0 auto;
}
@media (min-width: 960px) {
/* tablet */
.width-constraint {
width: 75vw;
}
}
@media (min-width: 1264px) {
/* desktop */
.width-constraint {
width: 60vw;
}
}
@media (min-width: 1904) {
/* 4k/ultrawide */
.width-constraint {
width: 42vw;
}
} }
/* animations and all that */ /* animations and all that */
@@ -179,7 +213,6 @@ body {
.swoop-right-leave-active { .swoop-right-leave-active {
transition-duration: 0.1s; transition-duration: 0.1s;
transition-property: opacity, transform; transition-property: opacity, transform;
overflow: hidden;
} }
.swoop-left-enter, .swoop-left-enter,
+31 -33
View File
@@ -1,48 +1,46 @@
<template> <template>
<div class="row wrap justify-center full-width mx-auto" style="width: 80vw"> <!-- min-height overrides vertical centering from the parent default.vue layout -->
<!-- Left Section // "Sections" Card --> <div
<v-card class="width-constraint flex-wrapper"
class="col-xs-12 mx-2 elevation-0" style="min-height: calc(100vh - 10rem); position: relative"
>
<!-- docs navigation -->
<v-list
class="py-0 mr-3"
style=" style="
background: transparent; background: transparent;
height: max-content;
position: sticky; position: sticky;
top: 5.5rem; top: 6rem;
max-width: 500px; align-self: flex-start;
" "
> >
<!-- <v-card-title style="padding-bottom: 0 !important; color: #aaa"> <v-list-item
Sections v-for="(item, i) in links"
</v-card-title> --> :key="i"
<v-list style="background: transparent"> :to="item.to"
<!-- Dynamically Generate Links From Below --> router
<v-list-item class="mb-4"
v-for="(item, i) in links" color="primary"
:key="i" style="overflow: hidden !important; border-radius: 0.75rem"
:to="item.to" >
router <v-list-item-title style="text-align: right">
class="mt-4" <v-list-item-title v-text="item.text" />
color="primary" </v-list-item-title>
style="overflow: hidden; border-radius: 0.75rem" <v-list-item-icon>
> <v-icon v-text="item.icon" />
<v-list-item-title style="text-align: right"> </v-list-item-icon>
<v-list-item-title v-text="item.text" /> </v-list-item>
</v-list-item-title> </v-list>
<v-list-item-icon>
<v-icon v-text="item.icon" />
</v-list-item-icon>
</v-list-item>
</v-list>
</v-card>
<!-- Child Pages // Card --> <!-- docs content -->
<v-card <v-card
class="col-xs-12 col-md-6 text-left mx-2 my-6 pa-8" class="text-left pa-8"
style=" style="
flex-grow: 2;
height: max-content; height: max-content;
max-width: 90vw !important;
background-color: #222; background-color: #222;
border-radius: 0.75rem; border-radius: 0.75rem;
width: 90%;
" "
> >
<NuxtChild /> <NuxtChild />
+1 -1
View File
@@ -1,5 +1,5 @@
<template> <template>
<div class="col-xs-12 col-sm-11 col-md-9 col-lg-7 mx-auto"> <div class="width-constraint">
<h1 class="title-text">Frequently Asked Questions</h1> <h1 class="title-text">Frequently Asked Questions</h1>
<p style="color: #999; margin-top: 0.5rem; margin-bottom: 1.5rem"> <p style="color: #999; margin-top: 0.5rem; margin-bottom: 1.5rem">
Still have questions? Feel free to join our Discord! Still have questions? Feel free to join our Discord!
+1 -1
View File
@@ -1,5 +1,5 @@
<template> <template>
<div class="col-xs-12 col-sm-11 col-md-9 col-lg-7 mx-auto"> <div class="width-constraint">
<h1 class="title-text pt-12">Troubleshooting</h1> <h1 class="title-text pt-12">Troubleshooting</h1>
<ol style="line-height: 3rem; color: #aaa" class="text-left"> <ol style="line-height: 3rem; color: #aaa" class="text-left">
<li> <li>