MediaWiki:Common.css: Difference between revisions

no edit summary
No edit summary
Tag: Reverted
No edit summary
 
(13 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,186: Line 1,184:
}
}


.tweet-media .mw-default-size {
/* Tweet Thread */
  background: transparent;
.tweet-thread > .tweet {
  border: 0;
    display: grid;
  padding: 0;
    grid-template-areas: "header date" "content content" "media media" "quote quote";
  margin: 0;
    grid-template-columns: min-content 1fr;
  display: block;
    margin: 0 0 0.25em;
    padding: 0;
    border: none;
}
 
.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;
}
}


/* Flatten MediaWiki wrappers inside tweet media */
.tweet-thread > .tweet > .tweet-media {
.tweet-media .mw-default-size,
    grid-area: media;
.tweet-media a.image {
    margin-left: 23px;
  display: contents !important;   /* removes their background/border/padding boxes */
    margin-top: 0;
    padding-left: 22px;
    padding-top: 0.25em;
    padding-bottom: 0.25em;
    border-left: 2px solid #ced9de;
}
}


/* Ensure the image itself fills the grid cell */
.tweet-thread > .tweet > .tweet-quote {
.tweet-media img.mw-file-element {
    grid-area: quote;
  display: block;
    margin-left: 23px;
  width: 100%;
    padding-left: 22px;
  height: auto;
    padding-top: 0.75rem;
  border-radius: 6px;
    padding-bottom: 0.75rem;
    border-left: 2px solid #ced9de;
}
}