From 22fddeb55664846195d8389610f40473343ef687 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 23 Nov 2023 09:11:03 -0700 Subject: [PATCH] Keep working on responsiveness --- new/index.html | 6 ++--- new/resources/css/home.css | 9 ++++---- new/resources/css/marketing.css | 39 +++++++-------------------------- new/sponsor.html | 2 +- src/includes/head.html | 2 +- 5 files changed, 18 insertions(+), 40 deletions(-) diff --git a/new/index.html b/new/index.html index 800c131..42f77dd 100644 --- a/new/index.html +++ b/new/index.html @@ -220,7 +220,7 @@
-

Experience it

+

Experience it

Discover Caddy's automagic HTTPS features with our hosted demo.

@@ -346,10 +346,10 @@
-
+
diff --git a/new/resources/css/home.css b/new/resources/css/home.css index d16b6f8..8925f34 100644 --- a/new/resources/css/home.css +++ b/new/resources/css/home.css @@ -288,12 +288,13 @@ img.cite { } .demobox h2 { - position: absolute; - top: -99px; - font-size: min(90px, 50vw); + font-size: 90px; font-weight: 700; + max-width: 100%; white-space: nowrap; - max-width: none; + overflow-x: auto; + white-space: nowrap; + margin-top: -1.65em; background: linear-gradient(0deg, rgba(27,180,186,1) 10%, rgba(0,61,75,1) 50%); -webkit-background-clip: text; diff --git a/new/resources/css/marketing.css b/new/resources/css/marketing.css index 901fdce..18dd1e2 100644 --- a/new/resources/css/marketing.css +++ b/new/resources/css/marketing.css @@ -334,7 +334,6 @@ section.dark h3.yellow { .asides { display: flex; - flex-wrap: wrap; gap: 50px; justify-content: space-between; margin: 100px auto 150px auto; @@ -352,20 +351,15 @@ section.dark h3.yellow { .asides > * { flex: 1; - /* margin-right: 50px; */ - /*min-width: 0; kind of a hack that allows proper sizing of pre children; see https://weblog.west-wind.com/posts/2016/feb/15/flexbox-containers-pre-tags-and-managing-overflow */ - /* min-width: 300px; - width: 100%; */ + min-width: 0; /* kind of a hack that allows proper sizing of pre children; see https://weblog.west-wind.com/posts/2016/feb/15/flexbox-containers-pre-tags-and-managing-overflow */ + min-width: 300px; + width: 100%; } -/* .asides > :last-child { - margin-right: 0; -} */ - -.asides-40-60 > :first-child { width: 40%; } -.asides-40-60 > :last-child { width: 60%; } -.asides-60-40 > :first-child { width: 60%; } -.asides-60-40 > :last-child { width: 40%; } +.asides-40-60 > :first-child { flex: 2 } +.asides-40-60 > :last-child { flex: 3 } +.asides-60-40 > :first-child { flex: 3 } +.asides-60-40 > :last-child { flex: 2 } .asides h2 { text-align: left; @@ -428,7 +422,7 @@ div.ap-wrapper:fullscreen div.ap-player { .display .chroma, .display.dark .chroma, .display.light .chroma { - background: none; + background: none !important; } .display code { @@ -437,7 +431,6 @@ div.ap-wrapper:fullscreen div.ap-player { } .display code { - max-width: 800px; font-size: 110%; display: block; position: relative; @@ -656,27 +649,11 @@ div.ap-wrapper:fullscreen div.ap-player { margin-bottom: 0; } -@media (min-width: 1001px) { - /* .hero-content .display { - transform: scale(1.1); - position: relative; - left: -7%; - } */ - - /* div.ap-wrapper div.ap-player { - - } */ -} - @media (max-width: 1000px) { .asides { flex-direction: column; } - .asides > * { - margin-right: 0; - } - .display { margin-top: 50px; margin-bottom: 50px; diff --git a/new/sponsor.html b/new/sponsor.html index b298077..481a37d 100644 --- a/new/sponsor.html +++ b/new/sponsor.html @@ -479,7 +479,7 @@ Our take on sponsorships is that all professional and business users of Caddy are expected to invest in a sponsorship, just as we expect tree branches to provide nutrition to their trunk and roots. Our sponsorships are not just feel-good donations. They provide crucial value to companies while sustaining ongoing maintenance.

- The original author of Caddy, Matt Holt, operates Dyanim, LLC to maintain the project and direct development alongside a global community. Sponsorships are fulfilled by Dyanim, LLC under the auspices of the executive sponsor, ZeroSSL. + The original author of Caddy, Matt Holt, operates Dyanim, LLC to maintain the project and direct development alongside a global community. Sponsorships are fulfilled by Dyanim, LLC.

diff --git a/src/includes/head.html b/src/includes/head.html index e09cd9a..953109e 100644 --- a/src/includes/head.html +++ b/src/includes/head.html @@ -28,7 +28,7 @@ - +