Making WordPress.org

Changeset 12454


Ignore:
Timestamp:
03/06/2023 10:40:48 PM (16 months ago)
Author:
coffee2code
Message:

Breathe: Improve RTL support for handbook pages.

Props alex-ye, coffee2code.
Fixes #6830.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe/style.css

    r12282 r12454  
    3333#secondary aside {
    3434    font-size: inherit;
     35}
     36
     37.rtl ul,
     38.rtl ol {
     39    margin-left: 0;
     40    margin-right: 25px;
    3541}
    3642
     
    11981204}
    11991205
     1206.rtl .handbook-breadcrumbs {
     1207    left: inherit;
     1208    right: 280px;
     1209    padding-left: 34px;
     1210    padding-right: inherit;
     1211}
     1212
    12001213.single-handbook .handbook-breadcrumbs ~ #primary {
    12011214    padding-top: 9rem;
     
    12471260}
    12481261
     1262.rtl.post-type-archive-handbook div.table-of-contents,
     1263.rtl.single-handbook div.table-of-contents {
     1264    float: left;
     1265    margin-left: 0;
     1266    margin-right: 15px;
     1267}
     1268
    12491269.single-handbook div.table-of-contents {
    12501270    background-color: #fff;
     
    12571277    .single-handbook div.table-of-contents {
    12581278        margin: 0 -30px 15px 15px;
     1279    }
     1280
     1281    .rtl.post-type-archive-handbook div.table-of-contents,
     1282    .rtl.single-handbook div.table-of-contents {
     1283        margin-left: -30px;
     1284        margin-right: 15px;
    12591285    }
    12601286}
     
    13261352}
    13271353
     1354.rtl .toc-heading:target:before {
     1355    left: inherit;
     1356    right: -40px;
     1357    border-left: 0;
     1358    border-right: 5px solid #0073aa;
     1359}
     1360
    13281361@media(max-width: 876px) {
    13291362    .toc-heading:target:before {
    13301363        left: -10px;
     1364    }
     1365    .toc-heading:target:before {
     1366        left: inherit;
     1367        right: -10px;
    13311368    }
    13321369}
     
    14761513}
    14771514
     1515.rtl.post-type-archive-handbook #page,
     1516.rtl.single-handbook #page {
     1517    background: linear-gradient(to left, #fafafa 40%, #fff 40%);
     1518}
     1519
    14781520.post-type-archive-handbook #main,
    14791521.single-handbook #main {
     
    15001542    background: #fff;
    15011543    box-sizing: border-box;
     1544}
     1545
     1546.rtl.post-type-archive-handbook #primary,
     1547.rtl.single-handbook #primary {
     1548    padding-left: 0;
     1549    padding-right: 4rem;
    15021550}
    15031551
Note: See TracChangeset for help on using the changeset viewer.