refs 5987 index cards and light mode #79

Merged
alexm merged 10 commits from 5987-redisgnCards into dev 2023-08-17 08:41:58 +00:00
6 changed files with 45 additions and 31 deletions
Showing only changes of commit 670882024a - Show all commits

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 lang="scss" scoped>
$descriptor--light: rgb(87 86 86 / 6%);
Outdated
Review

Podries gastar el color de una de les variables que has creat:
https://gitea.verdnatura.es/verdnatura/salix-front/pulls/79/files#diff-b1e76443679ed8e3f9150534016e8ec63d3c1f9f

$white: #fff;
$black: #000;
$light-black: #4e4c4c;
$gray: gray;
$light-gray: #57565633;
$lighter-gray: #5756560f;

I possarli lo de light i tal pero de manera global

Podries gastar el color de una de les variables que has creat: https://gitea.verdnatura.es/verdnatura/salix-front/pulls/79/files#diff-b1e76443679ed8e3f9150534016e8ec63d3c1f9f ``` $white: #fff; $black: #000; $light-black: #4e4c4c; $gray: gray; $light-gray: #57565633; $lighter-gray: #5756560f; ``` I possarli lo de light i tal pero de manera global
body.body--light {
.descriptor {
Outdated
Review

Esta variable debería estar o definida aquí o tener un nombre mas genérico. Dado que esta definida de manera global

Esta variable debería estar o definida aquí o tener un nombre mas genérico. Dado que esta definida de manera global
.subtitle {
color: $gray;
}
.list-box {
background-color: $descriptor--light;
}
}
}
$descriptor-items-box: rgba(87, 86, 86, 0.2);
.title {
overflow: hidden;
text-overflow: ellipsis;

View File

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

View File

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

View File

@ -29,32 +29,4 @@ body.body--light {
background-color: $white;
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;
$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 }">
<VnLv v-if="entity.ticketState" :label="t('ticket.card.state')">
<template #value>
<QBadge :color="entity.ticketState.state.classColor ?? 'orange'">
<QBadge :color="entity.ticketState.state.classColor ?? 'primary'">
Outdated
Review

Este orange deuria ser primary entenc

Este orange deuria ser `primary` entenc
Outdated
Review

Por defecto naranja??

Por defecto naranja??
{{ entity.ticketState.state.name }}
</QBadge>
</template>