Skip to content

Commit bdcc96b

Browse files
committed
Color badges
1 parent 80ce5fb commit bdcc96b

4 files changed

Lines changed: 19 additions & 18 deletions

File tree

_includes/head.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,23 @@
1313

1414
<link rel="shortcut icon" href="{{ "/static/img/favicon.png" | prepend:site.baseurl }}">
1515

16+
<style>
17+
{% for type in site.data.types %}
18+
.{{ type.id }}-tag {
19+
color: {{ type.color }} !important;
20+
}
21+
#{{ type.id }}-checkbox {
22+
color: {{ type.color }};
23+
background: white;
24+
}
25+
#{{ type.id }}-checkbox.active {
26+
color: white;
27+
background: {{ type.color }};
28+
}
29+
30+
{% endfor %}
31+
</style>
32+
1633
{% include google_analytics.js %}
1734

1835
<script type="text/javascript" src="{{ "/static/js/js-year-calendar.js" | prepend:site.baseurl }}"></script>

_pages/conference.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h3 id="conf-full-name">
2222
</div>
2323
<div class="row">
2424
<div class="col-sm-12">
25-
<span id="conf-subs" title="Conference subjects"></span>
25+
<span id="badge conf-subs" title="Conference subjects"></span>
2626
</div>
2727
</div>
2828
</div>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ <h1>
113113
<div class="row">
114114
<div class="col-12">
115115
{% for sub in conf.sub %}
116-
<span title="Click to only show {{sub}} conferences" data-sub="{{sub}}" class="conf-sub {{sub}}-tag"></span>
116+
<span title="Click to only show {{sub}} conferences" data-sub="{{sub}}" class="badge badge-light conf-sub {{sub}}-tag"></span>
117117
{% endfor %}
118118
</div>
119119
</div>

static/css/deadlines.css

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -162,29 +162,13 @@ footer {
162162
}
163163

164164
.conf-sub {
165-
color: rgb(36, 101, 191);
166-
background: rgba(236, 240, 241, 0.7);
167-
font-size: 13px;
168-
padding: 3px 5px;
169-
margin-right: 8px;
170165
cursor: pointer;
171-
font-weight: 300;
172166
}
173167

174168
.conf-sub::selection {
175169
background: #0097e6;
176170
}
177171

178-
.checkbox input[type="checkbox"]:checked:after {
179-
background-color: #0097e6;
180-
border-color: #0097e6;
181-
}
182-
183-
.checkbox input[type="checkbox"]:after,
184-
.checkbox input[type="checkbox"]:focus:after {
185-
border-color: #0097e6;
186-
}
187-
188172
#conf-sort-order-checkbox,
189173
#cfp-sort-order-checkbox {
190174
text-align: right;

0 commit comments

Comments
 (0)