使WordPress成为核心

变更集56639


忽略:
时间戳:
2023年9月20日下午09:01:02(9个月(之前)
作者:
乔多尔森
消息:

管理:提高主题细节模式中的控制接近度。

使Customizer和Appearance>Themes中的主题细节模型保持一致。更改控件的顺序,使两个模型的顺序相同,将桌面和移动视图中的所有控件居中,并更改删除链接的颜色以满足颜色对比度要求。

Props trishasalas、afercia、melchoyce、karmatosed、cathibosco1、michaelarestad、joedolson、petitphp、mikinc860。
修复#59372。请参阅#59371人#40822.

位置:
主干/src
文件夹:
5已编辑

图例:

未修改
补充
远离的
  • trunk/src/wp-admin/css/customize-controls.css

    55150兰特 56639兰特  
    23182318.wp-customizer.theme-overlay.theme-actions{
    23192319text-align:右;/*因为只有一个或两个动作,所以要匹配媒体模型的UI模式并右对齐动作*/
    2320 填充:10px 25px;
     2320填充:10px 25px5像素;
    23212321背景:#f0f0f1;
    23222322border-top:1px固体#dcdcde;
     
    23252325.wp-customizer.theme-overlay.theme-actions.theme-install.preview文件{
    23262326左边边距:8px;
    2327 }
    2328 
    2329 .control-panel-themes.theme-actions.delete-theme{
    2330 左:15px;/*这些覆盖了手机上的主题.css*/
    2331 右:自动;
    2332 底部:自动;
    2333 位置:绝对;
    23342327}
    23352328
  • trunk/src/wp-admin/css/themes.css

    56279兰特 56639兰特  
    507507盒大小:border-box;
    508508border-top:1px实心#f0f0f1;
    509 }
    510 
    511 .theme覆盖.theme操作{
    512 边距-右:5px;
     509显示:flex;
     510justify-content:中心;
     511间距:5px;
     512}
     513
     514.theme-overlay.theme-actions.按钮{
    513515边距-底部:5px;
    514516}
     
    522524.中断主题a.删除主题,
    523525.theme-overlay.theme-actions.delete-theme{
    524 颜色:#d63638电话;
     526颜色:#b32d2e型;
    525527text-decoration:无;
    526528边框颜色:透明;
     
    529531}
    530532
    531 .theme-overlay.theme-actions.delete-theme{
    532 位置:绝对;
    533 右:10px;
    534 底部:5px;
    535 }
    536 
    537533.broken-themes a.delete-themes:悬停,
    538534.破碎的主题.删除-主题:聚焦,
    539535.theme-overlay.theme-actions.delete-theme:悬停,
    540536.theme-overlay.theme-actions.delete-theme:焦点{
    541 背景:#d63638电话;
     537背景:#b32d2e型;
    542538颜色:#fff;
    543 边框颜色:#d63638;
     539border-color:#b32d2e;
     540方框阴影:0 0 0 1px#b32d2e;
    544541}
    545542
  • trunk/src/wp-admin/includes/theme.php

    56635兰特 56639兰特  
    10591059<button type=“button”class=“button button-primary customize-theme”><?php_e(“自定义”);?></按钮>
    10601060<#}else if(“已安装”===数据类型){#>
    1061                     <?php if(current_user_can('delete_themes')){?>
    1062 <#if(data.actions&&data.actions[‘删除’]){#>
    1063 <a href=“{{data.actions['delete']}}}”data-slug=“{{data.id}}“class=”button-secondary-delete-theme“><?php_e(“删除”);?></a>
    1064                         <# } #>
    1065                     <?php}?>
    1066 
     1061<div class=“theme-inactive-actions”>
    10671062<#if(data.blockTheme){#>
    10681063                        <?php(电话)
     
    10801075                        <# } #>
    10811076                    <# } #>
     1077</div>
     1078<?php if(current_user_can('delete_themes')){?>
     1079<#if(data.actions&&data.actions[‘删除’]){#>
     1080<a href=“{{data.actions['delete']}}}”data-slug=“{{data.id}}“class=”button-secondary-delete-theme“><?php_e(“删除”);?></a>
     1081<#}#>
     1082                    <?php}?>
    10821083<#}其他{#>
    10831084<#if(data.compatibleWP&&data.competiblePHP){#>
  • trunk/src/wp-admin/themes.php

    56600兰特 56639兰特  
    12221222$aria_label=sprintf(_x(“激活%s”,“主题”),“{{data.name}}”);
    12231223                    ?>
     1224<#if(!data.blockTheme){#>
     1225<a href=“{{data.actions.customize}}”class=“button button-primary load-customize hide-if-no-customise”><?php _e(“实时预览”);?></a>
     1226                    <# } #>
    12241227<#if(data.actions.activate){#>
    12251228<a href=“{{data.actions.activate}}}”class=“button activate”aria-label=“<?php echo esc_attr($aria_label);?>”><?php_e(“激活”);?></a>
    12261229                    <# } #>
    1227 <#if(!data.blockTheme){#>
    1228 <a href=“{{data.actions.customize}}”class=“button button-primary load-customize hide-if-no-customise”><?php _e(“实时预览”);?></a>
    1229                     <# } #>
    12301230<#}其他{#>
    12311231                    <?php(电话)
     
    12331233$aria_label=sprintf(_x(“无法激活%s”,“主题”),“{{data.name}}”);
    12341234                    ?>
     1235<#if(!data.blockTheme){#>
     1236<a class=“button button-primary hide-if-no-customize disabled”><?php_e(“实时预览”);?></a>
     1237                    <# } #>
    12351238<#if(data.actions.activate){#>
    12361239<a class=“button disabled”aria-label=“<?php echo esc_attr($aria_label);?>”><?php_ex(“无法激活”,“主题”);?></a>
    1237                     <# } #>
    1238 <#if(!data.blockTheme){#>
    1239 <a class=“button button-primary hide-if-no-customize disabled”><?php_e(“实时预览”);?></a>
    12401240                    <# } #>
    12411241                <# } #>
  • trunk/src/wp-includes/css/buttons.css

    r52171号 56639兰特  
    386386    }
    387387
     388.wp-customizer.theme-overlay.theme-actions.button按钮{
     389边距-底部:5px;
     390    }
     391
    388392.media-modal-content.media-toolbar-primary.media按钮{
    389393页边空白:10px;
注:请参见TracChangeset(跟踪变更集)获取有关使用变更集查看器的帮助。