fix some colors

This commit is contained in:
Emily
2024-06-17 15:36:17 +02:00
parent 3bf63f64fe
commit b9b2e83e6b
6 changed files with 7 additions and 53 deletions

View File

@@ -1,6 +1,4 @@
:root { :root {
--current-card-color: #1d1d1f; --card-color: #1d1d1f;
--card-color-1: #1d1d1f; --bg-color: #151517;
--card-color-2: #1f1f1f;
--card-color-3: #0f0f0f;
} }

View File

@@ -50,10 +50,6 @@ const { isOpen, close } = useMenu();
</div> </div>
<div v-if="debugMode" class="flex justify-center w-full">
<ThemeSelector></ThemeSelector>
</div>
<div class="flex flex-col gap-4"> <div class="flex flex-col gap-4">
<div v-for="section of sections" class="flex flex-col gap-1"> <div v-for="section of sections" class="flex flex-col gap-1">

View File

@@ -1,40 +0,0 @@
<script lang="ts" setup>
function cardColor(val: number) {
document.documentElement.style.setProperty(
'--current-card-color',
`var(--card-color-${val})`
);
}
</script>
<template>
<div class="flex gap-2 bg-[#151517] py-3 px-8 rounded-lg">
<div @click="cardColor(1)" class="card1 px-4 py-1 rounded-lg cursor-pointer">
A
</div>
<div @click="cardColor(2)" class="card2 px-4 py-1 rounded-lg cursor-pointer">
B
</div>
<div @click="cardColor(3)" class="card3 px-4 py-1 rounded-lg cursor-pointer">
C
</div>
</div>
</template>
<style scoped lang=scss>
.card1 {
background-color: var(--card-color-1) !important;
}
.card2 {
background-color: var(--card-color-2) !important;
}
.card3 {
background-color: var(--card-color-3) !important;
}
</style>

View File

@@ -54,7 +54,7 @@ function openExternalLink(link: string) {
<div class="text-text flex flex-col items-start gap-4 w-full relative"> <div class="text-text flex flex-col items-start gap-4 w-full relative">
<div class="w-full h-full p-4 flex flex-col bg-menu rounded-xl gap-8 card-shadow"> <div class="w-full h-full p-4 flex flex-col bg-card rounded-xl gap-8 card-shadow">
<div class="flex justify-between mb-3"> <div class="flex justify-between mb-3">
<div class="flex flex-col gap-1"> <div class="flex flex-col gap-1">

View File

@@ -29,7 +29,7 @@ const eventsStackedSelectIndex = ref<number>(0);
</div> </div>
</CardTitled> </CardTitled>
<div class="bg-menu p-4 rounded-xl flex-[2] flex flex-col gap-10 h-full"> <div class="bg-card p-4 rounded-xl flex-[2] flex flex-col gap-10 h-full">
<div class="flex flex-col gap-1"> <div class="flex flex-col gap-1">
<div class="poppins font-semibold text-[1.4rem] text-text"> <div class="poppins font-semibold text-[1.4rem] text-text">
Top events Top events

View File

@@ -11,10 +11,10 @@ module.exports = {
}, },
colors: { colors: {
card: { card: {
DEFAULT: 'var(--current-card-color)', DEFAULT: 'var(--card-color)',
}, },
bg: { bg: {
DEFAULT: '#151517', DEFAULT: 'var(--bg-color)',
}, },
menu: { menu: {
DEFAULT: '#1d1d1f' DEFAULT: '#1d1d1f'