WordPress.org

Make WordPress Core

Ticket #18380: 18380.2.diff

File 18380.2.diff, 10.7 KB (added by jorbin, 7 years ago)
  • src/wp-admin/css/colors.css

     
    1616  1.0 - General
    1717------------------------------------------------------------------------------*/
    1818
    19 html {
    20         background: #f1f1f1;
    21 }
    22 
    23 /* Checkbooms */
    24 
    25 input[type=checkbox],
    26 input[type=radio] {
    27         background: #fff;
    28         border-color: #bbb;
    29         color: #555;
    30 
    31         -webkit-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
    32         box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
    33 }
    34 
    35 input[type=checkbox]:checked:before {
    36         color: #1e8cbe;
    37 }
    38 
    39 input[type=radio]:checked:before {
    40         background-color: #1e8cbe;
    41 }
    42 
    43 .wp-core-ui input[type="reset"]:hover,
    44 .wp-core-ui input[type="reset"]:active {
    45         color: #2ea2cc;
    46 }
    47 
    48 
    49 /* Helper classes for plugins to leverage the active WordPress color scheme */
    50 
    51 .wp-ui-primary {
    52         color: #fff;
    53         background-color: #333;
    54 }
    55 .wp-ui-text-primary {
    56         color: #333;
    57 }
    58 
    59 .wp-ui-highlight {
    60         color: white;
    61         background-color: #1e8cbe;
    62 }
    63 .wp-ui-text-highlight {
    64         color: #1e8cbe;
    65 }
    66 
    67 .wp-ui-notification {
    68         color: #fff;
    69         background-color: #D54E21;
    70 }
    71 .wp-ui-text-notification {
    72         color: #D54E21;
    73 }
    74 
    75 .wp-ui-text-icon {
    76         color: #999;
    77 }
    78 
    79 
    80 #adminmenu .wp-has-current-submenu .wp-submenu,
    81 .no-js li.wp-has-current-submenu:hover .wp-submenu,
    82 #adminmenu a.wp-has-current-submenu:focus + .wp-submenu,
    83 #adminmenu .wp-has-current-submenu .wp-submenu.sub-open,
    84 #adminmenu .wp-has-current-submenu.opensub .wp-submenu {
    85         background-color: #333;
    86 }
    87 
    88 #adminmenu .wp-has-current-submenu .wp-submenu a,
    89 .no-js li.wp-has-current-submenu:hover .wp-submenu a,
    90 #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a,
    91 #adminmenu .wp-has-current-submenu .wp-submenu.sub-open a,
    92 #adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
    93         color: #bbb;
    94 }
    95 
    96 #adminmenu .wp-submenu a:hover,
    97 #adminmenu .wp-submenu a:focus,
    98 #adminmenu .wp-has-current-submenu .wp-submenu a:hover,
    99 #adminmenu .wp-has-current-submenu .wp-submenu a:focus,
    100 #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover,
    101 #adminmenu .wp-has-current-submenu .wp-submenu.sub-open a:hover,
    102 #adminmenu .wp-has-current-submenu .wp-submenu.sub-open a:focus,
    103 #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,
    104 #adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,
    105 .no-js li.wp-has-current-submenu:hover .wp-submenu a:hover,
    106 .no-js li.wp-has-current-submenu:hover .wp-submenu a:focus,
    107 .folded #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover,
    108 .folded #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus,
    109 .folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover,
    110 .folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus {
    111         background: none;
    112         color: #2ea2cc;
    113 }
    114 
    115 ul#adminmenu a.wp-has-current-submenu:after,
    116 ul#adminmenu > li.current > a.current:after {
    117         border-right-color: #f1f1f1;
    118 }
    119 
    120 .row-actions {
    121         color: #ddd;
    122 }
    123 
    124 .find-box-search,
    125 .find-box-buttons {
    126         background-color: #f7f7f7;
    127         border-top: 1px solid #dfdfdf;
    128 }
    129 
    130 .find-box {
    131         background-color: #444;
    132 }
    133 
    134 .find-box-head {
    135         color: #eee;
    136 }
    137 
    138 .find-box-inside {
    139         background-color: #fff;
    140 }
    141 
    14219a.page-numbers:hover {
    14320        border-color: #999;
    14421}
     
    19001777        background: #fbfbfb;
    19011778}
    19021779
    1903 .login form {
    1904         background: #fff;
    1905         -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.13);
    1906         box-shadow: 0 1px 3px rgba(0,0,0,0.13);
    1907 }
    1908 
    19091780body.login {
    19101781        background: #f1f1f1;
    19111782}
  • src/wp-admin/css/wp-admin.css

     
    259259
    260260input[type="checkbox"],
    261261input[type="radio"] {
     262        background: #fff;
     263        border-color: #bbb;
    262264        border-width: 1px;
    263265        border-style: solid;
     266        color: #555;
    264267        clear: none;
    265268        cursor: pointer;
    266269        display: inline-block;
     
    276279        -webkit-appearance: none;
    277280        -webkit-box-sizing: border-box;
    278281        box-sizing: border-box;
     282        -webkit-box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
     283        box-shadow: inset 0px 1px 2px rgba(0,0,0,0.1);
    279284}
    280285
     286input[type=checkbox]:checked:before {
     287        color: #1e8cbe;
     288}
     289
     290input[type=radio]:checked:before {
     291        background-color: #1e8cbe;
     292}
     293
     294.wp-core-ui input[type="reset"]:hover,
     295.wp-core-ui input[type="reset"]:active {
     296        color: #2ea2cc;
     297}
     298
    281299td > input[type="checkbox"],
    282300.wp-admin p input[type=checkbox],
    283301.wp-admin p input[type=radio] {
     
    356374}
    357375
    358376/* general */
     377html {
     378        background: #f1f1f1;
     379}
     380
    359381html,
    360382body {
    361383        height: 100%;
     
    363385        padding: 0;
    364386}
    365387
     388
    366389body {
    367390        font-family: "Open Sans", sans-serif;
    368391        font-size: 13px;
     
    904927   color: #a9a9a9;
    905928}
    906929
     930
     931/* Helper classes for plugins to leverage the active WordPress color scheme */
     932
     933.wp-ui-primary {
     934        color: #fff;
     935        background-color: #333;
     936}
     937.wp-ui-text-primary {
     938        color: #333;
     939}
     940
     941.wp-ui-highlight {
     942        color: white;
     943        background-color: #1e8cbe;
     944}
     945.wp-ui-text-highlight {
     946        color: #1e8cbe;
     947}
     948
     949.wp-ui-notification {
     950        color: #fff;
     951        background-color: #D54E21;
     952}
     953.wp-ui-text-notification {
     954        color: #D54E21;
     955}
     956
     957.wp-ui-text-icon {
     958        color: #999;
     959}
     960
    907961/*------------------------------------------------------------------------------
    908962  1.0 - Text Styles
    909963------------------------------------------------------------------------------*/
     
    14861540
    14871541/* nothing? */
    14881542
     1543a .mceIcon, .mceAction {
     1544        color:#777;
     1545}
     1546
     1547a .mceIcon:hover {
     1548        color:#333;
     1549}
     1550
     1551.clearlooks2 {
     1552        box-shadow: 0 5px 15px rgba(0,0,0,0.7);
     1553}
     1554
     1555.clearlooks2 .mceMiddle span,
     1556.clearlooks2 .mceMiddle .mceLeft,
     1557.clearlooks2 .mceMiddle .mceRight,
     1558.clearlooks2 .mceBottom,
     1559.clearlooks2 .mceBottom .mceLeft,
     1560.clearlooks2 .mceBottom .mceCenter,
     1561.clearlooks2 .mceBottom .mceRight {
     1562        background-color: #fcfcfc;
     1563}
     1564
     1565.clearlooks2 .mceTop span,
     1566.clearlooks2 .mceFocus .mceTop span {
     1567        color: #222;
     1568}
     1569
     1570.clearlooks2 .mceClose:before {
     1571        color: #999;
     1572}
     1573
     1574.clearlooks2 .mceClose:hover:before {
     1575        color: #2ea2cc;
     1576}
     1577
     1578
    14891579/*------------------------------------------------------------------------------
    14901580  6.0 - Admin Header
    14911581------------------------------------------------------------------------------*/
     
    18001890        left: 36px;
    18011891}
    18021892
     1893#adminmenu .wp-has-current-submenu .wp-submenu,
     1894.no-js li.wp-has-current-submenu:hover .wp-submenu,
     1895#adminmenu a.wp-has-current-submenu:focus + .wp-submenu,
     1896#adminmenu .wp-has-current-submenu .wp-submenu.sub-open,
     1897#adminmenu .wp-has-current-submenu.opensub .wp-submenu {
     1898        background-color: #333;
     1899}
     1900
     1901#adminmenu .wp-has-current-submenu .wp-submenu a,
     1902.no-js li.wp-has-current-submenu:hover .wp-submenu a,
     1903#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a,
     1904#adminmenu .wp-has-current-submenu .wp-submenu.sub-open a,
     1905#adminmenu .wp-has-current-submenu.opensub .wp-submenu a {
     1906        color: #bbb;
     1907}
     1908
     1909#adminmenu .wp-submenu a:hover,
     1910#adminmenu .wp-submenu a:focus,
     1911#adminmenu .wp-has-current-submenu .wp-submenu a:hover,
     1912#adminmenu .wp-has-current-submenu .wp-submenu a:focus,
     1913#adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover,
     1914#adminmenu .wp-has-current-submenu .wp-submenu.sub-open a:hover,
     1915#adminmenu .wp-has-current-submenu .wp-submenu.sub-open a:focus,
     1916#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,
     1917#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,
     1918.no-js li.wp-has-current-submenu:hover .wp-submenu a:hover,
     1919.no-js li.wp-has-current-submenu:hover .wp-submenu a:focus,
     1920.folded #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:hover,
     1921.folded #adminmenu a.wp-has-current-submenu:focus + .wp-submenu a:focus,
     1922.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover,
     1923.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus {
     1924        background: none;
     1925        color: #2ea2cc;
     1926}
     1927
     1928ul#adminmenu a.wp-has-current-submenu:after,
     1929ul#adminmenu > li.current > a.current:after {
     1930        border-right-color: #f1f1f1;
     1931}
     1932
    18031933.folded #adminmenu a.wp-has-current-submenu:focus + .wp-submenu,
    18041934.folded #adminmenu .wp-has-current-submenu .wp-submenu {
    18051935        position: absolute;
     
    57065836------------------------------------------------------------------------------*/
    57075837
    57085838.find-box {
     5839        background-color: #444;
    57095840        width: 600px;
    57105841        height: 300px;
    57115842        overflow: hidden;
     
    57155846}
    57165847
    57175848.find-box-head {
     5849        color: #eee;
    57185850        cursor: move;
    57195851        font-weight: 600;
    57205852        height: 2em;
     
    57265858}
    57275859
    57285860.find-box-inside {
     5861        background-color: #fff;
    57295862        overflow: auto;
    57305863        padding: 6px;
    57315864        height: 100%;
     
    57375870        position: relative;
    57385871}
    57395872
     5873.find-box-search,
     5874.find-box-buttons {
     5875        background-color: #f7f7f7;
     5876        border-top: 1px solid #dfdfdf;
     5877}
     5878
    57405879.find-box-search .spinner {
    57415880        float: none;
    57425881        left: 125px;
     
    77937932}
    77947933
    77957934.pressthis a span:before {
     7935        color:#777;
    77967936        font: normal 20px/1 'dashicons';
    77977937        content:'\f157';
    77987938        position: relative;
     
    86438783        font-size: 13px;
    86448784        visibility: hidden;
    86458785        padding: 2px 0 0;
     8786        color: #ddd;
    86468787}
    86478788
    86488789tr:hover .row-actions,
     
    91959336
    91969337/* login */
    91979338
     9339body.login {
     9340        background: #f1f1f1;
     9341}
     9342
    91989343#loginform p.submit,
    91999344.login-action-lostpassword p.submit {
    92009345        border: none;
     
    92079352}
    92089353
    92099354.login form {
     9355        background: #fff;
    92109356        margin-top: 20px;
    92119357        margin-left: 0;
    92129358        padding: 26px 24px 46px;
    92139359        font-weight: normal;
    92149360        overflow: hidden;
     9361
     9362        -webkit-box-shadow: 0 1px 3px rgba(0,0,0,0.13);
     9363        box-shadow: 0 1px 3px rgba(0,0,0,0.13);
    92159364}
    92169365
    92179366.login form .forgetmenot {
     
    92689417        display: block;
    92699418}
    92709419
     9420.login h1 a:hover {
     9421        color: #2ea2cc;
     9422}
     9423
    92719424#login {
    92729425        width: 320px;
    92739426        padding: 8% 0 0;
     
    92869439        padding: 0 24px 0;
    92879440}
    92889441
     9442.login #nav a,
     9443.login #backtoblog a {
     9444        text-decoration: none;
     9445        color: #999;
     9446}
     9447
     9448.login #nav a:hover,
     9449.login #backtoblog a:hover {
     9450        color: #2ea2cc;
     9451}
     9452
    92899453.login #nav {
    92909454        margin: 24px 0 0 0;
    92919455}
     
    93039467        margin: 2px 6px 16px 0;
    93049468}
    93059469
     9470.login form .input,
     9471.login input[type="text"],
     9472.login form input[type="checkbox"] {
     9473        background: #fbfbfb;
     9474}
     9475
    93069476.login #pass-strength-result {
    93079477        width: 250px;
    93089478        font-weight: 600;
     
    1140011570        display: none;
    1140111571}
    1140211572
     11573.sticky-menu #TB_window {
     11574        background: #f1f1f1;
     11575}
     11576
    1140311577/* =Media Queries
    1140411578-------------------------------------------------------------- */
    1140511579
  • src/wp-includes/script-loader.php

     
    691691                if ( empty($color) || !isset($_wp_admin_css_colors[$color]) )
    692692                        $color = 'fresh';
    693693
     694                // Check to see if we are using the default which is backed in
     695                if ( $color === 'fresh' ){
     696                        return false;
     697                }
     698               
    694699                $color = $_wp_admin_css_colors[$color];
    695700                $parsed = parse_url( $src );
    696701                $url = $color->url;