Skip to content

Commit

Permalink
Merge pull request #394 from Mogztter/issue-380-text-align
Browse files Browse the repository at this point in the history
resolves #380 add text-<alignment> styles
  • Loading branch information
ggrossetie authored Dec 4, 2020
2 parents 2439fe5 + 550b04b commit cbd6cc6
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
44 changes: 44 additions & 0 deletions examples/text-alignments.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
= Text Alignments

== Default

This is the default (boring) alignment!

== Center

[.text-center]
This text is centered.

== Left

[.text-left]
This text is left-aligned.

== Right

[.text-right]
This text is right-aligned.

== Justified

[.text-justify]
This text is justified.

[.text-right]
== Title is Right-Aligned

Content too!

== Back to Normal!

Content too!

[.text-left]
== Title is Left-Aligned

Content too!

[.text-center]
== Title is Centered

Content too!
28 changes: 28 additions & 0 deletions templates/asciidoctor-compatibility.css
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,31 @@ td.hdlist1{font-weight:bold;padding-bottom:1.25em}
.columns .slide-content > .column.has-text-right {
text-align: right;
}

.columns .slide-content > .column.has-text-left {
text-align: left;
}

.columns .slide-content > .column.has-text-justified {
text-align: justify;
}

.columns .slide-content > .column.has-text-right {
text-align: right;
}

.text-left {
text-align: left !important
}

.text-right {
text-align: right !important
}

.text-center {
text-align: center !important
}

.text-justify {
text-align: justify !important
}

0 comments on commit cbd6cc6

Please sign in to comment.