diff --git a/.eslintrc.js b/.eslintrc.js index f36ff8c..d02edce 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -10,7 +10,8 @@ module.exports = { defineEmits: true, defineProps: true, __APP_ENV__: true, - __basedir: true + __basedir: true, + __tailwindCSSTaxonPagesConfigPath: true }, rules: { 'vue/no-v-html': 'off' diff --git a/config/header.yml b/config/header.yml index 9c9aa06..977c427 100644 --- a/config/header.yml +++ b/config/header.yml @@ -1,8 +1,6 @@ --- header_logo_url: https://i.ibb.co/5n5jMWL/SiteLogo.jpg header_logo_text: Orthoptera Species File - header_class: bg-[#89a741] - header_link_class: text-white header_links: - label: Home link: / diff --git a/config/vendor/tailwind.config.js b/config/vendor/tailwind.config.js index e56c9cb..5e5c87d 100644 --- a/config/vendor/tailwind.config.js +++ b/config/vendor/tailwind.config.js @@ -1,5 +1,5 @@ module.exports = { presets: [ - require(__basedir + '/tailwind.config.js') + require(__tailwindCSSTaxonPagesConfigPath) ] } diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 5eb6aba..b3b853e 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -2,25 +2,3 @@ @import 'leaflet/dist/leaflet.css'; @import '@/assets/css/leaflet.css'; @import '@/assets/css/webkit.css'; - -* { - box-sizing: content-box; -} - -body { - background-color: #f5f7fb; - @apply - font-main - dark:bg-slate-900 - dark:text-slate-400; -} - -a { - @apply - text-primary-500 - hover:text-gray-900; -} - -.dark { - color-scheme: dark; -} diff --git a/src/assets/css/tailwind.css b/src/assets/css/tailwind.css index b5c61c9..dc6e7c3 100644 --- a/src/assets/css/tailwind.css +++ b/src/assets/css/tailwind.css @@ -1,3 +1,54 @@ @tailwind base; @tailwind components; @tailwind utilities; + +@layer base { + :root { + --color-primary: 137, 167, 65; + --color-primary-content: 255, 255, 255; + + --color-secondary: 14, 165, 233; + --color-secondary-content: 255, 255, 255; + + --color-base-0: 255, 255, 255; + --color-base-100: 245, 247, 251; + --color-base-200: 226, 232, 240; + --color-base-300: 203, 213, 225; + --color-base-content: 0, 0, 0; + } + + .dark { + --color-primary: 14, 165, 233; + --color-primary-content: 255, 255, 255; + + --color-secondary: 14, 165, 233; + --color-secondary-content: 255, 255, 255; + + --color-base-0: 17,24,39; + --color-base-100: 15, 23, 42; + --color-base-200: 30, 41, 59; + --color-base-300: 30, 41, 59; + --color-base-content: 255, 255, 255; + } + + * { + box-sizing: content-box; + } + + body { + @apply + font-main + bg-base-100 + dark:text-slate-400; + } + + a { + @apply + text-secondary-color; + hover:text-gray-900; + } + + .dark { + color-scheme: dark; + } +} \ No newline at end of file diff --git a/src/components/Autocomplete/Autocomplete.global.vue b/src/components/Autocomplete/Autocomplete.global.vue index 2ddb645..8007f47 100644 --- a/src/components/Autocomplete/Autocomplete.global.vue +++ b/src/components/Autocomplete/Autocomplete.global.vue @@ -9,18 +9,7 @@ w-fit" >
- - - +
- - - + class="w-3 h-3 mr-0.5 ml-0.5 opacity-50" + /> {{ key }} - {{ key }} - +
  • - - - - + +
  • diff --git a/src/components/Button/ButtonExpand.global.vue b/src/components/Button/ButtonExpand.global.vue index 8cea3e8..ce52574 100644 --- a/src/components/Button/ButtonExpand.global.vue +++ b/src/components/Button/ButtonExpand.global.vue @@ -3,20 +3,20 @@ type="button" class=" button-expand - bg-white - dark:text-gray-400 - dark:bg-gray-900 border - border-black - w-[14px] - h-[14px] - min-w-[14px] - min-h-[14px] - rounded - leading-3" + bg-base-0 + text-secondary-color + w-5 + h-5" @click="isExpanded = !isExpanded" > - - - + + + diff --git a/src/components/Card/VCard.global.vue b/src/components/Card/VCard.global.vue index 3d0b5b2..6018470 100644 --- a/src/components/Card/VCard.global.vue +++ b/src/components/Card/VCard.global.vue @@ -1,5 +1,5 @@ diff --git a/src/components/Card/VCardContent.global.vue b/src/components/Card/VCardContent.global.vue index 567c111..a07e30b 100644 --- a/src/components/Card/VCardContent.global.vue +++ b/src/components/Card/VCardContent.global.vue @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/src/components/Card/VCardHeader.global.vue b/src/components/Card/VCardHeader.global.vue index 300e6f5..9be31cb 100644 --- a/src/components/Card/VCardHeader.global.vue +++ b/src/components/Card/VCardHeader.global.vue @@ -1,5 +1,5 @@ \ No newline at end of file diff --git a/src/components/Gallery/GalleryImage.global.vue b/src/components/Gallery/GalleryImage.global.vue index 9ae0543..ad88089 100644 --- a/src/components/Gallery/GalleryImage.global.vue +++ b/src/components/Gallery/GalleryImage.global.vue @@ -6,9 +6,9 @@ justify-center border print:hidden - bg-white - dark:bg-slate-800 - dark:border-slate-600" + bg-base-0 + border-base-200 + " >
    diff --git a/src/components/Icon/IconArrowDown.global.vue b/src/components/Icon/IconArrowDown.global.vue new file mode 100644 index 0000000..4bebc07 --- /dev/null +++ b/src/components/Icon/IconArrowDown.global.vue @@ -0,0 +1,18 @@ + + + diff --git a/src/components/Icon/IconArrowLeft.global.vue b/src/components/Icon/IconArrowLeft.global.vue new file mode 100644 index 0000000..5d9246e --- /dev/null +++ b/src/components/Icon/IconArrowLeft.global.vue @@ -0,0 +1,19 @@ + + + \ No newline at end of file diff --git a/src/components/Icon/IconArrowRight.global.vue b/src/components/Icon/IconArrowRight.global.vue new file mode 100644 index 0000000..5a96841 --- /dev/null +++ b/src/components/Icon/IconArrowRight.global.vue @@ -0,0 +1,19 @@ + + + \ No newline at end of file diff --git a/src/components/Icon/IconMinusCircle.global.vue b/src/components/Icon/IconMinusCircle.global.vue new file mode 100644 index 0000000..4a255a8 --- /dev/null +++ b/src/components/Icon/IconMinusCircle.global.vue @@ -0,0 +1,18 @@ + + + \ No newline at end of file diff --git a/src/components/Icon/IconPlusCircle.global.vue b/src/components/Icon/IconPlusCircle.global.vue new file mode 100644 index 0000000..bb49aad --- /dev/null +++ b/src/components/Icon/IconPlusCircle.global.vue @@ -0,0 +1,18 @@ + + + \ No newline at end of file diff --git a/src/components/Icon/IconSearch.global.vue b/src/components/Icon/IconSearch.global.vue new file mode 100644 index 0000000..eb823d8 --- /dev/null +++ b/src/components/Icon/IconSearch.global.vue @@ -0,0 +1,19 @@ + + + diff --git a/src/components/ImageViewer/ControlImageNext.vue b/src/components/ImageViewer/ControlImageNext.vue index c0bb3d7..7d2193e 100644 --- a/src/components/ImageViewer/ControlImageNext.vue +++ b/src/components/ImageViewer/ControlImageNext.vue @@ -1,23 +1,9 @@ diff --git a/src/components/ImageViewer/ControlImagePrevious.vue b/src/components/ImageViewer/ControlImagePrevious.vue index 5363911..a39a612 100644 --- a/src/components/ImageViewer/ControlImagePrevious.vue +++ b/src/components/ImageViewer/ControlImagePrevious.vue @@ -1,23 +1,9 @@ \ No newline at end of file diff --git a/src/components/TreeView.vue b/src/components/TreeView.vue index affeb5d..f8b83b3 100644 --- a/src/components/TreeView.vue +++ b/src/components/TreeView.vue @@ -6,6 +6,7 @@ { li { position: relative; margin: 0; - padding: 0px 7px; + padding: 0px 6px; border-left:1px solid rgb(100,100,100); } @@ -104,19 +105,12 @@ const loadDescendants = () => { border-bottom:1px solid rgb(100,100,100); content:""; display:inline-block; - left:-7px; + left:-6px; } li:last-child:before { border-left:1px solid rgb(100,100,100); } - - .button-expand { - position: absolute; - top: 2px; - left: -9px; - } - } \ No newline at end of file diff --git a/src/modules/otus/components/Citation/CitationRow.vue b/src/modules/otus/components/Citation/CitationRow.vue index 05e742d..2228fc3 100644 --- a/src/modules/otus/components/Citation/CitationRow.vue +++ b/src/modules/otus/components/Citation/CitationRow.vue @@ -1,39 +1,20 @@