From 36225207c0fc50c3825e5bf5f938f66519c95039 Mon Sep 17 00:00:00 2001 From: Skylsmoi Date: Thu, 20 Apr 2017 17:35:12 +0200 Subject: [PATCH 1/2] force custom design to override rules from libraries --- static/server/taskbar.css | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/static/server/taskbar.css b/static/server/taskbar.css index 8071d26..abe6c75 100644 --- a/static/server/taskbar.css +++ b/static/server/taskbar.css @@ -23,6 +23,29 @@ float: right; } +.kiwix #kiwixtoolbar button, +.kiwix #kiwixtoolbar #kiwixsearchform input[type="submit"] { + margin-right: 5px; + padding: 0 6px; + border: 1px solid #999; + border-radius: 3px; + background-color: #ededed; + font-weight: normal; + cursor: pointer; +} +.kiwix #kiwixtoolbar a { + margin-bottom: 5px; +} +.kiwix #kiwixtoolbar a > button { + font-size: 16px; +} +.kiwix #kiwixtoolbar #kiwixsearchform input { + border: 1px solid #999; + border-radius: 3px; + background-color: #fff; + padding: 2px 2px 2px 3px; +} + /* Try to fix buggy stuff in jquery-ui autocomplete */ #ui-id-1, .ui-autocomplete { background: white !important; @@ -44,8 +67,8 @@ li.ui-state-focus { text-decoration: underline; } -/* the breakpoint "600px" is the width of the 3 btns "library", "home" and "randoml" */ -@media (max-width: 600px) { +/* the breakpoint "645px" is the width of the 3 btns "library", "home" and "randoml" */ +@media (max-width: 645px) { .kiwixsearch { float: none; margin-top: 5px; From 2634167f41f6e02f48f2cef5ef7c01601cd165ee Mon Sep 17 00:00:00 2001 From: Skylsmoi Date: Fri, 21 Apr 2017 15:00:57 +0200 Subject: [PATCH 2/2] fix taskbar design for iOS --- static/server/taskbar.css | 12 +++++++++--- static/server/taskbar.html.part | 24 +++++++++++++++--------- 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/static/server/taskbar.css b/static/server/taskbar.css index abe6c75..d584f0a 100644 --- a/static/server/taskbar.css +++ b/static/server/taskbar.css @@ -19,10 +19,16 @@ width: 20em; } -.kiwixsearch { +.kiwix .kiwix_centered { + max-width: 55.8em; + margin: 0 auto; +} +.kiwix .kiwix_button_wrapper { + float: left; +} +.kiwix .kiwix_searchform { float: right; } - .kiwix #kiwixtoolbar button, .kiwix #kiwixtoolbar #kiwixsearchform input[type="submit"] { margin-right: 5px; @@ -74,7 +80,7 @@ li.ui-state-focus { margin-top: 5px; } #kiwixsearchbox { - width: 65%; + width: 65%; } #kiwixsearchform input[type="submit"] { width: 30%; diff --git a/static/server/taskbar.html.part b/static/server/taskbar.html.part index 99af7ca..832e623 100644 --- a/static/server/taskbar.html.part +++ b/static/server/taskbar.html.part @@ -2,14 +2,20 @@ - - - -
- - - -
+
+
+ + + +
+
+
+ + + +
+
+
-
+