github.com/rahart/packer@v0.12.2-0.20161229105310-282bb6ad370f/website/source/assets/stylesheets/hashicorp-shared/_hashicorp-header.scss (about) 1 // 2 // Hashicorp header 3 // - Shared throughout projects 4 // - Edits should not be made here 5 // -------------------------------------------------- 6 7 #header{ 8 position: relative; 9 margin-bottom: 0; 10 } 11 12 .navigation { 13 color: black; 14 text-rendering: optimizeLegibility; 15 transition: all 1s ease; 16 17 &.white{ 18 .navbar-brand { 19 .logo { 20 color: white; 21 } 22 } 23 24 .main-links, 25 .external-links { 26 li > a { 27 &:hover{ 28 opacity: 1; 29 } 30 } 31 } 32 } 33 34 &.black{ 35 .navbar-brand { 36 .logo { 37 color: black; 38 } 39 } 40 41 .main-links, 42 .external-links { 43 li > a { 44 color: black; 45 } 46 } 47 } 48 49 .navbar-toggle{ 50 height: $header-height; 51 margin: 0; 52 border-radius: 0; 53 .icon-bar{ 54 border: 1px solid $black; 55 border-radius: 0; 56 } 57 } 58 59 .external-links { 60 &.white{ 61 svg path{ 62 fill: $white; 63 } 64 } 65 66 li { 67 position: relative; 68 69 svg path{ 70 @include transition( all 300ms ease-in ); 71 } 72 73 &:hover{ 74 svg path{ 75 @include transition( all 300ms ease-in ); 76 } 77 } 78 79 @include project-svg-external-links-style(); 80 81 &.download{ 82 margin-right: 10px; 83 } 84 85 > a { 86 padding-left: 12px !important; 87 svg{ 88 position: absolute; 89 left: -12px; 90 top: 50%; 91 margin-top: -7px; 92 width: 14px; 93 height: 14px; 94 } 95 } 96 } 97 } 98 99 .main-links{ 100 margin-right: $nav-margin-right * 2; 101 } 102 103 .main-links, 104 .external-links { 105 &.white{ 106 li > a { 107 color: white; 108 } 109 } 110 li > a { 111 @include hashi-a-style(); 112 margin: 0 10px; 113 padding-top: 1px; 114 line-height: $header-height; 115 @include project-a-style(); 116 } 117 } 118 119 .nav > li > a:hover, .nav > li > a:focus { 120 background-color: transparent; 121 @include transition( all 300ms ease-in ); 122 } 123 } 124 125 .navbar-brand { 126 display: block; 127 height: $header-height; 128 padding: 0; 129 margin: 0 10px 0 0; 130 131 .logo{ 132 display: inline-block; 133 height: $header-height; 134 vertical-align:top; 135 padding: 0; 136 line-height: $header-height; 137 padding-left: $project-logo-width + $project-logo-pad-left; 138 background-position: 0 center; 139 @include transition(all 300ms ease-in); 140 141 &:hover{ 142 @include transition(all 300ms ease-in); 143 text-decoration: none; 144 } 145 } 146 } 147 148 .navbar-toggle{ 149 &.white{ 150 .icon-bar{ 151 border: 1px solid white; 152 } 153 } 154 } 155 156 .by-hashicorp{ 157 display: inline-block; 158 vertical-align:top; 159 height: $header-height; 160 margin-left: 3px; 161 padding-top: 2px; 162 color: black; 163 line-height: $header-height; 164 font-family: $header-font-family; 165 font-weight: 600; 166 font-size: 0; 167 text-decoration: none; 168 169 &.white{ 170 color: white; 171 font-weight: 300; 172 svg{ 173 path, 174 polygon, 175 rect{ 176 fill: white; 177 } 178 } 179 180 &:focus, 181 &:hover{ 182 text-decoration: none; 183 color: white; 184 } 185 } 186 187 &:focus, 188 &:hover{ 189 text-decoration: none; 190 } 191 192 .svg-wrap{ 193 font-size: 13px; 194 } 195 196 svg{ 197 &.svg-by{ 198 width: $by-hashicorp-width; 199 height: $by-hashicorp-height; 200 margin-bottom: -4px; 201 margin-left: 4px; 202 } 203 204 &.svg-logo{ 205 width: 16px; 206 height: 16px; 207 margin-bottom: -3px; 208 margin-left: 4px; 209 } 210 211 path, 212 polygon{ 213 fill: black; 214 @include transition(all 300ms ease-in); 215 216 &:hover{ 217 @include transition(all 300ms ease-in); 218 } 219 } 220 .svg-bg-line{ 221 @include transition(all 300ms ease-in); 222 223 &:hover{ 224 @include transition(all 300ms ease-in); 225 } 226 } 227 } 228 } 229 230 .hashicorp-project{ 231 display: inline-block; 232 height: 30px; 233 line-height: 30px; 234 text-decoration: none; 235 font-size: 14px; 236 color: $black; 237 font-weight: 600; 238 239 &.white{ 240 color: white; 241 svg{ 242 path, 243 polygon, 244 rect{ 245 fill: white; 246 } 247 } 248 } 249 250 &:focus, 251 &:hover{ 252 text-decoration: none; 253 } 254 255 span{ 256 margin-right: 4px; 257 font-family: $header-font-family; 258 font-weight: 500; 259 } 260 261 span, 262 svg{ 263 display: inline-block; 264 } 265 266 svg{ 267 &.svg-by{ 268 width: $by-hashicorp-width; 269 height: $by-hashicorp-height; 270 margin-bottom: -4px; 271 margin-left: -3px; 272 } 273 274 &.svg-logo{ 275 width: 30px; 276 height: 30px; 277 margin-bottom: -10px; 278 margin-left: -1px; 279 } 280 281 path, 282 line{ 283 fill: $black; 284 @include transition(all 300ms ease-in); 285 286 &:hover{ 287 @include transition(all 300ms ease-in); 288 } 289 } 290 291 .svg-bg-line{ 292 @include transition(all 300ms ease-in); 293 294 &:hover{ 295 @include transition(all 300ms ease-in); 296 } 297 } 298 } 299 } 300 301 @media (max-width: 480px) { 302 .navigation { 303 .main-links{ 304 margin-right: 0; 305 } 306 } 307 } 308 309 @media (max-width: 414px) { 310 #header { 311 .navbar-toggle{ 312 padding-top: 10px; 313 height: $header-mobile-height; 314 } 315 316 .navbar-brand { 317 height: $header-mobile-height; 318 319 .logo{ 320 height: $header-mobile-height; 321 line-height: $header-mobile-height; 322 } 323 .by-hashicorp{ 324 height: $header-mobile-height; 325 line-height: $header-mobile-height; 326 padding-top: 0; 327 } 328 } 329 .main-links, 330 .external-links { 331 li > a { 332 line-height: $header-mobile-height; 333 } 334 } 335 } 336 }