From ef0a6ce5ff5e1f32f819b6ebab07de01427e0179 Mon Sep 17 00:00:00 2001 From: 0ip Date: Sat, 9 Feb 2013 17:39:08 +0100 Subject: [PATCH 01/11] Remove top-border --- src/static/css/admin.css | 7 ------- src/templates/admin/index.html | 1 - src/templates/admin/plugins-info.html | 1 - src/templates/admin/plugins.html | 1 - src/templates/admin/settings.html | 2 -- 5 files changed, 12 deletions(-) diff --git a/src/static/css/admin.css b/src/static/css/admin.css index 9ea02744..db4def2d 100644 --- a/src/static/css/admin.css +++ b/src/static/css/admin.css @@ -9,13 +9,6 @@ body { background: -o-radial-gradient(circle,#aaa,#eee 60%) center fixed; } -#topborder { - border-top: 8px solid rgba(51, 51, 51, 0.8); - position: fixed; - top: 0px; - width: 100%; -} - div.menu { background: none repeat scroll 0% 0% rgba(255, 255, 255, 0.75); box-shadow: 0px -4px 4px rgba(0, 0, 0, 0.3); diff --git a/src/templates/admin/index.html b/src/templates/admin/index.html index 0e5c16ed..f8ec0e89 100644 --- a/src/templates/admin/index.html +++ b/src/templates/admin/index.html @@ -19,6 +19,5 @@ -
diff --git a/src/templates/admin/plugins-info.html b/src/templates/admin/plugins-info.html index 648e7d6d..8152209c 100644 --- a/src/templates/admin/plugins-info.html +++ b/src/templates/admin/plugins-info.html @@ -38,6 +38,5 @@ -
diff --git a/src/templates/admin/plugins.html b/src/templates/admin/plugins.html index bfe535e7..2306eff6 100644 --- a/src/templates/admin/plugins.html +++ b/src/templates/admin/plugins.html @@ -92,6 +92,5 @@ -
diff --git a/src/templates/admin/settings.html b/src/templates/admin/settings.html index 0fb1c9ae..650c0bef 100644 --- a/src/templates/admin/settings.html +++ b/src/templates/admin/settings.html @@ -42,7 +42,5 @@
- -
From dd29096ad71e70c3b2c15d807a4ff6872d572320 Mon Sep 17 00:00:00 2001 From: 0ip Date: Sat, 9 Feb 2013 17:47:52 +0100 Subject: [PATCH 02/11] Normalize view-ports --- src/templates/admin/index.html | 2 +- src/templates/admin/plugins-info.html | 2 +- src/templates/admin/plugins.html | 2 +- src/templates/admin/settings.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/templates/admin/index.html b/src/templates/admin/index.html index f8ec0e89..8412ca1c 100644 --- a/src/templates/admin/index.html +++ b/src/templates/admin/index.html @@ -1,7 +1,7 @@ Admin Dashboard - Etherpad lite - + diff --git a/src/templates/admin/plugins-info.html b/src/templates/admin/plugins-info.html index 8152209c..b833063d 100644 --- a/src/templates/admin/plugins-info.html +++ b/src/templates/admin/plugins-info.html @@ -5,7 +5,7 @@ Plugin information - Etherpad lite - + diff --git a/src/templates/admin/plugins.html b/src/templates/admin/plugins.html index 2306eff6..27cd9ca5 100644 --- a/src/templates/admin/plugins.html +++ b/src/templates/admin/plugins.html @@ -1,7 +1,7 @@ Plugin manager - Etherpad lite - + diff --git a/src/templates/admin/settings.html b/src/templates/admin/settings.html index 650c0bef..9c195df5 100644 --- a/src/templates/admin/settings.html +++ b/src/templates/admin/settings.html @@ -1,7 +1,7 @@ Settings - Etherpad lite - + From b04e99bddc9384d3683075a39309fab817e16065 Mon Sep 17 00:00:00 2001 From: 0ip Date: Sat, 9 Feb 2013 17:54:39 +0100 Subject: [PATCH 03/11] Tweak admin-UI --- src/static/css/admin.css | 141 ++++++++++++++++++++++++++++++--------- 1 file changed, 108 insertions(+), 33 deletions(-) diff --git a/src/static/css/admin.css b/src/static/css/admin.css index db4def2d..c35aca31 100644 --- a/src/static/css/admin.css +++ b/src/static/css/admin.css @@ -1,59 +1,59 @@ +html, body { + height: 100%; + box-sizing: border-box; +} + body { margin: 0; color: #333; font: 14px helvetica, sans-serif; - background: #ddd; - background: -webkit-radial-gradient(circle,#aaa,#eee 60%) center fixed; - background: -moz-radial-gradient(circle,#aaa,#eee 60%) center fixed; - background: -ms-radial-gradient(circle,#aaa,#eee 60%) center fixed; - background: -o-radial-gradient(circle,#aaa,#eee 60%) center fixed; + background: #eee; } div.menu { - background: none repeat scroll 0% 0% rgba(255, 255, 255, 0.75); - box-shadow: 0px -4px 4px rgba(0, 0, 0, 0.3); - display: block; - float: left; - height: 100%; - padding: 15px; - position: fixed; - width: 220px; + height: 100%; + padding: 15px; + width: 220px; + border-right: 1px solid #ccc; + position: fixed; +} + +div.menu ul { + padding: 0; } div.menu li { list-style: none; margin-left: 3px; - line-height: 1.6 + line-height: 3; + border-top: 1px solid #ccc; +} + +div.menu li:last-child { + border-bottom: 1px solid #ccc; } div.innerwrapper { - display: block; - float: right; - opacity: 0.9; padding: 15px; - max-width: 860px; - border-radius: 0 0 7px 7px; - margin-left:250px; - min-width:400px; - width:100%; + padding-left: 265px; } #wrapper { background: none repeat scroll 0px 0px #FFFFFF; - box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.3); + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2); margin: auto; max-width: 1150px; min-height: 100%; - overflow: auto; - padding-left: 15px; - opacity: .9; } + h1 { font-size: 29px; } + h2 { font-size: 24px; } + .separator { margin: 10px 0; height: 1px; @@ -63,37 +63,45 @@ h2 { background: -ms-linear-gradient(left, #fff, #aaa 20%, #aaa 80%, #fff); background: -o-linear-gradient(left, #fff, #aaa 20%, #aaa 80%, #fff); } + form { margin-bottom: 0; } + #inner { width: 300px; margin: 0 auto; } + input { font-weight: bold; font-size: 15px; } + input[type="button"] { padding: 4px 6px; margin: 0; } + table input[type="button"] { float: right; width: 100px; } + input[type="text"] { border-radius: 3px; box-sizing: border-box; -moz-box-sizing: border-box; padding: 10px; - *padding: 0; /* IE7 hack */ + *padding: 0; + /* IE7 hack */ width: 100%; outline: none; border: 1px solid #ddd; margin: 0 0 5px 0; max-width: 500px; } + table { border: 1px solid #ddd; border-radius: 3px; @@ -101,34 +109,101 @@ table { width: 100%; margin: 20px 0; } + table thead tr { background: #eee; } + td, th { padding: 5px; } + .template { display: none; } + #progress { position: absolute; bottom: 50px; } + .settings { - margin-top:10px; - width:100%; - min-height:600px; + outline: none; + width: 100%; + min-height: 500px; } -#response{ - display:inline; + +#response { + display: inline; } a:link, a:visited, a:hover, a:focus { color: #333333; text-decoration: none; - border-bottom: #333333 1px dotted; } a:focus, a:hover { border-bottom: #333333 1px solid; } + +@media (max-width: 720px) { + div.innerwrapper { + padding: 0 15px 15px 15px; + } + + div.menu { + padding: 1px 15px 0 15px; + position: static; + height: auto; + border-right: none; + width: auto; + } + + table { + border: none; + } + + table, thead, tbody, td, tr { + display: block; + } + + thead tr { + display: none; + } + + tr { + border: 1px solid #ccc; + margin-bottom: 5px; + border-radius: 3px; + } + + td { + border: none; + border-bottom: 1px solid #eee; + position: relative; + padding-left: 50%; + white-space: normal; + text-align: left; + } + + td.name { + word-wrap: break-word; + } + + td:before { + padding-right: 10px; + white-space: nowrap; + float: left; + margin-left: -100%; + font-weight: bold; + content: attr(data-label); + } + + td:last-child { + border-bottom: none; + } + + table input[type="button"] { + float: none; + } +} \ No newline at end of file From 34fd7726bda0df6cc84774558e26b58d60a25fcd Mon Sep 17 00:00:00 2001 From: 0ip Date: Sat, 9 Feb 2013 17:55:11 +0100 Subject: [PATCH 04/11] Fix :admin/index links --- src/templates/admin/index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/templates/admin/index.html b/src/templates/admin/index.html index 8412ca1c..77d18263 100644 --- a/src/templates/admin/index.html +++ b/src/templates/admin/index.html @@ -12,9 +12,9 @@

Etherpad lite

From d2409288be75b3027de3210be92dc8e5f0c52ef1 Mon Sep 17 00:00:00 2001 From: 0ip Date: Sat, 9 Feb 2013 20:15:41 +0100 Subject: [PATCH 05/11] Add data-title for responsive tables --- src/templates/admin/plugins.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/templates/admin/plugins.html b/src/templates/admin/plugins.html index 27cd9ca5..92ec0a16 100644 --- a/src/templates/admin/plugins.html +++ b/src/templates/admin/plugins.html @@ -43,9 +43,9 @@ - - - + + + @@ -74,9 +74,9 @@ - - - + + + From 52ff28dea03a342c13d408d1c588ccdc38b56b68 Mon Sep 17 00:00:00 2001 From: 0ip Date: Sat, 9 Feb 2013 20:34:12 +0100 Subject: [PATCH 06/11] Fix data attribute --- src/templates/admin/plugins.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/templates/admin/plugins.html b/src/templates/admin/plugins.html index 92ec0a16..51cebafb 100644 --- a/src/templates/admin/plugins.html +++ b/src/templates/admin/plugins.html @@ -43,9 +43,9 @@ - - - + + + @@ -74,9 +74,9 @@ - - - + + + From 21e1422be6632f2cf407dba916f05a30110dc532 Mon Sep 17 00:00:00 2001 From: 0ip Date: Sat, 9 Feb 2013 20:42:47 +0100 Subject: [PATCH 07/11] Drop 'lite' occurrences in /admin/* --- src/templates/admin/index.html | 4 ++-- src/templates/admin/plugins-info.html | 4 ++-- src/templates/admin/plugins.html | 4 ++-- src/templates/admin/settings.html | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/templates/admin/index.html b/src/templates/admin/index.html index 77d18263..f1a74afa 100644 --- a/src/templates/admin/index.html +++ b/src/templates/admin/index.html @@ -1,6 +1,6 @@ - Admin Dashboard - Etherpad lite + Admin Dashboard - Etherpad @@ -9,7 +9,7 @@