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

Delta Between Two Patch Sets: static/scss/components/_search-form.scss

Issue 29485575: Issue 5385 - Create Site Header Component for Help Center (Closed)
Left Patch Set: Addressed NITs Created Aug. 21, 2017, 3:21 p.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/base/_variables.scss ('k') | static/scss/layout/_header.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-search
18 {
19 display: none;
20 clear: both;
21
22 &.open
23 {
24 display: block;
25 }
26
27 @media (min-width: $tablet-breakpoint)
28 {
29 display: block;
30 clear: none;
31 width: auto;
32 }
33 }
34
35 .no-js #site-search
36 {
37 display: block;
38 }
39
40 // Product Website Link 17 // Product Website Link
41 18
42 #product-website-link 19 #product-website-link
43 { 20 {
44 float: right; 21 float: right;
22 }
23
24 html[dir="rtl"] #product-website-link
25 {
26 float: left;
45 } 27 }
46 28
47 #product-website-link img 29 #product-website-link img
48 { 30 {
49 height: 1em; 31 height: 1em;
50 margin-left: 0.5em; 32 margin-left: 0.5em;
51 } 33 }
52 34
53 #site-search.open #product-website-link, 35 html[dir="rtl"] #product-website-link img
36 {
37 margin-right: 0.5em;
38 margin-left: 0;
39 }
40
41 .navbar-collapse.open #product-website-link,
54 .no-js #product-website-link 42 .no-js #product-website-link
55 { 43 {
56 float: none; 44 float: none;
57 45
58 @media (min-width: $mobile-breakpoint) 46 @media (min-width: $phablet-breakpoint)
59 { 47 {
60 float: right; 48 float: right;
61 margin-top: 20px; 49 margin-top: 20px;
62 } 50 }
63 51
64 @media (min-width: $tablet-breakpoint) 52 @media (min-width: $tablet-breakpoint)
65 { 53 {
66 margin-top: 0; 54 margin-top: 0;
67 } 55 }
68 } 56 }
69 57
70 // Search Form 58 // Search Form
71 59
72 #search-form 60 #search-form
73 { 61 {
74 display: inline-block; 62 display: inline-block;
75 position: relative; 63 position: relative;
76 overflow: hidden; 64 overflow: hidden;
77 width: 100%; 65 width: 100%;
78 height: $search-form-height; 66 height: $search-form-height;
79 border-radius: 4px; 67 border-radius: 4px;
80 color: $gray; 68 color: $gray;
81 background: #fff; 69 background: #fff;
82 line-height: 1; 70 line-height: 1;
83 vertical-align: middle; 71 vertical-align: middle;
84 72
85 @media (min-width: $mobile-breakpoint) 73 @media (min-width: $phablet-breakpoint)
86 { 74 {
87 max-width: $search-form-width; 75 max-width: $search-form-width;
88 } 76 }
89 } 77 }
90 78
91 #site-search.open #search-form, 79 .navbar-collapse.open #search-form,
92 .no-js #search-form 80 .no-js #search-form
93 { 81 {
94 margin-top: 20px; 82 margin-top: 20px;
95 83
96 @media (min-width: $tablet-breakpoint) 84 @media (min-width: $tablet-breakpoint)
97 { 85 {
98 margin-top: 0; 86 margin-top: 0;
99 } 87 }
100 } 88 }
101 89
102 #search-form input 90 #search-form input
103 { 91 {
104 width: 100%; 92 width: 100%;
105 height: $search-form-height - 2px; 93 height: $search-form-height;
106 padding-right: $search-form-height + 5px; 94 padding-right: $search-form-height + 5px;
107 padding-left: 10px; 95 padding-left: 10px;
108 border: 0; 96 border: 0;
109 font-family: $primary-font; 97 font-family: $primary-font;
110 font-size: $small-font; 98 font-size: $small-font;
99 }
100
101 html[dir="rtl"] #search-form input
102 {
103 padding-right: 10px;
104 padding-left: $search-form-height + 5px;
111 } 105 }
112 106
113 #search-form button 107 #search-form button
114 { 108 {
115 position: absolute; 109 position: absolute;
116 top: 0; 110 top: 0;
117 right: 0; 111 right: 0;
118 width: $search-form-height; 112 width: $search-form-height;
119 height: 100%; 113 height: 100%;
120 border: 0; 114 border: 0;
121 background-color: transparent; 115 background-color: transparent;
122 font-size: 1em; 116 font-size: 1em;
123 } 117 }
124 118
119 html[dir="rtl"] #search-form button
120 {
121 right: auto;
122 left: 0;
123 }
124
125 #search-form button img 125 #search-form button img
126 { 126 {
127 height: 1em; 127 height: 1em;
128 } 128 }
129
130 html[dir="rtl"]
131 {
132 #search-form input
133 {
134 padding-right: 10px;
135 padding-left: $search-form-height + 5px;
136 }
137
138 #search-form button
139 {
140 right: auto;
141 left: 0;
142 }
143
144 #product-website-link
145 {
146 float: left;
147 }
148
149 #product-website-link img
150 {
151 margin-right: 0.5em;
152 margin-left: 0;
153 }
154 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld