Исправлен нейминг классов header

This commit is contained in:
Daria Golova
2022-10-04 20:10:17 +03:00
parent 20da84cdd4
commit 9ddd274333

View File

@@ -1,25 +1,25 @@
<template lang="pug">
div.header-wrapper.flex.flex-row.center.space-between
div.logo-wrapper
div.header-wrapper
div.header-left-side
img.logo-img(src="../../assets/images/logo.svg" alt="Logo")
div.flex.flex-row
div.inputs-wrapper
div.header-right-side
div.header-inputs-wrapper
img.search-icon(src="../../assets/icons/search.svg" alt="Search")
select.inputs.select(v-model="selectedFilter")
select.header-inputs.select(v-model="selectedFilter")
option(v-for="filter in filters" :key="filter" :value="filter") {{ filter }}
span.separator
input.inputs.search-input(placeholder="Искать ...")
button.flex.center.btn-notification
span.header-inputs-separator
input.header-inputs.search-input(placeholder="Искать ...")
button.header-buttons.btn-notification
img.bell-icon(src="../../assets/icons/bell.svg" alt="Notifications")
div.flex.flex-row.center
div.avatar-wrapper
img.avatar-img(:src="avatarSrc")
button.flex.flex-center
button.header-buttons.btn-down-arrow
img.arrow-icon(src="../../assets/icons/down-arrow-2.svg" alt="Down Arrow")
</template>
<script>
import img from '../../assets/images/avatar.svg'
export default {
import img from '../../assets/images/avatar.svg'
export default {
name: 'HeaderComponent',
data() {
return {
@@ -28,15 +28,14 @@ export default {
avatarSrc: img
}
}
}
}
</script>
<style lang='sass'>
input
input
padding: 0
button
.header-buttons
outline: none
border: none
background-color: transparent
@@ -44,61 +43,58 @@ button
padding: 0
color: var(--font-dark-blue-color)
.header-wrapper
.header-wrapper
display: flex
flex-direction: row
justify-content: space-between
width: 100%
padding: 8px 24px
background-color: var(--bg-white-color)
box-sizing: border-box
.flex
.header-right-side
display: flex
.flex-row
flex-direction: row
.center
justify-content: center
align-items: center
.space-between
justify-content: space-between
.logo-wrapper
.header-left-side
box-sizing: border-box
margin: 4px 0
height: 32px
cursor: pointer
.logo-img
.logo-img
height: 32px
width: 70px
.inputs-wrapper
.header-inputs-wrapper
display: inline-block
background-color: rgba(65, 105, 225, 0.1)
padding: 8px 18px 8px 16px
border-radius: 4px
margin-right: 46px
.search-icon
.search-icon
position: absolute
height: 24px
width: 24px
color: var(--btn-blue-color)
opacity: 0.7
.btn-notification
.btn-notification
display: flex
justify-content: center
align-items: center
margin-right: 32px
.arrow-icon
.arrow-icon
width: 24px
height: 24px
.bell-icon
.bell-icon
width: 24px
height: 24px
.inputs
.header-inputs
cursor: pointer
border: none
outline: none
@@ -118,7 +114,7 @@ button
color: var(--btn-blue-color)
opacity: 0.5
.select
.select
-webkit-appearance: none
-moz-appearance: none
-ms-appearance: none
@@ -128,22 +124,31 @@ button
margin-right: 16px
padding: 2px 20px 2px 30px
.search-input
.search-input
margin-left: 14px
padding: 2px
.separator
.header-inputs-separator
display: inline-block
vertical-align: middle
height: 254px
border-left: 1px solid var(--btn-blue-color)
opacity: 0.5
border-radius: 4px
height: 100%
.avatar-img
.avatar-wrapper
display: flex
flex-direction: row
justify-content: center
align-items: center
.btn-down-arrow
display: flex
justify-content: center
align-items: center
.avatar-img
width: 32px
height: 32px
margin-right: 8px
</style>