 Issue 29485575:
  Issue 5385 - Create Site Header Component for Help Center  (Closed)
    
  
    Issue 29485575:
  Issue 5385 - Create Site Header Component for Help Center  (Closed) 
  | Left: | ||
| Right: | 
| OLD | NEW | 
|---|---|
| (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 // Product Website Link | |
| 18 | |
| 19 #product-website-link | |
| 20 { | |
| 21 float: right; | |
| 22 } | |
| 23 | |
| 24 #product-website-link img | |
| 25 { | |
| 26 height: 1em; | |
| 27 margin-left: 0.5em; | |
| 28 } | |
| 29 | |
| 30 .navbar-collapse.open #product-website-link, | |
| 31 .no-js #product-website-link | |
| 32 { | |
| 33 float: none; | |
| 34 | |
| 35 @media (min-width: $mobile-breakpoint) | |
| 36 { | |
| 37 float: right; | |
| 38 margin-top: 20px; | |
| 39 } | |
| 40 | |
| 41 @media (min-width: $tablet-breakpoint) | |
| 42 { | |
| 43 margin-top: 0; | |
| 44 } | |
| 45 } | |
| 46 | |
| 47 // Search Form | |
| 48 | |
| 49 #search-form | |
| 50 { | |
| 51 display: inline-block; | |
| 52 position: relative; | |
| 53 overflow: hidden; | |
| 54 width: 100%; | |
| 55 height: $search-form-height; | |
| 56 border-radius: 4px; | |
| 57 color: $gray; | |
| 58 background: #fff; | |
| 59 line-height: 1; | |
| 60 vertical-align: middle; | |
| 61 | |
| 62 @media (min-width: $mobile-breakpoint) | |
| 63 { | |
| 64 max-width: $search-form-width; | |
| 65 } | |
| 66 } | |
| 67 | |
| 68 .navbar-collapse.open #search-form, | |
| 69 .no-js #search-form | |
| 70 { | |
| 71 margin-top: 20px; | |
| 72 | |
| 73 @media (min-width: $tablet-breakpoint) | |
| 74 { | |
| 75 margin-top: 0; | |
| 76 } | |
| 77 } | |
| 78 | |
| 79 #search-form input | |
| 80 { | |
| 81 width: 100%; | |
| 82 height: $search-form-height; | |
| 83 padding-right: $search-form-height + 5px; | |
| 84 padding-left: 10px; | |
| 85 border: 0; | |
| 86 font-family: $primary-font; | |
| 87 font-size: $small-font; | |
| 88 } | |
| 89 | |
| 90 #search-form button | |
| 91 { | |
| 92 position: absolute; | |
| 93 top: 0; | |
| 94 right: 0; | |
| 95 width: $search-form-height; | |
| 96 height: 100%; | |
| 97 border: 0; | |
| 98 background-color: transparent; | |
| 99 font-size: 1em; | |
| 100 } | |
| 101 | |
| 102 #search-form button img | |
| 103 { | |
| 104 height: 1em; | |
| 105 } | |
| 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 } | |
| OLD | NEW |