scss-library/components/01_Layouts/breakPoint/_breakPoint.styl

81 lines
1.5 KiB
Stylus
Raw Normal View History

2021-03-10 18:06:32 +01:00
RV-BreakPoint__Item(breakPoint)
+RV-Element()
RV-FlexRow__Item()
2021-03-10 18:06:32 +01:00
flex-basis 'calc(%s * 999 - 100% * 999)' % breakPoint
overflow: hidden;
--outer-spacing 0
--inner-spacing 0
RV-BreakPoint__Item--outside()
+RV-Element--modifier()
flex-shrink 999
RV-BreakPoint__Item--inside()
+RV-Element--modifier()
flex-grow 0
2021-03-10 18:06:32 +01:00
RV-BreakPoint(breakPoint)
RV-FlexRow()
+RV-Squash()
RV-FlexRow--wrap()
overflow-y hidden
RV-Reset()
gap 0px
RV-Utils__ElementAmount--range(0, 20, @(index, total){
2021-03-10 18:06:32 +01:00
min-width "calc((%s - (var(--spacing-inner) * (%s - 1))) / %s - (2 * var(--spacing-inner)))" % (breakPoint index index)
}
)
2021-03-10 18:06:32 +01:00
RV-BreakPoint--wrap()
+RV-Block--modifier()
+RV-Element('Item')
+RV-Element--modifier('outside')
margin-bottom -100vh
RV-BreakPoint--horizontal()
+RV-Block--modifier()
flex-wrap nowrap
2021-03-10 00:55:04 +01:00
min-width min-content
+RV-Element('Item')
+RV-Element--modifier('outside')
margin-bottom unset
2021-03-10 00:55:04 +01:00
height unset
RV-BreakPoint--vertical()
+RV-Block--modifier()
flex-direction column
flex-wrap nowrap
height 100%
+RV-Element('Item')
+RV-Element--modifier('outside')
margin-bottom unset
height unset
+RV-Block('RV-BreakPoint')
RV-CSSParameter({
2021-03-10 18:06:32 +01:00
breakPoint: 500px
2021-03-10 00:55:04 +01:00
fixedSize: 100px
})
&&
--inner-spacing 0
2021-03-10 18:06:32 +01:00
RV-BreakPoint(--breakPoint)
+RV-Element()
2021-03-10 18:06:32 +01:00
RV-BreakPoint__Item(--breakPoint)
RV-BreakPoint__Item--outside()
RV-BreakPoint__Item--inside()
2021-03-10 00:55:04 +01:00
RV-BreakPoint__Item--fixedSize(--fixedSize)
2021-03-10 18:06:32 +01:00
RV-BreakPoint--wrap()
RV-BreakPoint--horizontal()
RV-BreakPoint--vertical()