Making WordPress.org


Ignore:
Timestamp:
03/06/2023 10:39:19 PM (3 years ago)
Author:
coffee2code
Message:

Handbooks, ToC: Add RTL support.

Props alex-ye, coffee2code.
See #6830.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/table-of-contents.php

    r12392 r12453  
    1919                        order: 2;
    2020                }
     21                .rtl .toc-jump {
     22                        text-align: left;
     23                }
    2124                .toc-heading a:first-of-type {
    2225                        color: inherit;
     
    2528                        text-decoration: none !important;
    2629                }
     30                .rtl .toc-heading a:first-of-type {
     31                        margin-left: inherit;
     32                        margin-right: -32px;
     33                }
    2734                .toc-heading a:before {
    2835                        vertical-align: middle;
     
    3037                        margin: -4px 8px 0 4px;
    3138                }
     39                .rtl .toc-heading a:before {
     40                        margin-left: 8px;
     41                        margin-right: 4px;
     42                }
    3243                @media (max-width: 876px) {
    3344                        .toc-heading a {
    3445                                margin-left: -20px;
     46                        }
     47                        .rtl .toc-heading a {
     48                                margin-left: inherit;
     49                                margin-right: -20px;
    3550                        }
    3651                        .toc-heading a:before {
     
    4156                                font-size: 14px;
    4257                        }
     58                        .rtl .toc-heading a:before {
     59                                margin-left: 4px;
     60                                margin-right: 2px;
     61                        }
    4362                        .toc-heading a:first-of-type {
    4463                                margin-left: 0;
     64                        }
     65                        .rtl .toc-heading a:first-of-type {
     66                                margin-left: inherit;
     67                                margin-right: 0;
    4568                        }
    4669                }
Note: See TracChangeset for help on using the changeset viewer.