@@ -792,6 +792,96 @@ rules =
792 ++ renderCompact (baseSheet ++ commonValues)
792 ++ renderCompact (baseSheet ++ commonValues)
796+ [ Prop "display" "flex"
797+ , Prop "flex-direction" "column"
798+ , Prop "white-space" "pre"
799+ , Descriptor (dot classes.hasBehind)
800+ [ Prop "z-index" "0"
801+ , Child (dot classes.behind)
802+ [ Prop "z-index" "-1"
805+ , Descriptor (dot classes.seButton)
806+ -- Special default for text in a button.
807+ -- This is overridden is they put the text inside an `el`
808+ [ Child (dot classes.text)
809+ [ Descriptor (dot classes.heightFill)
810+ [ Prop "flex-grow" "0"
812+ , Descriptor (dot classes.widthFill)
813+ [ Prop "align-self" "auto !important"
817+ , Child (dot classes.heightContent)
818+ [ Prop "height" "auto"
820+ , Child (dot classes.heightFill)
821+ [ Prop "flex-grow" "100000"
823+ , Child (dot classes.widthFill)
824+ [ -- alignLeft, alignRight, centerX are overridden by width.
825+ -- Prop "align-self" "stretch !important"
828+ , Child (dot classes.widthContent)
829+ [ Prop "align-self" "flex-start"
832+ -- , Child (dot classes.widthFill)
833+ -- [ Prop "align-self" "stretch"
834+ -- , Descriptor (dot classes.alignedHorizontally)
835+ -- [ Prop "width" "100%"
838+ , describeAlignment <|
842+ ( [ Prop "justify-content" "flex-start" ]
843+ , [ Prop "margin-bottom" "auto !important"
844+ , Prop "margin-top" "0 !important"
849+ ( [ Prop "justify-content" "flex-end" ]
850+ , [ Prop "margin-top" "auto !important"
851+ , Prop "margin-bottom" "0 !important"
856+ ( [ Prop "align-items" "flex-end" ]
857+ , [ Prop "align-self" "flex-end" ]
861+ ( [ Prop "align-items" "flex-start" ]
862+ , [ Prop "align-self" "flex-start" ]
866+ ( [ Prop "align-items" "center" ]
867+ , [ Prop "align-self" "center"
872+ ( [ -- Prop "justify-content" "center"
873+ Child (dot classes.any)
874+ [ Prop "margin-top" "auto"
875+ , Prop "margin-bottom" "auto"
878+ , [ Prop "margin-top" "auto !important"
879+ , Prop "margin-bottom" "auto !important"
795baseSheet =
885baseSheet =
796 [ Class "html,body"
886 [ Class "html,body"
797 [ Prop "height" "100%"
887 [ Prop "height" "100%"
@@ -831,6 +921,8 @@ baseSheet =
831 , Prop "display" "flex"
921 , Prop "display" "flex"
832 , Prop "flex-direction" "row"
922 , Prop "flex-direction" "row"
833 , Prop "flex-basis" "auto"
923 , Prop "flex-basis" "auto"
924+ , Descriptor (dot classes.single)
834 , Batch <|
926 , Batch <|
835 (\fn -> List.map fn locations) <|
927 (\fn -> List.map fn locations) <|
@@ -1060,93 +1152,7 @@ baseSheet =
1060 [ Prop "line-height" "1.05"
1152 [ Prop "line-height" "1.05"
1062 , Descriptor (dot classes.single)
1154 , Descriptor (dot classes.single)
1063− [ Prop "display" "flex"
1155+ elDescription
1064− , Prop "flex-direction" "column"
1065− , Prop "white-space" "pre"
1066− , Descriptor (dot classes.hasBehind)
1067− [ Prop "z-index" "0"
1068− , Child (dot classes.behind)
1069− [ Prop "z-index" "-1"
1072− , Descriptor (dot classes.seButton)
1073− -- Special default for text in a button.
1074− -- This is overridden is they put the text inside an `el`
1075− [ Child (dot classes.text)
1076− [ Descriptor (dot classes.heightFill)
1077− [ Prop "flex-grow" "0"
1079− , Descriptor (dot classes.widthFill)
1080− [ Prop "align-self" "auto !important"
1084− , Child (dot classes.heightContent)
1085− [ Prop "height" "auto"
1087− , Child (dot classes.heightFill)
1088− [ Prop "flex-grow" "100000"
1090− , Child (dot classes.widthFill)
1091− [ -- alignLeft, alignRight, centerX are overridden by width.
1092− -- Prop "align-self" "stretch !important"
1093− Prop "width" "100%"
1095− , Child (dot classes.widthContent)
1096− [ Prop "align-self" "flex-start"
1099− -- , Child (dot classes.widthFill)
1100− -- [ Prop "align-self" "stretch"
1101− -- , Descriptor (dot classes.alignedHorizontally)
1102− -- [ Prop "width" "100%"
1105− , describeAlignment <|
1109− ( [ Prop "justify-content" "flex-start" ]
1110− , [ Prop "margin-bottom" "auto !important"
1111− , Prop "margin-top" "0 !important"
1116− ( [ Prop "justify-content" "flex-end" ]
1117− , [ Prop "margin-top" "auto !important"
1118− , Prop "margin-bottom" "0 !important"
1123− ( [ Prop "align-items" "flex-end" ]
1124− , [ Prop "align-self" "flex-end" ]
1128− ( [ Prop "align-items" "flex-start" ]
1129− , [ Prop "align-self" "flex-start" ]
1133− ( [ Prop "align-items" "center" ]
1134− , [ Prop "align-self" "center"
1139− ( [ -- Prop "justify-content" "center"
1140− Child (dot classes.any)
1141− [ Prop "margin-top" "auto"
1142− , Prop "margin-bottom" "auto"
1145− , [ Prop "margin-top" "auto !important"
1146− , Prop "margin-bottom" "auto !important"
1150 , Descriptor (dot classes.row)
1156 , Descriptor (dot classes.row)
1151 [ Prop "display" "flex"
1157 [ Prop "display" "flex"
1152 , Prop "flex-direction" "row"
1158 , Prop "flex-direction" "row"