21
1
Fork 0
mirror of https://github.com/Evolix/chexpire.git synced 2024-05-03 09:20:49 +02:00

Merge pull request #65 from Evolix/graphic-design-2

Thank you for your reorganization of css code
This commit is contained in:
Gregory Colpart 2018-08-06 18:02:21 +02:00 committed by GitHub
commit ffbd8985f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 15 deletions

View file

@ -7,16 +7,22 @@
} }
} }
.btn.btn-sm { //badges' style
font-weight: bold;
.badge.badge-info.ssl {
background-color: map-get($theme-colors, quaternary);
color: #ffffff;
} }
.SSL, .ssl:hover, .btn.btn-sm.btn-info.active.ssl { .badge.badge-info.domain {
background-color: map-get($theme-colors, quaternary); background-color: map-get($theme-colors, primary);
color: #ffffff; color: #ffffff;
} }
.btn.btn-sm.btn-outline-info.domain:hover, .btn.btn-sm.btn-outline-info.ssl:hover, .btn.btn-sm.btn-outline-info.with_error:hover { // filter buttons' style
.btn.btn-sm.btn-outline-info.ssl, .btn.btn-sm.btn-outline-info.ssl:hover, .btn.btn-sm.btn-outline-info.domain, .btn.btn-sm.btn-outline-info.domain:hover, .btn.btn-sm.btn-outline-info.with_error, .btn.btn-sm.btn-outline-info.with_error:hover, .btn.btn-sm.btn-info.active.ssl, .btn.btn-sm.btn-info.active.domain, .btn.btn-sm.btn-info.active.with_error {
font-weight: bold;
color: #ffffff; color: #ffffff;
} }
@ -25,22 +31,22 @@
color: map-get($theme-colors, quaternary); color: map-get($theme-colors, quaternary);
} }
.Domaine, .Domain, .domain:hover, .btn.btn-sm.btn-info.active.domain {
background-color: map-get($theme-colors, primary);
color: #ffffff;
}
.btn.btn-sm.btn-info.domain, .btn.btn-sm.btn-outline-info.domain { .btn.btn-sm.btn-info.domain, .btn.btn-sm.btn-outline-info.domain {
border-color: map-get($theme-colors, primary); border-color: map-get($theme-colors, primary);
color: map-get($theme-colors, primary); color: map-get($theme-colors, primary);
} }
.btn.btn-sm.btn-outline-info.with_error { .btn.btn-sm.btn-info.with_error, .btn.btn-sm.btn-outline-info.with_error {
border-color: map-get($theme-colors, tertiary); border-color: map-get($theme-colors, tertiary);
color: map-get($theme-colors, tertiary); color: map-get($theme-colors, tertiary);
} }
.btn.btn-sm.btn-outline-info.with_error:hover, .btn.btn-sm.btn-info.active.with_error { .btn.btn-sm.btn-info.ssl:hover, .btn.btn-sm.btn-outline-info.ssl:hover, .btn.btn-sm.btn-info.active.ssl {
background-color: map-get($theme-colors, tertiary); background-color: map-get($theme-colors, quaternary);
border-color: map-get($theme-colors, tertiary); }
.btn.btn-sm.btn-info.domain:hover, .btn.btn-sm.btn-outline-info.domain:hover, .btn.btn-sm.btn-info.active.domain {
background-color: map-get($theme-colors, primary);
}
.btn.btn-sm.btn-info.with_error:hover, .btn.btn-sm.btn-outline-info.with_error:hover, .btn.btn-sm.btn-info.active.with_error {
background-color: map-get($theme-colors, tertiary);
} }

View file

@ -25,7 +25,7 @@
<% checks.each do |check| %> <% checks.each do |check| %>
<tr class="check-row <%= check_row_class(check) %>"> <tr class="check-row <%= check_row_class(check) %>">
<td class="kind"> <td class="kind">
<span class="badge badge-info <%= t(".kind_labels.#{check.kind}") %>"><%= t(".kind_labels.#{check.kind}") %></span> <span class="badge badge-info <%=check.kind%>"><%= t(".kind_labels.#{check.kind}") %></span>
</td> </td>
<td> <td>
<%= check_error(check) if check_in_error?(check) %> <%= check_error(check) if check_in_error?(check) %>