Skip to content

Commit d569d39

Browse files
Add top section layout change
1 parent f7efb70 commit d569d39

File tree

4 files changed

+41
-13
lines changed

4 files changed

+41
-13
lines changed

assets/stylesheets/_mobile.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@
9090
max-width: 100%;
9191
min-width: 320px;
9292
margin-left: 0;
93-
padding: 30px 30px 0;
9493
}
9594

9695
footer[role="contentinfo"] {

assets/stylesheets/_screen.scss

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,6 @@ h6 {
105105
color: var(--color-header-text);
106106
}
107107

108-
div.highlighter-rouge {
109-
margin-left: 13px;
110-
}
111-
112108
pre {
113109
font-size: 14px;
114110
line-height: 1.6em;
@@ -382,24 +378,44 @@ cite {
382378
}
383379

384380
main {
385-
padding: 4rem 30px 0;
386381
margin: auto;
382+
padding: 4rem 0 0;
383+
384+
.callout {
385+
display: flex;
386+
387+
@media only screen and (max-width: 1280px) {
388+
display: block;
389+
}
390+
}
387391

388392
.page-wide {
389393
max-width: var(--content-mobile-breakpoint);
390394
padding: 0;
391395
margin: auto;
396+
397+
@media only screen and (max-width: 1280px) {
398+
padding: 30px 30px 0;
399+
}
392400
}
393401

394402
.post, .page {
395403
max-width: 50em;
396404
margin: 0 auto;
397405
padding: 0 30px;
398406

407+
@media only screen and (max-width: 1280px) {
408+
padding-top: 30px;
409+
}
410+
399411
@media only screen and (max-width: 767px) {
400-
padding: 0;
412+
padding: 30px 30px 0;
401413
}
402414
}
415+
416+
@media only screen and (max-width: 1280px) {
417+
padding: 0;
418+
}
403419
}
404420

405421
footer[role="contentinfo"] {

assets/stylesheets/pages/_landing.scss

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,51 @@
11
.preamble {
2-
font-size: 28px;
2+
font-size: 38px;
33
line-height: 1.4;
44
margin-bottom: 30px;
5+
width: 46%;
56

67
strong {
78
font-weight: 600;
9+
color: var(--color-figure-orange);
810
}
911

1012
span {
1113
display: block;
1214
padding-top: .5rem;
1315
}
1416

15-
@media only screen and (max-width: 767px) {
17+
@media only screen and (max-width: 1280px) {
1618
width: 100%;
1719
font-size: 24px;
1820
}
1921
}
2022

2123
.featured-snippet {
2224
display: none;
25+
min-height: 18rem;
26+
width: 52%;
27+
margin-left: 2%;
2328

2429
&.visible {
2530
display: block;
2631
}
2732

28-
&.highlighter-rouge {
29-
margin-left: 0px;
33+
.highlight {
34+
height: 100%;
3035
}
3136

3237
pre {
3338
border: 1px solid var(--color-fill-tertiary);
3439
border-radius: 4px;
35-
padding: 1.25rem 1.5rem;
40+
padding: 1rem;
3641
margin: 0px;
3742
}
43+
44+
@media only screen and (max-width: 1280px) {
45+
margin-left: 0;
46+
width: 100%;
47+
min-height: auto;
48+
}
3849
}
3950

4051
.link-grid {

index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ hideTitle: true
55
atom: true
66
---
77

8-
<h1 class="preamble">Swift is a <strong>general-purpose</strong> programming language that’s <strong>approachable</strong> for newcomers and <strong>powerful</strong> for experts. <span>It is <strong>fast</strong>, <strong>modern</strong>, <strong>safe</strong>, and a <strong>joy</strong> to write.</span></h1>
8+
<div class="callout" markdown="1">
9+
<h1 class="preamble">Swift is a <strong>general-purpose</strong> programming language that’s <strong>approachable</strong> for newcomers and <strong>powerful</strong> for experts. <span>It is <strong>fast</strong>, <strong>modern</strong>, <strong>safe</strong>, and a <strong>joy</strong> to write.</span></h1>
910

1011
{% for snippet in site.data.featured_snippets %}
1112
```swift
1213
{{ snippet -}}
1314
```
1415
{: class="featured-snippet {% if forloop.first %}visible{% endif %}" }
1516
{% endfor %}
17+
</div>
1618

1719
<div class="link-grid">
1820
<ul>

0 commit comments

Comments
 (0)