Browse Source

Update snippets in web tutorials

pull/787/head
Oleksandr Karpovich 3 years ago
parent
commit
679ed1dda9
  1. 2
      templates/web-template/src/main/kotlin/Main.kt
  2. 6
      tutorials/Web/Building_UI/README.md
  3. 12
      tutorials/Web/Style_Dsl/README.md

2
templates/web-template/src/main/kotlin/Main.kt

@ -8,4 +8,4 @@ fun main() {
Text("This is a template!")
}
}
}
}

6
tutorials/Web/Building_UI/README.md

@ -165,7 +165,7 @@ Div(
padding(20.px)
// custom property
property("font-family", value("Arial, Helvetica, sans-serif"))
property("font-family", "Arial, Helvetica, sans-serif")
}
) { /* content goes here */ }
```
@ -247,9 +247,9 @@ fun main() {
padding(20.px)
// custom property
property("font-family", value("Arial, Helvetica, sans-serif"))
property("font-family", "Arial, Helvetica, sans-serif")
}
}) { Text("Text in Div with inline style") }
}
}
```
```

12
tutorials/Web/Style_Dsl/README.md

@ -16,7 +16,7 @@ Div({
padding(20.px)
// custom property (or not supported out of a box)
property("font-family", value("Arial, Helvetica, sans-serif"))
property("font-family", "Arial, Helvetica, sans-serif")
}
}) { /* content goes here */ }
```
@ -38,7 +38,7 @@ object AppStylesheet : StyleSheet() {
padding(20.px)
// custom property (or not supported out of a box)
property("font-family", value("Arial, Helvetica, sans-serif"))
property("font-family", "Arial, Helvetica, sans-serif")
}
}
@ -84,7 +84,7 @@ object AppStylesheet : StyleSheet() {
// raw selector
"h1, h2, h3, h4, h5, h6" style {
property("font-family", value("Arial, Helvetica, sans-serif"))
property("font-family", "Arial, Helvetica, sans-serif")
}
@ -175,7 +175,7 @@ object AppStylesheet : StyleSheet() {
padding(20.px)
// custom property (or not supported out of a box)
property("font-family", value("Arial, Helvetica, sans-serif"))
property("font-family", "Arial, Helvetica, sans-serif")
}
}
@ -196,7 +196,7 @@ fun main() {
padding(20.px)
// custom property (or not supported out of a box)
property("font-family", value("Arial, Helvetica, sans-serif"))
property("font-family", "Arial, Helvetica, sans-serif")
}
}) { /* content goes here */ }
@ -208,4 +208,4 @@ fun main() {
}
}
}
```
```

Loading…
Cancel
Save