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

Side by Side Diff: static/scss/components/_search-form.scss

Issue 29485575: Issue 5385 - Create Site Header Component for Help Center (Closed)
Patch Set: Addressed smaller comments Created July 21, 2017, 10:19 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
« no previous file with comments | « static/scss/base/_variables.scss ('k') | static/scss/content/_typography.scss » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
41
42 #product-website-link
43 {
44 float: right;
45 }
46
47 #site-search.open #product-website-link,
48 .no-js #product-website-link
49 {
50 float: none;
51
52 @media (min-width: $mobile-breakpoint)
53 {
54 float: right;
55 margin-top: 20px;
56 }
57
58 @media (min-width: $tablet-breakpoint)
59 {
60 margin-top: 0;
61 }
62 }
63
64 // Search Form
65
66 #search-form
67 {
68 display: inline-block;
69 position: relative;
70 overflow: hidden;
71 width: 100%;
72 height: $search-form-height;
73 border-radius: 3px;
74 color: $gray;
75 background: #fff;
76 line-height: 1;
77 vertical-align: middle;
78
79 @media (min-width: $mobile-breakpoint)
80 {
81 max-width: $search-form-width;
82 }
83 }
84
85 #site-search.open #search-form,
86 .no-js #search-form
87 {
88 margin-top: 20px;
89
90 @media (min-width: $tablet-breakpoint)
91 {
92 margin-top: 0;
93 }
94 }
95
96 #search-form input
97 {
98 width: 100%;
99 height: $search-form-height - 2px;
100 padding-right: $search-form-height + 5px;
101 padding-left: 10px;
102 border: 0;
103 font-family: $primary-font;
104 font-size: $small-font;
105 }
106
107 #search-form button
108 {
109 position: absolute;
110 top: 0;
111 right: 0;
112 width: $search-form-height;
113 height: 100%;
114 border: 0;
115 background-color: transparent;
116 }
117
118 #search-form button img
119 {
120 height: 15px;
121 }
122
123 html[dir="rtl"]
124 {
125 #search-form input
126 {
127 padding-right: 10px;
128 padding-left: $search-form-height + 5px;
129 }
130
131 #search-form button
132 {
133 right: auto;
134 left: 0;
135 }
136
137 #product-website-link
138 {
139 float: left;
140 }
141 }
OLDNEW
« no previous file with comments | « static/scss/base/_variables.scss ('k') | static/scss/content/_typography.scss » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld