Commit 2c482b7a authored by Tim Steenvoorden's avatar Tim Steenvoorden

simplify CSS classes

parent 3cb094f8
Pipeline #25367 failed with stage
in 58 seconds
...@@ -13,24 +13,28 @@ ...@@ -13,24 +13,28 @@
align-self: auto; align-self: auto;
} }
/* Make generated labels flow on top */ /* Make generated labels flow on top
.itasks-container.itasks-form-item { .itasks-container.itasks-form-item {
flex-direction: column; flex-direction: column;
} }
*/
/* Set base padding and indent vertical structures horizontally */ /* Set base padding and indent vertical structures horizontally */
.typedtasks-base { .typedtasks-base {
flex: 0 0 auto;
padding: 0.2em 0.4em; padding: 0.2em 0.4em;
margin: 0.8em 1.6em; margin: 0.8em 1.6em;
} }
/* Center horizontal structures vertically */ /* Center horizontal structures vertically */
.typedtasks-horizontal { .typedtasks-horizontal {
flex-direction: row;
align-items: center; align-items: center;
margin: 0.2em; margin: 0.2em;
} }
.typedtasks-vertical { .typedtasks-vertical {
flex-direction: column;
} }
/* Add background boxes which get darker with nesting */ /* Add background boxes which get darker with nesting */
......
...@@ -391,9 +391,9 @@ where ...@@ -391,9 +391,9 @@ where
stringEditor :: Editor String stringEditor :: Editor String
stringEditor = gEditor{|*|} stringEditor = gEditor{|*|}
basicClasses = [ "typedtasks-base", "itasks-wrap-width", "itasks-wrap-height" ] basicClasses = [ "typedtasks-base" ]
horizontalClasses = [ "typedtasks-horizontal", "itasks-horizontal" ] horizontalClasses = [ "typedtasks-horizontal" ]
verticalClasses = [ "typedtasks-vertical", "itasks-vertical" ] verticalClasses = [ "typedtasks-vertical" ]
boxedClasses = [ "typedtasks-boxed" ] boxedClasses = [ "typedtasks-boxed" ]
applyHorizontalBoxedLayout = ApplyCssClasses $ basicClasses ++ horizontalClasses ++ boxedClasses applyHorizontalBoxedLayout = ApplyCssClasses $ basicClasses ++ horizontalClasses ++ boxedClasses
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment