Changeset 6161 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/styles/modules/_wporg-header.scss
- Timestamp:
- 11/22/2017 11:37:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-plugins/client/styles/modules/_wporg-header.scss
r5187 r6161 2 2 3 3 #wporg-header { 4 background: #23282d; 5 height: 140px; 6 position: relative; 7 text-align: center; 8 width: 100%; 9 10 .wrapper { 11 margin: 0 auto; 12 max-width: 960px; 13 } 14 4 15 h1 { 16 display: inline-block; 5 17 margin: auto; 18 width: 303px; 19 20 a { 21 background: url( //s.w.org/style/images/wp-header-logo.png?1 ) center left no-repeat; 22 background-size: 303px 53px; 23 display: block; 24 height: 88px; 25 text-indent: -9999px; 26 width: 303px; 27 28 @media only screen and (-webkit-min-device-pixel-ratio: 1.5), 29 only screen and (min-resolution: 1.5dppx), 30 only screen and (min-resolution: 144dpi) { 31 background-image: url( //s.w.org/style/images/wp-header-logo-2x.png?1 ); 32 } 33 } 6 34 } 7 35 8 36 h2.rosetta { 9 37 clear: none; 10 } 11 12 13 @media screen and ( min-width: 769px ) { 38 color: #dfdfdf; 39 font-family: Georgia, "Times New Roman", serif; 40 font-size: 30px; 41 margin: 0; 42 43 a { 44 border-bottom: none; 45 color: #dfdfdf; 46 display: block; 47 height: 52px; /* 88 header height - 36 top padding */ 48 line-height: 22px; 49 padding: 0; 50 51 &:hover { 52 text-decoration: none; 53 } 54 } 55 } 56 57 #wporg-header-menu { 58 background: #23282d; 59 left: -75%; 60 list-style: none; 61 margin: 0; 62 max-width: 75%; 63 min-width: 200px; 64 padding: 20px 0 0; 65 position: absolute; 66 text-align: left; 67 transition: left 0.3s; 68 z-index: 100000; 69 70 &.active { 71 left: 0; 72 } 73 } 74 75 ul li { 76 list-style-type:none; 77 position:relative; 78 79 a { 80 color: #eee; 81 display: block; 82 font-family: "Open Sans", Helvetica, Arial, "Liberation Sans", sans-serif; 83 font-size: 13px; 84 font-weight: 600; 85 height: 34px; 86 line-height: 34px; 87 margin: 0 4px; 88 padding: 10px 30px; 89 text-decoration: none; 90 91 &.subcurrent { 92 font-weight: bold; 93 } 94 95 @include breakpoint( sm ) { 96 height: auto; 97 } 98 } 99 100 &#download, 101 &.download { 102 float: right; 103 height: 34px; 104 margin-right: 14px; 105 overflow: hidden; 106 padding: 0 0 34px; 107 108 @media screen and (max-width:820px) { 109 display: none; 110 } 111 112 @media screen and (max-width:768px) { 113 display: block; 114 float: none; 115 margin: 10px 20px 20px; 116 padding-bottom: 0; 117 height: auto; 118 119 a { 120 padding: 4px 10px; 121 } 122 } 123 124 a { 125 margin: 0; 126 padding: 0 16px; 127 128 &:hover { 129 color: #eee; 130 } 131 } 132 133 &.current, 134 &.current-menu-item { 135 a { 136 color: #eee; 137 } 138 } 139 140 .uparrow { 141 display: none; 142 } 143 } 144 145 a:hover, 146 a.current, 147 &.current-menu-item a, 148 &.current_page_parent a { 149 color: #00a0d2; 150 } 151 } 152 153 .nav-submenu { 154 display: none; 155 margin-bottom: 10px; 156 margin-top: -15px; 157 padding: 0; 158 position: static; 159 160 li a { 161 height: 24px; 162 line-height: 24px; 163 margin-left: 20px; 164 } 165 } 166 167 #head-search { 168 @include breakpoint( $sm ) { 169 float: right; 170 margin-right: 14px; 171 padding-top: 30px; 172 } 173 174 form { 175 border-bottom: 1px solid #3f3f3f; 176 display: inline-block; 177 margin-left: 60px; 178 width: 288px; 179 180 input.text { 181 background: #191e23; 182 border: 0; 183 border-radius: 0; 184 box-sizing: content-box; 185 color: #b4b9be; 186 float: left; 187 font-family: "Open Sans", sans-serif; 188 font-size: 12px; 189 height: 24px; 190 margin: 0; 191 outline: none; 192 padding: 3px; 193 vertical-align: top; 194 width: 256px; 195 196 &::-moz-placeholder { 197 color: #eee; 198 } 199 200 @media screen and (max-width:480px) { 201 width: 216px; 202 } 203 } 204 205 .button { 206 background: #191e23 url( //s.w.org/wp-includes/images/admin-bar-sprite.png?d=20120831 ) no-repeat 2px 4px; 207 border: none; 208 border-radius: 0; 209 box-shadow: none; 210 float: left; 211 height: 30px; 212 margin: 0; 213 padding: 0; 214 text-shadow: none !important; 215 width: 26px; 216 } 217 218 @include breakpoint( 0, 480px ) { 219 width: 248px; 220 } 221 222 @include breakpoint( 480px ) { 223 margin-left: 0; 224 } 225 } 226 } 227 228 @include breakpoint( $sm ) { 229 height: 120px; 230 text-align: inherit; 231 232 h1 { 233 float: left; 234 padding-left: 10px; 235 } 236 237 h2.rosetta { 238 float: left; 239 padding: 36px 27px 0; 240 } 241 242 #wporg-header-menu { 243 float:left; 244 list-style: none; 245 margin: -15px 0 0; 246 max-width: inherit; 247 min-width: 0; 248 padding: 0; 249 position: static; 250 width: 100%; 251 } 252 253 ul li { 254 float: left; 255 position:relative; 256 257 a { 258 color: #eee; 259 display: block; 260 font-family: "Open Sans", Helvetica, Arial, "Liberation Sans", sans-serif; 261 font-size: 13px; 262 font-weight: 600; 263 height: 46px; 264 line-height: 34px; 265 margin: 0 4px; 266 padding: 0 6px; 267 268 &.current ~ .uparrow { 269 border-bottom: 9px solid #f7f7f7; 270 border-left: 9px solid transparent; 271 border-right: 9px solid transparent; 272 height: 0; 273 margin: -8px auto 0 auto; 274 width: 0; 275 } 276 } 277 278 &.current-menu-item:after, 279 &.current_page_parent:after { 280 border-bottom: 9px solid #f7f7f7; 281 border-left: 9px solid transparent; 282 border-right: 9px solid transparent; 283 content: ''; 284 height: 0; 285 left: 50%; 286 margin: -8px 0 0 -9px; 287 position: absolute; 288 width: 0; 289 } 290 291 &:hover .nav-submenu ~ .uparrow, 292 .nav-submenu:hover ~ .uparrow { 293 border-bottom: 9px solid #32373c; 294 border-left: 9px solid transparent; 295 border-right: 9px solid transparent; 296 height: 0; 297 margin: -10px auto 0 auto; 298 width: 0; 299 } 300 301 .nav-submenu li { 302 float: none; 303 304 a { 305 height: 34px; 306 line-height: 34px; 307 margin-left: 6px; 308 } 309 } 310 } 311 312 .nav-submenu { 313 background: #32373c; 314 border: #32373c solid 1px; 315 border-top: 0; 316 display: none !important;/* Prevents #wporg-header ul overwriting this */ 317 margin-top: -1px; 318 min-width: 0; 319 } 320 321 ul li:hover .nav-submenu, 322 ul li .nav-submenu:hover { 323 display: block !important;/* Prevents #wporg-header ul overwriting this */ 324 left:0; 325 margin-left:0; 326 position: absolute; 327 top: 46px; 328 width: auto; 329 z-index: 101; 330 } 331 332 #headline h2 { 333 text-rendering: optimizeLegibility; 334 } 335 14 336 ul li.current-menu-item:after, 15 337 ul li.current_page_parent:after, … … 18 340 } 19 341 } 20 21 form input { 22 box-sizing: content-box; 342 } 343 344 #mobile-menu-button { 345 display: block; 346 float: left; 347 font-family: 'dashicons'; 348 font-size: 16px; 349 font-style: normal; 350 font-weight: normal; 351 height: 32px; 352 left: 10px; 353 line-height: 1; 354 position: absolute; 355 text-align: center; 356 text-decoration: inherit; 357 top: 75px; 358 transition: color .1s ease-in; 359 vertical-align: top; 360 width: 39px; 361 -webkit-font-smoothing: antialiased; 362 363 &:before { 364 border: none; 365 box-sizing: border-box; 366 color: #888; 367 content: '\f228'; 368 display: inline-block; 369 float: left; 370 font: normal 50px/1 'Dashicons'; 371 height: 32px; 372 margin: 0; 373 outline: none; 23 374 padding: 3px; 24 }25 26 .button {27 box-shadow: none;28 }29 30 .download-button {31 background-color: #21759b;32 background-image: linear-gradient(to bottom, #2a95c5, #21759b);33 border-bottom-color: #1e6a8d;34 border-color: #21759b;35 box-shadow: inset 0 1px 0 rgba( 120, 200, 230, 0.5 );36 37 &:hover,38 &:focus {39 background-color: #278ab7;40 background-image: linear-gradient(to bottom, #2e9fd2, #21759b);41 border-color: #1b607f;42 box-shadow: inset 0 1px 0 rgba(120,200,230,0.6);43 color: #fff;44 text-shadow: 0 -1px 0 rgba( 0, 0, 0, 0.3 );45 }46 47 &:active {48 background: #1b607f;49 background-image: linear-gradient(to bottom, #21759b, #278ab7);50 border-color: #124560 #2382ae #2382ae #2382ae;51 box-shadow: inset 0 1px 0 rgba(0,0,0,0.1);52 color: rgba(255,255,255,0.95);53 text-shadow: 0 1px 0 rgba(0,0,0,0.1);54 transform: none;55 }56 }57 58 a:hover,59 a:focus,60 a:active {61 375 text-decoration: none; 376 vertical-align: middle; 377 width: 39px; 378 -webkit-font-smoothing: antialiased; 379 } 380 381 &:hover { 382 background:none; 383 } 384 385 @include breakpoint( $sm ) { 386 display: none; 62 387 } 63 388 } 389 390 #download-mobile { 391 background: #f7f7f7; 392 border-bottom: 1px solid #dddddd; 393 394 .wrapper { 395 padding: 20px 0; 396 text-align: center; 397 } 398 399 span.download-ready { 400 font-size: 1.6em; 401 margin: 0 0.25em; 402 } 403 404 a.download-button { 405 font-size: 1.6em; 406 height: inherit; 407 margin: 10px 0.25em; 408 padding: 10px 15px; 409 } 410 }
Note: See TracChangeset
for help on using the changeset viewer.