MediaWiki:Common.css: Difference between revisions

From SourceWorlds Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 59: Line 59:




/* Credits: ModernPolls */
/* AJAXPoll Modern-style skin */


.d-poll {
.ajaxpoll {
     --mp-question-text: currentColor;
     padding: 1em;
     --mp-answers-text: currentColor;
     background: var(--background-secondary);
     --mp-votes-background: rgba(0, 0, 0 ,.2);
     border: 1px solid var(--border-primary);
    --mp-votes-bar: currentColor;
     border-radius: 4px;
     --mp-votes-bar-blend: normal;
}
}
.d-poll__question {
 
     color: var(--mp-question-text);
.ajaxpoll-question {
     font-size: 1.2em;
    font-weight: bold;
    margin-bottom: .75em;
}
}
.d-poll__answer {
 
.ajaxpoll-misc,
.ajaxpoll-info {
    font-size: .85em;
    opacity: .8;
    margin-bottom: 1em;
}
 
.ajaxpoll-answer {
     position: relative;
     position: relative;
     padding: 1em 0;
     padding: .75em 0;
    font-size: 0.9em;
    color: var(--mp-answers-text);
}
}
.d-poll__answer-alt {
 
    font-style: italic;
.ajaxpoll-answer-name label {
    opacity: .5;
}
.d-poll__answerName {
     display: flex;
     display: flex;
     align-items: center;
     align-items: center;
    gap: .5em;
    cursor: pointer;
}
.ajaxpoll-answer-name input[type="radio"] {
    margin: 0;
}
.ajaxpoll-answer-vote {
    position: relative;
    margin-top: .4em;
    background: rgba(255,255,255,.08);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
}
}
.d-poll__answerName > input {
 
     margin: 0 0.3em;
.ajaxpoll-answer-vote > div {
     height: 100%;
    background: #d39636;
}
}
.d-poll__answerVotes {
 
.ajaxpoll-answer-vote span {
     position: absolute;
     position: absolute;
    top: 1em;
     right: 0;
     right: 0;
    top: -20px;
    font-size: .8em;
    opacity: .8;
}
}
.d-poll__answerBar {
 
     background: var(--mp-votes-background);
.ajaxpoll-our-vote > div {
     box-shadow: 0 0 8px rgba(211,150,54,.7);
}
}
.d-poll__answerBar > div {
 
     height: 3px;
.ajaxpoll-our-vote label {
    background: var(--mp-votes-bar);
     color: #d39636;
     mix-blend-mode: var(--mp-votes-bar-blend);
     font-weight: bold;
}
}
.d-poll__info {
 
    font-size: 0.8em;
.ajaxpoll-id-info {
}
     display: none;
.d-poll input[type="submit"] {
     width: 100%;
    height: auto;
    background-image: none;
    box-sizing: border-box;
    padding: 7px 18px;
    border-radius: 3px;
    font-size: 12px;
    letter-spacing: .15px;
    font-weight: bold;
    text-transform: uppercase;
}
}

Revision as of 05:35, 7 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 Modern-style skin */

.ajaxpoll {
    padding: 1em;
    background: var(--background-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 4px;
}

.ajaxpoll-question {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: .75em;
}

.ajaxpoll-misc,
.ajaxpoll-info {
    font-size: .85em;
    opacity: .8;
    margin-bottom: 1em;
}

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

.ajaxpoll-answer-name label {
    display: flex;
    align-items: center;
    gap: .5em;
    cursor: pointer;
}

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

.ajaxpoll-answer-vote {
    position: relative;
    margin-top: .4em;
    background: rgba(255,255,255,.08);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
}

.ajaxpoll-answer-vote > div {
    height: 100%;
    background: #d39636;
}

.ajaxpoll-answer-vote span {
    position: absolute;
    right: 0;
    top: -20px;
    font-size: .8em;
    opacity: .8;
}

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

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

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