Move responsive button styles from wp-admin.css to buttons.css. Fixes #25968, props melchoyce.

Built from https://develop.svn.wordpress.org/trunk@26386


git-svn-id: http://core.svn.wordpress.org/trunk@26286 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Matt Thomas 2013-11-26 03:36:09 +00:00
parent 9f529e99e3
commit e86c507db0
8 changed files with 76 additions and 54 deletions

View File

@ -10996,26 +10996,6 @@ li#wp-admin-bar-toggle-button {
font-size: 14px;
}
.wp-core-ui .button,
.wp-core-ui .button:active, /* Override non-responsive active styles in buttons.css */
input#publish,
input#save-post,
a.preview {
padding: 10px 14px;
line-height: 1;
font-size: 14px;
vertical-align: middle;
height: auto;
margin-bottom: 4px;
}
#media-upload.wp-core-ui .button {
padding: 0 10px 1px;
height: 24px;
line-height: 22px;
font-size: 13px;
}
.wrap .add-new-h2, .wrap .add-new-h2:active {
padding: 10px 15px;
font-size: 14px;
@ -11228,11 +11208,6 @@ li#wp-admin-bar-toggle-button {
line-height: 280%;
}
.wp-core-ui .save-post-status.button {
position: relative;
margin: 0 10px 0 14px; /* 14px right margin to match all other buttons */
}
.wp-core-ui .save-post-visibility,
.wp-core-ui .save-timestamp {
vertical-align: middle;

File diff suppressed because one or more lines are too long

View File

@ -10996,26 +10996,6 @@ li#wp-admin-bar-toggle-button {
font-size: 14px;
}
.wp-core-ui .button,
.wp-core-ui .button:active, /* Override non-responsive active styles in buttons.css */
input#publish,
input#save-post,
a.preview {
padding: 10px 14px;
line-height: 1;
font-size: 14px;
vertical-align: middle;
height: auto;
margin-bottom: 4px;
}
#media-upload.wp-core-ui .button {
padding: 0 10px 1px;
height: 24px;
line-height: 22px;
font-size: 13px;
}
.wrap .add-new-h2, .wrap .add-new-h2:active {
padding: 10px 15px;
font-size: 14px;
@ -11228,11 +11208,6 @@ li#wp-admin-bar-toggle-button {
line-height: 280%;
}
.wp-core-ui .save-post-status.button {
position: relative;
margin: 0 14px 0 10px; /* 14px right margin to match all other buttons */
}
.wp-core-ui .save-post-visibility,
.wp-core-ui .save-timestamp {
vertical-align: middle;

File diff suppressed because one or more lines are too long

View File

@ -27,6 +27,7 @@ TABLE OF CONTENTS:
2.0 - Default Button Style
3.0 - Primary Button Style
4.0 - Button Groups
5.0 - Responsive Button Styles
---------------------------------------------------------------------------- */
@ -269,3 +270,38 @@ TABLE OF CONTENTS:
.wp-core-ui .button-group > .button:last-child {
border-radius: 3px 0 0 3px;
}
/* ----------------------------------------------------------------------------
5.0 - Responsive Button Styles
---------------------------------------------------------------------------- */
@media screen and ( max-width: 782px ) {
.wp-core-ui .button,
.wp-core-ui .button:active, /* Override non-responsive active styles in buttons.css */
input#publish,
input#save-post,
a.preview {
padding: 10px 14px;
line-height: 1;
font-size: 14px;
vertical-align: middle;
height: auto;
margin-bottom: 4px;
}
#media-upload.wp-core-ui .button {
padding: 0 10px 1px;
height: 24px;
line-height: 22px;
font-size: 13px;
}
/* Publish Metabox Options */
.wp-core-ui .save-post-status.button {
position: relative;
margin: 0 10px 0 14px; /* 14px right margin to match all other buttons */
}
}

File diff suppressed because one or more lines are too long

View File

@ -27,6 +27,7 @@ TABLE OF CONTENTS:
2.0 - Default Button Style
3.0 - Primary Button Style
4.0 - Button Groups
5.0 - Responsive Button Styles
---------------------------------------------------------------------------- */
@ -269,3 +270,38 @@ TABLE OF CONTENTS:
.wp-core-ui .button-group > .button:last-child {
border-radius: 0 3px 3px 0;
}
/* ----------------------------------------------------------------------------
5.0 - Responsive Button Styles
---------------------------------------------------------------------------- */
@media screen and ( max-width: 782px ) {
.wp-core-ui .button,
.wp-core-ui .button:active, /* Override non-responsive active styles in buttons.css */
input#publish,
input#save-post,
a.preview {
padding: 10px 14px;
line-height: 1;
font-size: 14px;
vertical-align: middle;
height: auto;
margin-bottom: 4px;
}
#media-upload.wp-core-ui .button {
padding: 0 10px 1px;
height: 24px;
line-height: 22px;
font-size: 13px;
}
/* Publish Metabox Options */
.wp-core-ui .save-post-status.button {
position: relative;
margin: 0 14px 0 10px; /* 14px right margin to match all other buttons */
}
}

File diff suppressed because one or more lines are too long