Make WordPress Core

Ticket #63468: 63468.2.diff

File 63468.2.diff, 4.3 KB (added by meszarosrob, 16 months ago)

Patch using the colors of the WordPress admin for the embeds dark mdoe

  • src/wp-includes/css/wp-embed-template.css

    diff --git src/wp-includes/css/wp-embed-template.css src/wp-includes/css/wp-embed-template.css
    index b5a482b..09f0030 100644
    html[dir="rtl"] .wp-embed-share-tab-button + .wp-embed-share-tab-button {  
    353353        border-left: none;
    354354        border-right: 1px solid #a7aaad;
    355355}
     356
     357@media (prefers-color-scheme: dark) {
     358        .dashicons-no {
     359                background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M15.55%2013.7l-2.19%202.06-3.42-3.65-3.64%203.43-2.06-2.18%203.64-3.43-3.42-3.64%202.18-2.06%203.43%203.64%203.64-3.42%202.05%202.18-3.64%203.43z%27%20fill%3D%27%238c8f94%27%2F%3E%3C%2Fsvg%3E")
     360        }
     361
     362        .dashicons-no:hover {
     363                background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M15.55%2013.7l-2.19%202.06-3.42-3.65-3.64%203.43-2.06-2.18%203.64-3.43-3.42-3.64%202.18-2.06%203.43%203.64%203.64-3.42%202.05%202.18-3.64%203.43z%27%20fill%3D%27%23f0f0f1%27%2F%3E%3C%2Fsvg%3E")
     364        }
     365
     366        .dashicons-admin-comments {
     367                background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M5%202h9q.82%200%201.41.59T16%204v7q0%20.82-.59%201.41T14%2013h-2l-5%205v-5H5q-.82%200-1.41-.59T3%2011V4q0-.82.59-1.41T5%202z%27%20fill%3D%27%238c8f94%27%2F%3E%3C%2Fsvg%3E")
     368        }
     369
     370        .wp-embed-comments a:hover .dashicons-admin-comments {
     371                background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M5%202h9q.82%200%201.41.59T16%204v7q0%20.82-.59%201.41T14%2013h-2l-5%205v-5H5q-.82%200-1.41-.59T3%2011V4q0-.82.59-1.41T5%202z%27%20fill%3D%27%23f0f0f1%27%2F%3E%3C%2Fsvg%3E")
     372        }
     373
     374        .dashicons-share {
     375                background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.5%2012q1.24%200%202.12.88T17.5%2015t-.88%202.12-2.12.88-2.12-.88T11.5%2015q0-.34.09-.69l-4.38-2.3Q6.32%2013%205%2013q-1.24%200-2.12-.88T2%2010t.88-2.12T5%207q1.3%200%202.21.99l4.38-2.3q-.09-.35-.09-.69%200-1.24.88-2.12T14.5%202t2.12.88T17.5%205t-.88%202.12T14.5%208q-1.3%200-2.21-.99l-4.38%202.3Q8%209.66%208%2010t-.09.69l4.38%202.3q.89-.99%202.21-.99z%27%20fill%3D%27%238c8f94%27%2F%3E%3C%2Fsvg%3E")
     376        }
     377
     378        .wp-embed-share-dialog-open:hover .dashicons-share {
     379                background-image: url("data:image/svg+xml;charset=utf8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2020%2020%27%3E%3Cpath%20d%3D%27M14.5%2012q1.24%200%202.12.88T17.5%2015t-.88%202.12-2.12.88-2.12-.88T11.5%2015q0-.34.09-.69l-4.38-2.3Q6.32%2013%205%2013q-1.24%200-2.12-.88T2%2010t.88-2.12T5%207q1.3%200%202.21.99l4.38-2.3q-.09-.35-.09-.69%200-1.24.88-2.12T14.5%202t2.12.88T17.5%205t-.88%202.12T14.5%208q-1.3%200-2.21-.99l-4.38%202.3Q8%209.66%208%2010t-.09.69l4.38%202.3q.89-.99%202.21-.99z%27%20fill%3D%27%23f0f0f1%27%2F%3E%3C%2Fsvg%3E")
     380        }
     381
     382        .wp-embed {
     383                background: #1d2327;
     384                border-color: #000;
     385                color: #c3c4c7
     386        }
     387
     388        .wp-embed a {
     389                color: #8c8f94
     390        }
     391
     392        .wp-embed-heading a {
     393                color: #f0f0f1
     394        }
     395
     396        .wp-embed .wp-embed-more {
     397                color: #8c8f94
     398        }
     399
     400        .wp-embed-meta a:hover {
     401                color: #f0f0f1
     402        }
     403
     404        .wp-embed-share-dialog {
     405                background-color: #1d2327;
     406                background-color: rgba(29, 35, 39, .95);
     407                color: #f0f0f1
     408        }
     409
     410        .wp-embed-share-dialog-close:focus .dashicons, .wp-embed-share-dialog-open:focus .dashicons {
     411                box-shadow: 0 0 0 2px #2271b1
     412        }
     413
     414        .wp-embed-share-tab-button button {
     415                color: #8c8f94
     416        }
     417
     418        .wp-embed-share-tab-button [aria-selected=true], .wp-embed-share-tab-button button:hover {
     419                color: #f0f0f1
     420        }
     421
     422        .wp-embed-share-tab-button + .wp-embed-share-tab-button {
     423                border-left-color: #8c8f94
     424        }
     425
     426        p.wp-embed-share-description {
     427                color: #8c8f94
     428        }
     429
     430        html[dir=rtl] .wp-embed-share-tab-button + .wp-embed-share-tab-button {
     431                border-right-color: #8c8f94
     432        }
     433
     434        .wp-embed-site-icon[src*="/wp-includes/images/w-logo-blue.png"] {
     435                background: #f6f7f7;
     436                border-radius: 50%
     437        }
     438
     439        .wp-embed-share-input {
     440                background: #fff;
     441                color: #1d2327
     442        }
     443}
     444