# HG changeset patch # User Markus Kottlaender # Date 1553706762 -3600 # Node ID 61aacfd028120bd6b5a1de055869900bb4101d18 # Parent 5a46f7d6108dd5e9cc68f1a0afd334282852c27c client: added collapsible legend component for diagrams diff -r 5a46f7d6108d -r 61aacfd02812 client/src/assets/application.scss --- a/client/src/assets/application.scss Wed Mar 27 17:00:45 2019 +0100 +++ b/client/src/assets/application.scss Wed Mar 27 18:12:42 2019 +0100 @@ -105,6 +105,20 @@ font-weight: bold; } +.box-control { + display: inline-block; + margin-left: 3px; + color: #888; + padding: 3px 7px; + border-radius: 0.25rem; + cursor: pointer; + transition: background-color 0.3s, color 0.3s; + &:hover { + color: #666; + background-color: #eee; + } +} + .expanded { max-height: 999px; max-width: 999px; diff -r 5a46f7d6108d -r 61aacfd02812 client/src/components/DiagramLegend.vue --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/src/components/DiagramLegend.vue Wed Mar 27 18:12:42 2019 +0100 @@ -0,0 +1,58 @@ + + + + + diff -r 5a46f7d6108d -r 61aacfd02812 client/src/components/ui/UIBoxHeader.vue --- a/client/src/components/ui/UIBoxHeader.vue Wed Mar 27 17:00:45 2019 +0100 +++ b/client/src/components/ui/UIBoxHeader.vue Wed Mar 27 18:12:42 2019 +0100 @@ -9,21 +9,30 @@ /> {{ title }} -
+
- + - + - +
@@ -49,18 +58,6 @@ padding-left: 0.25rem .box-icon margin-right: 0.25rem - .box-controls - span - display: inline-block - margin-left: 3px - color: #888 - padding: 3px 7px - border-radius: 0.25rem - cursor: pointer - transition: background-color 0.3s, color 0.3s - &:hover - color: #666 - background-color: #eee