WordPress.org

Make WordPress Core

Changeset 22289


Ignore:
Timestamp:
10/24/2012 01:33:59 AM (8 years ago)
Author:
azaozz
Message:

Fix the buttons in IE, make them better in IE7, remove the default padding in Firefox, make all .button <a> and <input> look the same, fixes #21598

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/ie.css

    r22263 r22289  
    238238}
    239239
     240button,
     241input[type="reset"],
     242input[type="button"],
     243input[type="submit"] {
     244    padding: 2px 8px;
     245}
     246
     247button.button-large,
     248input[type="reset"].button-large,
     249input[type="button"].button-large,
     250input[type="submit"].button-large {
     251    padding: 4px 12px;
     252}
     253
     254button.button-small,
     255input[type="reset"].button-small,
     256input[type="button"].button-small,
     257input[type="submit"].button-small {
     258    padding: 0 8px;
     259}
     260
    240261a.button {
    241     line-height: 1.4em;
    242262    margin: 1px;
    243     padding: 2px 6px;
     263    padding: 3px 8px;
     264}
     265
     266a.button.button-small {
     267    padding: 1px 8px;
    244268}
    245269
  • trunk/wp-includes/css/buttons.css

    r22288 r22289  
    4343    text-decoration: none;
    4444    font-size: 12px;
    45     line-height: 17px;
    46     height: 15px;
     45    line-height: 1.45em;
    4746    margin: 0;
    48     padding: 0.25em 0.85em 0.35em;
     47    padding: 3px 10px;
    4948    cursor: pointer;
    5049    border-width: 1px;
     
    5251    -webkit-border-radius: 3px;
    5352    border-radius: 3px;
    54     -webkit-box-sizing: content-box;
    55     -moz-box-sizing:    content-box;
    56     box-sizing:         content-box;
    5753    white-space: nowrap;
     54    -webkit-box-sizing: border-box;
     55    -moz-box-sizing:    border-box;
     56    box-sizing:         border-box;
     57}
     58
     59/* Remove the dotted border on :focus and the extra padding in Firefox */
     60button::-moz-focus-inner,
     61input[type="reset"]::-moz-focus-inner,
     62input[type="button"]::-moz-focus-inner,
     63input[type="submit"]::-moz-focus-inner {
     64    border: 1px solid transparent;
     65    padding: 0;
    5866}
    5967
    6068.button.button-large,
    6169.button-group.button-large .button {
    62     padding: 0.4em 1.0em 0.5em;
     70    padding: 5px 12px;
    6371}
    6472
    6573.button.button-small,
    6674.button-group.button-small .button {
    67     padding: 0.15em 0.75em 0.17em;
     75    padding: 2px 8px;
    6876}
    6977
Note: See TracChangeset for help on using the changeset viewer.