Making WordPress.org


Ignore:
Timestamp:
09/16/2020 10:07:05 PM (5 years ago)
Author:
coreymckrill
Message:

WordPress.org Learn: Sync with GitHub

https://github.com/WordPress/learn/compare/41d65294a2e67cf35a5b799d179f2e6f53b58b48...fb8968a2cbd50fc4c1a8764586731e903577d3f3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/css/components/_search-form.scss

    r10231 r10272  
    77    display: flex;
    88    align-items: center;
    9 
    109
    1110    > input {
     
    2928}
    3029
    31 .site-header.home .search-form,
    32 .page-content .search-form {
    33     display: flex;
    34     justify-content: space-between;
     30.search-form {
     31    &--is-inline {
     32        .search-form {
     33            display: flex;
     34            justify-content: space-between;
    3535
    36     background: #fff;
    37     max-width: $gutter-default * 24;
     36            background: #fff;
    3837
    39     > label {
    40         flex: 1;
    41     }
     38            > label {
     39                flex: 1;
     40            }
    4241
    43     input {
     42            input {
    4443
    45         padding: 0.5rem;
    46         background: transparent;
    47         border: none;
    48         box-shadow: none;
    49         width: 100%;
    50         font-size: 14px;
     44                padding: 0.5rem;
     45                background: transparent;
     46                border: none;
     47                box-shadow: none;
     48                width: 100%;
     49                font-size: 14px;
    5150
    52         @media only screen and (min-width: $breakpoint-tablet) {
    53             font-size: 16px;
     51                @media only screen and (min-width: $breakpoint-tablet) {
     52                    font-size: 16px;
     53                }
     54            }
     55
     56            button {
     57                background: transparent;
     58                margin-bottom: 0;
     59                border: 0;
     60                box-shadow: none;
     61                height: inherit;
     62                text-shadow: none;
     63                color: #32373c;
     64
     65                &:focus {
     66                    -webkit-box-shadow: 0 0 2px 1px $color__wp-blue;
     67                    box-shadow: 0 0 2px 1px $color__wp-blue;
     68                }
     69            }
    5470        }
    5571    }
    5672
    57     button {
    58         background: transparent;
    59         margin-bottom: 0;
    60         border: 0;
    61         box-shadow: none;
    62         height: inherit;
    63         text-shadow: none;
    64         color: #32373c;
     73    &--is-centered {
     74        .search-form {
     75            margin: 0 auto;
     76        }
     77    }
    6578
    66         &:focus {
    67             -webkit-box-shadow: 0 0 2px 1px $color__wp-blue;
    68             box-shadow: 0 0 2px 1px $color__wp-blue;
     79    &--is-constrained {
     80        .search-form {
     81            max-width: $gutter-default * 24;
     82        }
     83    }
     84
     85    &--is-muted {
     86        .search-form {
     87            input,
     88            button {
     89                background: #f8f9f9;
     90                color: #7e8993;
     91            }
     92            border-color: #d7dade !important;
     93
     94        }
     95    }
     96
     97    &--has-medium-text {
     98        .search-form {
     99            input {
     100                font-size: 14px;
     101            }
     102        }
     103    }
     104
     105    &--has-border {
     106        .search-form {
     107            border: 1px solid $color-gray-200;
    69108        }
    70109    }
    71110}
    72 
    73 .site-header.home .search-form {
    74     margin: 0 auto;
    75 }
    76 
    77 .page-content .search-form {
    78     border: 1px solid $color-gray-200;
    79 }
Note: See TracChangeset for help on using the changeset viewer.