Twenty Fifteen: a shorter header on small screens when there is no header text or header image looks more correct.
Props iamtakashi, fixes #30326. Built from https://develop.svn.wordpress.org/trunk@30564 git-svn-id: http://core.svn.wordpress.org/trunk@30553 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
61fd87f1f7
commit
45343aa5d2
|
@ -89,6 +89,49 @@ function twentyfifteen_header_style() {
|
||||||
?>
|
?>
|
||||||
<style type="text/css" id="twentyfifteen-header-css">
|
<style type="text/css" id="twentyfifteen-header-css">
|
||||||
<?php
|
<?php
|
||||||
|
// Short header for when there is no Custom Header and Header Text is hidden.
|
||||||
|
if ( empty( $header_image ) && ! display_header_text() ) :
|
||||||
|
?>
|
||||||
|
.site-header {
|
||||||
|
padding-top: 14px;
|
||||||
|
padding-bottom: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.site-branding {
|
||||||
|
min-height: 42px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 46.25em) {
|
||||||
|
.site-header {
|
||||||
|
padding-top: 21px;
|
||||||
|
padding-bottom: 21px;
|
||||||
|
}
|
||||||
|
.site-branding {
|
||||||
|
min-height: 56px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media screen and (min-width: 55em) {
|
||||||
|
.site-header {
|
||||||
|
padding-top: 25px;
|
||||||
|
padding-bottom: 25px;
|
||||||
|
}
|
||||||
|
.site-branding {
|
||||||
|
min-height: 62px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media screen and (min-width: 59.6875em) {
|
||||||
|
.site-header {
|
||||||
|
padding-top: 0;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
.site-branding {
|
||||||
|
min-height: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
<?php
|
||||||
|
endif;
|
||||||
|
|
||||||
|
// Has a Custom Header been added?
|
||||||
if ( ! empty( $header_image ) ) :
|
if ( ! empty( $header_image ) ) :
|
||||||
?>
|
?>
|
||||||
.site-header {
|
.site-header {
|
||||||
|
|
|
@ -905,7 +905,7 @@ a:focus {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: 1px solid #eaeaea;
|
border: 1px solid #eaeaea;
|
||||||
border: 1px solid rgba(51, 51, 51, 0.1);
|
border: 1px solid rgba(51, 51, 51, 0.1);
|
||||||
height: 48px;
|
height: 42px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -915,13 +915,13 @@ a:focus {
|
||||||
-webkit-transform: translateY(-50%);
|
-webkit-transform: translateY(-50%);
|
||||||
-ms-transform: translateY(-50%);
|
-ms-transform: translateY(-50%);
|
||||||
transform: translateY(-50%);
|
transform: translateY(-50%);
|
||||||
width: 48px;
|
width: 42px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.secondary-toggle:before {
|
.secondary-toggle:before {
|
||||||
color: #333;
|
color: #333;
|
||||||
content: "\f419";
|
content: "\f419";
|
||||||
line-height: 48px;
|
line-height: 42px;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: -1px;
|
top: -1px;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.1-beta2-30563';
|
$wp_version = '4.1-beta2-30564';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue