Making WordPress.org

Changeset 11492


Ignore:
Timestamp:
01/31/2022 06:55:38 PM (2 years ago)
Author:
iandunn
Message:

Translate: Stick editor panels to top at all breakpoints.

The global header doesn't start sticking until 890px, so previously there was a gap above the panels.

See #6037

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/style.css

    r11491 r11492  
    22262226    position: -webkit-sticky;
    22272227    position: sticky;
    2228     top: calc( var(--wp-global-header-height) + var(--wp-admin--admin-bar--height) + 100px );
     2228    top: 0;
    22292229    padding: 20px 0 10px;
    22302230    background: #fff;
    22312231    text-align: left;
    22322232    box-shadow: 0 -1px 0 #72777c, 0 3px 0 #72777c;
     2233}
     2234
     2235/* This is when the admin bar start to stick. */
     2236@media screen and (min-width: 601px) {
     2237    .consistency-table tr.new-translation th {
     2238        top: var(--wp-admin--admin-bar--height);
     2239    }
     2240}
     2241
     2242/* This is when the global header start to stick. */
     2243@media screen and (min-width: 890px) {
     2244    .consistency-table tr.new-translation th {
     2245        top: calc(var(--wp-global-header-height) + var(--wp-admin--admin-bar--height));
     2246    }
    22332247}
    22342248
Note: See TracChangeset for help on using the changeset viewer.