Making WordPress.org

Changeset 14026


Ignore:
Timestamp:
09/06/2024 04:43:43 AM (2 years ago)
Author:
adamwood
Message:

Make 2024: Update typography styles

See https://github.com/WordPress/wordpress.org/issues/363

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024
Files:
2 edited

Legend:

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

    r14025 r14026  
    3636p,
    3737ul,
    38 ol {
    39         margin-top: var(--wp--style--block-gap);
    40         margin-bottom: 0;
     38ol,
     39h1,
     40h2,
     41h3,
     42h4 {
     43        margin-top: 0;
     44        margin-bottom: var(--wp--style--block-gap);
    4145}
    4246
     
    6367h2,
    6468h3,
     69h4,
     70.content-area h1,
     71.content-area h2 {
     72        font-weight: 600;
     73}
     74
     75h1,
     76h2 {
     77        font-size: var(--wp--preset--font-size--heading-3);
     78}
     79
     80h3 {
     81        font-size: var(--wp--preset--font-size--heading-5);
     82}
     83
    6584h4 {
    66         margin: var(--wp--preset--spacing--30) 0 0;
     85        fontSize: var(--wp--preset--font-size--heading-6);
    6786}
    6887
     
    460479
    461480.widget-title {
    462         line-height: 1.2;
    463         font-size: 1.4em;
     481        line-height: inherit;
     482        font-size: inherit;
    464483}
    465484
     
    878897        width: 100%;
    879898        max-width: var(--wp--style--global--wide-size);
    880         margin: 1.5rem auto;
    881         padding: 40px var(--wp--preset--spacing--edge-space);
     899        margin: 0 auto;
     900        padding: 40px var(--wp--preset--spacing--edge-space) 30px;
    882901}
    883902
     
    887906        font-size: var(--wp--preset--font-size--normal);
    888907        font-weight: 600;
    889 }
    890 
    891 .make-welcome .entry-content p {
    892         display: inline;
    893908}
    894909
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/theme.json

    r14025 r14026  
    160160                        ]
    161161                }
    162         },
    163         "styles": {
    164                 "elements": {
    165                         "h1": {
    166                                 "spacing": {
    167                                         "margin": {
    168                                                 "top": "0",
    169                                                 "bottom": "var(--wp--style--block-gap)"
    170                                         }
    171                                 }
    172                         },
    173                         "h2": {
    174                                 "typography": {
    175                                         "fontSize": "var(--wp--preset--font-size--heading-4)",
    176                                         "fontWeight": "600"
    177                                 },
    178                                 "spacing": {
    179                                         "margin": {
    180                                                 "top": "0",
    181                                                 "bottom": "var(--wp--style--block-gap)"
    182                                         }
    183                                 }
    184                         },
    185                         "h3": {
    186                                 "typography": {
    187                                         "fontSize": "var(--wp--preset--font-size--heading-5)",
    188                                         "fontWeight": "600"
    189                                 }
    190                         },
    191                         "h4": {
    192                                 "typography": {
    193                                         "fontSize": "var(--wp--preset--font-size--heading-6)",
    194                                         "fontWeight": "600"
    195                                 }
    196                         },
    197                         "h5": {
    198                                 "typography": {
    199                                         "fontSize": "var(--wp--preset--font-size--heading-6)"
    200                                 }
    201                         }
    202                 }
    203162        }
    204163}
Note: See TracChangeset for help on using the changeset viewer.