Making WordPress.org

Changeset 14083


Ignore:
Timestamp:
09/26/2024 08:13:17 AM (14 hours ago)
Author:
adamwood
Message:

Make 2024: Update block element styles

Adjust padding and borders on sticky, private, resolved, unresolved posts and block quotes, to fix consistency issues on desktop and mobile.

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

    r14082 r14083  
    935935
    936936@media screen and (max-width: 640px) {
    937     article.post .o2-post,
     937    article.post .o2-post:not(.sticky .o2-post):not(.state-resolved .o2-post):not(.state-unresolved .o2-post),
    938938    article#post-new .o2-post,
    939939    article.page .o2-post {
     
    943943}
    944944
    945 .o2-post {
     945.o2-post:not(.state-resolved .o2-post):not(.state-unresolved .o2-post):not(.sticky .o2-post) {
    946946    border-top: 1px solid var(--wp--custom--color--border);
    947947    margin-top: 40px;
     948}
     949
     950article.post[class*="state-"].status-private .o2-post {
     951    border: none;
    948952}
    949953
     
    11211125 * Resolved/unresolved
    11221126 */
     1127
    11231128article.state-resolved,
    11241129article.state-unresolved {
    1125     border-top: 0;
     1130    margin-top: 40px;
     1131}
     1132
     1133article.state-resolved .o2-post,
     1134article.state-unresolved .o2-post {
     1135    padding-top: 40px;
     1136}
     1137
     1138article.state-resolved:not(.status-private),
     1139article.state-unresolved:not(.status-private) {
     1140    border: 1px solid var(--wp--custom--color--border);
     1141    border-left-width: 0;
     1142    border-top-right-radius: 2px;
     1143    border-bottom-right-radius: 2px;
     1144}
     1145
     1146/* Adjust to align with border */
     1147article.state-resolved:not(.status-private):before,
     1148article.state-unresolved:not(.status-private):before {
     1149    top: -1px;
     1150    height: calc(100% + 2px);
     1151}
     1152
     1153@media (max-width: 876px) {
     1154    .state-resolved,
     1155    .state-unresolved {
     1156        border-top: unset;
     1157    }
    11261158}
    11271159
     
    11651197 */
    11661198article.status-private,
    1167 article.status-private .comment.alt {
     1199article.status-private .comment.alt,
     1200article.status-private .comment.alt .comment.alt {
    11681201    background: #fef0f0;
    11691202}
    11701203
    11711204.post.status-private .o2-post {
    1172     padding-top: 3em;
     1205    padding-top: 40px;
    11731206    position: relative;
    11741207}
     
    11781211    font-family: dashicons;
    11791212    position: absolute;
    1180     top: -2px;
    1181     right: 45px;
    1182     color: #fff;
    1183     font-size: 18px;
    1184     padding: 13px 5px 0px;
     1213    top: 45px;
     1214    right: 60px;
     1215    font-size: var(--wp--preset--font-size--small);
     1216    padding: 4px;
    11851217    background: #dc3232;
     1218    border-radius: 2px;
     1219    line-height: 14px;
     1220    color: var(--wp--preset--color--white);
    11861221}
    11871222
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-breathe-2024/theme.json

    r14080 r14083  
    184184                    "margin": {
    185185                        "bottom": "var(--wp--style--block-gap)"
     186                    },
     187                    "padding": {
     188                        "top": "var(--wp--custom--margin--horizontal)",
     189                        "right": "var(--wp--custom--margin--horizontal)",
     190                        "bottom": "var(--wp--custom--margin--horizontal)"
    186191                    }
    187192                }
Note: See TracChangeset for help on using the changeset viewer.