MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(14 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
} | } | ||
.bs-callout { | |||
margin: 20px 0; | |||
padding: 20px; | |||
border: 1px solid #eee; | |||
border-left-width: 5px; | |||
border-radius: 3px; | |||
} | |||
.bs-callout a { | |||
text-decoration: underline; | |||
} | |||
.bs-callout-highlight { | |||
border-color: #FFBF00; | |||
background-color: #FF0; | |||
} | |||
.bs-callout-question { | |||
border-color: #FFBF00; | |||
background-color: #DB7093; | |||
} | |||
.bs-callout-personal { | |||
border-left-color: #ff2893; | |||
background-color: #ffc1e0; | |||
} | |||
.bs-callout-anecdote { | |||
border-left-color: #006600; | |||
background-color: #99ff99; | |||
} | |||
.bs-callout-supermemo { | |||
border-left-color: #8000ff; | |||
background-color: #d9d9ff; | |||
} | |||
.bs-callout-metaphor { | |||
border-left-color: #9bb79b; | |||
background-color: #d1ded1; | |||
} | |||
.bs-callout-archive { | |||
border-color: #ccc; | |||
background-color: #e5e5e5; | |||
} | |||
.bs-callout-note { | |||
position: relative; | |||
float: right; | |||
display: inline-block; | |||
white-space: nowrap; | |||
} | |||
.btn-callout-note { | |||
position: absolute; | |||
top: 0; | |||
right: 0; | |||
z-index: 10; | |||
display: block; | |||
padding: 5px 8px; | |||
font-size: 12px; | |||
color: #767676; | |||
background-color: #fff; | |||
border-radius: 0 2px 0 2px; | |||
} | |||
.bs-callout + .bs-callout-note > .btn-callout-note, | |||
.faq-q + .bs-callout-note > .btn-callout-note, | |||
.excerpt + .bs-callout-note > .btn-callout-note, | |||
.motto + .bs-callout-note > .btn-callout-note { | |||
top: -13px; | |||
} | |||
.text-center { | |||
text-align: center; | |||
} | |||
.motto { | |||
margin: 20px 5em; | |||
padding: 20px; | |||
border-radius: 3px; | |||
background-color: #F8FAAD; | |||
} | |||
.inline-highlight { | |||
color: #e10071; | |||
background-color: #ffffae; | |||
font-weight: bold; | |||
} | |||
.excerpt{ | .excerpt{ | ||
Line 77: | Line 167: | ||
blockquote:not([class]) { | blockquote:not([class]) { | ||
position: relative; | position: relative; | ||
margin: | margin: 50px 0; | ||
padding: 1.6em 2.4em .7em calc(1.4em + var(--quote-image-width)); | padding: 1.6em 2.4em .7em calc(1.4em + var(--quote-image-width)); | ||
font: italic 1.2rem var(--type-quote); | font: italic 1.2rem var(--type-quote); | ||
Line 89: | Line 179: | ||
@media (min-width: 768px) { | @media (min-width: 768px) { | ||
blockquote { | blockquote { | ||
margin: | margin: 50px 60px; | ||
} | } | ||
} | } | ||
Line 110: | Line 200: | ||
blockquote:not([class])::after { | blockquote:not([class])::after { | ||
content: "❝"; | content: "❝"; | ||
position: absolute; | |||
z-index: 1; | |||
left: 50%; | |||
top: -2px; | |||
transform: translate(-50%, -50%); | |||
width: 1.3em; | |||
height: 1.3em; | |||
background: white; | |||
box-shadow: 0 4px 5px -1px hsla(0 0% 0% / 20%); | |||
border-radius: 999px; | |||
display: grid; | |||
place-content: center; | |||
padding-top: .5em; | |||
color: var(--accent-color); | |||
font-size: 36px; | |||
font-style: normal; | |||
text-indent: 0; | |||
} | |||
questionbody:not([class])::after { | |||
content: "❓"; | |||
position: absolute; | position: absolute; | ||
z-index: 1; | z-index: 1; | ||
Line 134: | Line 245: | ||
top: 0; | top: 0; | ||
width: var(--quote-image-width); | width: var(--quote-image-width); | ||
height: | height: 100px; | ||
opacity: 0.75; | opacity: 0.75; | ||
background: var(--accent-color) var(--image) no-repeat center / cover; | background: var(--accent-color) var(--image) no-repeat center / cover; | ||
Line 140: | Line 251: | ||
border-top-left-radius: var(--border-rad); | border-top-left-radius: var(--border-rad); | ||
border-bottom-left-radius: var(--border-rad); | border-bottom-left-radius: var(--border-rad); | ||
} | } | ||
blockquote-author-image img { | |||
height:100px; width:auto; | |||
} | |||
cite { | cite { | ||
display: block; | display: block; | ||
Line 161: | Line 277: | ||
background: var(--accent-color); | background: var(--accent-color); | ||
color: var(--quote-bg); | color: var(--quote-bg); | ||
padding-left:3px; | |||
padding-right:3px; | |||
} | } | ||
Line 243: | Line 361: | ||
font-style: normal; | font-style: normal; | ||
text-indent: 0; | text-indent: 0; | ||
} | |||
.message { | |||
background-color: white; | |||
width: calc(100% - 3em); | |||
max-width: 24em; | |||
padding: 1em 1em 1em 1.5em; | |||
border-left-width: 6px; | |||
border-left-style: solid; | |||
border-radius: 3px; | |||
position: relative; | |||
line-height: 1.5; | |||
} | |||
message + message { | |||
margin-top: 2em; | |||
} | |||
message:before { | |||
color: white; | |||
width: 1.5em; | |||
height: 1.5em; | |||
position: absolute; | |||
top: 1em; | |||
left: -3px; | |||
border-radius: 50%; | |||
transform: translateX(-50%); | |||
font-weight: bold; | |||
line-height: 1.5; | |||
text-align: center; | |||
} | |||
.message--error { | |||
border-left-color: firebrick; | |||
} | |||
message--error::before { | |||
background-color: firebrick; | |||
content: "‼"; | |||
} | |||
.message--warning { | |||
border-left-color: darkorange; | |||
} | |||
.message--warning::before { | |||
background-color: darkorange; | |||
content: "!"; | |||
} | |||
.message--success { | |||
border-left-color: darkolivegreen; | |||
} | |||
message--success::before { | |||
background-color: darkolivegreen; | |||
content: "✔"; | |||
} | } |
Latest revision as of 09:19, 15 June 2023
/* CSS placed here will be applied to all skins */ :root { --type-body: Open Sans, Helvetica, Arial, sans-serif; --type-quote: Vollkorn; --quote-image-width: 140px; --border-rad: 7px; --accent-color: black; --quote-bg: hsl(0 0% 97%); } *, *::before, *::after { box-sizing: border-box; } .bs-callout { margin: 20px 0; padding: 20px; border: 1px solid #eee; border-left-width: 5px; border-radius: 3px; } .bs-callout a { text-decoration: underline; } .bs-callout-highlight { border-color: #FFBF00; background-color: #FF0; } .bs-callout-question { border-color: #FFBF00; background-color: #DB7093; } .bs-callout-personal { border-left-color: #ff2893; background-color: #ffc1e0; } .bs-callout-anecdote { border-left-color: #006600; background-color: #99ff99; } .bs-callout-supermemo { border-left-color: #8000ff; background-color: #d9d9ff; } .bs-callout-metaphor { border-left-color: #9bb79b; background-color: #d1ded1; } .bs-callout-archive { border-color: #ccc; background-color: #e5e5e5; } .bs-callout-note { position: relative; float: right; display: inline-block; white-space: nowrap; } .btn-callout-note { position: absolute; top: 0; right: 0; z-index: 10; display: block; padding: 5px 8px; font-size: 12px; color: #767676; background-color: #fff; border-radius: 0 2px 0 2px; } .bs-callout + .bs-callout-note > .btn-callout-note, .faq-q + .bs-callout-note > .btn-callout-note, .excerpt + .bs-callout-note > .btn-callout-note, .motto + .bs-callout-note > .btn-callout-note { top: -13px; } .text-center { text-align: center; } .motto { margin: 20px 5em; padding: 20px; border-radius: 3px; background-color: #F8FAAD; } .inline-highlight { color: #e10071; background-color: #ffffae; font-weight: bold; } .excerpt{ margin: 20px 0; padding: 0; border-radius: 3px; color: #0A2C5D; background: #E8FF4F no-repeat top left; } .podcast-episode-abstract{ margin: 20px; padding: 10px; border-radius: 13px; color: black; font-size:18px; background: linear-gradient(to bottom, #33ccff 0%, #ff99cc 100%); } .wikiexcerpt{ padding: 10px 10px 10px 48px; margin: 10px; border-radius: 13px; color: black; background: white url(https://upload.wikimedia.org/wikipedia/en/thumb/8/80/Wikipedia-logo-v2.svg/75px-Wikipedia-logo-v2.svg.png) no-repeat top left; font-size:18px; border: solid gray 1px; } .discordvcevent{ padding: 10px 10px 10px 8px; margin: 10px; border-radius: 4px; color: white; font-size:18px; background: #7289DA url(https:www.//pleasurable-learning.com/images/thumb/5/53/Logo.discord.word.png/320px-Logo.discord.word.png) no-repeat top right; border: solid gray 1px; } .quote-author{ position: relative; right: 30px; top:5px; } .quote{ padding: 10px 10px 10px 8px; margin: 10px; border-radius: 4px; color: white; font-size:18px; background: #7289DA url(https:www.//pleasurable-learning.com/images/thumb/5/53/Logo.discord.word.png/320px-Logo.discord.word.png) no-repeat top right; border: solid gray 1px; } blockquote:not([class]) { position: relative; margin: 50px 0; padding: 1.6em 2.4em .7em calc(1.4em + var(--quote-image-width)); font: italic 1.2rem var(--type-quote); background: var(--quote-bg) no-repeat left / var(--quote-image-width); border-radius: var(--border-rad); border: 2px solid white; box-shadow: 2px 2px 4px hsl(0 0% 0% / 20%); text-indent: 1.6em; } @media (min-width: 768px) { blockquote { margin: 50px 60px; } } blockquote:not([class])::before { content: ""; pointer-events: none; position: absolute; z-index: 1; left: 0; top: 0; right: 0; bottom: 0; border-radius: var(--border-rad); box-shadow: inset -2px -2px 1px hsl(0 0% 100%), inset 2px 2px 4px hsl(0 0% 0% / 20%); } blockquote:not([class])::after { content: "❝"; position: absolute; z-index: 1; left: 50%; top: -2px; transform: translate(-50%, -50%); width: 1.3em; height: 1.3em; background: white; box-shadow: 0 4px 5px -1px hsla(0 0% 0% / 20%); border-radius: 999px; display: grid; place-content: center; padding-top: .5em; color: var(--accent-color); font-size: 36px; font-style: normal; text-indent: 0; } questionbody:not([class])::after { content: "❓"; position: absolute; z-index: 1; left: 50%; top: -2px; transform: translate(-50%, -50%); width: 1.3em; height: 1.3em; background: white; box-shadow: 0 4px 5px -1px hsla(0 0% 0% / 20%); border-radius: 999px; display: grid; place-content: center; padding-top: .5em; color: var(--accent-color); font-size: 36px; font-style: normal; text-indent: 0; } .blockquote-author-image { position: absolute; left: 0; top: 0; width: var(--quote-image-width); height: 100px; opacity: 0.75; background: var(--accent-color) var(--image) no-repeat center / cover; background-blend-mode: hard-light; border-top-left-radius: var(--border-rad); border-bottom-left-radius: var(--border-rad); } blockquote-author-image img { height:100px; width:auto; } cite { display: block; margin-top: 30px; text-indent: 0; text-align: center; font: bold .9rem var(--type-body); text-transform: uppercase; color: hsl(0 0% 20%); } @media (min-width: 768px) { cite { margin-left: calc(1rem - var(--quote-image-width)); } } .cite-last-name { background: var(--accent-color); color: var(--quote-bg); padding-left:3px; padding-right:3px; } .controls { position: fixed; bottom: 10px; right: 10px; font-size: 0.8em; opacity: 0.7; transition: .2s; } .controls:hover, .controls:focus { opacity: 1; } .controls label { font-weight: bold; text-transform: lowercase; } .controls input { display: block; width: 100%; border: 0; outline: none; padding: 0; } blockquote.discord { position: relative; margin: 40px 0; padding: 1.6em 2.4em .7em calc(1.4em + var(--quote-image-width)); font: italic 1.2rem var(--type-quote); background: #7289DA no-repeat left; border-radius: var(--border-rad); border: 2px solid white; box-shadow: 2px 2px 4px hsl(0 0% 0% / 20%); text-indent: 1.6em; color:white; } blockquote.discord::before { content: ""; pointer-events: none; position: absolute; z-index: 1; left: 0; top: 0; right: 0; bottom: 0; border-radius: var(--border-rad); box-shadow: inset -2px -2px 1px hsl(0 0% 100%), inset 2px 2px 4px hsl(0 0% 0% / 20%); } blockquote.discord::after { content: "❝"; position: absolute; z-index: 1; left: 50%; top: -2px; transform: translate(-50%, -50%); width: 1.3em; height: 1.3em; background: white; box-shadow: 0 4px 5px -1px hsla(0 0% 0% / 20%); border-radius: 999px; display: grid; place-content: center; padding-top: .5em; color: var(--accent-color); font-size: 36px; font-style: normal; text-indent: 0; } .message { background-color: white; width: calc(100% - 3em); max-width: 24em; padding: 1em 1em 1em 1.5em; border-left-width: 6px; border-left-style: solid; border-radius: 3px; position: relative; line-height: 1.5; } message + message { margin-top: 2em; } message:before { color: white; width: 1.5em; height: 1.5em; position: absolute; top: 1em; left: -3px; border-radius: 50%; transform: translateX(-50%); font-weight: bold; line-height: 1.5; text-align: center; } .message--error { border-left-color: firebrick; } message--error::before { background-color: firebrick; content: "‼"; } .message--warning { border-left-color: darkorange; } .message--warning::before { background-color: darkorange; content: "!"; } .message--success { border-left-color: darkolivegreen; } message--success::before { background-color: darkolivegreen; content: "✔"; }