2021-01-03 12:36:12 +01:00
|
|
|
/*
|
|
|
|
* Classes for easy flexrow usage
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Orientation
|
|
|
|
*/
|
2021-01-17 19:31:19 +01:00
|
|
|
RV-FlexRow--horizontal()
|
2021-03-07 18:47:44 +01:00
|
|
|
+RV-Block--modifier()
|
2021-01-17 19:31:19 +01:00
|
|
|
flex-direction row
|
2021-01-03 12:36:12 +01:00
|
|
|
|
2021-01-17 19:31:19 +01:00
|
|
|
RV-FlexRow--vertical()
|
2021-03-07 18:47:44 +01:00
|
|
|
+RV-Block--modifier()
|
2021-01-17 19:31:19 +01:00
|
|
|
flex-direction column
|
2021-01-03 12:36:12 +01:00
|
|
|
|
|
|
|
/*
|
2021-01-17 19:31:19 +01:00
|
|
|
* Typical Flexbox behavior, Row is horizontal, but item are wraped individualy
|
2021-01-03 12:36:12 +01:00
|
|
|
*/
|
2021-03-09 20:42:22 +01:00
|
|
|
RV-FlexRow--wrap()
|
2021-03-07 18:47:44 +01:00
|
|
|
+RV-Block--modifier()
|
2021-03-09 20:42:22 +01:00
|
|
|
flex-direction row
|
|
|
|
flex-wrap wrap
|
2021-01-03 12:36:12 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Varios relative width of items to each other
|
|
|
|
*/
|
|
|
|
|
|
|
|
RV-FlexRow__Item--narrower()
|
2021-03-07 18:47:44 +01:00
|
|
|
+RV-Element--modifier()
|
2021-01-17 19:31:19 +01:00
|
|
|
flex-grow 1
|
2021-01-03 12:36:12 +01:00
|
|
|
|
|
|
|
RV-FlexRow__Item--narrow()
|
2021-03-07 18:47:44 +01:00
|
|
|
+RV-Element--modifier()
|
2021-01-17 19:31:19 +01:00
|
|
|
flex-grow 2
|
2021-01-03 12:36:12 +01:00
|
|
|
|
|
|
|
RV-FlexRow__Item--wide()
|
2021-03-07 18:47:44 +01:00
|
|
|
+RV-Element--modifier()
|
2021-01-17 19:31:19 +01:00
|
|
|
flex-grow 4
|
2021-01-03 12:36:12 +01:00
|
|
|
|
|
|
|
RV-FlexRow__Item--wider()
|
2021-03-07 18:47:44 +01:00
|
|
|
+RV-Element--modifier()
|
2021-01-17 19:31:19 +01:00
|
|
|
flex-grow 5
|
2021-01-03 12:36:12 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Item has always the given width
|
|
|
|
*/
|
2021-01-17 19:31:19 +01:00
|
|
|
RV-FlexRow__Item--fixedSize(width)
|
2021-03-07 18:47:44 +01:00
|
|
|
+RV-Element--modifier()
|
2021-01-17 19:31:19 +01:00
|
|
|
RV-Sizes--fixedSize(width)
|
2021-01-03 12:36:12 +01:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Item width relativ to the container
|
|
|
|
*/
|
|
|
|
RV-FlexRow__Item--half()
|
2021-03-07 18:47:44 +01:00
|
|
|
+RV-Element--modifier()
|
2021-03-10 02:58:36 +01:00
|
|
|
overflow hidden
|
2021-01-19 23:36:56 +01:00
|
|
|
flex-grow 0
|
|
|
|
flex-shrink 0
|
|
|
|
flex-basis 50%
|
2021-01-17 19:31:19 +01:00
|
|
|
|
2021-01-03 12:36:12 +01:00
|
|
|
RV-FlexRow__Item--third()
|
2021-03-07 18:47:44 +01:00
|
|
|
+RV-Element--modifier()
|
2021-03-10 02:58:36 +01:00
|
|
|
overflow hidden
|
2021-01-19 23:36:56 +01:00
|
|
|
flex-grow 0
|
|
|
|
flex-shrink 0
|
|
|
|
flex-basis (100/3)%
|
2021-01-03 12:36:12 +01:00
|
|
|
|
|
|
|
RV-FlexRow__Item--quarter()
|
2021-03-07 18:47:44 +01:00
|
|
|
+RV-Element--modifier()
|
2021-03-10 02:58:36 +01:00
|
|
|
overflow hidden
|
2021-01-19 23:36:56 +01:00
|
|
|
flex-grow 0
|
|
|
|
flex-shrink 0
|
|
|
|
flex-basis 25%
|
2021-01-03 12:36:12 +01:00
|
|
|
|
|
|
|
RV-FlexRow__Item--content()
|
2021-03-07 18:47:44 +01:00
|
|
|
+RV-Element--modifier()
|
2021-01-19 23:36:56 +01:00
|
|
|
flex-grow 0
|
|
|
|
flex-shrink 0
|
|
|
|
flex-basis max-content
|
2021-01-03 12:36:12 +01:00
|
|
|
|
2021-01-17 19:31:19 +01:00
|
|
|
/* ##########
|
2021-03-19 12:29:17 +01:00
|
|
|
* Item class
|
2021-01-17 19:31:19 +01:00
|
|
|
########### */
|
2021-03-19 12:46:49 +01:00
|
|
|
RV-FlexRow__Item(fixedSize=100px)
|
2021-01-17 19:31:19 +01:00
|
|
|
+RV-Element()
|
2021-03-19 12:29:17 +01:00
|
|
|
flex-grow 3
|
|
|
|
|
2021-03-07 18:47:44 +01:00
|
|
|
RV-FlexRow__Item--narrower()
|
|
|
|
RV-FlexRow__Item--narrow()
|
|
|
|
RV-FlexRow__Item--wide()
|
|
|
|
RV-FlexRow__Item--wider()
|
2021-03-19 12:46:49 +01:00
|
|
|
RV-FlexRow__Item--fixedSize(fixedSize)
|
2021-03-07 18:47:44 +01:00
|
|
|
RV-FlexRow__Item--half()
|
|
|
|
RV-FlexRow__Item--third()
|
|
|
|
RV-FlexRow__Item--quarter()
|
|
|
|
RV-FlexRow__Item--content()
|
2021-03-19 12:29:17 +01:00
|
|
|
|
|
|
|
/* ##########
|
|
|
|
* Block
|
|
|
|
########### */
|
2021-03-19 12:46:49 +01:00
|
|
|
RV-FlexRow(itemFixedSize=100px)
|
2021-03-19 12:29:17 +01:00
|
|
|
+RV-Block()
|
|
|
|
RV-CSSParameter({
|
2021-03-19 12:46:49 +01:00
|
|
|
itemFixedSize: itemFixedSize
|
2021-03-19 12:29:17 +01:00
|
|
|
})
|
|
|
|
display flex
|
|
|
|
|
2021-03-19 12:46:49 +01:00
|
|
|
RV-FlexRow__Item(--itemFixedSize)
|
|
|
|
|
2021-03-19 12:29:17 +01:00
|
|
|
RV-FlexRow--horizontal()
|
|
|
|
RV-FlexRow--vertical()
|
|
|
|
RV-FlexRow--wrap()
|
|
|
|
|
2021-03-19 12:46:49 +01:00
|
|
|
RV-FlexRow(100px)
|