Skip to content

Commit

Permalink
Style tweaks, add Inter font
Browse files Browse the repository at this point in the history
  • Loading branch information
José Luis Pereira committed Jun 30, 2022
1 parent 52fc0cc commit 5b92c97
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 8 deletions.
2 changes: 2 additions & 0 deletions src/assets/css/main.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
@import '@/assets/css/tailwind.css';
@import 'leaflet/dist/leaflet.css';
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;400;500;700&display=swap');

* {
box-sizing: content-box;
}
body {
@apply bg-gray-100;
@apply dark:bg-gray-900;
@apply font-inter;
}
10 changes: 9 additions & 1 deletion src/components/Autocomplete/Autocomplete.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<template>
<div class="autocomplete relative mr-3 md:mr-0 md:block w-fit">
<div
class="
autocomplete
md:block
md:mr-0
mr-3
relative
w-fit"
>
<div class="flex absolute inset-y-0 left-0 items-center pl-3 pointer-events-none">
<svg
class="w-5 h-5 text-gray-500"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<GalleryThumbnail
:image="image"
:title="image.depictions.map(d => d.label).join(';')"
class="first:ml-0"
@click="
galleryIndex = index;
isImageViewerOpen = true
Expand All @@ -47,8 +48,6 @@

<script setup>
import { ref, computed, watch } from 'vue'
import GalleryThumbnail from './GalleryThumbnail.vue'
import ImageViewer from './ImageViewer.vue';
const props = defineProps({
images: {
Expand Down
4 changes: 2 additions & 2 deletions src/components/VSpinner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<transition name="fade">
<div
ref="spinnerElement"
class="box-spinner mx-spinner absolute bg-white dark:bg-gray-800 opacity-90"
class="box-spinner mx-spinner absolute bg-white dark:bg-black opacity-90"
:style="cssProperties"
>
<div
Expand Down Expand Up @@ -75,6 +75,7 @@
/>
</svg>
<div
class="text-gray-900 dark:text-slate-400"
:style="legendStyle"
>
<span
Expand Down Expand Up @@ -124,7 +125,6 @@ const props = defineProps({
type: Object,
default: () =>
({
color: '#444',
marginTop: '30px',
textAlign: 'center'
})
Expand Down
5 changes: 2 additions & 3 deletions src/modules/otus/components/Gallery.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
<template>
<VCard v-if="images.length">
<VCardContent>
<GalleryMain :images="images" />
<GalleryImage :images="images" />
</VCardContent>
</VCard>
</template>

<script setup>
import { ref, watch } from 'vue'
import GalleryMain from '@/components/Gallery/Main.vue'
import OtuService from '../services/OtuService';
import OtuService from '../services/OtuService'
const props = defineProps({
otuId: {
Expand Down
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ module.exports = {

theme: {
extend: {
fontFamily: {
inter: ['Inter', 'sans-serif']
},
colors: {
'primary': { // Sky
50: '#f0f9ff',
Expand Down

0 comments on commit 5b92c97

Please sign in to comment.