mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Buttons: Standardize on .button-link for link-like buttons.
This serves as both a reset and some basic styling. The class name also aligns with parallel components in other popular projects. props paulwilde for the initial patch. fixes #34242. git-svn-id: https://develop.svn.wordpress.org/trunk@35636 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -312,7 +312,6 @@ strong {
|
||||
* Pushing buttons is what I do.
|
||||
*/
|
||||
|
||||
.button-subtle,
|
||||
.scan-submit {
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
@@ -329,67 +328,6 @@ strong {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
.button-subtle {
|
||||
background: none;
|
||||
border: 0;
|
||||
color: #0073aa;
|
||||
}
|
||||
|
||||
.button-subtle:visited {
|
||||
color: #0073aa;
|
||||
}
|
||||
|
||||
.button-subtle:focus,
|
||||
.button-subtle:hover,
|
||||
.button-subtle:active,
|
||||
.edit-post-link:focus,
|
||||
.edit-post-link:hover,
|
||||
.edit-post-link:active {
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
.button-subtle:focus,
|
||||
.button-subtle:active,
|
||||
.edit-post-link:focus,
|
||||
.edit-post-link:active {
|
||||
outline: 0;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.preview-button {
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
.button-reset {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
cursor: pointer;
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
.button-reset:focus {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
.button-link {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
color: #0073aa;
|
||||
cursor: pointer;
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
.button-link:hover,
|
||||
.button-link:active,
|
||||
.button-link:focus {
|
||||
color: #00a0d2;
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.split-button {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
@@ -443,6 +381,7 @@ strong {
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
line-height: 2;
|
||||
}
|
||||
|
||||
.is-open .split-button-body {
|
||||
@@ -921,7 +860,7 @@ dd {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.tagcloud-link {
|
||||
.press-this .tagcloud-link {
|
||||
display: block;
|
||||
margin: 0 16px 5px;
|
||||
padding: 0;
|
||||
@@ -991,23 +930,24 @@ input[type="search"].categories-search,
|
||||
}
|
||||
}
|
||||
|
||||
.add-cat-toggle {
|
||||
.press-this .add-cat-toggle {
|
||||
float: right;
|
||||
margin-top: -45px;
|
||||
line-height: 20px;
|
||||
padding: 12px 10px 8px;
|
||||
color: #0073aa;
|
||||
}
|
||||
|
||||
.add-cat-toggle:focus {
|
||||
.press-this .add-cat-toggle:focus {
|
||||
text-decoration: none;
|
||||
color: #00a0d2;
|
||||
}
|
||||
|
||||
.add-cat-toggle.is-toggled {
|
||||
.press-this .add-cat-toggle.is-toggled {
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.add-cat-toggle.is-toggled .dashicons:before {
|
||||
.press-this .add-cat-toggle.is-toggled .dashicons:before {
|
||||
content: "\f179";
|
||||
}
|
||||
|
||||
@@ -1261,11 +1201,13 @@ html {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.adminbar button {
|
||||
.press-this .adminbar button {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 6px;
|
||||
margin-top: -13px;
|
||||
padding: 0 10px 1px;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
@media (max-width: 320px) {
|
||||
@@ -1881,13 +1823,6 @@ html {
|
||||
}
|
||||
}
|
||||
|
||||
.edit-post-link {
|
||||
font-size: 13px;
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
.publish-button .saving-draft,
|
||||
.publish-button.is-saving .publish {
|
||||
display: none;
|
||||
@@ -2101,6 +2036,7 @@ html {
|
||||
outline: 0;
|
||||
-webkit-box-shadow: inset 5px 0 0 #00a0d2;
|
||||
box-shadow: inset 5px 0 0 #00a0d2;
|
||||
border-color: #e5e5e5;
|
||||
}
|
||||
|
||||
.is-off-screen > .post-option {
|
||||
@@ -2157,7 +2093,7 @@ html {
|
||||
}
|
||||
}
|
||||
|
||||
.modal-close {
|
||||
.press-this .modal-close {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 13px 14px;
|
||||
@@ -2167,10 +2103,11 @@ html {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.modal-close:focus {
|
||||
.press-this .modal-close:focus {
|
||||
outline: 0;
|
||||
-webkit-box-shadow: inset 5px 0 0 #00a0d2;
|
||||
box-shadow: inset 5px 0 0 #00a0d2;
|
||||
border-color: #e5e5e5;
|
||||
}
|
||||
|
||||
.setting-title {
|
||||
|
||||
Reference in New Issue
Block a user