Skip to content

Commit 8e09c05

Browse files
committed
Updated style for application
1 parent 065711c commit 8e09c05

File tree

3 files changed

+106
-10
lines changed

3 files changed

+106
-10
lines changed

app/styles/app.css

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
html {
2+
font-size: 16px;
3+
height: 100%;
4+
}
5+
6+
body {
7+
background-color: rgb(244, 246, 248);
8+
color: rgb(66, 71, 79);
9+
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;
10+
font-size: 16px;
11+
font-weight: 400;
12+
margin: 0;
13+
padding: 1.5rem 0 3rem 0;
14+
}
15+
16+
* {
17+
margin: 0;
18+
padding: 0;
19+
}
20+
21+
h1 {
22+
font-size: 1.75rem;
23+
font-weight: 400;
24+
margin-bottom: 1.5rem;
25+
}
26+
27+
h2 {
28+
font-size: 1.25rem;
29+
font-weight: 500;
30+
}
31+
32+
h3 {
33+
font-size: 1.2rem;
34+
font-weight: 500;
35+
}
36+
37+
h4 {
38+
font-size: 1rem;
39+
font-weight: 600;
40+
}
41+
42+
a {
43+
color: rgb(207, 45, 32);
44+
}
45+
46+
p {
47+
line-height: 1.5rem;
48+
margin-bottom: 1rem;
49+
}
50+
51+
p code {
52+
background-color: #D0D0D0;
53+
margin: 0 0.0625rem;
54+
padding: 0.25rem 0.375rem;
55+
}
56+
57+
code[class*="language-"],
58+
pre[class*="language-"] {
59+
white-space: pre-wrap !important;
60+
}

app/styles/application.css

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
.header,
2+
.main {
3+
padding: 0 1rem;
4+
}
5+
6+
.logo {
7+
display: block;
8+
margin: 0 auto;
9+
max-width: 14rem;
10+
}
11+
12+
.locale-menu-container {
13+
margin: 1.5rem 0;
14+
}
15+
16+
.guide-section-container {
17+
margin-top: 4rem;
18+
}
19+
20+
@media screen and (min-width: 30rem) {
21+
.header,
22+
.main {
23+
padding: 0 2rem;
24+
}
25+
}

app/templates/application.hbs

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,35 @@
11
{{page-title "Ember.js Octane vs Classic Cheat Sheet"}}
22

3-
<header>
3+
<header local-class="header">
44
<img
55
alt={{t "layout.application.logo-alt-text"}}
6-
class="header-logo"
6+
local-class="logo"
77
src="{{this.rootURL}}/assets/ember-octane_text-treatment.png"
88
>
99

10-
<LocaleMenu />
10+
<div local-class="locale-menu-container">
11+
<LocaleMenu />
12+
</div>
1113
</header>
1214

13-
<main>
14-
<h1>{{t "layout.application.title"}}</h1>
15+
<main local-class="main">
16+
<h1 local-class="title">
17+
{{t "layout.application.title"}}
18+
</h1>
1519

16-
<p class="intro">{{t "layout.application.description-1" htmlSafe=true}}</p>
17-
<p class="intro">{{t "layout.application.description-2" htmlSafe=true}}</p>
20+
<p>
21+
{{t "layout.application.description-1" htmlSafe=true}}
22+
</p>
23+
24+
<p>
25+
{{t "layout.application.description-2" htmlSafe=true}}
26+
</p>
1827

1928
{{#each @model as |section|}}
20-
<GuideSection
21-
@section={{section}}
22-
/>
29+
<div local-class="guide-section-container">
30+
<GuideSection
31+
@section={{section}}
32+
/>
33+
</div>
2334
{{/each}}
2435
</main>

0 commit comments

Comments
 (0)