Skip to content

Commit

Permalink
Use upper camel case class name for component selector
Browse files Browse the repository at this point in the history
  • Loading branch information
terkel committed Jun 14, 2015
1 parent b522cb3 commit 19fb79e
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 23 deletions.
2 changes: 1 addition & 1 deletion component/_archivesList.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.archivesList[data-component] {
.ArchivesList {
@include vertical-rhythm(line-height, 5/6);
padding: 0;

Expand Down
2 changes: 1 addition & 1 deletion component/_articleSummary.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.articleSummary[data-component] {
.ArticleSummary {
@include vertical-rhythm(margin-bottom, 9/6);
@include vertical-rhythm(margin-top, 9/6);

Expand Down
4 changes: 2 additions & 2 deletions component/_homeSubsection.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.homeSubsection[data-component] {
.HomeSubsection {

& + .homeSubsection {
& + & {
@include vertical-rhythm(margin-top, 9/6);
@include vertical-rhythm(padding-top, 9/6);
box-shadow: inset 0 1px $color-border;
Expand Down
8 changes: 1 addition & 7 deletions component/_mainBody.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.mainBody[data-component] {
.MainBody {
@include vertical-rhythm(margin-bottom, 3);
@include vertical-rhythm(margin-top, 3);

Expand All @@ -22,10 +22,4 @@
font-family: $font-family-sans, $font-family-gothic, sans-serif;
}
}

a {
// &:hover {
// color: inherit;
// }
}
}
2 changes: 1 addition & 1 deletion component/_mainHeader.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.mainHeader[data-component] {
.MainHeader {
@include vertical-rhythm(padding-bottom, 1.5);
@include vertical-rhythm(padding-top, 3);
box-shadow: 0 1px $color-border;
Expand Down
2 changes: 1 addition & 1 deletion component/_pageFooter.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[role="contentinfo"][data-component] {
.PageFooter {
@include vertical-rhythm(padding-bottom, 2);
@include vertical-rhythm(padding-top, 1);
box-shadow: inset 0 1px $color-border;
Expand Down
2 changes: 1 addition & 1 deletion component/_pageHeader.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[role="banner"][data-component] {
.PageHeader {
@include vertical-rhythm(padding-top, 3/6);
background-color: $color-background;
box-shadow: 0 1px $color-border;
Expand Down
2 changes: 1 addition & 1 deletion component/_primaryNav.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.primaryNav[data-component] {
.PrimaryNav {
@include vertical-rhythm(padding-bottom, 2/6);
@include vertical-rhythm(padding-top, 2/6);
align-items: center;
Expand Down
16 changes: 8 additions & 8 deletions main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
@import "base/base";

// Component
@import "component/pageHeader";
@import "component/mainHeader";
@import "component/mainBody";
@import "component/primaryNav";
@import "component/pageFooter";
@import "component/articleSummary";
@import "component/homeSubsection";
@import "component/archivesList";
@import "component/PageHeader";
@import "component/MainHeader";
@import "component/MainBody";
@import "component/PrimaryNav";
@import "component/PageFooter";
@import "component/ArticleSummary";
@import "component/HomeSubsection";
@import "component/ArchivesList";

// Font
@import "font/merriweather";
Expand Down

0 comments on commit 19fb79e

Please sign in to comment.