Skip to content

Commit

Permalink
#870 Add new white and black option
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannick committed Dec 4, 2014
1 parent c2111cf commit f162082
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
12 changes: 9 additions & 3 deletions style/Sunrise/personality.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,16 @@
<input type="radio" name="form[color]" id="red" value="#ff4444"<?php if ($luna_user['color'] == '#ff4444') echo ' checked' ?>>
</label>
<label class="btn btn-primary color-accent accent-luna<?php if ($luna_user['color'] == '#0d4382') echo ' active' ?>">
<input type="radio" name="form[color]" id="red" value="#0d4382"<?php if ($luna_user['color'] == '#0d4382') echo ' checked' ?>>
<input type="radio" name="form[color]" id="luna" value="#0d4382"<?php if ($luna_user['color'] == '#0d4382') echo ' checked' ?>>
</label>
<label class="btn btn-primary color-accent accent-grey<?php if ($luna_user['color'] == '#cccccc') echo ' active' ?>">
<input type="radio" name="form[color]" id="red" value="#cccccc"<?php if ($luna_user['color'] == '#cccccc') echo ' checked' ?>>
<label class="btn btn-primary color-accent accent-white<?php if ($luna_user['color'] == '#cccccc') echo ' active' ?>">
<input type="radio" name="form[color]" id="white" value="#cccccc"<?php if ($luna_user['color'] == '#cccccc') echo ' checked' ?>>
</label>
<label class="btn btn-primary color-accent accent-grey<?php if ($luna_user['color'] == '#999999') echo ' active' ?>">
<input type="radio" name="form[color]" id="grey" value="#999999"<?php if ($luna_user['color'] == '#999999') echo ' checked' ?>>
</label>
<label class="btn btn-primary color-accent accent-black<?php if ($luna_user['color'] == '#444444') echo ' active' ?>">
<input type="radio" name="form[color]" id="black" value="#444444"<?php if ($luna_user['color'] == '#444444') echo ' checked' ?>>
</label>
</div>
</div>
Expand Down
10 changes: 9 additions & 1 deletion style/Sunrise/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1118,10 +1118,18 @@ blockquote footer {
background-color: #0d4382 !important;
}

.accent-grey {
.accent-white {
background-color: #ccc !important;
}

.accent-grey {
background-color: #999 !important;
}

.accent-black {
background-color: #444 !important;
}

/* Cookie bar */
.cookie-bar {
background: #393939;
Expand Down
14 changes: 14 additions & 0 deletions style/Sunrise/style.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,17 @@
$secondary_color = '#0d4382';
$tertiary_color = '#0b3c75';
} elseif ($luna_user['color'] == '#cccccc') {
$primary_color = '#eeeeee';
$secondary_color = '#dddddd';
$tertiary_color = '#cccccc';
} elseif ($luna_user['color'] == '#999999') {
$primary_color = '#afafaf';
$secondary_color = '#9e9e9e';
$tertiary_color = '#8e8e8e';
} elseif ($luna_user['color'] == '#444444') {
$primary_color = '#555555';
$secondary_color = '#444444';
$tertiary_color = '#333333';
}

?>
Expand All @@ -52,4 +60,10 @@
.list-group-forum a.list-group-item:hover {
border-left-color: <?php echo $primary_color ?>;
}

<?php if ($luna_user['color'] == '#cccccc') { ?>
.navbar-inverse .navbar-brand:hover, .navbar-inverse .navbar-brand:focus, .first-run-title, .navbar-inverse .navbar-nav > li > a:hover, .navbar-inverse .navbar-nav > li > a:focus, .navbar-inverse .navbar-nav > li > a, .navbar-inverse .navbar-brand, footer, footer a {
color: #555;
}
<?php } ?>
</style>

0 comments on commit f162082

Please sign in to comment.