LEFT | RIGHT |
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; |
45 } | 22 } |
46 | 23 |
47 #site-search.open #product-website-link, | 24 html[dir="rtl"] #product-website-link |
| 25 { |
| 26 float: left; |
| 27 } |
| 28 |
| 29 #product-website-link img |
| 30 { |
| 31 height: 1em; |
| 32 margin-left: 0.5em; |
| 33 } |
| 34 |
| 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, |
48 .no-js #product-website-link | 42 .no-js #product-website-link |
49 { | 43 { |
50 float: none; | 44 float: none; |
51 | 45 |
52 @media (min-width: $mobile-breakpoint) | 46 @media (min-width: $phablet-breakpoint) |
53 { | 47 { |
54 float: right; | 48 float: right; |
55 margin-top: 20px; | 49 margin-top: 20px; |
56 } | 50 } |
57 | 51 |
58 @media (min-width: $tablet-breakpoint) | 52 @media (min-width: $tablet-breakpoint) |
59 { | 53 { |
60 margin-top: 0; | 54 margin-top: 0; |
61 } | 55 } |
62 } | 56 } |
63 | 57 |
64 // Search Form | 58 // Search Form |
65 | 59 |
66 #search-form | 60 #search-form |
67 { | 61 { |
68 display: inline-block; | 62 display: inline-block; |
69 position: relative; | 63 position: relative; |
70 overflow: hidden; | 64 overflow: hidden; |
71 width: 100%; | 65 width: 100%; |
72 height: $search-form-height; | 66 height: $search-form-height; |
73 border-radius: 3px; | 67 border-radius: 4px; |
74 color: $gray; | 68 color: $gray; |
75 background: #fff; | 69 background: #fff; |
76 line-height: 1; | 70 line-height: 1; |
77 vertical-align: middle; | 71 vertical-align: middle; |
78 | 72 |
79 @media (min-width: $mobile-breakpoint) | 73 @media (min-width: $phablet-breakpoint) |
80 { | 74 { |
81 max-width: $search-form-width; | 75 max-width: $search-form-width; |
82 } | 76 } |
83 } | 77 } |
84 | 78 |
85 #site-search.open #search-form, | 79 .navbar-collapse.open #search-form, |
86 .no-js #search-form | 80 .no-js #search-form |
87 { | 81 { |
88 margin-top: 20px; | 82 margin-top: 20px; |
89 | 83 |
90 @media (min-width: $tablet-breakpoint) | 84 @media (min-width: $tablet-breakpoint) |
91 { | 85 { |
92 margin-top: 0; | 86 margin-top: 0; |
93 } | 87 } |
94 } | 88 } |
95 | 89 |
96 #search-form input | 90 #search-form input |
97 { | 91 { |
98 width: 100%; | 92 width: 100%; |
99 height: $search-form-height - 2px; | 93 height: $search-form-height; |
100 padding-right: $search-form-height + 5px; | 94 padding-right: $search-form-height + 5px; |
101 padding-left: 10px; | 95 padding-left: 10px; |
102 border: 0; | 96 border: 0; |
103 font-family: $primary-font; | 97 font-family: $primary-font; |
104 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; |
105 } | 105 } |
106 | 106 |
107 #search-form button | 107 #search-form button |
108 { | 108 { |
109 position: absolute; | 109 position: absolute; |
110 top: 0; | 110 top: 0; |
111 right: 0; | 111 right: 0; |
112 width: $search-form-height; | 112 width: $search-form-height; |
113 height: 100%; | 113 height: 100%; |
114 border: 0; | 114 border: 0; |
115 background-color: transparent; | 115 background-color: transparent; |
| 116 font-size: 1em; |
| 117 } |
| 118 |
| 119 html[dir="rtl"] #search-form button |
| 120 { |
| 121 right: auto; |
| 122 left: 0; |
116 } | 123 } |
117 | 124 |
118 #search-form button img | 125 #search-form button img |
119 { | 126 { |
120 height: 15px; | 127 height: 1em; |
121 } | 128 } |
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 } | |
LEFT | RIGHT |