stylus mixins
This commit is contained in:
@@ -1,10 +1,28 @@
|
|||||||
.navbar
|
// Миксины для переиспользования
|
||||||
|
double-border()
|
||||||
border-top double thick silver
|
border-top double thick silver
|
||||||
border-bottom double thick silver
|
border-bottom double thick silver
|
||||||
font-size 0
|
|
||||||
|
flex-center()
|
||||||
|
display flex
|
||||||
|
align-items center
|
||||||
|
justify-content center
|
||||||
|
|
||||||
|
text-center-bold()
|
||||||
|
text-align center
|
||||||
|
font-weight bold
|
||||||
|
display block
|
||||||
|
|
||||||
|
grid-responsive(columns)
|
||||||
display grid
|
display grid
|
||||||
grid-template-columns repeat(7, min-content)
|
grid-template-columns columns
|
||||||
grid-template-rows 1fr
|
grid-template-rows 1fr
|
||||||
|
|
||||||
|
// Основные стили
|
||||||
|
.navbar
|
||||||
|
double-border()
|
||||||
|
font-size 0
|
||||||
|
grid-responsive(repeat(7, min-content))
|
||||||
justify-items start
|
justify-items start
|
||||||
|
|
||||||
&__link__wrapper
|
&__link__wrapper
|
||||||
@@ -45,9 +63,7 @@
|
|||||||
margin-top 10px
|
margin-top 10px
|
||||||
|
|
||||||
.main-container
|
.main-container
|
||||||
display grid
|
grid-responsive(3fr 1fr)
|
||||||
grid-template-columns 3fr 1fr
|
|
||||||
grid-template-rows 1fr
|
|
||||||
|
|
||||||
|
|
||||||
.info-block
|
.info-block
|
||||||
@@ -56,20 +72,14 @@
|
|||||||
margin 1vw 0
|
margin 1vw 0
|
||||||
|
|
||||||
&__header
|
&__header
|
||||||
display block
|
text-center-bold()
|
||||||
font-weight bold
|
|
||||||
text-align center
|
|
||||||
|
|
||||||
&__container
|
&__container
|
||||||
&_layout-a
|
&_layout-a
|
||||||
display grid
|
grid-responsive(3fr 3fr 2fr)
|
||||||
grid-template-columns 3fr 3fr 2fr
|
|
||||||
grid-template-rows 1fr
|
|
||||||
|
|
||||||
&_layout-b
|
&_layout-b
|
||||||
display grid
|
grid-responsive(4fr 7fr 4fr)
|
||||||
grid-template-columns 4fr 7fr 4fr
|
|
||||||
grid-template-rows 1fr
|
|
||||||
|
|
||||||
& > *
|
& > *
|
||||||
margin 2vw
|
margin 2vw
|
||||||
@@ -93,16 +103,13 @@
|
|||||||
|
|
||||||
.small-card
|
.small-card
|
||||||
margin 20px 10px 0
|
margin 20px 10px 0
|
||||||
display grid
|
grid-responsive(1fr 1fr)
|
||||||
grid-template-columns 1fr 1fr
|
|
||||||
grid-template-rows auto
|
|
||||||
|
|
||||||
&__content
|
&__content
|
||||||
text-align justify
|
text-align justify
|
||||||
|
|
||||||
&__header
|
&__header
|
||||||
display block
|
text-center-bold()
|
||||||
font-weight bold
|
|
||||||
text-align right
|
text-align right
|
||||||
|
|
||||||
&__link
|
&__link
|
||||||
@@ -126,7 +133,7 @@
|
|||||||
|
|
||||||
@media screen and (max-width: 800px)
|
@media screen and (max-width: 800px)
|
||||||
.navbar
|
.navbar
|
||||||
grid-template-columns 1fr 1fr
|
grid-responsive(1fr 1fr)
|
||||||
grid-template-rows 1fr 1fr 1fr
|
grid-template-rows 1fr 1fr 1fr
|
||||||
justify-items center
|
justify-items center
|
||||||
|
|
||||||
@@ -154,6 +161,6 @@
|
|||||||
|
|
||||||
.info-block
|
.info-block
|
||||||
&__container
|
&__container
|
||||||
&_layout_a, &_layout_b
|
&_layout-a, &_layout-b
|
||||||
display flex
|
display flex
|
||||||
flex-direction column
|
flex-direction column
|
||||||
Reference in New Issue
Block a user