Making WordPress.org


Ignore:
Timestamp:
10/09/2024 08:48:37 PM (2 years ago)
Author:
coffee2code
Message:

Photo Directory: Add template and support and styles for user favorites.

Props nilovelez, coffee2code.
Fixes #7513.

File:
1 edited

Legend:

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

    r13978 r14102  
    3636        border-style: solid;
    3737        border-width: 0;
     38        flex: 0 0 100%;
    3839        margin-bottom: 2rem;
    3940        overflow: auto;
    … …  
    152153                                }
    153154                        }
     155
     156                        &.user-no-favorites {
     157                                grid-column: 1/-1;
     158                                margin-left: 0;
     159                                margin-right: 0;
     160                                text-align: left;
     161                        }
    154162                }
    155163
    … …  
    248256
    249257        .entry-header {
     258                align-items: flex-start;
     259                display: flex;
     260                flex-flow: row wrap;
    250261                margin-bottom: 1rem;
     262
     263                .photo-author {
     264                        flex: 1;
     265                        padding-top: 2px;
     266                }
    251267        }
    252268
    … …  
    423439}
    424440
    425 .photo-author {
     441.photo-author-link,
     442.photo-favoriter {
    426443        img {
    427444                border-radius: 50%;
    … …  
    517534        display: grid;
    518535        position: relative;
    519         float: right;
    520536
    521537        .download-title {
    … …  
    546562                position: absolute;
    547563                min-width: 15ch;
    548                 left: 40%;
    549                 top: 100%;
     564                left: 37%;
     565                top: 102%;
    550566                transform: rotateX(-90deg) translateX(-50%);
    551567                transform-origin: top center;
Note: See TracChangeset for help on using the changeset viewer.