Skip to content

Commit

Permalink
Change css style
Browse files Browse the repository at this point in the history
  • Loading branch information
José Luis Pereira committed Jul 1, 2022
1 parent 4fa2a4b commit 1707f8c
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/assets/css/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

body {
@apply bg-gray-100;
@apply dark:bg-gray-900;
@apply dark:bg-zinc-900;
@apply font-inter;
@apply dark:text-slate-400;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Card/VCard.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="shadow-sm bg-white print:shadow-none print:border-0 dark:bg-gray-800">
<div class="shadow-sm bg-white print:shadow-none print:border-0 dark:bg-zinc-800">
<slot />
</div>
</template>
13 changes: 9 additions & 4 deletions src/components/Gallery/GalleryImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
class="
flex
justify-center
border
print:hidden
bg-white
dark:bg-gray-800
border print:hidden
dark:border-gray-700"
dark:bg-zinc-800
dark:border-zinc-800"
>
<div class="h-80 max-h-80 flex items-center justify-center">
<img
Expand All @@ -21,11 +22,15 @@
<div
v-for="(image, index) in images"
:key="image.id"
class="
pr-1
pt-1
pb-1
last:pr-0"
>
<GalleryThumbnail
:image="image"
:title="image.depictions.map(d => d.label).join(';')"
class="first:ml-0"
@click="
galleryIndex = index;
isImageViewerOpen = true
Expand Down
6 changes: 3 additions & 3 deletions src/components/Gallery/GalleryThumbnail.vue
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<template>
<div
class="ml-1 mr-1 mt-2 bg-white dark:bg-gray-800 flex flex-col justify-center cursor-pointer w-24 h-24 border dark:border-gray-700"
class="bg-white dark:bg-gray-800 flex flex-col justify-center cursor-pointer w-24 h-24 border dark:border-gray-700"
:title="title"
>
<img
class="max-h-24 max-w-24"
class="h-24 w-24 max-h-24 max-w-24 object-cover"
:src="image.thumb"
>
</div>
</template>

<script setup>
const props = defineProps({
defineProps({
image: {
type: Object,
required: true
Expand Down
2 changes: 1 addition & 1 deletion src/components/Gallery/ImageAttribution.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script setup>
const props = defineProps({
defineProps({
attribution: {
type: Object,
default: () => ({})
Expand Down
4 changes: 2 additions & 2 deletions src/components/Gallery/ImageViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@click="emit('close')"
>
<div
class="container bg-white dark:bg-gray-800 relative max-h-full w-full md:h-auto rounded-lg shadow-sm"
class="container bg-white dark:bg-zinc-900 relative max-h-full w-full md:h-auto rounded-lg shadow-sm"
@click.stop
>
<VSpinner v-if="isLoading" />
Expand All @@ -17,7 +17,7 @@
>
</div>

<div class="bg-white dark:bg-gray-800 attributions bottom-0 h-24 p-4 rounded-b-lg align-middle flex justify-between flex-col text-center">
<div class="bg-white dark:bg-zinc-900 attributions bottom-0 h-24 p-4 rounded-b-lg align-middle flex justify-between flex-col text-center">
<ImageDepictions
class="my-auto"
:depictions="image.depictions"
Expand Down
4 changes: 2 additions & 2 deletions src/components/Layout/LayoutHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
py-2.5
rounded
border-b
dark:border-b-gray-800
dark:bg-gray-800/50
dark:border-b-zinc-800
dark:bg-zinc-900
pl-4
pr-4
h-9
Expand Down
4 changes: 2 additions & 2 deletions src/modules/otus/views/Index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<div
class="
bg-white
dark:bg-gray-800
dark:bg-zinc-900
dark:text-slate-400
dark:border-b-gray-800
dark:border-b-zinc-800
border-b
pl-4
pr-4"
Expand Down

0 comments on commit 1707f8c

Please sign in to comment.