News Layout
STOPP!
Dies ist eine Vorlage und wird auf verschiedenen Seiten eingefügt.
FINGER WEG SONST FINGER AB!
Dies ist der CSS Code für das News-Layout.
Zur Verwendung, diesen Code irgendwo in den Artikel einfügen:
[[include :scp-wiki-de:component:news-layout]]
Achtung: Die Style-Elemente bei den Bildern sind jetzt im CSS enthalten, bitte nicht mehr verwenden.
/* SCP-DE News Layout - design by Tanijathefaun - code by Dr_Grom - under CC BY-SA 3.0 */ #header, #top-bar { max-width: 1120px; } #content-wrap { max-width: 1200px; } #page-title { display: none; } #page-content { -webkit-font-kerning: normal; font-kerning: normal; font-variant: common-ligatures } #toc { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; margin-right: 0 !important; margin-top: 0 !important; max-width: 60% !important; } h2 { font-variant: small-caps; margin: 0; padding-bottom: 5px; } hr { background: var(--ct_col_body-txt); color: var(--ct_col_body-txt); height: 2px; margin: 2em 1em; } .news-ratebox { position: absolute; right: 0; top: 0; } .page-rate-widget-box { margin-right: 1em; } .news-issue-line { border-bottom: 2px solid var(--ct_col_body-txt); font-family: "Trebuchet MS", Trebuchet, Verdana, Arial, Helvetica; font-size: 200%; margin: 1.5em 0 0.4em; padding: 0 0 0.25em; } .news-issue-line p { line-height: 100%; margin: 0; } .news-issue-line p br { display: none; } .news-issue-line span { float: right; } .news-issue-line span > span { border-left: 2px solid var(--ct_col_body-txt); margin-left: 1ex; padding-left: 1ex; } .news-header-container { background: #633; color: #fff; display: grid; padding: 1em 1em; } .news-header-container p { margin: 0; } .news-bg-image { background: url(http://scpsandboxde.wdfiles.com/local--files/menuetest:testseite/scp-logo-transparent.png) no-repeat center; -webkit-background-size: contain; -moz-background-size: contain; background-size: contain; height: 400px; left: 0; position: absolute; top: 20px; width: 100%; } .news-title { border-right: 2px solid #fff; -ms-grid-row: 1; -ms-grid-row-span: 2; -ms-grid-column: 1; grid-area: 1 / 1 / span 2; margin-right: 1em; padding-right: 1em; z-index: 5; } .news-title p { font-family: 'Courier New', Courier, monospace; font-size: 600%; line-height: 81%; } .news-title br { margin-bottom: 53px; } .news-lead-title { grid-area: 1 / 2; z-index: 5; } .news-lead-title p { font-size: 150%; } .news-lead-text { -ms-grid-row: 2; -ms-grid-column: 2; grid-area: 2 / 2; z-index: 5; } .news-lead-text p { -moz-columns: 160px 3; -webkit-columns: 160px 3; columns: 160px 3; padding-top: 5px; text-align: justify; -ms-hyphens: auto; -moz-hyphens: auto; -webkit-hyphens: auto; -khtml-hyphens: auto; hyphens: auto; } .news-lead-page { background: #252525; font-family: "Trebuchet MS", Trebuchet, Verdana, Arial, Helvetica; font-size: 11px; padding: 2px; } .news-subheader { background: #ccc; font-family: "Trebuchet MS", Trebuchet, Verdana, Arial, Helvetica; font-size: 90%; margin: 0.9em 0 1em; padding: 0.7em 1.5em; position: relative; text-align: center; z-index: 5; -ms-hyphens: auto; -moz-hyphens: auto; -webkit-hyphens: auto; -khtml-hyphens: auto; hyphens: auto; } .news-subheader p { margin: 0 auto; max-width: 100%; width: -webkit-max-content; width: -moz-max-content; width: max-content; } .news-article { text-align: justify; -ms-hyphens: auto; -moz-hyphens: auto; -webkit-hyphens: auto; -khtml-hyphens: auto; hyphens: auto; } .news-article h3 { font-size: 120%; margin: 0.5em 0 0; } .news-article h4 { font-size: 90%; margin: 0; text-align: right; } .news-article h4 .printuser img.small { -webkit-background-size: contain; -moz-background-size: contain; background-size: contain; background-size: contain; height: 12px; padding: 1px 7px 1px 6px; width: 12px; } .news-article p { margin: 0; } .news-article > p { margin-bottom: 1em; } .news-article br { line-height: 0; } .news-article hr { background: none; border-bottom: 1px dashed #333; color: transparent; margin: 2em 0; } .news-article blockquote { background: none; border: 0; border-bottom: 1px dashed var(--ct_col_body-txt); -webkit-column-break-inside: avoid; -moz-column-break-inside: avoid; break-inside: avoid; margin: 0 0 1em 0; padding: 0 0 0.5em 0; } .news-article blockquote:first-of-type { border-top: 1px dashed var(--ct_col_body-txt); } .news-article blockquote:last-child { border: 0; } .news-article blockquote p { font-style: italic; } .news-article-page { background: #f4f4f4; font-family: "Trebuchet MS", Trebuchet, Verdana, Arial, Helvetica; font-size: 11px; padding: 2px; } .news-2columns { -moz-columns: 245px 2; -webkit-columns: 245px 2; columns: 245px 2; } .news-3columns { -moz-columns: 245px 3; -webkit-columns: 245px 3; columns: 245px 3; } .news-article.noborder blockquote:first-of-type { border-top: 0; } .news-columns-border { -moz-column-gap: 2em; -webkit-column-gap: 2em; column-gap: 2em; -moz-column-rule: 1px solid var(--ct_col_body-txt); -webkit-column-rule: 1px solid var(--ct_col_body-txt); column-rule: 1px solid var(--ct_col_body-txt); } .blockquote { background-color: #f4f4f4; border: 1px dashed #999; margin: 1em 40px; padding: 0 1em; } .blockquote p { margin: 1em 0; } @media (min-width: 1100px) and (max-width: 1190px) { .news-title p { font-size: 550%; } } @media (min-width: 1000px) and (max-width: 1099px) { .news-title p { font-size: 450%; } .news-title br { margin-bottom: 10px; } } @media (max-width: 999px) { .news-title p { font-size: 350%; } .news-title br { margin-bottom: 10px; } } @media (min-width: 768px) and (max-width: 900px) { .news-issue-line { font-size: 175%; } .news-header-container { display: block; } .news-title, .news-lead-title, .news-lead-text { position: relative; } .news-title { border: 0; border-bottom: 2px solid #fff; margin: 0; margin-bottom: 1em; padding: 0; padding-bottom: 1em; } .news-title p { font-size: 350%; } .news-title br { display: none; } } @media (min-width: 768px) and (max-width: 800px) { .news-ratebox { top: 1.5em; } .news-issue-line { margin: 2em 0 0.4em; } .news-bg-image { top: 30px; } } @media (min-width: 100px) and (max-width: 550px) { .news-issue-line { font-size: 175%; } .news-ratebox { top: 1.5em; } .news-issue-line { margin: 2em 0 0.4em; } .news-bg-image { top: 30px; } } @media (min-width: 100px) and (max-width: 630px) { .news-header-container { display: block; } .news-title, .news-lead-title, .news-lead-text { position: relative; } .news-title { border: 0; border-bottom: 2px solid #fff; margin: 0; margin-bottom: 1em; padding: 0; padding-bottom: 1em; } .news-title p { font-size: 350%; } .news-title br { display: none; } } @media (max-width: 479px) { .news-subheader { font-size: 100%; } } @media (max-width: 450px) { .news-issue-line span { float: none; } .news-issue-line p br { display: inherit; } } @media (min-width: 768px) and (max-width: 979px) { #toc { max-width: 100% !important; } } @media (max-width: 580px) { #toc { max-width: 100% !important; } } @media (max-width: 479px) { .blockquote { margin: 1em 0; } } @media (min-width: 480px) and (max-width: 580px) { .blockquote { margin: 0.5em; } } /* This tooltip hover effect is adapted from LurkD's code on http://www.scp-wiki.net/command-query-separation */ .hover span { display: none; } .hover:hover { border-bottom: none; text-decoration: none; } .hover:hover span { background: rgba(245, 245, 245, 0.75); border-color: rgba(250, 250, 250, 0.75); border-style: double; color: #b01; display: inline; font-weight: bold; height: auto; margin: 1px; padding: 1em; position: absolute; width: auto; } .hover:hover span span { border: none; height: auto; margin: auto; padding: 0; position: relative; width: auto; } .hover img { border: 1px solid #666; width: 33% width: -webkit-calc(100% / 3 - 4px); width: -moz-calc(100% / 3 - 4px); width: calc(100% / 3 - 4px); } .hover:nth-of-type(2) img { border-left: 0; border-right: 0; }
Seiten Revision: 7, zuletzt bearbeitet: 19 Aug 2021 07:50
Abschnitte bearbeiten
Hinzufügen
Metatags bearbeiten
Beobachter
Backlinks
Seiten-Quelltext
Eltern
Seite sperren
Umbenennen
Löschen