0
0
Fork 0

refs 6105 css refactoring

This commit is contained in:
Jorge Penadés 2023-08-14 09:00:21 +02:00
parent 787844a930
commit 670882024a
6 changed files with 45 additions and 31 deletions

View File

@ -178,9 +178,33 @@ watch($props, async () => {
} }
} }
} }
body.body--light {
.descriptor {
.vn-label-value {
.label {
color: $gray;
}
.value {
color: $light-black;
}
}
}
}
</style> </style>
<style lang="scss" scoped> <style lang="scss" scoped>
$descriptor--light: rgb(87 86 86 / 6%);
body.body--light {
.descriptor {
.subtitle {
color: $gray;
}
.list-box {
background-color: $descriptor--light;
}
}
}
$descriptor-items-box: rgba(87, 86, 86, 0.2);
.title { .title {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;

View File

@ -25,6 +25,18 @@ const $props = defineProps({
</QCard> </QCard>
</template> </template>
<style lang="scss"> <style lang="scss">
body.body--light {
.card-list-body {
.vn-label-value {
.label {
color: $gray;
}
.value {
color: $light-black;
}
}
}
}
.card-list-body { .card-list-body {
.vn-label-value { .vn-label-value {
display: flex; display: flex;

View File

@ -58,6 +58,14 @@ watch(props, async () => {
</template> </template>
<style lang="scss"> <style lang="scss">
body.body--light {
.summary {
.header {
color: $white;
}
}
}
.summary.container { .summary.container {
display: flex; display: flex;
justify-content: center; justify-content: center;

View File

@ -29,32 +29,4 @@ body.body--light {
background-color: $white; background-color: $white;
color: #555; color: #555;
} }
.descriptor {
.picture {
background-color: $descriptor--light;
}
}
.vn-label-value {
.label {
color: $gray;
}
.value {
color: $light-black;
}
}
.descriptor {
.subtitle {
color: $gray;
}
.list-box {
background-color: $descriptor--light;
}
}
.summary {
.header {
color: $white;
}
}
} }

View File

@ -54,5 +54,3 @@ $layout-shadow-dark: 0 0 10px 2px rgba(0, 0, 0, 0.2), 0 0px 10px rgba(0, 0, 0, 0
$spacing-md: 16px; $spacing-md: 16px;
$label-color: rgba(255, 255, 255, 0.6); $label-color: rgba(255, 255, 255, 0.6);
$descriptor-items-box: rgba(87, 86, 86, 0.2);
$descriptor--light: rgb(87 86 86 / 6%);

View File

@ -88,7 +88,7 @@ const setData = (entity) =>
<template #body="{ entity }"> <template #body="{ entity }">
<VnLv v-if="entity.ticketState" :label="t('ticket.card.state')"> <VnLv v-if="entity.ticketState" :label="t('ticket.card.state')">
<template #value> <template #value>
<QBadge :color="entity.ticketState.state.classColor ?? 'orange'"> <QBadge :color="entity.ticketState.state.classColor ?? 'primary'">
{{ entity.ticketState.state.name }} {{ entity.ticketState.state.name }}
</QBadge> </QBadge>
</template> </template>