MediaWiki:Common.css: Difference between revisions

From SourceWorlds Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(27 intermediate revisions by the same user not shown)
Line 59: Line 59:




/* Credits: ModernPolls */
/* AJAXPoll Dark Theme */


.d-poll {
.ajaxpoll {
     --mp-question-text: currentColor;
     background: #202122;
    --mp-answers-text: currentColor;
     border: 1px solid #404244;
     --mp-votes-background: rgba(0, 0, 0 ,.2);
     padding: 1em;
     --mp-votes-bar: currentColor;
     color: #eaecf0;
     --mp-votes-bar-blend: normal;
}
}
.d-poll__question {
 
     color: var(--mp-question-text);
.ajaxpoll-question {
    font-size: 1.2em;
    font-weight: bold;
     color: #fff;
    margin-bottom: 0.75em;
}
 
.ajaxpoll-misc,
.ajaxpoll-info {
    color: #a2a9b1;
    font-size: 0.9em;
    margin-bottom: 0.75em;
}
}
.d-poll__answer {
 
.ajaxpoll-answer {
     position: relative;
     position: relative;
     padding: 1em 0;
     padding: 0.75em 0;
    font-size: 0.9em;
    color: var(--mp-answers-text);
}
}
.d-poll__answer-alt {
 
     font-style: italic;
.ajaxpoll-answer:not(:last-child) {
    opacity: .5;
     border-bottom: 1px solid #303234;
}
}
.d-poll__answerName {
 
.ajaxpoll-answer-name label {
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
    gap: 0.5em;
    cursor: pointer;
    color: #eaecf0;
}
.ajaxpoll-answer-name label:hover {
    color: #f0c674;
}
}
.d-poll__answerName > input {
 
     margin: 0 0.3em;
.ajaxpoll-answer-name input[type="radio"] {
     margin: 0;
}
}
.d-poll__answerVotes {
 
/* Vote count */
 
.ajaxpoll-answer-vote span {
     position: absolute;
     position: absolute;
     top: 1em;
     top: -18px;
     right: 0;
     right: 0;
    color: #a2a9b1;
    font-size: 0.85em;
}
/* Progress bar track */
.ajaxpoll-answer-vote {
    position: relative;
    margin-top: 18px;
    height: 8px;
    background: #303234;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}
/* Progress bar fill */
.ajaxpoll-answer-vote > div {
    height: 100%;
    background: #d39636 !important;
    background-image: none !important;
    border: 0 !important;
}
/* Selected answer */
.ajaxpoll-our-vote label {
    color: #d39636;
    font-weight: bold;
}
}
.d-poll__answerBar {
 
     background: var(--mp-votes-background);
.ajaxpoll-our-vote > div {
     box-shadow:
        0 0 8px rgba(211,150,54,.5),
        0 0 16px rgba(211,150,54,.2);
}
}
.d-poll__answerBar > div {
 
     height: 3px;
.ajaxpoll-id-info {
    background: var(--mp-votes-bar);
     display: none;
    mix-blend-mode: var(--mp-votes-bar-blend);
}
}
.d-poll__info {
 
     font-size: 0.8em;
.ajaxpoll-answer-vote span {
     border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}
}
.d-poll input[type="submit"] {
 
     width: 100%;
 
    height: auto;
.ajaxpoll input[type="radio"] {
    background-image: none;
     accent-color: #d39636;
     box-sizing: border-box;
     transform: scale(1.2);
    padding: 7px 18px;
    border-radius: 3px;
    font-size: 12px;
    letter-spacing: .15px;
    font-weight: bold;
    text-transform: uppercase;
}
}
div.thumbinner {background-color:transparent !important;}
img {background-color:transparent !important;}

Latest revision as of 04:41, 12 October 2026

/* CSS placed here will be applied to all skins */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:[email protected]&display=swap');


#toc {
    background: none !important;
}

li.gallerybox div.thumb {
    background: none;
    border: none;
}

figure[typeof~="mw:File/Thumb"],
figure[typeof~="mw:File/Frame"] {
    background: none;
    border: none;
}

figure[typeof~="mw:File/Thumb"] > figcaption,
figure[typeof~="mw:File/Frame"] > figcaption {
    border: 0;
    background: none;
}
figure[typeof~="mw:File/Thumb"] > :not(figcaption) .mw-file-element,
figure[typeof~="mw:File/Frame"] > :not(figcaption) .mw-file-element {
    border: 0;
}

.main-flex-right {
    max-width: 300px;
}


body.page-Main_Page li#ca-talk { display: none !important; }
body.page-Main_Page li#ca-nstab-main { display: none !important; }
body.page-Main_Page li#ca-history { display: none !important; }
body.page-Main_Page li#ca-viewsource { display: none !important; }

/* CSS Typing Text
 * 
 * @author: Unknown
 * current version crafted together by [[User:Christharp]].
 */

.typing{
  margin: 10px 0 0 10px;
    width: 1000px;
   white-space:nowrap;
   overflow:hidden;
  animation: type 10s steps(100, end);
}

@keyframes type{ 
  from { width: 0; } 
}



/* AJAXPoll Dark Theme */

.ajaxpoll {
    background: #202122;
    border: 1px solid #404244;
    padding: 1em;
    color: #eaecf0;
}

.ajaxpoll-question {
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0.75em;
}

.ajaxpoll-misc,
.ajaxpoll-info {
    color: #a2a9b1;
    font-size: 0.9em;
    margin-bottom: 0.75em;
}

.ajaxpoll-answer {
    position: relative;
    padding: 0.75em 0;
}

.ajaxpoll-answer:not(:last-child) {
    border-bottom: 1px solid #303234;
}

.ajaxpoll-answer-name label {
    display: flex;
    align-items: center;
    gap: 0.5em;
    cursor: pointer;
    color: #eaecf0;
}

.ajaxpoll-answer-name label:hover {
    color: #f0c674;
}

.ajaxpoll-answer-name input[type="radio"] {
    margin: 0;
}

/* Vote count */

.ajaxpoll-answer-vote span {
    position: absolute;
    top: -18px;
    right: 0;
    color: #a2a9b1;
    font-size: 0.85em;
}

/* Progress bar track */

.ajaxpoll-answer-vote {
    position: relative;
    margin-top: 18px;
    height: 8px;
    background: #303234;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* Progress bar fill */

.ajaxpoll-answer-vote > div {
    height: 100%;
    background: #d39636 !important;
    background-image: none !important;
    border: 0 !important;
}

/* Selected answer */

.ajaxpoll-our-vote label {
    color: #d39636;
    font-weight: bold;
}

.ajaxpoll-our-vote > div {
    box-shadow:
        0 0 8px rgba(211,150,54,.5),
        0 0 16px rgba(211,150,54,.2);
}

.ajaxpoll-id-info {
    display: none;
}

.ajaxpoll-answer-vote span {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}


.ajaxpoll input[type="radio"] {
    accent-color: #d39636;
    transform: scale(1.2);
}

div.thumbinner {background-color:transparent !important;}
img {background-color:transparent !important;}