Skip to content

Commit 50762f6

Browse files
committed
Add local application CSS class
1 parent 88ab36a commit 50762f6

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

app/styles/app.scss

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,6 @@ body {
4242
align-items: center;
4343
}
4444

45-
/* .ember-application is added by Ember after initial rendering */
46-
.ember-application > div,
47-
body > div {
48-
width: 960px;
49-
@media only screen and (max-width: 960px) {
50-
width: 100%;
51-
}
52-
}
53-
5445
#noscript {
5546
color: white;
5647
padding: 10px 0;

app/styles/application.module.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.application {
2+
width: 960px;
3+
@media only screen and (max-width: 960px) {
4+
width: 100%;
5+
}
6+
}

app/templates/application.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{{title "crates.io: Rust Package Registry" separator=' - ' prepend=true}}
44
<GoogleJsapi />
55

6-
<div>
6+
<div local-class="application">
77
<nav id="header">
88
<LinkTo @route="index" @tabindex="-1">
99
<img src="/assets/Cargo-Logo-Small.png" id="logo"

0 commit comments

Comments
 (0)