Changeset 10272 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-learn-2020/css/components/_search-form.scss
- Timestamp:
- 09/16/2020 10:07:05 PM (5 years ago)
- 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 7 7 display: flex; 8 8 align-items: center; 9 10 9 11 10 > input { … … 29 28 } 30 29 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; 35 35 36 background: #fff; 37 max-width: $gutter-default * 24; 36 background: #fff; 38 37 39 > label {40 flex: 1;41 }38 > label { 39 flex: 1; 40 } 42 41 43 input {42 input { 44 43 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; 51 50 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 } 54 70 } 55 71 } 56 72 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 } 65 78 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; 69 108 } 70 109 } 71 110 } 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.