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

Delta Between Two Patch Sets: static/scss/layout/_header.scss

Issue 29485575: Issue 5385 - Create Site Header Component for Help Center (Closed)
Left Patch Set: Fix svgs, Implement search, Show searchbar for no-js Created July 17, 2017, 9:24 a.m.
Right Patch Set: Include site variables before website-defaults Created Sept. 1, 2017, 12:11 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « static/scss/components/_search-form.scss ('k') | static/scss/layout/_navbar.scss » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // This file is part of help.eyeo.com. 1 // This file is part of help.eyeo.com.
2 // Copyright (C) 2017 Eyeo GmbH 2 // Copyright (C) 2017 Eyeo GmbH
3 // 3 //
4 // help.eyeo.com is free software: you can redistribute it and/or modify 4 // help.eyeo.com is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by 5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or 6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version. 7 // (at your option) any later version.
8 // 8 //
9 // help.eyeo.com is distributed in the hope that it will be useful, 9 // help.eyeo.com is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details. 12 // GNU General Public License for more details.
13 // 13 //
14 // You should have received a copy of the GNU General Public License 14 // You should have received a copy of the GNU General Public License
15 // along with help.eyeo.com. If not, see <http://www.gnu.org/licenses/>. 15 // along with help.eyeo.com. If not, see <http://www.gnu.org/licenses/>.
16 16
17 #site-header 17 #site-header
18 { 18 {
19 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.
20 top: 0;
21 left: 0;
22 width: 100%;
23 min-height: $site-header-height; 19 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.
24 font-size: $small-font; 20 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
25 line-height: 40px; 21 line-height: $site-header-content-line-height;
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.
26 } 22 }
27 23
28 .site-title 24 #site-title
29 { 25 {
30 float: left; 26 float: left;
31 margin-right: 50px; 27 margin-right: $xl;
juliandoucette 2017/07/19 18:03:37 It seems like this should correspond to some sort
32 } 28 }
33 29
34 .site-title img 30 html[dir="rtl"] #site-title
35 { 31 {
36 height: 25px; 32 float: right;
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.
33 margin-right: 0;
34 margin-left: $xl;
35 }
36
37 #site-title img
38 {
39 height: $lg;
37 vertical-align: middle; 40 vertical-align: middle;
38 } 41 }
39 42
40 #toggle-searchform 43 .toggle-navbar-collapse
41 { 44 {
45 width: $site-header-content-line-height;
42 float: right; 46 float: right;
43 line-height: 40px; 47 line-height: $site-header-content-line-height;
48 text-align: right;
44 cursor: pointer; 49 cursor: pointer;
45 50
46 img 51 img
47 { 52 {
48 width: 15px; 53 width: $md;
49 vertical-align: middle; 54 vertical-align: middle;
50 } 55 }
51 } 56 }
52 57
53 html[dir="rtl"] 58 html[dir="rtl"] .toggle-navbar-collapse
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.
54 { 59 {
55 .site-title 60 float: left;
56 {
57 float: right;
58 margin-right: 0;
59 margin-left: 50px;
60 }
61
62 #toggle-searchform
63 {
64 float: left;
65 }
66 } 61 }
67 62
68 .no-js #toggle-searchform 63 .no-js .toggle-navbar-collapse
69 { 64 {
70 display: none; 65 display: none;
71 } 66 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld