From 44dcbd2da0a7c9f334aafe2e50112010f2186dd0 Mon Sep 17 00:00:00 2001 From: Federico Bucchi Date: Tue, 27 May 2025 22:32:42 -0700 Subject: [PATCH 1/4] Fix mobile content overflow from code box --- assets/stylesheets/new-stylesheets/pages/_install.scss | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/assets/stylesheets/new-stylesheets/pages/_install.scss b/assets/stylesheets/new-stylesheets/pages/_install.scss index 68aceca0f..ba976ae64 100644 --- a/assets/stylesheets/new-stylesheets/pages/_install.scss +++ b/assets/stylesheets/new-stylesheets/pages/_install.scss @@ -230,6 +230,11 @@ word-break: break-word; } } + + .content-body { + flex-grow: 1; + width: 100%; + } } .content { @@ -281,10 +286,6 @@ display: flex; flex-direction: column; min-height: 200px; - - .content-body { - flex-grow: 1; - } } } } From 97bcce9f8fafd4fdc6a1e4be166b894ef20aba66 Mon Sep 17 00:00:00 2001 From: Federico Bucchi Date: Tue, 27 May 2025 22:55:53 -0700 Subject: [PATCH 2/4] center link under callout --- assets/stylesheets/new-stylesheets/pages/_install.scss | 7 ++++++- install/linux/index.md | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/assets/stylesheets/new-stylesheets/pages/_install.scss b/assets/stylesheets/new-stylesheets/pages/_install.scss index ba976ae64..677a68482 100644 --- a/assets/stylesheets/new-stylesheets/pages/_install.scss +++ b/assets/stylesheets/new-stylesheets/pages/_install.scss @@ -24,6 +24,7 @@ margin-top: 60px; position: relative; z-index: 10; + line-height: 1.2em; } h3 { @@ -49,6 +50,10 @@ margin-top: 10px; display: flex; + &.centered { + justify-content: center; + } + i { filter: var(--site-content-link-with-right-arrow-icon-filter); } @@ -208,7 +213,7 @@ h2 { color: var(--site-code-box-text) !important; font-size: 22px; - margin: 0 !important; + margin: 0 0 10px 0 !important; } pre { diff --git a/install/linux/index.md b/install/linux/index.md index 3b08b863d..6a04f4749 100644 --- a/install/linux/index.md +++ b/install/linux/index.md @@ -21,7 +21,7 @@ title: Install Swift - Linux

Looking for alternate installation options?

- Check them out + Check them out

From 8ea1325d2a23031e67e4c1af36096a989c948a3b Mon Sep 17 00:00:00 2001 From: Federico Bucchi Date: Wed, 28 May 2025 09:49:30 -0700 Subject: [PATCH 3/4] Add header for .sh file --- scripts/copy-vendor.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/copy-vendor.sh b/scripts/copy-vendor.sh index 23f903484..1b428ed1d 100644 --- a/scripts/copy-vendor.sh +++ b/scripts/copy-vendor.sh @@ -1,4 +1,17 @@ #!/bin/bash +##===----------------------------------------------------------------------===## +## +## This source file is part of the Swift.org open source project +## +## Copyright (c) 2025 Apple Inc. and the Swift.org project authors +## Licensed under Apache License v2.0 +## +## See LICENSE.txt for license information +## See CONTRIBUTORS.txt for the list of Swift.org project authors +## +## SPDX-License-Identifier: Apache-2.0 +## +##===----------------------------------------------------------------------===## mkdir -p assets/js/vendor From 200a68a6a5c533cfb02caa6426e687f05b41eb58 Mon Sep 17 00:00:00 2001 From: Federico Bucchi Date: Wed, 28 May 2025 09:51:32 -0700 Subject: [PATCH 4/4] Add header for another .sh file --- scripts/prettify.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/prettify.sh b/scripts/prettify.sh index c42e242b2..a104eec71 100755 --- a/scripts/prettify.sh +++ b/scripts/prettify.sh @@ -1,4 +1,17 @@ #!/bin/bash +##===----------------------------------------------------------------------===## +## +## This source file is part of the Swift.org open source project +## +## Copyright (c) 2025 Apple Inc. and the Swift.org project authors +## Licensed under Apache License v2.0 +## +## See LICENSE.txt for license information +## See CONTRIBUTORS.txt for the list of Swift.org project authors +## +## SPDX-License-Identifier: Apache-2.0 +## +##===----------------------------------------------------------------------===## prettier --write \ "assets/{javascripts/new-javascripts,stylesheets/new-stylesheets}/**/*.{js,scss}" \