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:




/* @author: KhangND */
/* Credits: ModernPolls */


.d-poll {
.d-poll {
     --color-primary: #008aff8c;
     --mp-question-text: currentColor;
     --space: 0.6em 1em;
     --mp-answers-text: currentColor;
     --round: 4px;
     --mp-votes-background: rgba(0, 0, 0 ,.2);
}
     --mp-votes-bar: currentColor;
.d-poll {
     --mp-votes-bar-blend: normal;
    background: #f3f3f32e;
     border: 1px solid var(--color-primary);
     border-radius: var(--round);
}
}
.d-poll__question {
.d-poll__question {
     background: var(--color-primary);
     color: var(--mp-question-text);
    padding: var(--space);
}
}
.d-poll__answer {
.d-poll__answer {
    background: var(--color-white);
    border-bottom: 1px solid #919191;
     position: relative;
     position: relative;
    padding: 1em 0;
    font-size: 0.9em;
    color: var(--mp-answers-text);
}
}
.d-poll__answer-alt {
.d-poll__answer-alt {
Line 85: Line 82:
}
}
.d-poll__answerName {
.d-poll__answerName {
     display: block;
     display: flex;
     padding: var(--space);
     align-items: center;
     cursor: pointer;
}
.d-poll__answerName > input {
     margin: 0 0.3em;
}
}
.d-poll__answerVotes {
.d-poll__answerVotes {
     position: absolute;
     position: absolute;
     top: 0;
     top: 1em;
     right: 0;
     right: 0;
     padding: var(--space);
}
.d-poll__answerBar {
     background: var(--mp-votes-background);
}
.d-poll__answerBar > div {
    height: 3px;
    background: var(--mp-votes-bar);
    mix-blend-mode: var(--mp-votes-bar-blend);
}
}
.d-poll__info {
.d-poll__info {
     padding: var(--space);
     font-size: 0.8em;
    text-align: center;
}
}
.d-poll input[type="submit"] {
.d-poll input[type="submit"] {
     background: var(--color-primary);
     width: 100%;
     border: #357ebd;
     height: auto;
     padding: 0.5em;
     background-image: none;
     margin: 0 var(--space);
     box-sizing: border-box;
     display: block;
     padding: 7px 18px;
     width: calc(100% - 1.3em);
     border-radius: 3px;
     height: unset;
     font-size: 12px;
     line-height: unset;
     letter-spacing: .15px;
}
    font-weight: bold;
.d-poll input[type="submit"]:hover {
     text-transform: uppercase;
     background: #3276b1;
}
}

Revision as of 05:33, 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; } 
}



/* Credits: ModernPolls */

.d-poll {
    --mp-question-text: currentColor;
    --mp-answers-text: currentColor;
    --mp-votes-background: rgba(0, 0, 0 ,.2);
    --mp-votes-bar: currentColor;
    --mp-votes-bar-blend: normal;
}
.d-poll__question {
    color: var(--mp-question-text);
}
.d-poll__answer {
    position: relative;
    padding: 1em 0;
    font-size: 0.9em;
    color: var(--mp-answers-text);
}
.d-poll__answer-alt {
    font-style: italic;
    opacity: .5;
}
.d-poll__answerName {
    display: flex;
    align-items: center;
}
.d-poll__answerName > input {
    margin: 0 0.3em;
}
.d-poll__answerVotes {
    position: absolute;
    top: 1em;
    right: 0;
}
.d-poll__answerBar {
    background: var(--mp-votes-background);
}
.d-poll__answerBar > div {
    height: 3px;
    background: var(--mp-votes-bar);
    mix-blend-mode: var(--mp-votes-bar-blend);
}
.d-poll__info {
    font-size: 0.8em;
}
.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;
}