Make WordPress Core

Ticket #23536: 23536.1.diff

File 23536.1.diff, 3.2 KB (added by obenland, 14 years ago)

Based off of Joen's work: a bit less intrusive, a bit more CSS style guideline conform

  • wp-content/themes/twentythirteen/style.css

     
    565565        z-index: 100000; /* Above WP toolbar */
    566566}
    567567
     568/* Form fields, general styles first. */
     569button,
     570input,
     571textarea {
     572        border: 2px solid #d4d0ba;
     573        font-family: inherit;
     574        padding: 5px;
     575}
     576
     577input,
     578textarea {
     579        color: #141412;
     580}
     581
     582input:focus,
     583textarea:focus {
     584        border: 2px solid #c3c0ab;
     585        outline: 0;
     586}
     587
    568588/* Buttons */
    569589button,
    570590input[type="submit"],
    … …  
    576596        background: -ms-linear-gradient(    top, #e05d22 0%, #d94412 100%); /* IE10+ */
    577597        background: -o-linear-gradient(     top, #e05d22 0%, #d94412 100%); /* Opera 11.10+ */
    578598        background: linear-gradient(  to bottom, #e05d22 0%, #d94412 100%); /* W3C */
    579         filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e05d22', endColorstr='#d94412',GradientType=0 ); /* IE6-9 */
     599        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#e05d22', endColorstr='#d94412', GradientType=0); /* IE6-9 */
    580600        display: inline-block;
    581601        padding: 11px 24px 10px 24px;
    582602        color: #fff;
    … …  
    586606        border-radius: 2px;
    587607}
    588608
     609button:hover,
     610button:focus,
     611input[type="submit"]:hover,
     612input[type="button"]:hover,
     613input[type="reset"]:hover,
     614input[type="submit"]:focus,
     615input[type="button"]:focus,
     616input[type="reset"]:focus {
     617        background: #ed6a31; /* Old browsers */
     618        background: -webkit-linear-gradient(top, #ed6a31 0%, #e55627 100%); /* Chrome10+,Safari5.1+ */
     619        background: -moz-linear-gradient(   top, #ed6a31 0%, #e55627 100%); /* FF3.6+ */
     620        background: -ms-linear-gradient(    top, #ed6a31 0%, #e55627 100%); /* IE10+ */
     621        background: -o-linear-gradient(     top, #ed6a31 0%, #e55627 100%); /* Opera 11.10+ */
     622        background: linear-gradient(  to bottom, #ed6a31 0%, #e55627 100%); /* W3C */
     623        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ed6a31', endColorstr='#e55627', GradientType=0); /* IE6-9 */
     624        outline: none;
     625}
     626
    589627button:active,
    590628input[type="submit"]:active,
    591629input[type="button"]:active,
    … …  
    596634        background: -ms-linear-gradient(    top, #d94412 0%, #e05d22 100%); /* IE10+ */
    597635        background: -o-linear-gradient(     top, #d94412 0%, #e05d22 100%); /* Opera 11.10+ */
    598636        background: linear-gradient(  to bottom, #d94412 0%, #e05d22 100%); /* W3C */
    599         filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#d94412', endColorstr='#e05d22',GradientType=0 ); /* IE6-9 */
     637        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#d94412', endColorstr='#e05d22', GradientType=0); /* IE6-9 */
    600638        border: none;
    601639        border-top: 3px solid #b93207;
    602640        padding: 10px 24px 11px 24px;
    … …  
    611649        padding: 5px 24px 6px;
    612650}
    613651
    614 /* Form fields, general styles first. */
    615 button,
    616 input,
    617 textarea {
    618         border: 2px solid #d4d0ba;
    619         font-family: inherit;
    620         padding: 5px;
    621 }
    622 
    623 input,
    624 textarea {
    625         color: #141412;
    626 }
    627 
    628 input:focus,
    629 textarea:focus {
    630         border: 2px solid #c3c0ab;
    631         outline: 0;
    632 }
    633 
    634652/* Placeholder text color -- selectors need to be in separate to work. */
    635653::-webkit-input-placeholder {
    636654        color: #7d7b6d;