Skip to content

Commit

Permalink
Merge pull request #54 from dabapps/body-background
Browse files Browse the repository at this point in the history
Body & container background variables
  • Loading branch information
JakeSidSmith authored Jun 3, 2017
2 parents 57a532a + 519e18e commit 8118138
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
6 changes: 1 addition & 5 deletions docs/src/less/index.less
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
@import '../../../src/less/index.less';

html,
body {
background-color: @grey-lighter;
}
@body-background: @grey-lighter;

h1,
h2 {
color: @secondary;
}

.container {
background-color: @white;
box-shadow: @shadow-hard;
}

Expand Down
1 change: 1 addition & 0 deletions src/less/grid.less
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
}

.container {
background-color: @container-background;
margin: 0 auto;

@media all and (min-width: @screen-sm) {
Expand Down
1 change: 1 addition & 0 deletions src/less/overrides.less
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ body {
font-size: @font-size-base;
font-family: @font-family-base;
color: @font-color-base;
background-color: @body-background;
}

h1,
Expand Down
4 changes: 4 additions & 0 deletions src/less/variables.less
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
@grey-lightest: #F8F8F8;
@white: #FFFFFF;

@body-background: @white;

@container-background: @white;

@table-stripe: @grey-lightest;
@table-hover: darken(@grey-lightest, 3%);

Expand Down

0 comments on commit 8118138

Please sign in to comment.