/bans: color code expired/unexpired bans.
This commit is contained in:
@@ -27,6 +27,9 @@ $preview_flagged_color: #F00;
|
|||||||
$preview_sample_warning_color: hsl(0, 100%, 90%); // light red
|
$preview_sample_warning_color: hsl(0, 100%, 90%); // light red
|
||||||
$preview_quality_warning_color: hsl(50, 100%, 90%); // light yellow
|
$preview_quality_warning_color: hsl(50, 100%, 90%); // light yellow
|
||||||
|
|
||||||
|
$error_color: hsl(0, 100%, 95%); // light red
|
||||||
|
$success_color: hsl(120, 100%, 95%); // light green
|
||||||
|
|
||||||
@mixin border-radius($val) {
|
@mixin border-radius($val) {
|
||||||
-moz-border-radius: $val;
|
-moz-border-radius: $val;
|
||||||
-webkit-border-radius: $val;
|
-webkit-border-radius: $val;
|
||||||
|
|||||||
19
app/assets/stylesheets/specific/bans.scss
Normal file
19
app/assets/stylesheets/specific/bans.scss
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
@import "../common/000_vars.scss";
|
||||||
|
|
||||||
|
#c-bans #a-index {
|
||||||
|
tr[data-expired="true"] {
|
||||||
|
background-color: $success_color !important;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: darken($success_color, 5%) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
tr[data-expired="false"] {
|
||||||
|
background-color: $error_color !important;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background-color: darken($error_color, 5%) !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
<div class="bans">
|
<div id="c-bans">
|
||||||
<div class="index">
|
<div id="a-index">
|
||||||
<h1>Bans</h1>
|
<h1>Bans</h1>
|
||||||
|
|
||||||
<table class="striped" width="100%">
|
<table class="striped" width="100%">
|
||||||
@@ -13,7 +13,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<% @bans.each do |ban| %>
|
<% @bans.each do |ban| %>
|
||||||
<tr id="ban-<%= ban.id %>">
|
<tr id="ban-<%= ban.id %>" data-expired="<%= ban.expired? %>">
|
||||||
<td><%= link_to_user(ban.user) %></td>
|
<td><%= link_to_user(ban.user) %></td>
|
||||||
<td><%= ban.expires_at %></td>
|
<td><%= ban.expires_at %></td>
|
||||||
<td><%= format_text ban.reason, :ragel => true %></td>
|
<td><%= format_text ban.reason, :ragel => true %></td>
|
||||||
|
|||||||
Reference in New Issue
Block a user