Changeset 46241
- Timestamp:
- 09/23/2019 02:42:36 PM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/colors/_admin.scss
r45276 r46241 44 44 } 45 45 46 input[type="text"]:focus, 47 input[type="password"]:focus, 48 input[type="color"]:focus, 49 input[type="date"]:focus, 50 input[type="datetime"]:focus, 51 input[type="datetime-local"]:focus, 52 input[type="email"]:focus, 53 input[type="month"]:focus, 54 input[type="number"]:focus, 55 input[type="search"]:focus, 56 input[type="tel"]:focus, 57 input[type="text"]:focus, 58 input[type="time"]:focus, 59 input[type="url"]:focus, 60 input[type="week"]:focus, 61 input[type="checkbox"]:focus, 62 input[type="radio"]:focus, 63 select:focus, 64 textarea:focus { 65 border-color: $highlight-color; 66 box-shadow: 0 0 0 1px $highlight-color; 67 } 68 46 69 47 70 /* Core UI */ 48 71 49 72 .wp-core-ui { 73 .button.focus, 74 .button:focus, 75 .button-secondary:focus { 76 border-color: $button-color; 77 color: darken( $button-color, 5% ); 78 box-shadow: 0 0 0 1px $button-color; 79 } 80 50 81 .button-primary { 51 82 @include button( $button-color ); -
trunk/src/wp-admin/css/colors/_mixins.scss
r41984 r46241 1 1 /* 2 * Button mixin- creates 3d-ishbutton effect with correct2 * Button mixin- creates a button effect with correct 3 3 * highlights/shadows, based on a base color. 4 4 */ 5 5 @mixin button( $button-color, $text-color: #fff ) { 6 6 background: $button-color; 7 border-color: darken( $button-color, 10% ) darken( $button-color, 15% ) darken( $button-color, 15% );7 border-color: $button-color; 8 8 color: $text-color; 9 box-shadow: 0 1px 0 darken( $button-color, 15% );10 text-shadow: 0 -1px 1px darken( $button-color, 15% ),11 1px 0 1px darken( $button-color, 15% ),12 0 1px 1px darken( $button-color, 15% ),13 -1px 0 1px darken( $button-color, 15% );14 9 15 10 &:hover, 16 11 &:focus { 17 12 background: lighten( $button-color, 3% ); 18 border-color: darken( $button-color, 15% );13 border-color: darken( $button-color, 3% ); 19 14 color: $text-color; 20 box-shadow: 0 1px 0 darken( $button-color, 15% );21 15 } 22 16 23 17 &:focus { 24 box-shadow: inset 0 1px 0 darken( $button-color, 10% ), 25 0 0 2px 1px #33b3db; 18 box-shadow: 19 0 0 0 1px #fff, 20 0 0 0 3px $button-color; 26 21 } 27 22 … … 30 25 &.active:focus, 31 26 &.active:hover { 32 background: darken( $button-color, 10% ); 33 border-color: darken( $button-color, 15% ); 34 box-shadow: inset 0 2px 0 darken( $button-color, 15% ); 27 background: darken( $button-color, 5% ); 28 border-color: darken( $button-color, 5% ); 35 29 } 36 30 … … 40 34 &.disabled { 41 35 color: hsl( hue( $button-color ), 10%, 80% ) !important; 42 background: darken( $button-color, 8% ) !important;43 border-color: darken( $button-color, 15% ) !important;36 background: lighten( $button-color, 15% ) !important; 37 border-color: lighten( $button-color, 15% ) !important; 44 38 text-shadow: none !important; 45 39 } 46 47 &.button-hero {48 box-shadow: 0 2px 0 darken( $button-color, 15% ) !important;49 &:active {50 box-shadow: inset 0 3px 0 darken( $button-color, 15% ) !important;51 }52 }53 54 40 } -
trunk/src/wp-admin/css/common.css
r46207 r46241 273 273 .wp-person a:focus .gravatar { 274 274 color: #124964; 275 box-shadow: 276 0 0 0 1px #5b9dd9, 277 0 0 2px 1px rgba(30, 140, 190, 0.8); 278 /* Only visible in Windows High Contrast mode */ 279 outline: 1px solid transparent; 275 outline: 1px dotted #555d66; 280 276 } 281 277 … … 285 281 286 282 #adminmenu a:focus { 287 box-shadow: none; 288 /* Only visible in Windows High Contrast mode */ 289 outline: 1px solid transparent; 283 outline: 1px dotted #555d66; 290 284 outline-offset: -1px; 291 285 } … … 624 618 top: -3px; 625 619 text-decoration: none; 626 border: none; 627 border: 1px solid #ccc; 620 border: 1px solid #7e8993; 628 621 border-radius: 2px; 629 background: #f7f7f7;630 622 text-shadow: none; 631 623 font-weight: 600; 632 624 font-size: 13px; 633 625 line-height: normal; /* IE8-IE11 need this for buttons */ 634 color: # 0073aa; /* some of these controls are button elements and don't inherit from links */626 color: #555; /* use the standard color used for buttons */ 635 627 cursor: pointer; 636 628 } … … 642 634 .wrap .add-new-h2:hover, /* deprecated */ 643 635 .wrap .page-title-action:hover { 644 b order-color: #008EC2;645 b ackground: #00a0d2;646 color: # fff;636 background: #f3f5f6; 637 border-color: #7e8993; 638 color: #007cba; 647 639 } 648 640 649 641 /* lower specificity: color needs to be overridden by :hover and :active */ 650 642 .page-title-action:focus { 651 color: # 124964;643 color: #016087; 652 644 } 653 645 … … 659 651 660 652 .wrap .page-title-action:focus { 661 border-color: # 5b9dd9;662 box-shadow: 0 0 2px rgba(30, 140, 190, 0.8);653 border-color: #007cba; 654 box-shadow: 0 0 0 1px #007cba; 663 655 /* Only visible in Windows High Contrast mode */ 664 656 outline: 2px solid transparent; … … 842 834 843 835 .tagchecklist .ntdelbutton:focus .remove-tag-icon:before { 844 box-shadow: 845 0 0 0 1px #5b9dd9, 846 0 0 2px 1px rgba(30, 140, 190, 0.8); 836 outline: 1px dotted #555d66; 847 837 } 848 838 … … 1442 1432 1443 1433 .notice-dismiss:focus { 1444 outline: none; 1445 box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8); 1434 outline: 1px dotted #555d66; 1446 1435 } 1447 1436 … … 3071 3060 3072 3061 .js .postbox .handlediv:focus .toggle-indicator:before { 3073 box-shadow: 3074 0 0 0 1px #5b9dd9, 3075 0 0 2px 1px rgba(30, 140, 190, 0.8); 3062 outline: 1px dotted #555d66; 3076 3063 } 3077 3064 … … 3167 3154 [role="treeitem"] .folder-label.focus { 3168 3155 color: #124964; 3169 box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, 0.8);3156 outline: 1px dotted #555d66; 3170 3157 } 3171 3158 [role="treeitem"].hover, … … 3394 3381 3395 3382 .widget-top .widget-action:focus .toggle-indicator:before { 3396 box-shadow: 3397 0 0 0 1px #5b9dd9, 3398 0 0 2px 1px rgba(30, 140, 190, 0.8); 3383 outline: 1px dotted #555d66; 3399 3384 } 3400 3385 -
trunk/src/wp-admin/css/forms.css
r45693 r46241 51 51 select:focus, 52 52 textarea:focus { 53 border-color: # 5b9dd9;54 box-shadow: 0 0 2px rgba(30, 140, 190, 0.8);53 border-color: #007cba; 54 box-shadow: 0 0 0 1px #007cba; 55 55 /* Only visible in Windows High Contrast mode */ 56 56 outline: 2px solid transparent; -
trunk/src/wp-admin/css/themes.css
r45188 r46241 179 179 180 180 .theme-browser .theme:focus { 181 border-color: #5b9dd9; 182 box-shadow: 0 0 2px rgba(30, 140, 190, 0.8); 181 outline: 1px dotted #555d66; 183 182 } 184 183 -
trunk/src/wp-includes/css/buttons.css
r45701 r46241 125 125 .wp-core-ui .button-secondary { 126 126 color: #555; 127 border-color: #cccccc; 128 background: #f7f7f7; 129 box-shadow: 0 1px 0 #cccccc; 127 border-color: #7e8993; 128 background: #f1f1f1; 130 129 vertical-align: top; 131 130 } … … 141 140 .wp-core-ui .button:focus, 142 141 .wp-core-ui .button-secondary:focus { 143 background: #f afafa;144 border-color: # 999;145 color: # 23282d;142 background: #f3f5f6; 143 border-color: #7e8993; 144 color: #007cba; 146 145 } 147 146 … … 149 148 .wp-core-ui .button:focus, 150 149 .wp-core-ui .button-secondary:focus { 151 border-color: #5b9dd9; 152 box-shadow: 0 0 3px rgba(0, 115, 170, 0.8); 150 background: #f3f5f6; 151 border-color: #007cba; 152 color: #016087; 153 box-shadow: 0 0 0 1px #007cba; 153 154 } 154 155 … … 159 160 background: #eee; 160 161 border-color: #999; 161 box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.5);162 162 transform: translateY(1px); 163 box-shadow: none; 163 164 } 164 165 165 166 .wp-core-ui .button.active:focus { 166 border-color: #5b9dd9; 167 box-shadow: 168 inset 0 2px 5px -3px rgba(0, 0, 0, 0.5), 169 0 0 3px rgba(0, 115, 170, 0.8); 167 border-color: #999; 168 box-shadow: 0 0 0 1px #999; 170 169 } 171 170 … … 211 210 .wp-core-ui .button-link:focus { 212 211 color: #124964; 213 box-shadow: 214 0 0 0 1px #5b9dd9, 215 0 0 2px 1px rgba(30, 140, 190, 0.8); 216 /* Only visible in Windows High Contrast mode */ 217 outline: 1px solid transparent; 212 outline: 1px dotted #555d66; 218 213 } 219 214 … … 242 237 243 238 .wp-core-ui .button-primary { 244 background: #0085ba; 245 border-color: #0073aa #006799 #006799; 246 box-shadow: 0 1px 0 #006799; 239 background: #007cba; 240 border-color: #007cba; 247 241 color: #fff; 248 242 text-decoration: none; 249 text-shadow: 0 -1px 1px #006799, 250 1px 0 1px #006799, 251 0 1px 1px #006799, 252 -1px 0 1px #006799; 243 text-shadow: none; 253 244 } 254 245 … … 257 248 .wp-core-ui .button-primary.focus, 258 249 .wp-core-ui .button-primary:focus { 259 background: #00 8ec2;260 border-color: #00 6799;250 background: #0071a1; 251 border-color: #0071a1; 261 252 color: #fff; 262 253 } … … 264 255 .wp-core-ui .button-primary.focus, 265 256 .wp-core-ui .button-primary:focus { 266 box-shadow: 0 1px 0 #0073aa, 267 0 0 2px 1px #33b3db; 257 box-shadow: 258 0 0 0 1px #fff, 259 0 0 0 3px #007cba; 268 260 } 269 261 … … 272 264 .wp-core-ui .button-primary.active:focus, 273 265 .wp-core-ui .button-primary:active { 274 background: #0073aa; 275 border-color: #006799; 276 box-shadow: inset 0 2px 0 #006799; 266 background: #00669b; 267 border-color: #00669b; 268 transform: translateY(1px); 269 box-shadow: none; 277 270 } 278 271 … … 283 276 color: #66c6e4 !important; 284 277 background: #008ec2 !important; 285 border-color: #00 7cb2 !important;278 border-color: #008ec2 !important; 286 279 box-shadow: none !important; 287 text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.1)!important;280 text-shadow: none !important; 288 281 cursor: default; 289 }290 291 .wp-core-ui .button.button-primary.button-hero {292 box-shadow: 0 2px 0 #006799;293 }294 295 .wp-core-ui .button.button-primary.button-hero:focus {296 box-shadow:297 0 2px 0 #006799,298 0 1px 0 #0073aa,299 0 0 2px 1px #33b3db;300 }301 302 .wp-core-ui .button.button-primary.button-hero.active,303 .wp-core-ui .button.button-primary.button-hero.active:hover,304 .wp-core-ui .button.button-primary.button-hero.active:focus,305 .wp-core-ui .button.button-primary.button-hero:active {306 box-shadow: inset 0 3px 0 #006799;307 282 } 308 283 … … 325 300 } 326 301 327 .wp-core-ui .button-group > .button-primary {328 z-index: 100;329 }330 331 .wp-core-ui .button-group > .button:hover {332 z-index: 20;333 }334 335 302 .wp-core-ui .button-group > .button:first-child { 336 303 border-radius: 3px 0 0 3px; … … 339 306 .wp-core-ui .button-group > .button:last-child { 340 307 border-radius: 0 3px 3px 0; 308 } 309 310 .wp-core-ui .button-group > .button-primary + .button { 311 border-left: 0; 341 312 } 342 313 … … 344 315 position: relative; 345 316 z-index: 1; 317 } 318 319 .wp-core-ui .button-group > .button.active { 320 background-color: #e2e4e7; 321 box-shadow: inset 0 1px 0 0 #999; 322 } 323 324 .wp-core-ui .button-group > .button:active, 325 .wp-core-ui .button-group > .button.active { 326 transform: translateY(0); 346 327 } 347 328
Note: See TracChangeset
for help on using the changeset viewer.