Making WordPress.org


Ignore:
Timestamp:
06/12/2023 08:55:09 PM (3 years ago)
Author:
ryelle
Message:

Theme Directory: Add tabs to view "community" and "commercial" themes.

Fixes #7036.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/css/components/_main.scss

    r12338 r12646  
    14311431
    14321432.filter-links {
     1433        display: flex;
     1434        align-items: baseline;
     1435        margin: 0;
     1436        padding: 0;
     1437}
     1438
     1439.filter-links li {
     1440        display: block;
     1441        margin: 0;
     1442}
     1443
     1444.filter-links li > a {
    14331445        display: inline-block;
    14341446        margin: 0;
    1435         padding: 0;
    1436 }
    1437 
    1438 .filter-links li {
    1439         display: inline-block;
    1440         margin: 0;
    1441 }
    1442 
    1443 .filter-links li > a {
    1444         display: inline-block;
    1445         margin: 0 10px;
    1446         padding: 15px 0;
     1447        padding: 15px 10px;
    14471448        border-bottom: 4px solid #fff;
    14481449        color: #666;
     
    18321833        }
    18331834
     1835        .wp-filter .filter-links {
     1836                display: block;
     1837
     1838                li {
     1839                        display: inline-block;
     1840
     1841                        &[style*="flex-grow"] {
     1842                                display: block;
     1843                        }
     1844
     1845                        a.filter-tab {
     1846                                padding-bottom: 10px;
     1847                        }
     1848                }
     1849        }
     1850
    18341851        .wp-filter .search-form {
    18351852                float: none;
     
    19011918}
    19021919
     1920@media only screen and (max-width: 450px) {
     1921        .wp-filter {
     1922                padding: 0;
     1923        }
     1924
     1925        .wp-filter .filter-links {
     1926                padding: 10px 0;
     1927
     1928                li {
     1929                        display: block;
     1930
     1931                        &[style*="flex-grow"] {
     1932                                display: none;
     1933                        }
     1934
     1935                        a.filter-tab {
     1936                                padding: 0.5em;
     1937                                margin-left: 10px;
     1938                                border-bottom: none;
     1939                                border-left: 4px solid transparent;
     1940
     1941                                &.current {
     1942                                        border-bottom: none;
     1943                                        border-left-color: #666;
     1944                                }
     1945                        }
     1946
     1947                        a.drawer-toggle {
     1948                                margin-top: 0.5em;
     1949                                margin-bottom: 0.5em;
     1950                                border-bottom: none;
     1951                        }
     1952                }
     1953        }
     1954}
     1955
    19031956@media only screen and (max-width: 400px) {
    19041957        .theme-browser .theme {
     
    19161969                float: left;
    19171970                margin-left: 10px;
    1918         }
    1919 
    1920         .wp-filter {
    1921                 padding: 0 10px;
    1922         }
    1923 
    1924         .wp-filter .filter-links {
    1925                 padding: 0;
    19261971        }
    19271972
     
    19752020        }
    19762021}
    1977 
    1978 @media only screen and (max-width: 375px) {
    1979         .wp-filter .drawer-toggle {
    1980                 float: right;
    1981                 margin-top: 12px;
    1982                 margin-right: 0;
    1983         }
    1984 
    1985         .wp-filter .drawer-toggle:before {
    1986                 margin-right: 0;
    1987         }
    1988 }
    1989 
    1990 @media only screen and (max-width: 350px) {
    1991         .wp-filter .drawer-toggle .drawer-text {
    1992                 display: none;
    1993         }
    1994 }
Note: See TracChangeset for help on using the changeset viewer.