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: Created July 10, 2017, 4:08 p.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%;
21
22 &:not(.open)
juliandoucette 2017/07/14 14:11:29 http://caniuse.com/#feat=css-sel3
ire 2017/07/17 09:25:54 The only issue is IE8. So this will also be depend
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 // Product Website Link
40
41 #product-website-link
42 {
43 float: right;
44 }
45
46 #site-search.open #product-website-link
47 {
48 float: none;
49
50 @media (min-width: $mobile-breakpoint)
51 {
52 float: right;
53 margin-top: 20px;
54 }
55
56 @media (min-width: $tablet-breakpoint)
57 {
58 margin-top: 0;
59 }
60 }
61
62 // Search Form
63
64 #searchform
65 {
66 display: inline-block;
67 position: relative;
68 overflow: hidden;
69 width: 100%;
70 height: $searchform-height;
71 border-radius: 3px;
72 color: $gray;
73 background: #fff;
74 line-height: 1;
75 vertical-align: middle;
76
77 @media (min-width: $mobile-breakpoint)
78 {
79 max-width: $searchform-width;
80 }
81 }
82
83 #site-search.open #searchform
84 {
85 margin-top: 20px;
86
87 @media (min-width: $tablet-breakpoint)
88 {
89 margin-top: 0;
90 }
91 }
92
93 #searchform input
94 {
95 width: 100%;
96 height: $searchform-height - 2px;
97 padding-right: $searchform-height + 5px;
98 padding-left: 10px;
99 border: 0;
100 font-family: $primary-font;
101 font-size: $small-font;
102 }
103
104 #searchform button
105 {
106 position: absolute;
107 top: 0;
108 right: 0;
109 width: $searchform-height;
110 height: 100%;
111 border: 0;
112 background-color: transparent;
113 }
114
115 #searchform button img
116 {
117 height: 15px;
118 }
119
120 html[dir="rtl"]
121 {
122 #searchform input
123 {
124 padding-right: 10px;
125 padding-left: $searchform-height + 5px;
126 }
127
128 #searchform button
129 {
130 right: auto;
131 left: 0;
132 }
133
134 #product-website-link
135 {
136 float: left;
137 }
138 }
OLDNEW

Powered by Google App Engine
This is Rietveld