Добавила css переменные

This commit is contained in:
Daria Golova
2022-10-13 14:34:25 +03:00
parent 82b7a45676
commit df6ced8662
9 changed files with 35 additions and 37 deletions

View File

@@ -1,11 +1,11 @@
<template lang="pug">
.flex.gap-2.py-2.px-4.w-full.container(@click="selectOpen")
.flex.gap-2.py-2.px-4.w-full.container.items-center.cursor-pointer(@click="selectOpen")
.relative.flex.flex-col
.not-italic.text-base.select(:style="{ minWidth : width}") {{optionData}}
.absolute.options(v-if="isOpen" :id="id" @click="(event)=>chooseOption(event)")
.not-italic.text-base.option(v-for="(responsible, index) in listData" :key="index" :id="index") {{responsible}}
.select-form-separator
.text-sm.ml-2.pt-1.icon-down-arrow.icon(:class="{ open: isOpen}")
.select-form-separator.cursor-pointer
.text-sm.ml-2.pt-1.icon-down-arrow.icon.text-center(:class="{ open: isOpen}")
</template>
<script>
@@ -25,8 +25,6 @@ export default {
<style lang="sass" scoped>
.container
align-items: center
cursor: pointer
border-radius: 4px
width: fit-content
background-color: var(--bg-ligth-blue-color)
@@ -34,9 +32,8 @@ export default {
appearance: none
border: none
outline: none
cursor: pointer
color: rgba(9, 10, 21, 0.5)
background-color: rgba(9, 10, 21, 0)
color: var(--font-black-color-1)
background-color: var(--font-black-color-0)
&::-webkit-calendar-picker-indicator
display: none
-webkit-appearance: none
@@ -49,12 +46,11 @@ export default {
&:hover
background-color: var(--btn-blue-color)
.select-form-separator
background-color: rgba(65, 105, 225, 0.2)
background-color: var(--btn-blue-color-3)
height: 24px
width: 1px
border-radius: 1px
.icon
text-align: center
color: var(--font-dark-blue-color)
&:hover
color: var(--btn-blue-color)

View File

@@ -12,7 +12,6 @@ export default {
.event-button
outline: none
border: none
cursor: pointer
width: fit-content
color: var(--default-white)
background-color: var(--btn-blue-color)

View File

@@ -15,9 +15,9 @@ export default {
.arrow-button
width: 32px
height: 32px
background: var(--btn-light-blue-color)
background-color: var(--btn-blue-color-1)
color: var(--btn-blue-color)
border-radius: 50%
&:hover
background: #a0b4f0
background-color: var(--btn-blue-color-2)
</style>

View File

@@ -12,11 +12,10 @@ export default {
.button-plus
outline: none
border: none
cursor: pointer
width: 24px
height: 24px
max-height: 24px
color: #4772F2
background-color: rgba(65, 105, 225, 0.25)
color: var(--btn-blue-color)
background-color: var(--bg-ligth-blue-color)
border-radius: 50%
</style>

View File

@@ -23,21 +23,20 @@ export default {
<style lang="sass" scoped>
.button
width: fit-content
cursor: pointer
background-color: rgba(65, 105, 225, 0)
background-color: var(--btn-blue-color-0)
border-radius: 0 4px 4px 0
border-left-color: rgba(65, 105, 225, 0)
border-left-color: var(--btn-blue-color-0)
border-left-width: 4px
border-right: none
border-top: none
border-bottom: none
border-left-style: solid
.button:focus
background-color: rgba(65, 105, 225, 0.3)
border-left-color: rgba(65, 105, 225, 1)
color: #4169E1
background-color: var(--btn-blue-color-1)
border-left-color: var(--btn-blue-color)
color: var(--btn-blue-color)
.button:hover
background-color: rgba(65, 105, 225, 0.3)
border-left-color: rgba(65, 105, 225, 1)
color: #4169E1
background-color: var(--btn-blue-color-1)
border-left-color: var(--btn-blue-color)
color: var(--btn-blue-color)
</style>