Skip to content

Commit

Permalink
Styling
Browse files Browse the repository at this point in the history
  • Loading branch information
katharinawuensche committed Jul 29, 2024
1 parent fc76888 commit 3ac9b81
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
16 changes: 11 additions & 5 deletions components/timeline/vertical-timeline-entry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const itemClass = computed(() => {

<template>
<div
class="relative w-1/2 py-4"
class="relative w-1/2"
:class="{
'left-1/2': position === 'right',
}"
Expand All @@ -46,13 +46,19 @@ const itemClass = computed(() => {
:class="[position === 'left' ? '-right-2.5' : '-left-2.5', bgColors[itemClass]]"
></div>
<div
class="min-w-48 -translate-y-1/2 p-4"
class="min-w-48 -translate-y-4 p-4"
:class="{
'-left-2 mr-4': position === 'left',
'-right-2 ml-4': position === 'right',
}"
>
<div class="text-right text-sm text-neutral-500">
<div
class="text-sm text-neutral-800 dark:text-neutral-300"
:class="{
'-mr-4 text-right': position === 'left',
'-ml-4 text-left': position === 'right',
}"
>
<span>
{{
(
Expand All @@ -79,7 +85,7 @@ const itemClass = computed(() => {
<span class="block text-sm text-neutral-500">
{{ i.name }}
</span>
<span class="flex items-center">
<span>
<span class="text-sm font-medium text-neutral-900 dark:text-neutral-100">
{{ i.to.name }}
</span>
Expand All @@ -94,7 +100,7 @@ const itemClass = computed(() => {
<span class="block text-sm text-neutral-500">
{{ item.name }}
</span>
<span class="flex items-center">
<span>
<span class="text-sm font-medium text-neutral-900 dark:text-neutral-100">
{{ item.to.name }}
</span>
Expand Down
3 changes: 3 additions & 0 deletions messages/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@
"is-descendant-of": "Nachkomme",
"legend": "Legende"
},
"Timeline": {
"timeline": "Zeitleiste"
},
"ui": {
"showing-results": "Zeige {first} - {last} von {all} Ergebnissen",
"no-results": "Keine Ergebnisse.",
Expand Down
3 changes: 3 additions & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,9 @@
"is-descendant-of": "Descendant",
"legend": "Legend"
},
"Timeline": {
"timeline": "Timeline"
},
"ui": {
"showing-results": "Showing {first} - {last} out of {all} results",
"no-results": "Nothing Found.",
Expand Down

0 comments on commit 3ac9b81

Please sign in to comment.