WordPress.org

Make WordPress Core

Ticket #38755: 38755.4.diff

File 38755.4.diff, 2.4 KB (added by westonruter, 4 years ago)

https://github.com/xwp/wordpress-develop/commit/f29a50d

  • src/wp-admin/css/customize-controls.css

    diff --git src/wp-admin/css/customize-controls.css src/wp-admin/css/customize-controls.css
    index b1b5915..3baf73e 100644
    p.customize-section-description { 
    11351135/**
    11361136 * Custom CSS Section
    11371137 *
    1138  * Modifications to the Section Container to
    1139  * make the textarea full-width.
     1138 * Modifications to the Section Container to make the textarea full-width and
     1139 * full-height, if the control is the only control in the section.
    11401140 */
    1141 #customize-theme-controls #sub-accordion-section-custom_css {
    1142         padding-left: 0;
    1143         padding-right: 0;
    1144 }
    11451141
    1146 #customize-theme-controls #sub-accordion-section-custom_css .customize-section-title {
    1147         margin-left: 0;
     1142#customize-controls .customize-section-description-container.section-meta.customize-info {
     1143        border-bottom: none;
    11481144}
    11491145
    1150 #customize-theme-controls #sub-accordion-section-custom_css .customize-control-title,
    1151 #customize-theme-controls #sub-accordion-section-custom_css .notice {
    1152         margin-left: 10px;
    1153         margin-right: 10px;
     1146#sub-accordion-section-custom_css .customize-control-notifications-container {
     1147        margin-bottom: 15px;
    11541148}
    1155 #customize-theme-controls #sub-accordion-section-custom_css textarea {
     1149
     1150#customize-control-custom_css textarea {
     1151        display: block;
     1152        font-family: Consolas, Monaco, monospace;
     1153        font-size: 12px;
     1154        padding: 6px 8px;
     1155        height: 500px;
    11561156        -moz-tab-size: 4;
    11571157        -o-tab-size: 4;
    11581158        tab-size: 4;
    11591159}
    11601160
    1161 #sub-accordion-section-custom_css .customize-control-notifications-container {
    1162         margin-bottom: 15px;
    1163 }
    1164 
    1165 #sub-accordion-section-custom_css textarea {
     1161.customize-section-description-container + #customize-control-custom_css:last-child textarea {
    11661162        border-right: 0;
    11671163        border-left: 0;
    1168         font-family: Consolas, Monaco, monospace;
    1169         font-size: 12px;
    1170         padding: 6px 8px;
    1171         height: 553px;
     1164        height: calc( 100vh - 185px );
     1165        resize: none;
     1166}
     1167.customize-section-description-container + #customize-control-custom_css:last-child {
     1168        margin-left: -12px;
     1169        width: 299px;
     1170        margin-bottom: -12px;
     1171}
     1172
     1173@media screen and ( max-width: 640px ) {
     1174        .customize-section-description-container + #customize-control-custom_css:last-child {
     1175                margin-left: 0;
     1176                margin-right: 0;
     1177                width: 100%;
     1178        }
     1179        .customize-section-description-container + #customize-control-custom_css:last-child textarea {
     1180                height: calc( 100vh - 140px );
     1181                width: 100%;
     1182                border: solid 1px #ddd;
     1183        }
    11721184}
    11731185
    11741186/**