Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Externalized variables #37

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/logs/*
silex.log
/config/parameters.yml
/config/scss-vars.scss
/.vagrant
node_modules/
web/css/*
Expand Down
15 changes: 15 additions & 0 deletions config/scss-vars.scss.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$background: #000000;
$background-list-item: #1a1a1a;

$color-text: #ffffff;

$logo: '/img/logo.png';

$background-list-item-hover: #212121;
$list-item-current-color: rgba(179, 255, 151, 1.0);
$color-list-item-text: #ffffff;

$winner-background-color: rgba(0,0,0, 0.6);

$raffle-highlight-border-color: #f00;

26 changes: 14 additions & 12 deletions source/scss/main.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* Config vars */
@import "../../config/scss-vars";

$total-columns: 12;
$column-width: 4em;
$gutter-width: 1em;
Expand All @@ -11,8 +14,8 @@ $grid-padding: $gutter-width;
@import "susy";

body {
color: #ffffff;
background: #000000;
color: $color-text;
background: $background;
font-family: 'Open Sans', Arial, Helvetica, sans-serif;
font-size: 20px;
font-weight: 300;
Expand All @@ -28,7 +31,7 @@ body {
line-height: 120px;

a {
color: #ffffff;
color: $color-text;
text-decoration: none;
}

Expand All @@ -37,7 +40,7 @@ body {
width: 444px;
height: 80px;
text-indent: -9999px;
background-image: url("/img/logo.png");
background-image: url($logo);
}
.secondary {
display: inline-block;
Expand Down Expand Up @@ -76,21 +79,20 @@ body {
}

a {
background: #1a1a1a;
background: $background-list-item;
display: block;
color: #fff;
color: $color-list-item-text;
text-decoration: none;
padding: 0.5em;
margin-bottom: 1px;

&:hover {
background: #212121;
background: $background-list-item-hover;
}
}

.first a {
color: rgba(179, 255, 151, 1.0);
text-shadow: 0 -1px 0 #000,0px 0 5px rgba(179,255,151,.8);
color: $list-item-current-color;
font-size: 1.2em;
}
}
Expand All @@ -115,7 +117,7 @@ body {
}

&.selected {
border-color: #f00;
border-color: $raffle-highlight-border-color;
}

&.loser {
Expand All @@ -135,7 +137,7 @@ body {
width: 100%;
display: block;
font-size: 2em;
background-color: rgba(0,0,0, 0.6);
background-color: $winner-background-color;
padding: 3px;
}
}
Expand All @@ -144,7 +146,7 @@ body {
.checkin-link {
margin-bottom: 1em;
a:link, a:visited {
color: white;
color: $color-text;
}
}
}
Expand Down