git.iko.soy/typeable/elm-ui
on master help sign in
zindex handling of nearbys: fixes #22, #6.

inFront on layout gets z:20. Overlapping nearbys (onRight, onLeft, below, above), get higher z-index than normal inFront because that's likely more reasonable.

commit2cdbdacac37db76ebe2ea368658f081448ec07a2 authorMatthew Griffith <mdg.griffith@gmail.com> dateThu 13 Sep 2018, 17:14 (8 years ago) parent0930664
1 file changed+6−5
src/Internal/Style.elm+6−5
src/Internal/Style.elm+6−5
@@ -910,8 +910,9 @@ baseSheet =
910910 ]
911911 ]
912912 , Child (dot classes.inFront)
913− [ Descriptor (dot classes.any)
913+ [ Descriptor (dot classes.nearby)
914914 [ Prop "position" "fixed"
915+ , Prop "z-index" "20"
915916 ]
916917 ]
917918 ]
@@ -933,7 +934,7 @@ baseSheet =
933934 , Prop "bottom" "100%"
934935 , Prop "left" "0"
935936 , Prop "width" "100%"
936− , Prop "z-index" "10"
937+ , Prop "z-index" "20"
937938 , Prop "margin" "0 !important"
938939 , Child (dot classes.heightFill)
939940 [ Prop "height" "auto"
@@ -954,7 +955,7 @@ baseSheet =
954955 , Prop "left" "0"
955956 , Prop "height" "0"
956957 , Prop "width" "100%"
957− , Prop "z-index" "10"
958+ , Prop "z-index" "20"
958959 , Prop "margin" "0 !important"
959960 , Prop "pointer-events" "none"
960961 , Child "*"
@@ -972,7 +973,7 @@ baseSheet =
972973 , Prop "top" "0"
973974 , Prop "height" "100%"
974975 , Prop "margin" "0 !important"
975− , Prop "z-index" "10"
976+ , Prop "z-index" "20"
976977 , Prop "pointer-events" "none"
977978 , Child "*"
978979 [ Prop "pointer-events" "auto"
@@ -986,7 +987,7 @@ baseSheet =
986987 , Prop "top" "0"
987988 , Prop "height" "100%"
988989 , Prop "margin" "0 !important"
989− , Prop "z-index" "10"
990+ , Prop "z-index" "20"
990991 , Prop "pointer-events" "none"
991992 , Child "*"
992993 [ Prop "pointer-events" "auto"