From 679ed1dda96ad625b615b7e6f73ea52394fd363d Mon Sep 17 00:00:00 2001 From: Oleksandr Karpovich Date: Wed, 16 Jun 2021 15:21:04 +0200 Subject: [PATCH] Update snippets in web tutorials --- templates/web-template/src/main/kotlin/Main.kt | 2 +- tutorials/Web/Building_UI/README.md | 6 +++--- tutorials/Web/Style_Dsl/README.md | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/templates/web-template/src/main/kotlin/Main.kt b/templates/web-template/src/main/kotlin/Main.kt index e21755d84d..40b8da8a84 100644 --- a/templates/web-template/src/main/kotlin/Main.kt +++ b/templates/web-template/src/main/kotlin/Main.kt @@ -8,4 +8,4 @@ fun main() { Text("This is a template!") } } -} \ No newline at end of file +} diff --git a/tutorials/Web/Building_UI/README.md b/tutorials/Web/Building_UI/README.md index f0e614e30b..7a34668260 100644 --- a/tutorials/Web/Building_UI/README.md +++ b/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") } } } -``` \ No newline at end of file +``` diff --git a/tutorials/Web/Style_Dsl/README.md b/tutorials/Web/Style_Dsl/README.md index d6366f572c..0fc24de954 100644 --- a/tutorials/Web/Style_Dsl/README.md +++ b/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() { } } } -``` \ No newline at end of file +```