Changeset 13476 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/sass/forms/_fields.scss
- Timestamp:
- 04/09/2024 06:31:42 AM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support-2024/sass/forms/_fields.scss
r13470 r13476 11 11 input[type="radio"], 12 12 input[type="checkbox"] { 13 background-color: #fff; 14 border: 1px solid var(--wp--preset--color--light-grey-1); 13 border: 1px solid var(--wp--custom--form--border--color); 15 14 box-shadow: var(--wp--custom--form--color--box-shadow); 16 color: var(--wp--custom--form--color--text); 17 transition: 0.05s border-color ease-in-out; 18 -webkit-appearance: none; 15 border-radius: var(--wp--custom--form--border--radius); 16 clear: none; 17 cursor: pointer; 18 display: inline-block; 19 width: 20px; 20 height: 20px; 21 line-height: 0; 22 padding: 0 !important; 23 text-align: center; 24 vertical-align: middle; 25 margin: 0; 19 26 20 27 &:focus { 28 box-shadow: none; 21 29 color: var(--wp--custom--form--color--text); 22 30 } 23 }24 31 25 input[type="checkbox"]:focus, 26 input[type="radio"]:focus { 27 border-color: #5b9dd9; 28 box-shadow: 0 0 2px rgba( 30, 140, 190, 0.8 ); 29 } 30 31 input[type="checkbox"], 32 input[type="radio"] { 33 background: #fff; 34 border: 1px solid #b4b9be; 35 box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.1 ); 36 clear: none; 37 color: #555; 38 cursor: pointer; 39 display: inline-block; 40 height: 25px; 41 line-height: 0; 42 margin: -4px 4px 0 0; 43 min-width: 16px; 44 padding: 0 !important; 45 text-align: center; 46 transition: 0.05s border-color ease-in-out; 47 vertical-align: middle; 48 width: 25px; 49 } 50 51 input[type="checkbox"] { 52 padding: 10px; 32 &:focus-visible { 33 outline: -webkit-focus-ring-color auto 1px; 34 } 53 35 } 54 36 55 37 input[type="radio"] { 56 38 border-radius: 50%; 57 line-height: 10px;58 margin-right: 4px;59 }60 39 61 input[type="checkbox"]:checked::before, 62 input[type="radio"]:checked::before { 63 display: inline-block; 64 float: left; 65 font: 400 21px/1 dashicons; 66 vertical-align: middle; 67 width: 16px; 68 -moz-osx-font-smoothing: grayscale; 69 -webkit-font-smoothing: antialiased; 70 speak: none; 71 } 72 73 input[type="checkbox"]:checked::before { 74 color: var(--wp--preset--color--blueberry-1); 75 content: "\f147"; 76 font: 400 30px/1 dashicons; 77 margin: -3px -5px; 78 } 79 80 input[type="radio"]:checked::before { 81 background-color: var(--wp--preset--color--blueberry-1); 82 border-radius: 50px; 83 content: "\2022"; 84 font-size: 24px; 85 height: 9px; 86 line-height: 16px; 87 margin: 7px; 88 text-indent: -9999px; 89 vertical-align: middle; 90 width: 9px; 40 & + label { 41 margin-left: 0.5em; 42 } 91 43 } 92 44 … … 106 58 box-shadow: var(--wp--custom--form--color--box-shadow); 107 59 font-family: inherit; 108 height: 40px; 109 110 &:focus { 111 border-color: var(--custom--form--color--border); 112 } 60 min-height: 40px; 113 61 } 114 62 … … 143 91 textarea:disabled, 144 92 textarea.disabled { 145 background: rgba( 255, 255, 255, 0.5);146 border-color: rgba( 222, 222, 222, 0.75);147 box-shadow: inset 0 1px 2px rgba( 0, 0, 0, 0.04 );148 color: rgba( 51, 51, 51, 0.5);93 background: var(--wp--custom--form--color--background); 94 border-color: var(--wp--custom--form--disabled--border-color); 95 box-shadow: none; 96 color: var(--wp--custom--form--disabled--color); 149 97 } 150 98 … … 172 120 vertical-align: middle; 173 121 } 174 175 176 /* =Media Queries177 -------------------------------------------------------------- */178 179 @media screen and ( min-width: 48em ) {180 181 input[type="checkbox"] {182 padding: 0;183 }184 185 input[type="checkbox"]:checked::before {186 font: 400 21px/1 dashicons;187 margin: -3px 0 0 -4px;188 }189 190 input[type="radio"],191 input[type="checkbox"] {192 height: 16px;193 width: 16px;194 }195 196 input[type="radio"]:checked::before {197 width: 6px;198 height: 6px;199 margin: 4px;200 }201 }
Note: See TracChangeset
for help on using the changeset viewer.