Making WordPress.org


Ignore:
Timestamp:
03/05/2024 02:45:07 AM (2 years ago)
Author:
adamwood
Message:

Support Theme: Redesign iteration 1

Replace wp4 with wporg-parent-2021
Redesign forums homepage
Reskin templates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/sass/forms/_buttons.scss

    r13167 r13272  
    166166.button:active,
    167167.button-secondary:active {
    168     background: $color__background-button;
     168    background: var(--wp--preset--color--light-grey-1);
    169169    border-color: #999;
    170170    box-shadow: inset 0 2px 5px -3px rgba( 0, 0, 0, 0.5 );
     
    215215
    216216.button-primary,
    217 .download-button {
    218     background: #0085ba;
    219     border-color: #0073aa #006799 #006799;
    220     box-shadow: 0 1px 0 #006799;
    221     color: #fff;
     217.download-button,
     218.is-primary,
     219input[type="submit"],
     220button[type="submit"] {
     221    background: var(--wp--custom--button--color--background);
     222    border: var(--wp--custom--button--border--width) var(--wp--custom--button--border--style) var(--wp--custom--button--border--color);
     223    border-radius: var(--wp--custom--button--border--radius);
     224    box-shadow: none;
     225    color: var(--wp--custom--button--color--text);
    222226    text-decoration: none;
    223     text-shadow: 0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799, -1px 0 1px #006799;
     227    text-shadow: none;
     228    font-size: var(--wp--custom--button--small--typography--font-size);
     229    line-height: 1.3;
     230    padding-right: var(--wp--custom--button--small--spacing--padding--right);
     231    padding-left: var(--wp--custom--button--small--spacing--padding--left);
    224232
    225233    &:visited {
    226         background: #0085ba;
    227         border-color: #0073aa #006799 #006799;
    228         box-shadow: 0 1px 0 #006799;
    229         color: #fff;
     234        background: var(--wp--custom--button--color--background);
     235        border-color: var(--wp--custom--button--border--color);
     236        box-shadow: none;
     237        color: var(--wp--custom--button--color--text);
    230238    }
    231239
     
    234242    &.focus,
    235243    &:focus {
    236         background: #008ec2;
    237         border-color: #006799;
    238         box-shadow: 0 1px 0 #006799;
    239         color: #fff;
     244        background: var(--wp--custom--button--hover--color--background);
     245        border-color: var(--wp--custom--button--hover--color--background);
     246        box-shadow: none;
     247        color: var(--wp--custom--button--hover--color--text);
    240248    }
    241249
    242250    &.focus,
    243251    &:focus {
    244         box-shadow: 0 1px 0 #0073aa, 0 0 2px 1px #33b3db;
     252        box-shadow: none;
     253        border-color: var(--wp--custom--button--focus--border--color);
    245254    }
    246255
     
    249258    &.active:focus,
    250259    &:active {
    251         background: #0073aa;
    252         border-color: #006799;
    253         box-shadow: inset 0 2px 0 #006799;
     260        background: var(--wp--custom--button--active--color--background);
     261        border-color: var(--wp--custom--button--active--border--color);
     262        color: var(--wp--custom--button--active--color--text);
     263        box-shadow: none;
    254264        vertical-align: top;
    255265    }
     
    258268    &:disabled,
    259269    &.disabled {
    260         background: #008ec2 !important;
    261         border-color: #007cb2 !important;
     270        background: var(--wp--custom--button--disabled--background-color) !important;
     271        border-color: var(--wp--custom--button--disabled--border-color) !important;
    262272        box-shadow: none !important;
    263         color: #66c6e4 !important;
     273        color: var(--wp--custom--button--disabled--color) !important;
    264274        cursor: default;
    265         text-shadow: 0 -1px 0 rgba( 0, 0, 0, 0.1 ) !important;
    266275    }
    267276
     
    279288
    280289.button-primary-disabled {
    281     background: #008ec2 !important;
    282     border-color: #007cb2 !important;
     290    background: var(--wp--custom--button--disabled--background-color) !important;
     291    border-color: var(--wp--custom--button--disabled--border-color) !important;
    283292    box-shadow: none !important;
    284     color: #66c6e4 !important;
     293    color: var(--wp--custom--button--disabled--color) !important;
    285294    cursor: default;
    286     text-shadow: 0 -1px 0 rgba( 0, 0, 0, 0.1 ) !important;
    287295}
    288296
Note: See TracChangeset for help on using the changeset viewer.