Browse Source

All apart from root variables

CSS_GRID_EXAMPLE
Shagen Ogandzhanian 3 years ago
parent
commit
ce3315d7ad
  1. 6
      examples/web_grid_animation/src/jsMain/kotlin/com/sample/Main.kt
  2. 3
      examples/web_grid_animation/src/jsMain/resources/app.css

6
examples/web_grid_animation/src/jsMain/kotlin/com/sample/Main.kt

@ -48,6 +48,11 @@ object AppStyleSheet: StyleSheet() {
paddingBottom(86.66.percent) paddingBottom(86.66.percent)
} }
"li:nth-child(2n-1)" style {
property("grid-column-start", 2)
}
"div" style { "div" style {
position(Position.Absolute) position(Position.Absolute)
width(50.percent) width(50.percent)
@ -140,7 +145,6 @@ object AppStyleSheet: StyleSheet() {
property("grid-column-start", "2") property("grid-column-start", "2")
} }
} }
} }
} }

3
examples/web_grid_animation/src/jsMain/resources/app.css

@ -10,9 +10,6 @@ body{
font-family: 'Open Sans Condensed', sans-serif; font-family: 'Open Sans Condensed', sans-serif;
} }
li:nth-child(2n-1){
grid-column-start:2;
}
@media (min-width:600px){ @media (min-width:600px){
:root { :root {

Loading…
Cancel
Save