Skip to content

Commit fe76065

Browse files
committed
fix(corporate-sponsorship): pull #modern styles out of .post
1 parent 842d1a1 commit fe76065

File tree

5 files changed

+42
-10
lines changed

5 files changed

+42
-10
lines changed

custom-modern-corporate-sponsorship-program.hbs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{{!-- This template is used to render the precise layout of /corporate-sponsorship --}}
2-
{{!< default}}
2+
{{!< default}}
33
{{#post}}
44
<div id="modern">
5-
<div class="{{post_class}}">
5+
<div class="container">
66
<h1>{{title}}</h1>
77
<div>{{content}}</div>
88
</div>
9-
<div class="{{post_class}} corporate-sponsors">
9+
<div class="container corporate-sponsors">
1010
<div class="level ruby">
1111
<div class="name"><h3>Ruby</h3></div>
1212
<div class="bucket">
@@ -44,7 +44,7 @@
4444
</div>
4545
</div>
4646
</div>
47-
<div class="{{post_class}}">
47+
<div class="container">
4848
{{#get "pages" filter="slug:benefits-of-supporting-ruby-central"}}
4949
{{#foreach pages}}
5050
<h3>{{title}}</h3>
@@ -53,7 +53,7 @@
5353
{{/get}}
5454
</div>
5555

56-
<div class="{{post_class}} program-news">
56+
<div class="container program-news">
5757
{{#get "pages" filter="slug:program-news"}}
5858
{{#foreach pages}}
5959
<h3>Program News</h3>
@@ -67,7 +67,7 @@
6767
{{/foreach}}
6868
{{/get}}
6969
</div>
70-
<div class="{{post_class}}">
70+
<div class="container">
7171
{{#get "pages" filter="slug:more-corporate-sponsorship-details"}}
7272
{{#foreach pages}}
7373
<div>{{content}}</div>
@@ -77,4 +77,4 @@
7777
{{/post}}
7878
{{#contentFor 'scripts'}}
7979
<script src="{{asset 'dist/post.js'}}" defer></script>
80-
{{/contentFor}}
80+
{{/contentFor}}

src/css/app.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
@import './layout/reset.css';
1515
@import './layout/navigation.css';
1616
@import './layout/dropdown.css';
17+
@import './layout/container.css';
1718
/* @import './layout/header.css'; */
1819
/* @import './layout/footer.css'; */
1920

src/css/base/typography.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ body {
55
color: var(--text);
66
font-family: 'Inter', sans-serif;
77
font-size: 1rem;
8-
line-height: 1.4rem;
8+
line-height: 1.5rem;
99
}
1010

1111
h1,
@@ -21,7 +21,7 @@ h6 {
2121
}
2222

2323
p {
24-
margin: 0;
24+
margin-bottom: 16px;
2525
}
2626

2727
h2 {

src/css/layout/container.css

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.container,
2+
.container--full-width {
3+
margin: 0 auto;
4+
}
5+
6+
.container {
7+
max-width: 1135px;
8+
padding: 0 20px;
9+
width: 100%;
10+
}
11+
12+
.container--full-width {
13+
max-width: unset;
14+
}
15+
16+
@media (min-width: 834px) {
17+
.container {
18+
padding: 0 40px;
19+
}
20+
}
21+
22+
@media (min-width: 1440px) {
23+
.container {
24+
padding: 0;
25+
}
26+
}

src/css/modern.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,18 +230,23 @@
230230
width: 45%;
231231
}
232232
.level .name {
233-
text-align: center;
234233
padding: 1rem 0 0.25rem 0;
235234
margin: auto;
236235
border-top-left-radius: .75rem;
237236
border-top-right-radius: .75rem;
237+
238+
h3 {
239+
text-align: center;
240+
241+
}
238242
}
239243

240244
.corporate-sponsors {
241245
display: flex;
242246
flex-wrap: wrap;
243247
justify-content: space-between;
244248
gap: 1rem;
249+
margin-top: 48px;
245250
}
246251
.level.ruby, .level.gold {
247252
flex: 1 1 100%;

0 commit comments

Comments
 (0)