From 46fa5a374b05d87a25fee81b55cc6f9d310b51ba Mon Sep 17 00:00:00 2001 From: Daniel Harte Date: Mon, 30 May 2016 08:18:09 +0000 Subject: [PATCH] gui: Improve layout of accordion titles GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3172 --- gui/dark/assets/css/theme.css | 9 ++++ gui/default/assets/css/overrides.css | 70 ++++++++++++++++------------ gui/default/assets/css/theme.css | 6 ++- gui/default/index.html | 24 ++++++---- 4 files changed, 68 insertions(+), 41 deletions(-) diff --git a/gui/dark/assets/css/theme.css b/gui/dark/assets/css/theme.css index e7bc82551..34f5efc35 100644 --- a/gui/dark/assets/css/theme.css +++ b/gui/dark/assets/css/theme.css @@ -77,6 +77,10 @@ li.hidden-xs:hover, .navbar-link:hover, .navbar-link:focus { background-color: #222 !important; } +.panel-progress { + background: #3498db; +} + .panel-footer { background-color: #111 !important; border-width: 0 !important; @@ -94,6 +98,11 @@ li.hidden-xs:hover, .navbar-link:hover, .navbar-link:focus { fill: #aaa !important; } +.panel-heading:hover, .panel-heading:focus { + text-decoration: none; +} + + /* buttons */ .btn { border-radius: 3px !important; diff --git a/gui/default/assets/css/overrides.css b/gui/default/assets/css/overrides.css index e0955bcad..5604419cf 100644 --- a/gui/default/assets/css/overrides.css +++ b/gui/default/assets/css/overrides.css @@ -33,29 +33,6 @@ ul+h5 { display: block; } -.panel-title { - position: relative; - text-overflow: ellipsis; - overflow: hidden; -} -a.panel-heading:hover { - text-decoration: none; -} - -identicon { - display: inline-block; - position: relative; - width: 1em; - height: 1em; - line-height: 1; - margin-right: 5px; -} - -.identicon { - width: 1em; - height: 1em; -} - .checkbox { margin-top: 0px; } @@ -73,13 +50,8 @@ identicon { word-wrap:break-word; } -.panel-heading .fa, .modal-header .fa { - margin-right: 10px; -} - -.panel-heading { - position: relative; - overflow: hidden; +.modal-header .fa { + margin-right: 15px; } .text-monospace { @@ -183,6 +155,44 @@ table.table-condensed td.no-overflow-ellipse { margin-left: 60px; } +/** + * Accordion Title bars + */ + +.panel-icon{ + float:left; + margin-right: 15px; +} + +.panel-heading { + display: block; + cursor: pointer; + position: relative; +} + +.panel-heading .panel-title-text { + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; +} + +.panel-heading .panel-status { + margin-left:15px; +} + +identicon { + display: inline-block; + position: relative; + width: 1em; + height: 1em; + line-height: 1; +} + +.identicon { + width: 1em; + height: 1em; +} + /** * Progress bars with centered text */ diff --git a/gui/default/assets/css/theme.css b/gui/default/assets/css/theme.css index 8a625ebf1..c2d041ff1 100644 --- a/gui/default/assets/css/theme.css +++ b/gui/default/assets/css/theme.css @@ -18,4 +18,8 @@ .li-column { background-color: rgb(236, 240, 241); border-radius: 3px; -} \ No newline at end of file +} + +.panel-heading:hover, .panel-heading:focus { + text-decoration: none; +} diff --git a/gui/default/index.html b/gui/default/index.html index dd53d9e0b..51008eb1c 100644 --- a/gui/default/index.html +++ b/gui/default/index.html @@ -227,14 +227,14 @@

Folders