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

Unified Diff: static/scss/components/_search-form.scss

Issue 29485575: Issue 5385 - Create Site Header Component for Help Center (Closed)
Patch Set: Change mobile to tablet-breakpoint, add polyfill for classList, re-order rtl styles Created Sept. 1, 2017, 10:53 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « static/scss/base/_variables.scss ('k') | static/scss/content/_typography.scss » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: static/scss/components/_search-form.scss
===================================================================
new file mode 100644
--- /dev/null
+++ b/static/scss/components/_search-form.scss
@@ -0,0 +1,128 @@
+// This file is part of help.eyeo.com.
+// Copyright (C) 2017 Eyeo GmbH
+//
+// help.eyeo.com is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// help.eyeo.com is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with help.eyeo.com. If not, see <http://www.gnu.org/licenses/>.
+
+// Product Website Link
+
+#product-website-link
+{
+ float: right;
+}
+
+html[dir="rtl"] #product-website-link
+{
+ float: left;
+}
+
+#product-website-link img
+{
+ height: 1em;
+ margin-left: 0.5em;
+}
+
+html[dir="rtl"] #product-website-link img
+{
+ margin-right: 0.5em;
+ margin-left: 0;
+}
+
+.navbar-collapse.open #product-website-link,
+.no-js #product-website-link
+{
+ float: none;
+
+ @media (min-width: $phablet-breakpoint)
+ {
+ float: right;
+ margin-top: 20px;
+ }
+
+ @media (min-width: $tablet-breakpoint)
+ {
+ margin-top: 0;
+ }
+}
+
+// Search Form
+
+#search-form
+{
+ display: inline-block;
+ position: relative;
+ overflow: hidden;
+ width: 100%;
+ height: $search-form-height;
+ border-radius: 4px;
+ color: $gray;
+ background: #fff;
+ line-height: 1;
+ vertical-align: middle;
+
+ @media (min-width: $phablet-breakpoint)
+ {
+ max-width: $search-form-width;
+ }
+}
+
+.navbar-collapse.open #search-form,
+.no-js #search-form
+{
+ margin-top: 20px;
+
+ @media (min-width: $tablet-breakpoint)
+ {
+ margin-top: 0;
+ }
+}
+
+#search-form input
+{
+ width: 100%;
+ height: $search-form-height;
+ padding-right: $search-form-height + 5px;
+ padding-left: 10px;
+ border: 0;
+ font-family: $primary-font;
+ font-size: $small-font;
+}
+
+html[dir="rtl"] #search-form input
+{
+ padding-right: 10px;
+ padding-left: $search-form-height + 5px;
+}
+
+#search-form button
+{
+ position: absolute;
+ top: 0;
+ right: 0;
+ width: $search-form-height;
+ height: 100%;
+ border: 0;
+ background-color: transparent;
+ font-size: 1em;
+}
+
+html[dir="rtl"] #search-form button
+{
+ right: auto;
+ left: 0;
+}
+
+#search-form button img
+{
+ height: 1em;
+}
« 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