Skip to content

Commit bfcff5f

Browse files
Fix mobile code box and link callout (#986)
* Fix mobile content overflow from code box * center link under callout * Add header for .sh file * Add header for another .sh file
1 parent 5e90683 commit bfcff5f

File tree

4 files changed

+38
-6
lines changed

4 files changed

+38
-6
lines changed

assets/stylesheets/new-stylesheets/pages/_install.scss

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
margin-top: 60px;
2525
position: relative;
2626
z-index: 10;
27+
line-height: 1.2em;
2728
}
2829

2930
h3 {
@@ -49,6 +50,10 @@
4950
margin-top: 10px;
5051
display: flex;
5152

53+
&.centered {
54+
justify-content: center;
55+
}
56+
5257
i {
5358
filter: var(--site-content-link-with-right-arrow-icon-filter);
5459
}
@@ -208,7 +213,7 @@
208213
h2 {
209214
color: var(--site-code-box-text) !important;
210215
font-size: 22px;
211-
margin: 0 !important;
216+
margin: 0 0 10px 0 !important;
212217
}
213218

214219
pre {
@@ -230,6 +235,11 @@
230235
word-break: break-word;
231236
}
232237
}
238+
239+
.content-body {
240+
flex-grow: 1;
241+
width: 100%;
242+
}
233243
}
234244

235245
.content {
@@ -281,10 +291,6 @@
281291
display: flex;
282292
flex-direction: column;
283293
min-height: 200px;
284-
285-
.content-body {
286-
flex-grow: 1;
287-
}
288294
}
289295
}
290296
}

install/linux/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ title: Install Swift - Linux
2121
<h2>Looking for alternate installation options?</h2>
2222
<div>
2323
<p class="content-copy">
24-
<a class="content-link" href="/install/linux/amazonlinux/2">Check them out <i></i></a>
24+
<a class="content-link centered" href="/install/linux/amazonlinux/2">Check them out <i></i></a>
2525
</p>
2626
</div>
2727
</div>

scripts/copy-vendor.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
#!/bin/bash
2+
##===----------------------------------------------------------------------===##
3+
##
4+
## This source file is part of the Swift.org open source project
5+
##
6+
## Copyright (c) 2025 Apple Inc. and the Swift.org project authors
7+
## Licensed under Apache License v2.0
8+
##
9+
## See LICENSE.txt for license information
10+
## See CONTRIBUTORS.txt for the list of Swift.org project authors
11+
##
12+
## SPDX-License-Identifier: Apache-2.0
13+
##
14+
##===----------------------------------------------------------------------===##
215

316
mkdir -p assets/js/vendor
417

scripts/prettify.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
#!/bin/bash
2+
##===----------------------------------------------------------------------===##
3+
##
4+
## This source file is part of the Swift.org open source project
5+
##
6+
## Copyright (c) 2025 Apple Inc. and the Swift.org project authors
7+
## Licensed under Apache License v2.0
8+
##
9+
## See LICENSE.txt for license information
10+
## See CONTRIBUTORS.txt for the list of Swift.org project authors
11+
##
12+
## SPDX-License-Identifier: Apache-2.0
13+
##
14+
##===----------------------------------------------------------------------===##
215

316
prettier --write \
417
"assets/{javascripts/new-javascripts,stylesheets/new-stylesheets}/**/*.{js,scss}" \

0 commit comments

Comments
 (0)