From 6395d1ec4362fedd7854fc9a103bad8bf7ae5d3d Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Tue, 27 Sep 2022 19:17:51 +0200 Subject: Dark mode --- pages/models/_id/index.vue | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'pages/models/_id/index.vue') diff --git a/pages/models/_id/index.vue b/pages/models/_id/index.vue index c06fa15..962b94a 100644 --- a/pages/models/_id/index.vue +++ b/pages/models/_id/index.vue @@ -73,16 +73,16 @@ section.mb-5 .flow-root .float-left - h1.text-3xl.font-bold.border-green-500.border-b-2.pb-3.w-full.mb-2(class="md:w-max md:mb-0") {{ model.name }} + h1.text-3xl.font-bold.border-green-500.border-b-2.pb-3.w-full.mb-2(class="md:w-max md:mb-0 dark:text-white") {{ model.name }} .float-right(v-if="model.author") .flex .mr-3.float-left user-avatar(:data="model.author") p.leading-8 - a.text-green-800(class="hover:text-green-700" :href="'/user/'+model.author_id") + a.text-green-800(class="hover:text-green-700 dark:text-green-300 dark:hover:text-green-200" :href="'/user/'+model.author_id") | @ span.underline {{ model.author.username }} - .description.mt-3 + .description.mt-3(class="dark:text-white") p {{ model.description }} .mb-5.text-right @@ -111,7 +111,7 @@ | Delete model-reports-list(:model="model.id" v-if="me && model.id") - .images.shadow-sm.rounded-lg.bg-white.p-4.w-full(v-if="model.uploads") + .images.shadow-sm.rounded-lg.bg-white.p-4.w-full(class="dark:bg-gray-600" v-if="model.uploads") .block.gap-4.h-full(class="md:flex") .w-full(class="md:w-4/5") .image.bg-gray-900.border-2.rounded-xl.w-full.h-64.overflow-hidden(class="sm:h-full" v-if="model.uploads && model.uploads[selectedUpload]") @@ -121,44 +121,44 @@ .border-2.border-gray-300.bg-gray-300.w-20.h-20.rounded-xl.grid.items-center.justify-items-center.overflow-hidden.cursor-pointer( v-for="upload, i in model.uploads" :key="upload.id" - :class="{'md:w-24 md:h-24': true, 'border-green-700': selectedUpload == i}" + :class="{'md:w-24 md:h-24 dark:border-green-100': true, 'border-green-700': selectedUpload == i}" @click="selectedUpload = i" ) file-preview(:path="upload.filepath") section.mt-5 .grid.grid-cols-2.gap-5.mb-5(class="md:grid-cols-6") - .card.shadow-sm.rounded-lg.bg-white.p-4.w-full + .card.shadow-sm.rounded-lg.bg-white.p-4.w-full(class="dark:bg-gray-600 text-white") h3.font-bold Created: p(:title="model.created|moment('DD/MM/YYYY HH:mm')") {{ model.created|moment("DD/MM/YYYY") }} - .card.shadow-sm.rounded-lg.bg-white.p-4.w-full + .card.shadow-sm.rounded-lg.bg-white.p-4.w-full(class="dark:bg-gray-600 text-white") h3.font-bold Duration: p {{ model.duration }}m - .card.shadow-sm.rounded-lg.bg-white.p-4.w-full + .card.shadow-sm.rounded-lg.bg-white.p-4.w-full(class="dark:bg-gray-600 text-white") h3.font-bold Height: p {{ model.height }}mm - .card.shadow-sm.rounded-lg.bg-white.p-4.w-full + .card.shadow-sm.rounded-lg.bg-white.p-4.w-full(class="dark:bg-gray-600 text-white") h3.font-bold Weight: p {{ model.weight }}g - .card.shadow-sm.rounded-lg.bg-white.p-4.w-full(v-if="model.printer") + .card.shadow-sm.rounded-lg.bg-white.p-4.w-full(class="dark:bg-gray-600 text-white" v-if="model.printer") h3.font-bold Printer: p {{ model.printer }} - .card.shadow-sm.rounded-lg.bg-white.p-4.w-full(v-if="model.material") + .card.shadow-sm.rounded-lg.bg-white.p-4.w-full(class="dark:bg-gray-600 text-white" v-if="model.material") h3.font-bold Material: -- cgit v1.2.3-18-g5258