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

Powered by Google App Engine
This is Rietveld