diff --git a/readme/Intro.scalatex b/readme/Intro.scalatex
index 9f8df256a..7fa7edf84 100644
--- a/readme/Intro.scalatex
+++ b/readme/Intro.scalatex
@@ -10,10 +10,9 @@
@blockquote
Any style guide written in English is either so brief that it’s ambiguous,
or so long that no one reads it.
-
- @blockquote
- -- Bob Nystrom, @lnk("\"Hardest Program I've Ever Written\"", "http://journal.stuffwithstuff.com/2015/09/08/the-hardest-program-ive-ever-written/"),
- Dart, Google.
+ @small
+ -- Bob Nystrom, @lnk("\"Hardest Program I've Ever Written\"", "http://journal.stuffwithstuff.com/2015/09/08/the-hardest-program-ive-ever-written/"),
+ Dart, Google.
@p
@lnk("Scalafmt", repo) turns the mess on the left into the (hopefully)
diff --git a/readme/Readme.scalatex b/readme/Readme.scalatex
index b2384bb94..305021bb2 100644
--- a/readme/Readme.scalatex
+++ b/readme/Readme.scalatex
@@ -3,7 +3,10 @@
@import org.scalafmt.config.ScalafmtConfig
@import org.scalafmt.config.ScalafmtConfig.default
-@sect("Scalafmt - code formatter for Scala", org.scalafmt.Versions.stable)
+@raw
+
+
+@sect("Scalafmt", org.scalafmt.Versions.stable)
@scalatex.Intro()
@scalatex.Installation()
@@ -16,4 +19,4 @@
@scalatex.Footer()
@raw
-
+
diff --git a/readme/resources/custom.css b/readme/resources/custom.css
new file mode 100644
index 000000000..30fc9a4b6
--- /dev/null
+++ b/readme/resources/custom.css
@@ -0,0 +1,128 @@
+
+/**
+ * Menu
+ */
+
+.scalatex-scrollspy-Styles-menu {
+ /* Can't override the width in CSS as it's manipulated in JS when the menu is
+ collapsed. */
+ /* width: 350px !important; */
+}
+
+.scalatex-scrollspy-Styles-selected {
+ background: #af2442;
+}
+
+.scalatex-scrollspy-Styles-closed {
+ color: white;
+}
+
+.scalatex-scrollspy-Styles-selected {
+ background: #eb4d54;
+}
+.scalatex-scrollspy-Styles-pathed {
+ border-left: none;
+}
+
+.scalatex-scrollspy-Styles-menuLink,
+.scalatex-scrollspy-Styles-menuLink:hover {
+ background: #eb4d54;
+}
+
+.scalatex-scrollspy-Styles-menu {
+ background: #eb4d54;
+}
+
+.scalatex-scrollspy-Styles-note {
+ color: white;
+ font-weight: 300;
+}
+
+.scalatex-scrollspy-Styles-noteBox {
+ background: #eb4d54;
+ padding-bottom: 10px;
+ text-align: center;
+}
+
+.scalatex-scrollspy-Styles-menuItem {
+ border-bottom: none;
+}
+
+.scalatex-scrollspy-Styles-menuItem:hover {
+ background: #eb4d54;
+ color: white;
+}
+
+ul.menu-item-list {
+ background: #af2442;
+ border-right: 2px solid #eb4d54;
+}
+
+/**
+ * Content
+ */
+
+
+.scalatex-site-Styles-hoverContainer.scalatex-site-Styles-headerTag {
+ border-bottom: none !important;
+ line-height: 2em;
+ margin: 0;
+}
+
+.scalatex-site-Styles-content {
+ max-width: 1000px;
+ color: black;
+
+ color: rgba(46,48,58,0.96);
+}
+
+.scalatex-site-Styles-content p {
+ font-size: 1.2rem;
+ line-height: 1.7rem;
+}
+
+.scalatex-site-Styles-content a:visited,
+.scalatex-site-Styles-content a:link {
+ color: #eb4d54;
+}
+
+.scalatex-site-Styles-content pre code {
+ padding: 1em 20px;
+ background: transparent;
+ background: #f9f9f9;
+ border-left: 10px solid #ccc;
+}
+
+.scalafmt-pair {
+ background: #f9f9f9;
+ border-left: 10px solid #ccc;
+ display: flex;
+ justify-content: space-around;
+}
+
+/** Ovrride pre code styling in case of pair split as it's taken caore of by
+ * .scalafmt-pair*/
+.scalatex-site-Styles-content .scalafmt-pair pre code {
+ background: transparent;
+ border-left: none;
+}
+
+blockquote {
+ background: #f9f9f9;
+ border-left: 10px solid #ccc;
+ margin: 1.5em 0px;
+ padding: 1em 20px;
+ quotes: "“" "”" "‘" "’";
+}
+
+blockquote:before {
+ color: #eb4d54;
+ content: open-quote;
+ font-size: 4em;
+ line-height: 0.1em;
+ vertical-align: -0.4em;
+}
+
+blockquote small {
+ display: block;
+}
diff --git a/readme/src/main/scala/org/scalafmt/readme/Readme.scala b/readme/src/main/scala/org/scalafmt/readme/Readme.scala
index badd0ab16..176a241ef 100644
--- a/readme/src/main/scala/org/scalafmt/readme/Readme.scala
+++ b/readme/src/main/scala/org/scalafmt/readme/Readme.scala
@@ -83,10 +83,10 @@ object Readme {
def issue(id: Int) = a(href := repo + s"/issues/$id", s"#$id")
def issues(ids: Int*) = span(ids.map(issue): _*)
- def half(frags: Frag*) = div(frags, width := "50%", float.left)
+ def half(frags: Frag*) = div(frags)
def ignore(frags: Frag*) = span("")
- def pairs(frags: Frag*) = div(frags, div(clear := "both"))
+ def pairs(frags: Frag*) = div(frags, `class` := "scalafmt-pair")
def sideBySide(left: String, right: String) =
pairs(List(left, right).map(x => half(hl.scala(x))): _*)