From 7c1295bf5dc8f72f4e0e43af72fe67847faadf6f Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 13 Jun 2020 15:26:41 +0200 Subject: Add collapse button and store collapse state of each node as cookies. --- src/ws/munia.css | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'src/ws/munia.css') diff --git a/src/ws/munia.css b/src/ws/munia.css index 3a94e85..8eeebba 100644 --- a/src/ws/munia.css +++ b/src/ws/munia.css @@ -29,7 +29,10 @@ body border-radius: 3px; padding: 6px; margin: 10px; - max-width: 300px; +/* max-width: 800px;*/ + margin-left: auto; + margin-right: auto; + overflow: hidden; } .node .id @@ -73,12 +76,28 @@ body cursor: pointer; } +.node .collapse_button +{ + float: right; + display: inline-box; + width: 1em; + height: 1em; + font-size: 0.5em; + vertical-align: text-center; + text-align: center; + border: solid green 2px; + cursor: pointer; +} + .board { - width: *; +/* width: *; */ min-height: 100px; + width: 500px; padding: 2px; margin: 2px; + display: inline-box; + float:left; background: -moz-linear-gradient(left center, rgb(0,0,0), rgb(79,79,79), rgb(21,21,21)); background: -webkit-gradient(linear, left top, right top, @@ -91,6 +110,7 @@ body .log { + clear: both; height: 20em; font-family: monospace; font-size: 1em; -- cgit v1.2.3