Template:MainPage/Vector/Featured article/styles.css: Difference between revisions

From IxWiki
Jump to navigation Jump to search
Created page with "#featured_article.card { width: calc(100% / 6 * 5 - 0.4rem); min-width: calc(860px / 6 * 5 - 0.4rem); flex-direction: row; } #featured_article .card-image { width: calc(860px * 6 / 3 - 2.4rem); overflow: hidden; background-color: #f8f9fa; } #featured_article .card-image img { height: 100%; width: auto; position: relative; →‎Edit thumbnail offset here: →‎margin-left: 100%;: } @media (prefers-color-scheme: dark) { #f..."
 
mNo edit summary
Tag: Reverted
Line 16: Line 16:
     position: relative;
     position: relative;
     /* Edit thumbnail offset here */
     /* Edit thumbnail offset here */
     /* margin-left: 100%; */
     margin-left: 100%;  
}
}



Revision as of 00:10, 1 August 2024

#featured_article.card {
    width: calc(100% / 6 * 5 - 0.4rem);
    min-width: calc(860px / 6 * 5 - 0.4rem);
    flex-direction: row;
}

#featured_article .card-image {
    width: calc(860px * 6 / 3 - 2.4rem);
    overflow: hidden;
    background-color: #f8f9fa;
}

#featured_article .card-image img {
    height: 100%;
    width: auto;
    position: relative;
    /* Edit thumbnail offset here */
    margin-left: 100%; 
}

@media (prefers-color-scheme: dark) {
    #featured_article .card-image {
        background: #2b2f36;
    }
}