Adapting Layouts to the new bem generator
This commit is contained in:
parent
0f4ca0c882
commit
7ae8569ff8
@ -1,6 +1,6 @@
|
|||||||
@import 'dummy/_dummy'
|
@import 'dummy/_dummy'
|
||||||
@import 'contentCrop/_contentCrop'
|
@import 'contentCrop/_contentCrop'
|
||||||
@import 'fullWidthContent/_fullWidthContent'
|
//@import 'fullWidthContent/_fullWidthContent'
|
||||||
@import 'flexRow/_flexRow'
|
@import 'flexRow/_flexRow'
|
||||||
@import 'flexGrid/_flexGrid'
|
@import 'flexGrid/_flexGrid'
|
||||||
@import 'fan/_fan'
|
@import 'fan/_fan'
|
||||||
|
@ -2,55 +2,41 @@ RV-Alignment()
|
|||||||
display grid
|
display grid
|
||||||
|
|
||||||
RV-Alignment--top()
|
RV-Alignment--top()
|
||||||
+RV-Block__Modifier--name('top')
|
+RV-Block--modifier()
|
||||||
align-content start
|
align-content start
|
||||||
|
|
||||||
RV-Alignment--bottom()
|
RV-Alignment--bottom()
|
||||||
+RV-Block__Modifier--name('bottom')
|
+RV-Block--modifier()
|
||||||
align-content end
|
align-content end
|
||||||
|
|
||||||
RV-Alignment--left()
|
RV-Alignment--left()
|
||||||
+RV-Block__Modifier--name('left')
|
+RV-Block--modifier()
|
||||||
justify-content start
|
justify-content start
|
||||||
|
|
||||||
RV-Alignment--right()
|
RV-Alignment--right()
|
||||||
+RV-Block__Modifier--name('right')
|
+RV-Block--modifier()
|
||||||
justify-content: end
|
justify-content: end
|
||||||
|
|
||||||
RV-Alignment--horizontalCenter()
|
RV-Alignment--horizontalCenter()
|
||||||
+RV-Block__Modifier--name('horizontalCenter')
|
+RV-Block--modifier()
|
||||||
justify-content center
|
justify-content center
|
||||||
|
|
||||||
RV-Alignment--verticalCenter()
|
RV-Alignment--verticalCenter()
|
||||||
+RV-Block__Modifier--name('verticalCenter')
|
+RV-Block--modifier()
|
||||||
align-items center
|
align-items center
|
||||||
|
|
||||||
RV-Alignment--center()
|
RV-Alignment--center()
|
||||||
+RV-Block__Modifier--name('center')
|
+RV-Block--modifier()
|
||||||
|
|
||||||
align-items center
|
align-items center
|
||||||
justify-content center
|
justify-content center
|
||||||
|
|
||||||
+RV-Block('RV-Alignment')
|
+RV-Block('RV-Alignment')
|
||||||
RV-Alignment()
|
RV-Alignment()
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
RV-Alignment--top()
|
||||||
RV-Alignment--top()
|
RV-Alignment--bottom()
|
||||||
|
RV-Alignment--left()
|
||||||
+RV-Block__Modifier()
|
RV-Alignment--right()
|
||||||
RV-Alignment--bottom()
|
RV-Alignment--horizontalCenter()
|
||||||
|
RV-Alignment--verticalCenter()
|
||||||
+RV-Block__Modifier()
|
RV-Alignment--center()
|
||||||
RV-Alignment--left()
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-Alignment--right()
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-Alignment--horizontalCenter()
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-Alignment--verticalCenter()
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-Alignment--center()
|
|
@ -1,30 +1,30 @@
|
|||||||
RV-ContentCrop--bottom()
|
RV-ContentCrop--bottom()
|
||||||
+RV-Block__Modifier--name('bottom')
|
+RV-Block--modifier()
|
||||||
.RV-Image *
|
.RV-Image *
|
||||||
object-position bottom
|
object-position bottom
|
||||||
|
|
||||||
RV-ContentCrop--top()
|
RV-ContentCrop--top()
|
||||||
+RV-Block__Modifier--name('top')
|
+RV-Block--modifier()
|
||||||
.RV-Image *
|
.RV-Image *
|
||||||
object-position top
|
object-position top
|
||||||
|
|
||||||
RV-ContentCrop--right()
|
RV-ContentCrop--right()
|
||||||
+RV-Block__Modifier--name('right')
|
+RV-Block--modifier()
|
||||||
.RV-Image *
|
.RV-Image *
|
||||||
object-position right
|
object-position right
|
||||||
|
|
||||||
RV-ContentCrop--left()
|
RV-ContentCrop--left()
|
||||||
+RV-Block__Modifier--name('left')
|
+RV-Block--modifier()
|
||||||
.RV-Image *
|
.RV-Image *
|
||||||
object-position left
|
object-position left
|
||||||
|
|
||||||
RV-ContentCrop--center()
|
RV-ContentCrop--center()
|
||||||
+RV-Block__Modifier--name('center')
|
+RV-Block--modifier()
|
||||||
.RV-Image *
|
.RV-Image *
|
||||||
object-position center
|
object-position center
|
||||||
|
|
||||||
RV-ContentCrop--square()
|
RV-ContentCrop--square()
|
||||||
+RV-Block__Modifier--name('square')
|
+RV-Block--modifier()
|
||||||
width 100%
|
width 100%
|
||||||
padding-top 100%
|
padding-top 100%
|
||||||
position relative
|
position relative
|
||||||
@ -38,7 +38,7 @@ RV-ContentCrop--square()
|
|||||||
right 0
|
right 0
|
||||||
|
|
||||||
RV-ContentCrop--circle()
|
RV-ContentCrop--circle()
|
||||||
+RV-Block__Modifier--name('circle')
|
+RV-Block--modifier()
|
||||||
border-radius 50%
|
border-radius 50%
|
||||||
width 100%
|
width 100%
|
||||||
padding-top 100%
|
padding-top 100%
|
||||||
@ -58,7 +58,7 @@ RV-ContentCrop--XtoY(x=1, y=1)
|
|||||||
y: y
|
y: y
|
||||||
})
|
})
|
||||||
|
|
||||||
+RV-Block__Modifier--name('XtoY')
|
+RV-Block--modifier()
|
||||||
width 100%
|
width 100%
|
||||||
padding-top 100% * (--y / --x)
|
padding-top 100% * (--y / --x)
|
||||||
position relative
|
position relative
|
||||||
@ -72,27 +72,27 @@ RV-ContentCrop--XtoY(x=1, y=1)
|
|||||||
right 0
|
right 0
|
||||||
|
|
||||||
RV-ContentCrop--1to2()
|
RV-ContentCrop--1to2()
|
||||||
+RV-Block__Modifier--name('1to2')
|
+RV-Block--modifier()
|
||||||
RV-ContentCrop__XtoY(1, 2)
|
RV-ContentCrop__XtoY(1, 2)
|
||||||
|
|
||||||
RV-ContentCrop--2to1()
|
RV-ContentCrop--2to1()
|
||||||
+RV-Block__Modifier--name('2to1')
|
+RV-Block--modifier()
|
||||||
RV-ContentCrop__XtoY(2, 1)
|
RV-ContentCrop__XtoY(2, 1)
|
||||||
|
|
||||||
RV-ContentCrop--4to3()
|
RV-ContentCrop--4to3()
|
||||||
+RV-Block__Modifier--name('4to3')
|
+RV-Block--modifier()
|
||||||
RV-ContentCrop__XtoY(4, 3)
|
RV-ContentCrop__XtoY(4, 3)
|
||||||
|
|
||||||
RV-ContentCrop--16to9()
|
RV-ContentCrop--16to9()
|
||||||
+RV-Block__Modifier--name('16to9')
|
+RV-Block--modifier()
|
||||||
RV-ContentCrop__XtoY(16, 9)
|
RV-ContentCrop__XtoY(16, 9)
|
||||||
|
|
||||||
RV-ContentCrop--3to2()
|
RV-ContentCrop--3to2()
|
||||||
+RV-Block__Modifier--name('3to2')
|
+RV-Block--modifier()
|
||||||
RV-ContentCrop__XtoY(3, 2)
|
RV-ContentCrop__XtoY(3, 2)
|
||||||
|
|
||||||
RV-ContentCrop__Text--fade(background-color=white)
|
RV-ContentCrop__Text--fade(background-color=white)
|
||||||
+RV-Element__Modifier--name('fade')
|
+RV-Element--modifier()
|
||||||
&:after
|
&:after
|
||||||
background-image linear-gradient(180deg, rgba(255, 255, 255, 0), background-color)
|
background-image linear-gradient(180deg, rgba(255, 255, 255, 0), background-color)
|
||||||
display block
|
display block
|
||||||
@ -106,7 +106,7 @@ RV-ContentCrop__Text--fade(background-color=white)
|
|||||||
z-index 10
|
z-index 10
|
||||||
|
|
||||||
RV-ContentCrop__Text--ellipsis(background-color=white)
|
RV-ContentCrop__Text--ellipsis(background-color=white)
|
||||||
+RV-Element__Modifier--name('ellipsis')
|
+RV-Element--modifier()
|
||||||
&:after
|
&:after
|
||||||
position relative
|
position relative
|
||||||
display block
|
display block
|
||||||
@ -159,50 +159,21 @@ RV-ContentCrop(line-height=1.1, height=350px)
|
|||||||
|
|
||||||
RV-ContentCrop(line-height, height)
|
RV-ContentCrop(line-height, height)
|
||||||
|
|
||||||
+RV-Element()
|
RV-ContentCrop__Image()
|
||||||
RV-ContentCrop__Image()
|
|
||||||
|
|
||||||
+RV-Element()
|
+RV-Element('Text')
|
||||||
RV-ContentCrop__Text(line-height)
|
RV-ContentCrop__Text--ellipsis()
|
||||||
|
RV-ContentCrop__Text--fade()
|
||||||
|
|
||||||
+RV-Element__Modifier()
|
RV-ContentCrop--bottom()
|
||||||
RV-ContentCrop__Text--ellipsis()
|
RV-ContentCrop--top()
|
||||||
|
RV-ContentCrop--right()
|
||||||
+RV-Element__Modifier()
|
RV-ContentCrop--left()
|
||||||
RV-ContentCrop__Text--fade()
|
RV-ContentCrop--center()
|
||||||
|
RV-ContentCrop--square()
|
||||||
+RV-Block__Modifier()
|
RV-ContentCrop--circle()
|
||||||
RV-ContentCrop--bottom()
|
RV-ContentCrop--1to2()
|
||||||
|
RV-ContentCrop--2to1()
|
||||||
+RV-Block__Modifier()
|
RV-ContentCrop--4to3()
|
||||||
RV-ContentCrop--top()
|
RV-ContentCrop--16to9()
|
||||||
|
RV-ContentCrop--3to2()
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-ContentCrop--right()
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-ContentCrop--left()
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-ContentCrop--center()
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-ContentCrop--square()
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-ContentCrop--circle()
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-ContentCrop--1to2()
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-ContentCrop--2to1()
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-ContentCrop--4to3()
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-ContentCrop--16to9()
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-ContentCrop--3to2()
|
|
@ -1,18 +1,18 @@
|
|||||||
+RV-Block('RV-Dummy')
|
+RV-Block('RV-Dummy')
|
||||||
|
|
||||||
&--oranage
|
+RV-Block--modifier('orange')
|
||||||
background-color #F4A460 !important
|
background-color #F4A460 !important
|
||||||
|
|
||||||
&--blue
|
+RV-Block--modifier('blue')
|
||||||
background-color #6495ED !important
|
background-color #6495ED !important
|
||||||
|
|
||||||
&--green
|
+RV-Block--modifier('green')
|
||||||
background-color #90EE90 !important
|
background-color #90EE90 !important
|
||||||
|
|
||||||
&--red
|
+RV-Block--modifier('red')
|
||||||
background-color #ce6d6d !important
|
background-color #ce6d6d !important
|
||||||
|
|
||||||
&--yellow
|
+RV-Block--modifier('yellow')
|
||||||
background-color #eae144 !important
|
background-color #eae144 !important
|
||||||
|
|
||||||
background-color #F4A460
|
background-color #F4A460
|
||||||
@ -40,25 +40,25 @@
|
|||||||
height var(--height)
|
height var(--height)
|
||||||
width var(--width)
|
width var(--width)
|
||||||
|
|
||||||
+RV-Element__Modifier('large')
|
+RV-Element--modifier('large')
|
||||||
--height 500px
|
--height 500px
|
||||||
--width 500px
|
--width 500px
|
||||||
|
|
||||||
+RV-Element__Modifier('small')
|
+RV-Element--modifier('small')
|
||||||
--height 100px
|
--height 100px
|
||||||
--width 100px
|
--width 100px
|
||||||
|
|
||||||
+RV-Block__Modifier('square')
|
+RV-Block--modifier('square')
|
||||||
height 350px
|
height 350px
|
||||||
width 350px
|
width 350px
|
||||||
|
|
||||||
+RV-Block__Modifier('portrait')
|
+RV-Block--modifier('portrait')
|
||||||
height 350px
|
height 350px
|
||||||
width 150px
|
width 150px
|
||||||
|
|
||||||
+RV-Block__Modifier('landscape')
|
+RV-Block--modifier('landscape')
|
||||||
width 350px
|
width 350px
|
||||||
height 150px
|
height 150px
|
||||||
|
|
||||||
+RV-Block__Modifier('red')
|
+RV-Block--modifier('red')
|
||||||
background-color #d8583e
|
background-color #d8583e
|
@ -15,7 +15,7 @@
|
|||||||
* but will fill the parent's width
|
* but will fill the parent's width
|
||||||
*/
|
*/
|
||||||
RV-Fan--horizontal(base-height, base-width)
|
RV-Fan--horizontal(base-height, base-width)
|
||||||
+RV-Block__Modifier--name('horizontal')
|
+RV-Block--modifier()
|
||||||
flex-direction row
|
flex-direction row
|
||||||
|
|
||||||
+RV-Element('Base')
|
+RV-Element('Base')
|
||||||
@ -46,7 +46,7 @@ RV-Fan--horizontal(base-height, base-width)
|
|||||||
* minimal height is given height, will grow with content
|
* minimal height is given height, will grow with content
|
||||||
*/
|
*/
|
||||||
RV-Fan--vertical(base-height, base-width)
|
RV-Fan--vertical(base-height, base-width)
|
||||||
+RV-Block__Modifier--name('vertical')
|
+RV-Block--modifier()
|
||||||
flex-direction column
|
flex-direction column
|
||||||
width base-width
|
width base-width
|
||||||
min-width initial
|
min-width initial
|
||||||
@ -57,6 +57,9 @@ RV-Fan--vertical(base-height, base-width)
|
|||||||
min-width initial
|
min-width initial
|
||||||
min-height base-height
|
min-height base-height
|
||||||
|
|
||||||
|
+RV-Element--modifier('fixedHeight')
|
||||||
|
--wurst wasserererer
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Initialy horizontal, changes to vertical when
|
* Initialy horizontal, changes to vertical when
|
||||||
@ -64,7 +67,7 @@ RV-Fan--vertical(base-height, base-width)
|
|||||||
* Width of the base and surface in vertical are base-width
|
* Width of the base and surface in vertical are base-width
|
||||||
*/
|
*/
|
||||||
RV-Fan--auto(base-height, base-width)
|
RV-Fan--auto(base-height, base-width)
|
||||||
+RV-Block__Modifier--name('auto')
|
+RV-Block--modifier()
|
||||||
flex-flow row wrap
|
flex-flow row wrap
|
||||||
|
|
||||||
+RV-Element('Base')
|
+RV-Element('Base')
|
||||||
@ -80,24 +83,24 @@ RV-Fan--auto(base-height, base-width)
|
|||||||
* Element Mixins
|
* Element Mixins
|
||||||
* ############### */
|
* ############### */
|
||||||
RV-Fan__Base(base-height, base-width)
|
RV-Fan__Base(base-height, base-width)
|
||||||
+RV-Element--name('Base')
|
+RV-Element()
|
||||||
box-sizing border-box
|
box-sizing border-box
|
||||||
flex-basis base-width
|
flex-basis base-width
|
||||||
flex-shrink 0
|
flex-shrink 0
|
||||||
flex-grow 0
|
flex-grow 0
|
||||||
|
|
||||||
RV-Fan__Surface--fixedHeight(height)
|
RV-Fan__Surface--fixedHeight(height)
|
||||||
+RV-Element__Modifier--name('fixedHeight')
|
+RV-Element--modifier()
|
||||||
height height
|
height height
|
||||||
box-sizing border-box
|
box-sizing border-box
|
||||||
|
|
||||||
RV-Fan__Surface--fixedWidth(width)
|
RV-Fan__Surface--fixedWidth(width)
|
||||||
+RV-Element__Modifier--name('fixedWidth')
|
+RV-Element--modifier()
|
||||||
max-width width
|
max-width width
|
||||||
box-sizing border-box
|
box-sizing border-box
|
||||||
|
|
||||||
RV-Fan__Surface(base-height, base-width)
|
RV-Fan__Surface(base-height, base-width)
|
||||||
+RV-Element--name('Surface')
|
+RV-Element()
|
||||||
overflow hidden
|
overflow hidden
|
||||||
box-sizing border-box
|
box-sizing border-box
|
||||||
height base-height
|
height base-height
|
||||||
@ -112,36 +115,21 @@ RV-Fan(base-height, base-width)
|
|||||||
position relative
|
position relative
|
||||||
min-width base-width
|
min-width base-width
|
||||||
|
|
||||||
/* #########
|
|
||||||
* CSS-Class
|
|
||||||
* ######### */
|
|
||||||
+RV-Block('RV-Fan')
|
+RV-Block('RV-Fan')
|
||||||
RV-CSSParameter({
|
RV-CSSParameter({
|
||||||
base-height: 280px,
|
base-height: 280px,
|
||||||
base-width: 320px
|
base-width: 320px
|
||||||
})
|
})
|
||||||
|
|
||||||
--inner-spacing 0px
|
|
||||||
|
|
||||||
RV-Fan(--base-height, --base-width)
|
RV-Fan(--base-height, --base-width)
|
||||||
|
RV-Fan__Base(--base-height, --base-width)
|
||||||
|
|
||||||
+RV-Element()
|
+RV-Element()
|
||||||
|
RV-Fan__Surface--fixedHeight(base-height)
|
||||||
|
RV-Fan__Surface--fixedWidth(base-width)
|
||||||
RV-Fan__Surface(--base-height, --base-width)
|
RV-Fan__Surface(--base-height, --base-width)
|
||||||
|
|
||||||
+RV-Element__Modifier()
|
RV-Fan--auto(--base-height, --base-width)
|
||||||
RV-Fan__Surface--fixedWidth(--base-width)
|
RV-Fan--vertical(--base-height, --base-width)
|
||||||
|
RV-Fan--horizontal(--base-height, --base-width)
|
||||||
+RV-Element__Modifier()
|
|
||||||
RV-Fan__Surface--fixedHeight(--base-height)
|
|
||||||
|
|
||||||
+RV-Element()
|
|
||||||
RV-Fan__Base(--base-height, --base-width)
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-Fan--fullWidth(--base-height, --base-width)
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-Fan--vertical(--base-height, --base-width)
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-Fan--horizontal(--base-height, --base-width)
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-Fan--auto(--base-height, --base-width)
|
|
||||||
|
|
@ -1,19 +1,19 @@
|
|||||||
|
|
||||||
RV-FlexGrid--autoWidth(item-height=300px, item-min-width=300px)
|
RV-FlexGrid--autoWidth(item-height=300px, item-min-width=300px)
|
||||||
+RV-Block__Modifier--name('autoWidth')
|
+RV-Block--modifier()
|
||||||
grid-template-columns repeat(auto-fill, minmax(item-min-width, 1fr))
|
grid-template-columns repeat(auto-fill, minmax(item-min-width, 1fr))
|
||||||
grid-template-rows repeat(auto-fill, minmax(item-height, 1fr))
|
grid-template-rows repeat(auto-fill, minmax(item-height, 1fr))
|
||||||
grid-auto-rows minmax(item-height, 1fr)
|
grid-auto-rows minmax(item-height, 1fr)
|
||||||
|
|
||||||
RV-FlexGrid--fixedSize(item-height=300px, item-width=300px)
|
RV-FlexGrid--fixedSize(item-height=300px, item-width=300px)
|
||||||
+RV-Block__Modifier--name('fixedSize')
|
+RV-Block--modifier()
|
||||||
grid-template-rows repeat(auto-fill, minmax(item-height, 1fr))
|
grid-template-rows repeat(auto-fill, minmax(item-height, 1fr))
|
||||||
grid-auto-rows minmax(item-height, 1fr)
|
grid-auto-rows minmax(item-height, 1fr)
|
||||||
grid-template-columns repeat(auto-fill, item-width)
|
grid-template-columns repeat(auto-fill, item-width)
|
||||||
justify-content space-between
|
justify-content space-between
|
||||||
|
|
||||||
RV-FlexGrid--masonry(item-height=300px,item-width=300px)
|
RV-FlexGrid--masonry(item-height=300px,item-width=300px)
|
||||||
+RV-Block__Modifier--name('masonry')
|
+RV-Block--modifier()
|
||||||
display unquote(block)
|
display unquote(block)
|
||||||
column-count auto
|
column-count auto
|
||||||
column-width item-width
|
column-width item-width
|
||||||
@ -28,7 +28,7 @@ RV-FlexGrid--masonry(item-height=300px,item-width=300px)
|
|||||||
}
|
}
|
||||||
|
|
||||||
RV-FlexGrid--verticalMasonry(item-height=300px,item-width=300px)
|
RV-FlexGrid--verticalMasonry(item-height=300px,item-width=300px)
|
||||||
+RV-Block__Modifier--name('verticalMasonry')
|
+RV-Block--modifier()
|
||||||
display unquote(block)
|
display unquote(block)
|
||||||
column-count auto
|
column-count auto
|
||||||
column-width item-width
|
column-width item-width
|
||||||
@ -42,7 +42,7 @@ RV-FlexGrid--verticalMasonry(item-height=300px,item-width=300px)
|
|||||||
}
|
}
|
||||||
|
|
||||||
RV-FlexGrid--horizontalMasonry(item-height=300px,item-width=300px)
|
RV-FlexGrid--horizontalMasonry(item-height=300px,item-width=300px)
|
||||||
+RV-Block__Modifier--name('horizontalMasonry')
|
+RV-Block--modifier()
|
||||||
display flex
|
display flex
|
||||||
flex-direction row
|
flex-direction row
|
||||||
flex-wrap wrap
|
flex-wrap wrap
|
||||||
@ -53,7 +53,7 @@ RV-FlexGrid--horizontalMasonry(item-height=300px,item-width=300px)
|
|||||||
|
|
||||||
|
|
||||||
RV-FlexGrid__Item(item-height, item-width)
|
RV-FlexGrid__Item(item-height, item-width)
|
||||||
+RV-Element--name('Item')
|
+RV-Element()
|
||||||
height 'calc(%s - calc(2*var(--inner-spacing)))' % item-height
|
height 'calc(%s - calc(2*var(--inner-spacing)))' % item-height
|
||||||
& > * {
|
& > * {
|
||||||
height 100%
|
height 100%
|
||||||
@ -72,20 +72,9 @@ RV-FlexGrid(item-height, item-width)
|
|||||||
})
|
})
|
||||||
RV-FlexGrid(--item-height, --item-width)
|
RV-FlexGrid(--item-height, --item-width)
|
||||||
|
|
||||||
+RV-Element()
|
RV-FlexGrid__Item(--item-height, --item-width)
|
||||||
RV-FlexGrid__Item(--item-height, --item-width)
|
RV-FlexGrid--autoWidth(--item-height, --item-width)
|
||||||
|
RV-FlexGrid--fixedSize(--item-height, --item-width)
|
||||||
+RV-Block__Modifier()
|
RV-FlexGrid--masonry(--item-height, --item-width)
|
||||||
RV-FlexGrid--autoWidth(--item-height, --item-width)
|
RV-FlexGrid--verticalMasonry(--item-height, --item-width)
|
||||||
|
RV-FlexGrid--horizontalMasonry(--item-height, --item-width)
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-FlexGrid--fixedSize(--item-height, --item-width)
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-FlexGrid--masonry(--item-height, --item-width)
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-FlexGrid--verticalMasonry(--item-height, --item-width)
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-FlexGrid--horizontalMasonry(--item-height, --item-width)
|
|
@ -6,11 +6,11 @@
|
|||||||
* Orientation
|
* Orientation
|
||||||
*/
|
*/
|
||||||
RV-FlexRow--horizontal()
|
RV-FlexRow--horizontal()
|
||||||
+RV-Block__Modifier--name('horizontal')
|
+RV-Block--modifier()
|
||||||
flex-direction row
|
flex-direction row
|
||||||
|
|
||||||
RV-FlexRow--vertical()
|
RV-FlexRow--vertical()
|
||||||
+RV-Block__Modifier--name('vertical')
|
+RV-Block--modifier()
|
||||||
flex-direction column
|
flex-direction column
|
||||||
|
|
||||||
+RV-Element('Item')
|
+RV-Element('Item')
|
||||||
@ -18,20 +18,20 @@ RV-FlexRow--vertical()
|
|||||||
|
|
||||||
|
|
||||||
RV-FlexRow__Item--outsideBreakPoint()
|
RV-FlexRow__Item--outsideBreakPoint()
|
||||||
+RV-Element__Modifier--name('outsideBreakPoint')
|
+RV-Element--modifier()
|
||||||
margin-bottom -100vh
|
margin-bottom -100vh
|
||||||
height max-content
|
height max-content
|
||||||
flex-shrink 999
|
flex-shrink 999
|
||||||
|
|
||||||
RV-FlexRow__Item--insideBreakPoint()
|
RV-FlexRow__Item--insideBreakPoint()
|
||||||
+RV-Element__Modifier--name('insideBreakPoint')
|
+RV-Element--modifier()
|
||||||
flex-grow 0
|
flex-grow 0
|
||||||
/*
|
/*
|
||||||
* Breaks from row to column orientation at the given breakpoint
|
* Breaks from row to column orientation at the given breakpoint
|
||||||
* breaks when the container is smaller than $-localBreakPoint or when the viewport is smaller than $-mediaBreakPoint.
|
* breaks when the container is smaller than $-localBreakPoint or when the viewport is smaller than $-mediaBreakPoint.
|
||||||
*/
|
*/
|
||||||
RV-FlexRow--breakPoint(localBreakPoint, mediaBreakPoint=0)
|
RV-FlexRow--breakPoint(localBreakPoint, mediaBreakPoint=0)
|
||||||
+RV-Block__Modifier--name('breakPoint')
|
+RV-Block--modifier()
|
||||||
RV-Reset()
|
RV-Reset()
|
||||||
gap 0px
|
gap 0px
|
||||||
|
|
||||||
@ -45,11 +45,8 @@ RV-FlexRow--breakPoint(localBreakPoint, mediaBreakPoint=0)
|
|||||||
flex-basis 'calc(%s * 999 - 100% * 999)' % localBreakPoint
|
flex-basis 'calc(%s * 999 - 100% * 999)' % localBreakPoint
|
||||||
overflow hidden
|
overflow hidden
|
||||||
|
|
||||||
+RV-Element__Modifier()
|
RV-FlexRow__Item--outsideBreakPoint()
|
||||||
RV-FlexRow__Item--outsideBreakPoint()
|
RV-FlexRow__Item--insideBreakPoint()
|
||||||
|
|
||||||
+RV-Element__Modifier()
|
|
||||||
RV-FlexRow__Item--insideBreakPoint()
|
|
||||||
|
|
||||||
margin 0
|
margin 0
|
||||||
padding 0
|
padding 0
|
||||||
@ -70,16 +67,17 @@ RV-FlexRow--breakPoint(localBreakPoint, mediaBreakPoint=0)
|
|||||||
* Typical Flexbox behavior, Row is horizontal, but item are wraped individualy
|
* Typical Flexbox behavior, Row is horizontal, but item are wraped individualy
|
||||||
*/
|
*/
|
||||||
RV-FlexRow--auto()
|
RV-FlexRow--auto()
|
||||||
+RV-Block__Modifier--name('auto')
|
+RV-Block--modifier()
|
||||||
RV-FlexRow--horizontal()
|
+RV-Squash()
|
||||||
flex-wrap wrap
|
RV-FlexRow--horizontal()
|
||||||
|
flex-wrap wrap
|
||||||
|
|
||||||
|
|
||||||
/* ##########
|
/* ##########
|
||||||
* Item class
|
* Item class
|
||||||
########### */
|
########### */
|
||||||
RV-FlexRow__Item()
|
RV-FlexRow__Item()
|
||||||
+RV-Element--name('Item')
|
+RV-Element()
|
||||||
flex-grow 3
|
flex-grow 3
|
||||||
flex-shrink 3
|
flex-shrink 3
|
||||||
|
|
||||||
@ -88,22 +86,22 @@ RV-FlexRow__Item()
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
RV-FlexRow__Item--narrower()
|
RV-FlexRow__Item--narrower()
|
||||||
+RV-Element__Modifier--name('narrower')
|
+RV-Element--modifier()
|
||||||
flex-grow 1
|
flex-grow 1
|
||||||
flex-shrink 5
|
flex-shrink 5
|
||||||
|
|
||||||
RV-FlexRow__Item--narrow()
|
RV-FlexRow__Item--narrow()
|
||||||
+RV-Element__Modifier--name('narrow')
|
+RV-Element--modifier()
|
||||||
flex-grow 2
|
flex-grow 2
|
||||||
flex-shrink 4
|
flex-shrink 4
|
||||||
|
|
||||||
RV-FlexRow__Item--wide()
|
RV-FlexRow__Item--wide()
|
||||||
+RV-Element__Modifier--name('wide')
|
+RV-Element--modifier()
|
||||||
flex-grow 4
|
flex-grow 4
|
||||||
flex-shrink 2
|
flex-shrink 2
|
||||||
|
|
||||||
RV-FlexRow__Item--wider()
|
RV-FlexRow__Item--wider()
|
||||||
+RV-Element__Modifier--name('wider')
|
+RV-Element--modifier()
|
||||||
flex-grow 5
|
flex-grow 5
|
||||||
flex-shrink 1
|
flex-shrink 1
|
||||||
|
|
||||||
@ -111,32 +109,32 @@ RV-FlexRow__Item--wider()
|
|||||||
* Item has always the given width
|
* Item has always the given width
|
||||||
*/
|
*/
|
||||||
RV-FlexRow__Item--fixedSize(width)
|
RV-FlexRow__Item--fixedSize(width)
|
||||||
+RV-Element__Modifier--name('fixedSize')
|
+RV-Element--modifier()
|
||||||
RV-Sizes--fixedSize(width)
|
RV-Sizes--fixedSize(width)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Item width relativ to the container
|
* Item width relativ to the container
|
||||||
*/
|
*/
|
||||||
RV-FlexRow__Item--half()
|
RV-FlexRow__Item--half()
|
||||||
+RV-Element__Modifier--name('half')
|
+RV-Element--modifier()
|
||||||
flex-grow 0
|
flex-grow 0
|
||||||
flex-shrink 0
|
flex-shrink 0
|
||||||
flex-basis 50%
|
flex-basis 50%
|
||||||
|
|
||||||
RV-FlexRow__Item--third()
|
RV-FlexRow__Item--third()
|
||||||
+RV-Element__Modifier--name('third')
|
+RV-Element--modifier()
|
||||||
flex-grow 0
|
flex-grow 0
|
||||||
flex-shrink 0
|
flex-shrink 0
|
||||||
flex-basis (100/3)%
|
flex-basis (100/3)%
|
||||||
|
|
||||||
RV-FlexRow__Item--quarter()
|
RV-FlexRow__Item--quarter()
|
||||||
+RV-Element__Modifier--name('quarter')
|
+RV-Element--modifier()
|
||||||
flex-grow 0
|
flex-grow 0
|
||||||
flex-shrink 0
|
flex-shrink 0
|
||||||
flex-basis 25%
|
flex-basis 25%
|
||||||
|
|
||||||
RV-FlexRow__Item--content()
|
RV-FlexRow__Item--content()
|
||||||
+RV-Element__Modifier--name('content')
|
+RV-Element--modifier()
|
||||||
flex-grow 0
|
flex-grow 0
|
||||||
flex-shrink 0
|
flex-shrink 0
|
||||||
flex-basis max-content
|
flex-basis max-content
|
||||||
@ -159,46 +157,19 @@ RV-FlexRow()
|
|||||||
})
|
})
|
||||||
|
|
||||||
+RV-Element()
|
+RV-Element()
|
||||||
|
RV-FlexRow__Item--narrower()
|
||||||
|
RV-FlexRow__Item--narrow()
|
||||||
|
RV-FlexRow__Item--wide()
|
||||||
|
RV-FlexRow__Item--wider()
|
||||||
|
RV-FlexRow__Item--fixedSize(--width)
|
||||||
|
RV-FlexRow__Item--narrower()
|
||||||
|
RV-FlexRow__Item--half()
|
||||||
|
RV-FlexRow__Item--third()
|
||||||
|
RV-FlexRow__Item--quarter()
|
||||||
|
RV-FlexRow__Item--content()
|
||||||
RV-FlexRow__Item()
|
RV-FlexRow__Item()
|
||||||
|
|
||||||
+RV-Element__Modifier()
|
RV-FlexRow--breakPoint(--localBreakPoint, --mediaBreakPoint)
|
||||||
RV-FlexRow__Item--narrower()
|
RV-FlexRow--horizontal()
|
||||||
|
RV-FlexRow--vertical()
|
||||||
+RV-Element__Modifier()
|
RV-FlexRow--auto()
|
||||||
RV-FlexRow__Item--narrow()
|
|
||||||
|
|
||||||
+RV-Element__Modifier()
|
|
||||||
RV-FlexRow__Item--wide()
|
|
||||||
|
|
||||||
+RV-Element__Modifier()
|
|
||||||
RV-FlexRow__Item--wider()
|
|
||||||
|
|
||||||
+RV-Element__Modifier()
|
|
||||||
RV-FlexRow__Item--fixedSize(--width)
|
|
||||||
|
|
||||||
+RV-Element__Modifier()
|
|
||||||
RV-FlexRow__Item--narrower()
|
|
||||||
|
|
||||||
+RV-Element__Modifier()
|
|
||||||
RV-FlexRow__Item--half()
|
|
||||||
|
|
||||||
+RV-Element__Modifier()
|
|
||||||
RV-FlexRow__Item--third()
|
|
||||||
|
|
||||||
+RV-Element__Modifier()
|
|
||||||
RV-FlexRow__Item--quarter()
|
|
||||||
|
|
||||||
+RV-Element__Modifier()
|
|
||||||
RV-FlexRow__Item--content()
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-FlexRow--breakPoint(--localBreakPoint, --mediaBreakPoint)
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-FlexRow--horizontal()
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-FlexRow--vertical()
|
|
||||||
|
|
||||||
+RV-Block__Modifier()
|
|
||||||
RV-FlexRow--auto()
|
|
@ -2,7 +2,7 @@ RV-FullWidthContent()
|
|||||||
width 100%
|
width 100%
|
||||||
|
|
||||||
RV-FullWidthContent__Item()
|
RV-FullWidthContent__Item()
|
||||||
+RV-Element--name('Item')
|
+RV-Element()
|
||||||
width 100%
|
width 100%
|
||||||
RV-ContentCrop__Text()
|
RV-ContentCrop__Text()
|
||||||
RV-ContentCrop__Image()
|
RV-ContentCrop__Image()
|
||||||
@ -11,5 +11,4 @@ RV-FullWidthContent__Item()
|
|||||||
+RV-Block('RV-FullWidthContent')
|
+RV-Block('RV-FullWidthContent')
|
||||||
RV-FullWidthContent()
|
RV-FullWidthContent()
|
||||||
|
|
||||||
+RV-Element()
|
RV-FullWidthContent__Item()
|
||||||
RV-FullWidthContent__Item()
|
|
Loading…
Reference in New Issue
Block a user