Make WordPress Core

Changeset 23470


Ignore:
Timestamp:
02/22/2013 06:08:25 AM (13 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: add hover/focus style for buttons and organize button and input selectors a bit for a better cascade. Fixes #23536, props obenland.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/style.css

    r23469 r23470  
    574574}
    575575
     576/* Form fields, general styles first. */
     577button,
     578input,
     579textarea {
     580    border: 2px solid #d4d0ba;
     581    font-family: inherit;
     582    padding: 5px;
     583}
     584
     585input,
     586textarea {
     587    color: #141412;
     588}
     589
     590input:focus,
     591textarea:focus {
     592    border: 2px solid #c3c0ab;
     593    outline: 0;
     594}
     595
    576596/* Buttons */
    577597button,
     
    585605    background: -o-linear-gradient(     top, #e05d22 0%, #d94412 100%); /* Opera 11.10+ */
    586606    background: linear-gradient(  to bottom, #e05d22 0%, #d94412 100%); /* W3C */
    587     filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e05d22', endColorstr='#d94412',GradientType=0 ); /* IE6-9 */
     607    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e05d22', endColorstr='#d94412', GradientType=0); /* IE6-9 */
    588608    display: inline-block;
    589609    padding: 11px 24px 10px 24px;
     
    593613    border-bottom: 3px solid #b93207;
    594614    border-radius: 2px;
     615}
     616
     617button:hover,
     618button:focus,
     619input[type="submit"]:hover,
     620input[type="button"]:hover,
     621input[type="reset"]:hover,
     622input[type="submit"]:focus,
     623input[type="button"]:focus,
     624input[type="reset"]:focus {
     625    background: #ed6a31; /* Old browsers */
     626    background: -webkit-linear-gradient(top, #ed6a31 0%, #e55627 100%); /* Chrome10+,Safari5.1+ */
     627    background: -moz-linear-gradient(   top, #ed6a31 0%, #e55627 100%); /* FF3.6+ */
     628    background: -ms-linear-gradient(    top, #ed6a31 0%, #e55627 100%); /* IE10+ */
     629    background: -o-linear-gradient(     top, #ed6a31 0%, #e55627 100%); /* Opera 11.10+ */
     630    background: linear-gradient(  to bottom, #ed6a31 0%, #e55627 100%); /* W3C */
     631    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ed6a31', endColorstr='#e55627', GradientType=0); /* IE6-9 */
     632    outline: none;
    595633}
    596634
     
    605643    background: -o-linear-gradient(     top, #d94412 0%, #e05d22 100%); /* Opera 11.10+ */
    606644    background: linear-gradient(  to bottom, #d94412 0%, #e05d22 100%); /* W3C */
    607     filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d94412', endColorstr='#e05d22',GradientType=0 ); /* IE6-9 */
     645    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#d94412', endColorstr='#e05d22', GradientType=0); /* IE6-9 */
    608646    border: none;
    609647    border-top: 3px solid #b93207;
     
    618656.post-password-required input[type="submit"]:active {
    619657    padding: 5px 24px 6px;
    620 }
    621 
    622 /* Form fields, general styles first. */
    623 button,
    624 input,
    625 textarea {
    626     border: 2px solid #d4d0ba;
    627     font-family: inherit;
    628     padding: 5px;
    629 }
    630 
    631 input,
    632 textarea {
    633     color: #141412;
    634 }
    635 
    636 input:focus,
    637 textarea:focus {
    638     border: 2px solid #c3c0ab;
    639     outline: 0;
    640658}
    641659
Note: See TracChangeset for help on using the changeset viewer.