From 6df6cbbb47d8b932a790ed9ef68dc8fac42ce0f4 Mon Sep 17 00:00:00 2001 From: Furkan Sahin Date: Tue, 13 Apr 2021 15:24:03 -0500 Subject: Style editor lists --- src/components/EditorLists.vue | 67 ++++++++++++++++++++++++++++++++++++------ src/components/List.vue | 23 ++------------- src/models/EventInfo.ts | 2 +- 3 files changed, 62 insertions(+), 30 deletions(-) (limited to 'src') diff --git a/src/components/EditorLists.vue b/src/components/EditorLists.vue index 26e0ecc..e70445d 100644 --- a/src/components/EditorLists.vue +++ b/src/components/EditorLists.vue @@ -1,19 +1,28 @@ @@ -90,8 +99,48 @@ export default defineComponent({ min-height: 0; } +h3 { + color: white; + margin: 0; +} + .column { flex: 1; overflow: auto; } + +.list-item { + align-items: center; + display: flex; + justify-content: space-between; + margin: 0.5em; + padding: 0.5em; +} + +.list-item:hover { + background-color: #c0c0c0; +} + +.list-item > button { + background-color: #500000; + border: none; + color: white; + font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; + font-size: 1em; +} + +@media (prefers-color-scheme: dark) { + .list-item { + background-color: #303030; + color: white; + } + + .list-item:hover { + background-color: #707070; + } + + .list-item > button { + background-color: #81302b; + } +} diff --git a/src/components/List.vue b/src/components/List.vue index 843370e..f1ef690 100644 --- a/src/components/List.vue +++ b/src/components/List.vue @@ -3,8 +3,7 @@
  • + @click="$emit('selectionChanged', item)"> {{ item }}
  • @@ -25,23 +24,7 @@ export default { diff --git a/src/models/EventInfo.ts b/src/models/EventInfo.ts index 4493162..962ec70 100644 --- a/src/models/EventInfo.ts +++ b/src/models/EventInfo.ts @@ -39,7 +39,7 @@ export default class EventInfo { get info() { if (this.days === '') { - return 'ONLINE'; + return 'WEB'; } return `${this.days} ${EventInfo.timeToStr(this.start)}-${EventInfo.timeToStr(this.end)}`; } -- cgit v1.2.3