From c9e0d489d18c42517bdeabcbaaa567588bdeb8ae Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Mon, 30 Sep 2024 11:47:56 +0300 Subject: [PATCH] color size --- assets/main.scss | 25 ++++++++-- components/calc/values.vue | 84 +++++++++++++++------------------- components/dropdown/picker.vue | 17 ++++--- components/model/env.vue | 14 +++++- components/model/fence.vue | 1 - composables/useCalc.ts | 2 +- 6 files changed, 78 insertions(+), 65 deletions(-) diff --git a/assets/main.scss b/assets/main.scss index deb8dd6..8f101c0 100644 --- a/assets/main.scss +++ b/assets/main.scss @@ -182,6 +182,10 @@ a[href^="#"] { .container { @apply gap-4 items-stretch; + + >* { + @apply relative; + } } } @@ -306,6 +310,10 @@ button { &-row { @apply flex flex-row flex-wrap gap-2; + + &_picker { + @apply grid grid-cols-2 justify-center items-center; + } } &-item { @@ -316,7 +324,7 @@ button { } .icon { - @apply hover:text-primary cursor-pointer transition-colors text-2xl; + @apply hover:text-primary cursor-pointer transition-colors text-xl; &.disabled { @apply text-neutral pointer-events-none cursor-not-allowed; @@ -352,6 +360,7 @@ button { input { @apply flex-grow; } + span { @apply min-w-16; } @@ -383,7 +392,7 @@ button { @apply flex items-center justify-between; >div { - @apply h-10 overflow-hidden rounded border-gray-300 shadow flex leading-none grow justify-center items-center px-4; + @apply h-10 overflow-hidden rounded border-gray-300 shadow flex leading-none grow justify-center items-center px-2; span { @apply grow text-left; @@ -393,7 +402,7 @@ button { } &-button { - @apply min-w-10 shrink-0 h-full; + @apply min-w-6 shrink-0 h-full; } &-selected { @@ -401,7 +410,11 @@ button { } &-changer { - @apply flex gap-3 mt-4 max-h-36 overflow-auto; + @apply gap-3 mt-4 max-h-36 overflow-auto order-10 hidden; + + &_open { + @apply flex flex-wrap col-span-2; + } } &-list { @@ -445,9 +458,11 @@ button { } } } -.calc{ + +.calc { @apply max-h-[800px] relative h-full; } + .calc_table { @apply flex flex-col gap-2 self-end; diff --git a/components/calc/values.vue b/components/calc/values.vue index 2c0e39d..6fe5f6c 100644 --- a/components/calc/values.vue +++ b/components/calc/values.vue @@ -169,12 +169,12 @@ const calc_table = computed(() => { }, { name: - `Ламели, RAL ${lamelle_color.value}, ${getColorNameFromRal(lamelle_color.value)?.toLowerCase()}`, + `Ламели`, value: section_count.value * lamelles_count.value, extra: 1 * lamelles_count.value }, { - name: `Столбы, RAL ${pillar_color.value}, ${getColorNameFromRal(pillar_color.value)?.toLowerCase()}`, + name: `Столбы`, value: !form_state.remove_pillar ? section_count.value + ~~(!!form_state.extra_section) + 1 : `—`, extra: `—` }, @@ -183,40 +183,29 @@ const calc_table = computed(() => { \ No newline at end of file diff --git a/components/dropdown/picker.vue b/components/dropdown/picker.vue index 5702aa0..4e0a8a6 100644 --- a/components/dropdown/picker.vue +++ b/components/dropdown/picker.vue @@ -62,15 +62,14 @@ watch(open_calc, () => { - -
- - -
+ +
+ +