Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: static/scss/layout/_header.scss

Issue 29485575: Issue 5385 - Create Site Header Component for Help Center (Closed)
Patch Set: Fix svgs, Implement search, Show searchbar for no-js Created July 17, 2017, 9:24 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: static/scss/layout/_header.scss
===================================================================
new file mode 100644
--- /dev/null
+++ b/static/scss/layout/_header.scss
@@ -0,0 +1,71 @@
+// This file is part of help.eyeo.com.
+// Copyright (C) 2017 Eyeo GmbH
+//
+// help.eyeo.com is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// help.eyeo.com is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with help.eyeo.com. If not, see <http://www.gnu.org/licenses/>.
+
+#site-header
+{
+ position: fixed;
juliandoucette 2017/07/19 18:03:37 Where is it specified that this header is fixed?
ire 2017/07/21 10:23:30 It wasn't specified, I guess I made an assumption
juliandoucette 2017/07/24 21:08:09 I meant in an additional class e.g. <nav class="n
ire 2017/08/10 16:54:43 Done.
+ top: 0;
+ left: 0;
+ width: 100%;
+ min-height: $site-header-height;
juliandoucette 2017/07/19 18:03:38 Is this height specified? It doesn't seem to line
ire 2017/07/21 10:23:29 It looks about right to me. Perhaps we should cons
juliandoucette 2017/07/24 21:08:09 Agreed.
+ font-size: $small-font;
juliandoucette 2017/07/19 18:03:38 This doesn't seem to apply to anything?
ire 2017/07/21 10:23:29 The font-size? It applies to all text in the heade
juliandoucette 2017/07/24 21:08:09 Nope... #product-website-link is inheriting it's f
+ line-height: 40px;
juliandoucette 2017/07/19 18:03:38 It seems like this is supposed to match the height
ire 2017/07/21 10:23:30 Done.
+}
+
+.site-title
+{
+ float: left;
+ margin-right: 50px;
juliandoucette 2017/07/19 18:03:37 It seems like this should correspond to some sort
+}
+
+.site-title img
+{
+ height: 25px;
juliandoucette 2017/07/19 18:03:37 Is it just me, or does this look bigger (less spac
ire 2017/07/21 10:23:29 This also looks pretty accurate to be but will ask
juliandoucette 2017/07/24 21:08:09 Agreed.
+ vertical-align: middle;
+}
+
+#toggle-searchform
+{
+ float: right;
+ line-height: 40px;
+ cursor: pointer;
+
+ img
+ {
+ width: 15px;
+ vertical-align: middle;
+ }
+}
+
+html[dir="rtl"]
juliandoucette 2017/07/19 18:03:38 I suggest separating rtl styles ~like we separate
ire 2017/07/21 10:23:30 This is what I've done already? Or is the issue wi
juliandoucette 2017/07/24 21:08:09 In this specific case I'm suggesting that you move
ire 2017/08/10 16:54:43 Done.
+{
+ .site-title
+ {
+ float: right;
+ margin-right: 0;
+ margin-left: 50px;
+ }
+
+ #toggle-searchform
+ {
+ float: left;
+ }
+}
+
+.no-js #toggle-searchform
+{
+ display: none;
+}

Powered by Google App Engine
This is Rietveld