Изменены стили компонентов 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"> <template lang="pug">
.sidebar-container .sidebar.flex.flex-col.justify-between.flex-auto.py-6.box-border
.top-button-container .flex.flex-col.gap-y-6
the-button-sidebar(id="home" path="#/") the-button-sidebar(id="home" path="#/")
.icon-home .icon-home
the-button-sidebar(id="calendar" path="#/calendar") the-button-sidebar(id="calendar" path="#/calendar")
.icon-calendar-2 .icon-calendar-2
the-button-sidebar(id="user" path="#/user") the-button-sidebar(id="user" path="#/user")
.icon-person-2 .icon-person-2
.bottom-button-container .flex.text-4xl.flex-col.gap-y-6
the-button-sidebar(id="settings" path="#/settings") the-button-sidebar(id="settings" path="#/settings")
.icon-settings .icon-settings
</template> </template>
@@ -22,21 +22,7 @@
</script> </script>
<style lang="sass" scoped> <style lang="sass" scoped>
#person .sidebar
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
max-width: 80px max-width: 80px
background-color: #F8F8FF background-color: #F8F8FF
.top-button-container
display: flex
font-size: 40px
flex-direction: column
row-gap: 24px
</style> </style>

View File

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

View File

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

View File

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

View File

@@ -18,6 +18,7 @@ module.exports = {
xl: ['20px', { lineHeight: '23px' }], xl: ['20px', { lineHeight: '23px' }],
'2xl': ['28px', { lineHeight: '33px' }], '2xl': ['28px', { lineHeight: '33px' }],
'3xl': ['60px', { lineHeight: '70px' }], '3xl': ['60px', { lineHeight: '70px' }],
'4xl': ['44px', { lineHeight: '48px' }],
} }
}, },
}, },