Jump to content

MediaWiki:Common.css: Difference between revisions

no edit summary
No edit summary
Tag: Reverted
No edit summary
 
(20 intermediate revisions by 2 users not shown)
Line 1,148: Line 1,148:
/* Keep the quoted card look but without changing fonts */
/* Keep the quoted card look but without changing fonts */
.tweet-quote {
.tweet-quote {
    padding-top: 0.75rem;
}
.tweet-quote .tweet {
     border-radius: 10px;
     border-radius: 10px;
     background-color: #f9f9f9;
     background-color: #f9f9f9;
    margin-top: 0.75rem;
}
.tweet-quote .tweet-username {
    color: #555 !important;
    font-size: 0.85rem; /* or 'inherit' if you want identical size too */
}
}


Line 1,176: Line 1,174:


/* Make the first image span full width in a 3-image layout (2x1 + 1x2) */
/* Make the first image span full width in a 3-image layout (2x1 + 1x2) */
.tweet-media.count-3 a:first-child { grid-column: 1 / -1; }
.tweet-media.count-3 > :first-child { grid-column: 1 / -1; }


/* Ensure images fill their grid cell */
/* Ensure images fill their grid cell */
Line 1,186: Line 1,184:
}
}


/* Strip MediaWiki image chrome inside tweets */
/* Tweet Thread */
.tweet-media figure,
.tweet-thread > .tweet {
.tweet-media .thumb,
    display: grid;
.tweet-media .thumbinner,
    grid-template-areas: "header date" "content content" "media media" "quote quote";
.tweet-media a.image {
    grid-template-columns: min-content 1fr;
  background: transparent !important;
    margin: 0 0 0.25em;
  border: 0 !important;
    padding: 0;
  box-shadow: none !important;
    border: none;
  padding: 0 !important;
}
  margin: 0 !important;
 
.tweet-thread > .tweet > .tweet-header {
    grid-area: header;
    margin: 0 0 0.25rem;
}
 
.tweet-thread > .tweet > .tweet-content {
    grid-area: content;
    margin-left: 23px;
    padding-left: 22px;
    border-left: 2px solid #ced9de;
}
 
.tweet-thread > .tweet > .tweet-content p:first-child {
    margin: 0 0 0.5em;
}
 
.tweet-thread > .tweet > .tweet-timestamp {
    grid-area: date;
    align-items: start;
    margin: 0;
}
 
.tweet-thread > .tweet > .tweet-media {
    grid-area: media;
    margin-left: 23px;
    margin-top: 0;
    padding-left: 22px;
    padding-top: 0.25em;
    padding-bottom: 0.25em;
    border-left: 2px solid #ced9de;
}
}


/* Remove borders on the actual <img> */
.tweet-thread > .tweet > .tweet-quote {
.tweet-media .mw-file-element,
    grid-area: quote;
.tweet-media .thumbimage {
    margin-left: 23px;
  background: transparent !important;
    padding-left: 22px;
  border: 0 !important;
    padding-top: 0.75rem;
  box-shadow: none !important;
    padding-bottom: 0.75rem;
    border-left: 2px solid #ced9de;
}
}