PressThis: fix and update buttons styles. Props Michael-Arestad. Fixes #31498.

git-svn-id: https://develop.svn.wordpress.org/trunk@31598 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2015-03-02 01:17:26 +00:00
parent 701d97b6d5
commit 7c516ad964
2 changed files with 24 additions and 37 deletions

View File

@ -312,7 +312,7 @@ strong {
* *
* Pushing buttons is what I do. * Pushing buttons is what I do.
*/ */
.button-primary,
.button-subtle, .button-subtle,
.scan-submit { .scan-submit {
display: inline-block; display: inline-block;
@ -330,37 +330,6 @@ strong {
-webkit-appearance: none; -webkit-appearance: none;
} }
.button-primary {
background: #2ea2cc;
border-color: #2581a2;
color: #fff;
}
.button-primary:hover,
.button-primary:focus {
background: #2991b7;
border-color: #20708e;
color: #fff;
outline: 0;
}
.button-primary:active {
background: #2581a2;
border-color: #20708e;
color: #fff;
}
.button-primary[disabled],
.button-primary:disabled {
color: #c7ced1 !important;
background: #2688ab !important;
border-color: #20708e !important;
}
.button-primary:visited {
color: #fff;
}
.button-subtle { .button-subtle {
background: none; background: none;
border: 0; border: 0;
@ -396,6 +365,23 @@ strong {
outline: 0; outline: 0;
} }
.button-link {
margin: 0;
padding: 0;
border: 0;
background: none;
color: #0074a2;
cursor: pointer;
-webkit-appearance: none;
}
.button-link:hover,
.button-link:active,
.button-link:focus {
color: #2ea2cc;
text-decoration: underline;
}
/** /**
* Forms * Forms
@ -667,9 +653,12 @@ dd {
border: 0; border: 0;
-webkit-border-radius: 0; -webkit-border-radius: 0;
border-radius: 0; border-radius: 0;
margin: 0;
padding: 0 16px; padding: 0 16px;
background: #f7f7f7; background: #f7f7f7;
border-left: 1px solid #f1f1f1; border-left: 1px solid #f1f1f1;
-webkit-box-shadow: none;
box-shadow: none;
} }
.tagsdiv .tagadd:hover, .tagsdiv .tagadd:hover,
@ -679,6 +668,8 @@ dd {
background: #2991b7; background: #2991b7;
border-color: #20708e; border-color: #20708e;
color: #fff; color: #fff;
-webkit-box-shadow: none;
box-shadow: none;
} }
.tagsdiv .howto { .tagsdiv .howto {

View File

@ -340,11 +340,7 @@ TABLE OF CONTENTS:
/* Reset responsive styles in Press This, Customizer */ /* Reset responsive styles in Press This, Customizer */
.wp-core-ui.wp-customizer .button, .wp-core-ui.wp-customizer .button {
.press-this.wp-core-ui .button,
.press-this input#publish,
.press-this input#save-post,
.press-this a.preview {
padding: 0 10px 1px; padding: 0 10px 1px;
font-size: 13px; font-size: 13px;
line-height: 26px; line-height: 26px;