mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 07:40:07 +00:00
New button styles.
Using the new buttons: * Button classes are now stackable. * All buttons should use a base class of "button". * Buttons default to the gray style (formerly "button-secondary"). Buttons can add a style by adding additional classes. To make a primary button, add the "button-primary" class. * Buttons can be rendered in various sizes. In addition to the default size, you can add "button-large", "button-small", or "button-tiny". For backwards compatibility reasons, "button-primary" and "button-secondary" both work as standalone classes. get_submit_button() has been adjusted to handle shorthand button classes (i.e. button classes can be passed without the "button-" prefix). props lessbloat, helenyhou, trepmal, nacin. see #21598. git-svn-id: https://develop.svn.wordpress.org/trunk@21789 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -779,28 +779,41 @@ input.button,
|
||||
.button-primary,
|
||||
input.button-primary,
|
||||
.button-secondary,
|
||||
input.button-secondary,
|
||||
.button-highlighted,
|
||||
input.button-highlighted,
|
||||
#postcustomstuff .submit input {
|
||||
input.button-secondary {
|
||||
display: inline-block;
|
||||
text-decoration: none;
|
||||
font-size: 12px !important;
|
||||
line-height: 13px;
|
||||
padding: 3px 8px;
|
||||
font-size: 12px;
|
||||
line-height: 15px;
|
||||
margin: 0;
|
||||
padding: 0.5em 0.8em 0.4em;
|
||||
cursor: pointer;
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
-webkit-border-radius: 11px;
|
||||
border-radius: 11px;
|
||||
-moz-box-sizing: content-box;
|
||||
-webkit-border-radius: 3px;
|
||||
border-radius: 3px;
|
||||
-webkit-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
-moz-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.button.button-small {
|
||||
padding: 3px .8em 2px;
|
||||
}
|
||||
|
||||
.button.button-large {
|
||||
font-size: 14px;
|
||||
padding: 0.6em 1em 0.5em;
|
||||
}
|
||||
|
||||
.button.button-tiny {
|
||||
padding: .2em .8em;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
#minor-publishing-actions input,
|
||||
#major-publishing-actions input,
|
||||
#minor-publishing-actions .preview {
|
||||
min-width: 80px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -1015,15 +1028,6 @@ ul#add-to-blog-users {
|
||||
list-style: square;
|
||||
}
|
||||
|
||||
a.button,
|
||||
a.button-primary,
|
||||
a.button-secondary {
|
||||
line-height: 15px;
|
||||
padding: 3px 10px;
|
||||
white-space: nowrap;
|
||||
-webkit-border-radius: 10px;
|
||||
}
|
||||
|
||||
.approve,
|
||||
.unapproved .unapprove {
|
||||
display: none;
|
||||
@@ -2804,7 +2808,7 @@ table .inline-edit-row fieldset ul.cat-hover {
|
||||
|
||||
#titlediv {
|
||||
position: relative;
|
||||
margin-bottom: 20px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
#titlediv label { cursor: text; }
|
||||
|
||||
@@ -2857,11 +2861,15 @@ input#link_url {
|
||||
}
|
||||
|
||||
#edit-slug-box {
|
||||
height: 1em;
|
||||
margin-top: 8px;
|
||||
padding: 0 10px;
|
||||
}
|
||||
|
||||
#edit-slug-box .cancel {
|
||||
margin-right: 10px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
#editable-post-name-full {
|
||||
display: none;
|
||||
}
|
||||
@@ -3159,7 +3167,7 @@ td.plugin-title p {
|
||||
#postcustom #postcustomstuff .submit {
|
||||
border: 0 none;
|
||||
float: none;
|
||||
padding: 5px 8px;
|
||||
padding: 0 0 8px 8px;
|
||||
}
|
||||
|
||||
#side-sortables #postcustom #postcustomstuff .submit {
|
||||
@@ -3195,10 +3203,6 @@ td.plugin-title p {
|
||||
width: 38%;
|
||||
}
|
||||
|
||||
#postcustomstuff #newmeta .submit {
|
||||
padding: 0 8px;
|
||||
}
|
||||
|
||||
#postcustomstuff .submit input,
|
||||
#postcustomstuff table #newmeta-submit {
|
||||
width: auto;
|
||||
@@ -4243,7 +4247,7 @@ span.imgedit-scale-warn {
|
||||
|
||||
#replysubmit {
|
||||
margin: 0;
|
||||
padding: 0 7px 3px;
|
||||
padding: 0 5px 3px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -4672,8 +4676,6 @@ h2 .nav-tab {
|
||||
.plugins .name,
|
||||
#pass-strength-result.strong,
|
||||
#pass-strength-result.short,
|
||||
.button-highlighted,
|
||||
input.button-highlighted,
|
||||
#ed_reply_toolbar #ed_reply_strong,
|
||||
.item-controls .item-order a,
|
||||
.feature-filter .feature-name {
|
||||
@@ -5631,7 +5633,6 @@ table.form-table td .updated {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#titlediv,
|
||||
#poststuff .postarea {
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
@@ -6084,7 +6085,7 @@ h3:hover .edit-box {
|
||||
}
|
||||
|
||||
#dashboard-widgets #dashboard_quick_press form p.submit #save-post {
|
||||
margin: 0 1em 0 10px;
|
||||
margin: 0 0.3em 0 5px;
|
||||
}
|
||||
|
||||
#dashboard-widgets #dashboard_quick_press form p.submit #publish {
|
||||
@@ -6278,8 +6279,7 @@ a.rsswidget {
|
||||
|
||||
.login .button-primary {
|
||||
font-size: 13px !important;
|
||||
line-height: 16px;
|
||||
padding: 3px 10px;
|
||||
padding: .4em .8em;
|
||||
float: right;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user