/* * Framework */ html { scroll-behavior: smooth; // not supported by IE, Edge, Safari, and Opera, use JQuery as fallback scroll-padding-top: @header-height + @margin-side; // fixed header offset, supported by major browsers } html, body { min-height: 100%; padding: 0; margin: 0; background: var( --common-html-background ); color: var( --common-html-color ); overflow-x: hidden; // prevent overflow from scrollbar } table { display: block; overflow: auto; max-width: 100vw; } hr { display: none; } ul { list-style-type: square; } ul, ol { padding: 0; } p, ul, ol, dl { margin: @content-margin-top 0 0 0; } pre, code, .mw-code { border: var( --common-pre-border ); background-color: var( --common-pre-background ); color: var( --common-pre-color ); } code { padding: 1px 4px; } pre, .mw-code { padding: 1rem; /* Wrap lines in overflow. T2260, T103780 */ white-space: pre-wrap; } input, select, textarea { border: var( --common-input-border ); background-color: var( --common-input-background ); color: var( --common-input-color ); } fieldset { padding: @content-margin-top / 2 @margin-side; border-color: var( --common-fieldset-border-color ); margin: @content-margin-top 0; color: var( --common-fieldset-color ); } fieldset > table { margin-top: 0 !important; } legend { padding: 4px; margin: 0; color: var( --common-legend-color ); } input, pre, code, fieldset, select, textarea { border: var( --common-input-border ); } textarea { width: 100%; } blockquote { padding: 0 @content-margin-top * 4 * @content-scaling; margin: @content-margin-top * 2 * @content-scaling; color: @base-30; cite { display: block; margin-top: @content-margin-top * @content-scaling; &:before { content: '— '; } } } dd { margin-bottom: 0.1rem; margin-left: @content-margin-top * 2; } td { > p, > ul, > ol { &:first-child { margin-top: 0; // Remove margin for the first element in td } } } a { color: @color-link; text-decoration: none !important; &:not( [ href ] ) { cursor: pointer; /* Always cursor:pointer even without href */ } &:hover { color: var( --common-link-color ); } &.new { color: var( --common-link-new-color ) !important; // Override visited &:hover { color: @color-link-new-active !important; } } &.mw-selflink { color: inherit; font-weight: bold; text-decoration: inherit; &:hover { cursor: inherit; text-decoration: inherit; } &:active { color: inherit; } } } .error { padding: 2px 4px; background-color: @red-90; } .nowrap { white-space: nowrap; } /* * Content */ .mw-body, .parsoid-body { min-height: 80vh; // avoid footer being in the middle of the page padding: 0 @margin-side; margin-top: @header-height + @margin-side; direction: ltr; } .mw-body-content { .plainlist ol, .plainlist ul { margin: 0; line-height: inherit; list-style: none none; } } .mw-wiki-title { a& { color: @base-50; transition: @transition-opacity; &:hover, &:active, &:focus { color: @base-30; text-decoration: none; } } } figcaption, .thumbcaption { margin: @content-margin-top / 2 0 0; color: @base-30; } .thumb { overflow: hidden; > .thumbinner { > a { transition: @transition-box-shadow-quick; &:hover:not( .lazy ):not( .new ) { .boxshadow(2); img { transform: scale( 1.1 ); } } &:before { content: none; } &.new { display: block; padding: @margin-side / 2; background-color: @base-80; transition: @transition-background-quick, @transition-color-quick; } } } } .mw-indicators { /* Ensure that this is displayed on top of .mw-body-content and clickable */ position: relative; z-index: 1; float: right; } /* Wider page width for special pages */ .ns--1 { .firstHeading, #siteSub, .mw-body-content { max-width: @screen2; } } .skin-citizen-dark { .mw-editsection > a:before { filter: invert( 1 ); } } @media ( max-width: @screen2 ) { .mw-editsection { position: relative !important; transform: none !important; } }