Изменены стили компонентов sidebar и base-компонентов под использование сетки

This commit is contained in:
DwCay
2022-10-11 22:21:04 +03:00
parent 68c639569d
commit ba04a9edde
5 changed files with 14 additions and 32 deletions

View File

@@ -1,13 +1,13 @@
<template lang="pug">
.sidebar-container
.top-button-container
.sidebar.flex.flex-col.justify-between.flex-auto.py-6.box-border
.flex.flex-col.gap-y-6
the-button-sidebar(id="home" path="#/")
.icon-home
the-button-sidebar(id="calendar" path="#/calendar")
.icon-calendar-2
the-button-sidebar(id="user" path="#/user")
.icon-person-2
.bottom-button-container
.flex.text-4xl.flex-col.gap-y-6
the-button-sidebar(id="settings" path="#/settings")
.icon-settings
</template>
@@ -22,21 +22,7 @@
</script>
<style lang="sass" scoped>
#person
font-style: normal
.sidebar-container
display: flex
flex-direction: column
justify-content: space-between
flex: auto
padding: 24px 0 24px 0
box-sizing: border-box
.sidebar
max-width: 80px
background-color: #F8F8FF
.top-button-container
display: flex
font-size: 40px
flex-direction: column
row-gap: 24px
</style>

View File

@@ -1,5 +1,5 @@
<template lang="pug">
button.event-button Создать событие
button.event-button.not-italic.leading-5.text-base.py-3.px-4 Создать событие
</template>
<script>
@@ -13,12 +13,8 @@
outline: none
border: none
cursor: pointer
font-style: normal
line-height: 19px
font-size: 16px
width: fit-content
color: var(--bg-white-color)
background-color: var(--btn-blue-color)
padding: 11px 16px 11px 16px
border-radius: 4px
</style>

View File

@@ -1,5 +1,5 @@
<template lang="pug">
button.icon-plus(class="button-plus")
button.icon-plus.button-plus.text-xs.pt-1
</template>
<script>
@@ -12,10 +12,11 @@
.button-plus
outline: none
border: none
font-size: 12px
cursor: pointer
width: 24px
height: 24px
max-height: 24px
color: #4772F2
padding: 7px 7px 5px 7px
background-color: rgba(65, 105, 225, 0.25)
border-radius: 50%
</style>

View File

@@ -1,6 +1,6 @@
<template lang="pug">
a(:href="path")
button(:id="id" class='button-icon-item')
button.button.text-4xl.py-3.pr-4.pl-3(:id="id")
slot
</template>
@@ -21,11 +21,9 @@
</script>
<style lang="sass" scoped>
.button-icon-item
.button
width: fit-content
padding: 12px 16px 12px 12px
cursor: pointer
font-size: 40px
background-color: rgb(65, 105, 225, 0)
border-radius: 0 4px 4px 0
border-left-color: rgb(65, 105, 225, 0)
@@ -34,11 +32,11 @@
border-top: none
border-bottom: none
border-left-style: solid
.button-icon-item:focus
.button:focus
background-color: rgb(65, 105, 225, 0.3)
border-left-color: rgb(65, 105, 225, 1)
color: #4169E1
.button-icon-item:hover
.button:hover
background-color: rgb(65, 105, 225, 0.3)
border-left-color: rgb(65, 105, 225, 1)
color: #4169E1