Skip to content

Commit 83fe752

Browse files
committed
Use "classes" instead of "css" due to increased familiarity w/ the term
1 parent f730230 commit 83fe752

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+179
-182
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Attributes are optional. If you wish to define them, you must use a block for th
8080
```kotlin
8181
p("A paragraph") // Text-only element, cannot contain attributes
8282
p { "A paragraph" } // Equivalent to previous line
83-
p(css = "a-class") { "A paragraph" } // Same paragraph with "a-class" class
83+
p(classes = "a-class") { "A paragraph" } // Same paragraph with "a-class" class
8484
```
8585

8686
HTML
@@ -166,9 +166,9 @@ fun main(args : Array<String>) {
166166
link(href = "css/style.css", rel = "stylesheet")
167167
} +
168168
body {
169-
div(css = "container") {
169+
div(classes = "container") {
170170
h1("A title") +
171-
p(css = "introduction") {
171+
p(classes = "introduction") {
172172
"A paragraph"
173173
} +
174174
ul {

src/main/kotlin/org/celtric/kotlin/html/a.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fun a(
99
target: String? = null,
1010

1111
// Global
12-
css: String? = null,
12+
classes: String? = null,
1313
id: String? = null,
1414
title: String? = null,
1515

@@ -23,7 +23,7 @@ fun a(
2323
"href" to href,
2424
"rel" to rel,
2525
"target" to target,
26-
"class" to css,
26+
"class" to classes,
2727
"id" to id,
2828
"title" to title
2929
), other, data))

src/main/kotlin/org/celtric/kotlin/html/abbr.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ fun abbr(
55
title: String,
66

77
// Global
8-
css: String? = null,
8+
classes: String? = null,
99
id: String? = null,
1010

1111
// Custom
@@ -16,7 +16,7 @@ fun abbr(
1616
content: () -> Any
1717
) = InlineElement("abbr", content(), AllAttributes(mapOf(
1818
"title" to title,
19-
"class" to css,
19+
"class" to classes,
2020
"id" to id
2121
), other, data))
2222

src/main/kotlin/org/celtric/kotlin/html/address.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package org.celtric.kotlin.html
22

33
fun address(
44
// Global
5-
css: String? = null,
5+
classes: String? = null,
66
id: String? = null,
77

88
// Custom
@@ -12,7 +12,7 @@ fun address(
1212
// Content
1313
content: () -> Any
1414
) = BlockElement("address", content(), AllAttributes(mapOf(
15-
"class" to css,
15+
"class" to classes,
1616
"id" to id
1717
), other, data))
1818

src/main/kotlin/org/celtric/kotlin/html/article.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package org.celtric.kotlin.html
22

33
fun article(
44
// Global
5-
css: String? = null,
5+
classes: String? = null,
66
id: String? = null,
77

88
// Custom
@@ -12,7 +12,7 @@ fun article(
1212
// Content
1313
content: () -> Any
1414
) = BlockElement("article", content(), AllAttributes(mapOf(
15-
"class" to css,
15+
"class" to classes,
1616
"id" to id
1717
), other, data))
1818

src/main/kotlin/org/celtric/kotlin/html/aside.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package org.celtric.kotlin.html
22

33
fun aside(
44
// Global
5-
css: String? = null,
5+
classes: String? = null,
66
id: String? = null,
77

88
// Custom
@@ -12,7 +12,7 @@ fun aside(
1212
// Content
1313
content: () -> Any
1414
) = BlockElement("aside", content(), AllAttributes(mapOf(
15-
"class" to css,
15+
"class" to classes,
1616
"id" to id
1717
), other, data))
1818

src/main/kotlin/org/celtric/kotlin/html/b.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package org.celtric.kotlin.html
22

33
fun b(
44
// Global
5-
css: String? = null,
5+
classes: String? = null,
66
id: String? = null,
77
title: String? = null,
88

@@ -13,7 +13,7 @@ fun b(
1313
// Content
1414
content: () -> Any
1515
) = InlineElement("b", content(), AllAttributes(mapOf(
16-
"class" to css,
16+
"class" to classes,
1717
"id" to id,
1818
"title" to title
1919
), other, data))

src/main/kotlin/org/celtric/kotlin/html/bdi.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ fun bdi(
55
dir: String? = null,
66

77
// Global
8-
css: String? = null,
8+
classes: String? = null,
99
id: String? = null,
1010
title: String? = null,
1111

@@ -17,7 +17,7 @@ fun bdi(
1717
content: () -> Any
1818
) = InlineElement("bdi", content(), AllAttributes(mapOf(
1919
"dir" to dir,
20-
"class" to css,
20+
"class" to classes,
2121
"id" to id,
2222
"title" to title
2323
), other, data))

src/main/kotlin/org/celtric/kotlin/html/bdo.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ fun bdo(
55
dir: String,
66

77
// Global
8-
css: String? = null,
8+
classes: String? = null,
99
id: String? = null,
1010
title: String? = null,
1111

@@ -17,7 +17,7 @@ fun bdo(
1717
content: () -> Any
1818
) = InlineElement("bdo", content(), AllAttributes(mapOf(
1919
"dir" to dir,
20-
"class" to css,
20+
"class" to classes,
2121
"id" to id,
2222
"title" to title
2323
), other, data))

src/main/kotlin/org/celtric/kotlin/html/blockquote.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ fun blockquote(
55
cite: String? = null,
66

77
// Global
8-
css: String? = null,
8+
classes: String? = null,
99
id: String? = null,
1010

1111
// Custom
@@ -16,7 +16,7 @@ fun blockquote(
1616
content: () -> Any
1717
) = BlockElement("blockquote", content(), AllAttributes(mapOf(
1818
"cite" to cite,
19-
"class" to css,
19+
"class" to classes,
2020
"id" to id
2121
), other, data))
2222

0 commit comments

Comments
 (0)