refactor: use variable for color
This will be used to change color for different doc later on
This commit is contained in:
parent
50abe7ad20
commit
fef8bb4987
2 changed files with 21 additions and 16 deletions
|
|
@ -234,7 +234,7 @@ function print() {
|
||||||
<div class="toolbar">
|
<div class="toolbar">
|
||||||
<PrintButton solid @click="print" />
|
<PrintButton solid @click="print" />
|
||||||
</div>
|
</div>
|
||||||
<div class="row justify-between container">
|
<div class="row justify-between container color-quotation">
|
||||||
<section class="content" v-for="chunk in chunks">
|
<section class="content" v-for="chunk in chunks">
|
||||||
<ViewHeader
|
<ViewHeader
|
||||||
v-if="!!branch && !!customer && !!details"
|
v-if="!!branch && !!customer && !!details"
|
||||||
|
|
@ -248,9 +248,9 @@ function print() {
|
||||||
style="
|
style="
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: var(--orange-5);
|
color: var(--main);
|
||||||
display: block;
|
display: block;
|
||||||
border-bottom: 2px solid var(--orange-5);
|
border-bottom: 2px solid var(--main);
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
{{ $t('preview.productList') }}
|
{{ $t('preview.productList') }}
|
||||||
|
|
@ -362,14 +362,14 @@ function print() {
|
||||||
|
|
||||||
<div class="row justify-between q-mb-md" style="width: 100%">
|
<div class="row justify-between q-mb-md" style="width: 100%">
|
||||||
<div
|
<div
|
||||||
class="column set-width bg-color-orange full-height"
|
class="column set-width bg-color full-height"
|
||||||
style="padding: 12px"
|
style="padding: 12px"
|
||||||
>
|
>
|
||||||
({{ ThaiBahtText(summaryPrice.finalPrice) }})
|
({{ ThaiBahtText(summaryPrice.finalPrice) }})
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="row text-right border-5 items-center"
|
class="row text-right border-5 items-center"
|
||||||
style="width: 40%; background: var(--orange-5); padding: 8px"
|
style="width: 40%; background: var(--main); padding: 8px"
|
||||||
>
|
>
|
||||||
<span style="color: white; font-weight: 600">ยอดรวมสุทธิ</span>
|
<span style="color: white; font-weight: 600">ยอดรวมสุทธิ</span>
|
||||||
<span
|
<span
|
||||||
|
|
@ -403,9 +403,9 @@ function print() {
|
||||||
style="
|
style="
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: var(--orange-5);
|
color: var(--main);
|
||||||
display: block;
|
display: block;
|
||||||
border-bottom: 2px solid var(--orange-5);
|
border-bottom: 2px solid var(--main);
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
หมายเหตุ
|
หมายเหตุ
|
||||||
|
|
@ -432,9 +432,9 @@ function print() {
|
||||||
style="
|
style="
|
||||||
font-weight: 800;
|
font-weight: 800;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: var(--orange-5);
|
color: var(--main);
|
||||||
display: block;
|
display: block;
|
||||||
border-bottom: 2px solid var(--orange-5);
|
border-bottom: 2px solid var(--main);
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
ช่องทางซำระเงิน
|
ช่องทางซำระเงิน
|
||||||
|
|
@ -463,6 +463,11 @@ function print() {
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.color-quotation {
|
||||||
|
--main: var(--orange-6);
|
||||||
|
--main-hsl: var(--orange-6-hsl);
|
||||||
|
}
|
||||||
|
|
||||||
.toolbar {
|
.toolbar {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: sticky;
|
position: sticky;
|
||||||
|
|
@ -481,7 +486,7 @@ table {
|
||||||
}
|
}
|
||||||
|
|
||||||
th {
|
th {
|
||||||
background: var(--orange-5);
|
background: var(--main);
|
||||||
color: white;
|
color: white;
|
||||||
|
|
||||||
padding: 4px;
|
padding: 4px;
|
||||||
|
|
@ -497,12 +502,12 @@ td {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bg-color-orange {
|
.bg-color {
|
||||||
background-color: hsla(var(--orange-5-hsl) / 0.1);
|
background-color: hsla(var(--main-hsl) / 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.color-tr > tr:nth-child(odd) {
|
.color-tr > tr:nth-child(odd) {
|
||||||
background-color: hsla(var(--orange-5-hsl) / 0.1);
|
background-color: hsla(var(--main-hsl) / 0.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
|
|
@ -545,7 +550,7 @@ td {
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
border-style: solid;
|
border-style: solid;
|
||||||
border-color: var(--orange-5);
|
border-color: var(--main);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@ defineProps<{
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|
||||||
& > :first-child {
|
& > :first-child {
|
||||||
color: var(--orange-5);
|
color: var(--main);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -131,7 +131,7 @@ defineProps<{
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
||||||
& > :first-child {
|
& > :first-child {
|
||||||
color: var(--orange-5);
|
color: var(--main);
|
||||||
}
|
}
|
||||||
|
|
||||||
& > * {
|
& > * {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue