From 7222184024baafab7f56afd71bf96ab2ebcba6d5 Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Thu, 28 Dec 2023 00:04:30 -0800 Subject: [PATCH] Improve styling on phones --- homepage/home_static/style.css | 8 ++++++ homepage/index.html | 50 ++++++++++++++++------------------ 2 files changed, 31 insertions(+), 27 deletions(-) diff --git a/homepage/home_static/style.css b/homepage/home_static/style.css index fe6c6148c..7933f2269 100644 --- a/homepage/home_static/style.css +++ b/homepage/home_static/style.css @@ -24,6 +24,14 @@ h3 { line-height: 45px; } +/* Constrain container width even more than container-sm. +https://getbootstrap.com/docs/5.3/layout/containers/#how-they-work */ +@media (min-width: 992px) { + .container { + max-width: 960px !important; + } +} + .container h2 { padding-bottom: 1rem; } diff --git a/homepage/index.html b/homepage/index.html index 1c5a90356..c7704b9ce 100644 --- a/homepage/index.html +++ b/homepage/index.html @@ -64,17 +64,15 @@ -
-
-

- Difftastic is a CLI diff tool that compares files based on their - syntax, not line-by-line. Difftastic produces accurate diffs that are - easier for humans to read. -

-
+
+

+ Difftastic is a CLI diff tool that compares files based on their syntax, + not line-by-line. Difftastic produces accurate diffs that are easier for + humans to read. +

-
+

Understand @@ -94,7 +92,7 @@

-
+

Ignore Formatting Changes

@@ -108,7 +106,7 @@
-
+

Visualise Wrapping Changes

@@ -134,7 +132,7 @@
-
+

Real @@ -157,7 +155,7 @@

-
+

60 Second Demo

@@ -167,12 +165,12 @@
-
+

Programming Languages

-
+

File Formats

@@ -590,7 +588,7 @@
-
+

Works With Git

@@ -606,7 +604,7 @@
-
+

Fully Open Source

@@ -618,14 +616,12 @@

-
-

- Made with Emacs and coffee by - Wilfred Hughes. -

-
+

+ Made with Emacs and coffee by + Wilfred Hughes. +