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

Side by Side Diff: static/scss/components/_searchform.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.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // This file is part of help.eyeo.com.
2 // Copyright (C) 2017 Eyeo GmbH
3 //
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
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
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
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
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/>.
16
17 #site-search
18 {
19 clear: both;
20 width: 100%;
juliandoucette 2017/07/19 18:03:36 NIT: I think this width is unnecessary?
ire 2017/07/21 10:23:29 Done.
21
22 &:not(.open)
juliandoucette 2017/07/19 18:03:35 NIT: I think it may be clearer if we just make dis
ire 2017/07/21 10:23:28 Done.
23 {
24 display: none;
25 }
26
27 @media (min-width: $tablet-breakpoint)
28 {
29 clear: none;
30 width: auto;
31
32 &:not(.open)
33 {
34 display: block;
35 }
36 }
37 }
38
39 .no-js #site-search
40 {
41 display: block;
42 }
43
44 // Product Website Link
45
46 #product-website-link
47 {
48 float: right;
49 }
50
51 #site-search.open #product-website-link,
52 .no-js #product-website-link
juliandoucette 2017/07/19 18:03:35 I think this is misleading as .no-js #product-webs
ire 2017/07/21 10:23:28 I don't understand. `.no-js #product-website-link`
juliandoucette 2017/07/24 21:08:08 Acknowledged. I don't know what I was thinking :/
53 {
54 float: none;
55
56 @media (min-width: $mobile-breakpoint)
57 {
58 float: right;
59 margin-top: 20px;
60 }
61
62 @media (min-width: $tablet-breakpoint)
63 {
64 margin-top: 0;
65 }
66 }
67
68 // Search Form
69
70 #searchform
71 {
72 display: inline-block;
73 position: relative;
74 overflow: hidden;
75 width: 100%;
76 height: $searchform-height;
77 border-radius: 3px;
78 color: $gray;
79 background: #fff;
80 line-height: 1;
81 vertical-align: middle;
juliandoucette 2017/07/19 18:03:36 Should every child of `.navbar` be vertical-align
ire 2017/07/21 10:23:28 No, considering my comment about .navbar also bein
82
83 @media (min-width: $mobile-breakpoint)
84 {
85 max-width: $searchform-width;
juliandoucette 2017/07/19 18:03:35 NIT/Suggest: $search-max-width
ire 2017/07/21 10:23:28 I'm not sure about this. On mobile, the search for
86 }
87 }
88
89 #site-search.open #searchform,
juliandoucette 2017/07/19 18:03:37 It seems like this should apply to a container of
ire 2017/07/21 10:23:27 The margin-top on both these elements, although th
90 .no-js #searchform
91 {
92 margin-top: 20px;
93
94 @media (min-width: $tablet-breakpoint)
95 {
96 margin-top: 0;
97 }
98 }
99
100 #searchform input
101 {
102 width: 100%;
103 height: $searchform-height - 2px;
104 padding-right: $searchform-height + 5px;
105 padding-left: 10px;
106 border: 0;
107 font-family: $primary-font;
108 font-size: $small-font;
109 }
110
111 #searchform button
112 {
113 position: absolute;
114 top: 0;
115 right: 0;
116 width: $searchform-height;
117 height: 100%;
118 border: 0;
119 background-color: transparent;
120 }
121
122 #searchform button img
123 {
124 height: 15px;
125 }
126
127 html[dir="rtl"]
128 {
129 #searchform input
130 {
131 padding-right: 10px;
132 padding-left: $searchform-height + 5px;
133 }
134
135 #searchform button
136 {
137 right: auto;
138 left: 0;
139 }
140
141 #product-website-link
142 {
143 float: left;
144 }
145 }
OLDNEW

Powered by Google App Engine
This is Rietveld