diff --git a/src/agenda_culturel/static/css/style.css b/src/agenda_culturel/static/css/style.css index a3ff7c4..741d677 100644 --- a/src/agenda_culturel/static/css/style.css +++ b/src/agenda_culturel/static/css/style.css @@ -19,7 +19,7 @@ body { color: #000; } -.cat.selected, .mode.selected { +span.cat, span.mode { cursor: default; } @@ -36,3 +36,21 @@ a.mode:hover { background-color: #444; color: #fff; } + +.cat a.close { + text-decoration: none; + height: 1.6em; + width: 1.6em; + display: inline-block; + line-height: 1.6em; + background: #eee; + color: #000; + border-radius: 0.8em; + text-align: center; + font-weight: bold; + margin-left: 0.4em; + margin-right: -0.8em; +} +.cat a.close:hover { + background: #fff; +} \ No newline at end of file diff --git a/src/agenda_culturel/templates/agenda_culturel/page-events.html b/src/agenda_culturel/templates/agenda_culturel/page-events.html index 0a80023..a670a74 100644 --- a/src/agenda_culturel/templates/agenda_culturel/page-events.html +++ b/src/agenda_culturel/templates/agenda_culturel/page-events.html @@ -24,9 +24,9 @@ diff --git a/src/agenda_culturel/templatetags/cat_extra.py b/src/agenda_culturel/templatetags/cat_extra.py index 37c4492..37e35e9 100644 --- a/src/agenda_culturel/templatetags/cat_extra.py +++ b/src/agenda_culturel/templatetags/cat_extra.py @@ -68,13 +68,17 @@ def css_categories(): result += "}" result += "a." + c.css_class() + ":hover {" - result += background_color_adjust_color(adjust_lightness_saturation(c.color, 0.1, 1.2)) + result += background_color_adjust_color(adjust_lightness_saturation(c.color, 0.2, 1.2)) result += "}" result += "." + c.css_class() + ".selected {" result += background_color_adjust_color(c.color) result += "}" + result += "span." + c.css_class() + ".selected:hover {" + result += background_color_adjust_color(adjust_lightness_saturation(c.color, 0.02, 1.0)) + result += "}" + result += '' return mark_safe(result)