mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-05-18 10:14:30 +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:
@@ -3,18 +3,6 @@ body {
|
||||
-webkit-text-size-adjust: 100%;
|
||||
}
|
||||
|
||||
button.not-a-button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
-webkit-border-radius: 0;
|
||||
border-radius: 0;
|
||||
outline: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
#customize-controls a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@@ -199,6 +199,8 @@
|
||||
width: 30px;
|
||||
height: 38px;
|
||||
margin-right: 0 !important;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
outline: none;
|
||||
overflow: hidden;
|
||||
cursor: pointer;
|
||||
@@ -529,6 +531,9 @@
|
||||
|
||||
.menu-item-bar .item-delete:hover,
|
||||
.menu-item-bar .item-delete:focus {
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
outline: none;
|
||||
color: #f00;
|
||||
}
|
||||
|
||||
@@ -618,6 +623,9 @@
|
||||
position: absolute;
|
||||
top: 5px;
|
||||
right: 5px;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@@ -724,6 +732,9 @@
|
||||
color: #82878c;
|
||||
width: 30px;
|
||||
height: 38px;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
outline: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
@@ -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