MediaWiki:Common.css: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(31 intermediate revisions by 2 users not shown)
Line 1,098: Line 1,098:
.tweet-header {
.tweet-header {
     display: flex;
     display: flex;
     gap: 1rem;
     gap: 0.75rem;
     margin: 0 0 1rem;
     margin: 0 0 0.5rem;
}
}


.tweet-header-image p,
.tweet-header-image p {
.tweet-header-name p {
     margin: 0;
     margin: 0;
}
}
Line 1,112: Line 1,111:
     width: 48px !important;
     width: 48px !important;
     height: 48px !important;
     height: 48px !important;
}
.tweet-header-name {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}
}


Line 1,141: Line 1,146:
}
}


/* Quote tweet: inherit main tweet typography */
/* Keep the quoted card look but without changing fonts */
.tweet-quote .tweet {
.tweet-quote {
     font: inherit;               /* inherits family, size, weight, style, line-height */
     padding-top: 0.75rem;
}
}


/* Keep the quoted card look but without changing fonts */
.tweet-quote .tweet {
.tweet-quote {
    border: 1px solid #e0e0e0;
     border-radius: 10px;
     border-radius: 10px;
     background-color: #f9f9f9;
     background-color: #f9f9f9;
    padding: 0.5rem;
    margin-top: 0.75rem;
}
}


/* (Optional) make sure text blocks inside quote don't get boxed by the skin */
.tweet-quote .tweet-header-image img {
.tweet-quote .tweet-content,
     width: 42px !important;
.tweet-quote .tweet-timestamp {
     height: 42px !important;
     background: transparent !important;
}
     border: 0 !important;
 
    padding: 0 !important;
/* Tweet media */
.tweet-media {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
}


/* Ensure name/handle styling inside quotes matches the main tweet */
.tweet-media.count-1 { grid-template-columns: 1fr; }
.tweet-quote .tweet-display-name a.external {
.tweet-media.count-2 { grid-template-columns: 1fr 1fr; }
     color: #000 !important;
.tweet-media.count-3 { grid-template-columns: 1fr 1fr; }
     font-weight: bold;
.tweet-media.count-4 { grid-template-columns: 1fr 1fr; }
     text-decoration: none;
 
/* Make the first image span full width in a 3-image layout (2x1 + 1x2) */
.tweet-media.count-3 > :first-child { grid-column: 1 / -1; }
 
/* Ensure images fill their grid cell */
.tweet-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
 
/* Tweet Thread */
.tweet-thread > .tweet {
    display: grid;
    grid-template-areas: "header date" "content content" "media media" "quote quote";
    grid-template-columns: min-content 1fr;
    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;
}
}


.tweet-quote .tweet-username {
.tweet-thread > .tweet > .tweet-media {
     color: #555 !important;
     grid-area: media;
     font-size: 0.85rem; /* or 'inherit' if you want identical size too */
    margin-left: 23px;
    margin-top: 0;
    padding-left: 22px;
    padding-top: 0.25em;
     padding-bottom: 0.25em;
    border-left: 2px solid #ced9de;
}
}


.tweet-quote .tweet-header-image img {
.tweet-thread > .tweet > .tweet-quote {
     width: 36px !important;
    grid-area: quote;
     height: 36px !important;
    margin-left: 23px;
    padding-left: 22px;
    padding-top: 0.75rem;
     padding-bottom: 0.75rem;
     border-left: 2px solid #ced9de;
}
}