Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions src/wp-admin/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ a:focus .media-icon img,
a:focus .plugin-icon,
.wp-person a:focus .gravatar {
color: #043959;
box-shadow: 0 0 0 2px #2271b1;
border-radius: 2px;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand Down Expand Up @@ -826,7 +827,7 @@ img.emoji {
.tagchecklist .ntdelbutton .remove-tag-icon:before {
margin-left: 2px;
border-radius: 50%;
color: #2271b1;
color: var(--wp-admin-theme-color, #3858e9);
/* vertically center the icon cross browsers */
line-height: 1.28;
}
Expand All @@ -843,7 +844,7 @@ img.emoji {
}

.tagchecklist .ntdelbutton:focus .remove-tag-icon:before {
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand Down Expand Up @@ -2511,7 +2512,7 @@ h1.nav-tab-wrapper, /* Back-compat for pre-4.4 */

.accordion-section-title button.accordion-trigger:focus,
.nav-menus-php .metabox-holder .accordion-section-title button.accordion-trigger:focus {
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
outline: 2px solid transparent;
}

Expand Down Expand Up @@ -3333,7 +3334,7 @@ img {
.postbox .handle-order-higher:focus,
.postbox .handle-order-lower:focus,
.postbox .handlediv:focus {
box-shadow: inset 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color);
border-radius: 50%;
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
Expand Down Expand Up @@ -3680,7 +3681,7 @@ img {
}

.widget-top .widget-action:focus .toggle-indicator:before {
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand Down
5 changes: 3 additions & 2 deletions src/wp-admin/css/customize-controls.css
Original file line number Diff line number Diff line change
Expand Up @@ -1654,7 +1654,7 @@ p.customize-section-description {
}

.customize-control-header .choice:focus {
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand Down Expand Up @@ -2819,7 +2819,8 @@ body.adding-widget .add-new-widget:before,

#available-widgets-filter .clear-results:focus,
#available-menu-items-search .clear-results:focus {
box-shadow: 0 0 0 2px #2271b1;
border-radius: 2px;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/css/customize-nav-menus.css
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ li.assigned-to-menu-location .add-new-menu-item {
.menu-delete:focus,
.menu-item-bar .item-delete:focus:before,
#available-menu-items .item-add:focus:before {
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/css/edit.css
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,7 @@ div.tabs-panel-inactive {
}

div.tabs-panel-active:focus {
box-shadow: inset 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand Down
3 changes: 2 additions & 1 deletion src/wp-admin/css/install.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ a:active {

a:focus {
color: #043959;
box-shadow: 0 0 0 2px #2271b1;
border-radius: 2px;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand Down
5 changes: 3 additions & 2 deletions src/wp-admin/css/list-tables.css
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ th.sorted.desc:hover .sorting-indicator.asc:before {
}

.wp-list-table .toggle-row:focus:before {
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand Down Expand Up @@ -653,7 +653,8 @@ th.sorted a {

th.sortable a:focus,
th.sorted a:focus {
box-shadow: inset 0 0 0 2px #2271b1;
border-radius: 2px;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/css/login.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ a:active {

a:focus {
color: #043959;
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand Down
8 changes: 4 additions & 4 deletions src/wp-admin/css/media.css
Original file line number Diff line number Diff line change
Expand Up @@ -341,11 +341,11 @@

#find-posts-close:hover,
#find-posts-close:focus {
color: #135e96;
color: var(--wp-admin-theme-color-darker-20, #183ad6);
}

#find-posts-close:focus {
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
outline-offset: -2px;
Expand Down Expand Up @@ -524,7 +524,7 @@ border color while dragging a file over the uploader drop area */
.media-frame.mode-grid .attachment:focus,
.media-frame.mode-grid .selected.attachment:focus,
.media-frame.mode-grid .attachment.details:focus {
box-shadow: inset 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
outline-offset: -6px;
Expand All @@ -539,7 +539,7 @@ border color while dragging a file over the uploader drop area */
.media-frame.mode-grid .attachment.details {
box-shadow:
inset 0 0 0 3px #f0f0f1,
inset 0 0 0 7px #4f94d4;
inset 0 0 0 7px var(--wp-admin-theme-color, #3858e9);
}

.media-frame.mode-grid.mode-select .attachment .thumbnail {
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/css/nav-menus.css
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ body.menu-max-depth-11 { min-width: 1280px !important; }
}

.nav-menus-php .item-edit:focus:before {
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/css/revisions.css
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ div.revisions-controls > .wp-slider > .ui-slider-handle {
.wp-slider .ui-slider-handle.ui-state-focus {
background: #f0f0f1;
border-color: #8c8f94;
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand Down
8 changes: 4 additions & 4 deletions src/wp-admin/css/themes.css
Original file line number Diff line number Diff line change
Expand Up @@ -198,12 +198,12 @@ body.js .theme-browser.search-loading {
}

.theme-browser .theme .more-details:focus {
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
}

.theme-browser .theme.focus {
border-color: #2271b1;
box-shadow: 0 0 0 1px #2271b1;
border-color: var(--wp-admin-theme-color);
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand Down Expand Up @@ -1648,7 +1648,7 @@ body.full-overlay-active {

.wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-arrow,
.wp-full-overlay .collapse-sidebar:focus .collapse-sidebar-arrow {
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand Down
2 changes: 1 addition & 1 deletion src/wp-admin/css/widgets.css
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@
}

.sidebar-name .handlediv:focus .toggle-indicator:before {
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand Down
18 changes: 9 additions & 9 deletions src/wp-includes/css/editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@

.mce-window-head .mce-close:focus .mce-i-remove,
div.mce-tab:focus {
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand All @@ -113,8 +113,8 @@ div.mce-tab:focus {
.mce-textbox.mce-focus,
.mce-checkbox:focus i.mce-i-checkbox,
#wp-link .query-results:focus {
border-color: #4f94d4;
box-shadow: 0 0 0 2px #2271b1;
border-color: var(--wp-admin-theme-color-darker-10, #2145e6);
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand Down Expand Up @@ -413,7 +413,7 @@ div.mce-path {
.qt-dfw:focus {
background: #f6f7f7;
color: #1d2327;
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand Down Expand Up @@ -538,7 +538,7 @@ div.mce-path {

.mce-toolbar .mce-btn-group .mce-btn.mce-listbox:hover,
.mce-toolbar .mce-btn-group .mce-btn.mce-listbox:focus {
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand Down Expand Up @@ -638,7 +638,7 @@ div.mce-menubar {

.mce-menubar .mce-menubtn:focus {
color: #043959;
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
}
Expand Down Expand Up @@ -1166,7 +1166,7 @@ i.mce-i-wp_code:before {
}

.wp-switch-editor:focus {
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
color: #1d2327;
Expand Down Expand Up @@ -1469,11 +1469,11 @@ i.mce-i-wp_code:before {

#wp-link-close:hover,
#wp-link-close:focus {
color: #135e96;
color: var(--wp-admin-theme-color-darker-20, #183ad6);
}

#wp-link-close:focus {
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
outline-offset: -2px;
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/css/jquery-ui-dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@
}

.ui-button.ui-dialog-titlebar-close:focus {
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
outline-offset: -2px;
Expand Down
19 changes: 10 additions & 9 deletions src/wp-includes/css/media-views.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
}

.media-frame a:focus {
box-shadow: 0 0 0 2px #2271b1;
border-radius: 2px;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
color: #043959;
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
Expand Down Expand Up @@ -688,7 +689,7 @@
}

.media-menu .media-menu-item:focus {
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
color: #043959;
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
Expand Down Expand Up @@ -741,7 +742,7 @@
}

.media-router .media-menu-item:focus {
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
color: #043959;
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
Expand Down Expand Up @@ -999,7 +1000,7 @@
.wp-core-ui .attachment.details:focus {
box-shadow:
inset 0 0 2px 3px #fff,
inset 0 0 0 7px #4f94d4;
inset 0 0 0 7px var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
outline-offset: -6px;
Expand All @@ -1014,7 +1015,7 @@
.wp-core-ui .attachment.details {
box-shadow:
inset 0 0 0 3px #fff,
inset 0 0 0 7px #2271b1;
inset 0 0 0 7px var(--wp-admin-theme-color-darker-20, #183ad6);
}

.wp-core-ui .attachment-preview {
Expand Down Expand Up @@ -1173,10 +1174,10 @@
.wp-core-ui .attachment.details .check,
.wp-core-ui .attachment.selected .check:focus,
.wp-core-ui .media-frame.mode-grid .attachment.selected .check {
background-color: #2271b1;
background-color: var(--wp-admin-theme-color, #3858e9);
box-shadow:
0 0 0 1px #fff,
0 0 0 2px #2271b1;
0 0 0 2px var(--wp-admin-theme-color, #3858e9);
}

.wp-core-ui .attachment.selected .check:focus {
Expand Down Expand Up @@ -2148,8 +2149,8 @@
}

.mejs-container:focus {
outline: 1px solid #2271b1;
box-shadow: 0 0 0 2px #2271b1;
outline: 1px solid var(--wp-admin-theme-color, #3858e9);
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
}

.image-details .media-modal {
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/css/wp-embed-template.css
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ p.wp-embed-heading {

.wp-embed-share-dialog-open:focus .dashicons,
.wp-embed-share-dialog-close:focus .dashicons {
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
/* Only visible in Windows High Contrast mode */
outline: 2px solid transparent;
border-radius: 100%;
Expand Down
2 changes: 1 addition & 1 deletion src/wp-includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3970,7 +3970,7 @@ function _default_wp_die_handler( $message, $title = '', $args = array() ) {
}
a:focus {
color: #043959;
box-shadow: 0 0 0 2px #2271b1;
box-shadow: 0 0 0 var(--wp-admin-border-width-focus, 1.5px) var(--wp-admin-theme-color, #3858e9);
outline: 2px solid transparent;
}
.button {
Expand Down
Loading