Making WordPress.org


Ignore:
Timestamp:
08/19/2024 10:09:52 PM (15 months ago)
Author:
coffee2code
Message:

Photo Directory: Add styles for grid of user's recent submissions on submit page.

See #7600.

File:
1 edited

Legend:

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

    r13359 r13978  
    360360    margin-right: 1.5rem;
    361361    text-align: right;
     362}
     363
     364.latest-photos h3 {
     365    font-size: 1.25rem;
     366    font-weight: 400;
     367}
     368.photos-grid {
     369    display: grid;
     370    grid-template-columns: repeat(auto-fill,minmax(150px, 1fr));
     371    grid-auto-rows: 100px;
     372    row-gap: 8px;
     373    justify-items: center;
     374}
     375.photos-grid > span {
     376    position: relative;
     377}
     378.photos-photo-link {
     379    display: inline-block;
     380    overflow: hidden;
     381}
     382.photos-photo-link img {
     383    max-width: 100%;
     384}
     385.photos-photo-link img:active,
     386.photos-photo-link img:hover {
     387    border: 4px solid #fff;
     388}
     389.photos-grid .photos-photo-link img {
     390    height: 100px;
     391    width: 150px;
     392    object-fit: cover;
     393    transition: all .25s;
    362394}
    363395
Note: See TracChangeset for help on using the changeset viewer.