summaryrefslogtreecommitdiff
path: root/htdocs
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2014-09-09 14:22:25 +0100
committerStephen Finucane <stephen.finucane@intel.com>2015-11-05 03:51:32 +0000
commit6d854ab67ac01d62cbb29d299c5cfc6c4ac26083 (patch)
treee7570936c1f59df660c1d49d51d19f817e7e81bd /htdocs
parentc3598af342223f6384c9873e533277bc76f77119 (diff)
downloadpatchwork-6d854ab67ac01d62cbb29d299c5cfc6c4ac26083.tar
patchwork-6d854ab67ac01d62cbb29d299c5cfc6c4ac26083.tar.gz
templates: Redesign the title bar
Let's use HTML5 <nav> and bootstrap navigation facilities for this. Among the nice things that bootstrap brings to the table, the navigation bar is now mobile friendly: it will collapse when either, being displayed on a mobile device or when the screen isn't wide enough, to show the various items in a togglable menu. This can be tested by resizing the browser to have a width < 768px. This commit is just about layout changes, keeping the exact same information displayed on the page. This is based on work from Belén Barros Peña, but transposed to bootstrap. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Acked-by: Stephen Finucane <stephen.finucane@intel.com>
Diffstat (limited to 'htdocs')
-rw-r--r--htdocs/css/style.css41
-rw-r--r--htdocs/images/title-background.pngbin246 -> 0 bytes
2 files changed, 18 insertions, 23 deletions
diff --git a/htdocs/css/style.css b/htdocs/css/style.css
index 16a66d4..2d8a6b2 100644
--- a/htdocs/css/style.css
+++ b/htdocs/css/style.css
@@ -12,35 +12,30 @@ a:hover {
top: 17em;
}
+.navbar-patchwork {
+ background-color: #0A0A47;
+ border-color: #e7e7e7;
+ margin-bottom: 0;
+ border-radius: 0;
+ color: #fff;
+}
-#title {
- background: url('/static/images/title-background.png') top left repeat-x;
- background-color: #786fb4;
- margin: 0px;
- padding-top: 0.1em;
- padding-bottom: 0.0em;
- padding-left: 2em;
+.navbar-patchwork .navbar-toggle {
+ border-color: #ddd;
}
-#title h1, #title h1 a {
- font-size: 16pt;
- color: white;
- margin-bottom: 0;
+.navbar-patchwork .nav > li > a:hover,
+.navbar-patchwork .nav > li > a:focus {
+ text-decoration: none;
+ background-color: #2E2E70;
}
-#auth {
- border-left: thin solid white;
- padding-top: 0em;
- padding-left: 1.5em;
- padding-right: 1.5em;
- padding-top: 0.5em;
- padding-bottom: 0.5em;
- font-size: 90%;
- float: right;
- color: white;
+.navbar-patchwork .navbar-toggle .icon-bar {
+ background-color: #eee;
}
-#auth a {
- color: white;
+
+.navbar-patchwork a {
+ color: #fff;
}
#nav {
diff --git a/htdocs/images/title-background.png b/htdocs/images/title-background.png
deleted file mode 100644
index d850ad7..0000000
--- a/htdocs/images/title-background.png
+++ /dev/null
Binary files differ