MediaWiki:Common.css: Difference between revisions

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


/* AJAXPoll Modern-style skin */


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


.ajaxpoll-question {
.ajaxpoll-question {
     font-size: 1.2em;
     font-size: 1.25em;
     font-weight: bold;
     font-weight: bold;
     margin-bottom: .75em;
     margin-bottom: .75em;
}
.ajaxpoll-misc,
.ajaxpoll-info {
    font-size: .85em;
    opacity: .8;
    margin-bottom: 1em;
}
}


.ajaxpoll-answer {
.ajaxpoll-answer {
    position: relative;
     padding: .75em 0;
     padding: .75em 0;
}
}
Line 91: Line 80:
     gap: .5em;
     gap: .5em;
     cursor: pointer;
     cursor: pointer;
}
.ajaxpoll-answer-name input[type="radio"] {
    margin: 0;
}
}


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


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


.ajaxpoll-answer-vote span {
.ajaxpoll-answer-vote span {
     position: absolute;
     float: right;
    right: 0;
     font-size: 0.85em;
    top: -20px;
     color: #54595d;
     font-size: .8em;
     opacity: .8;
}
}


.ajaxpoll-our-vote > div {
.ajaxpoll-our-vote label {
     box-shadow: 0 0 8px rgba(211,150,54,.7);
     font-weight: bold;
    color: #36c;
}
}


.ajaxpoll-our-vote label {
.ajaxpoll-info,
     color: #d39636;
.ajaxpoll-misc {
     font-weight: bold;
    font-size: .9em;
     color: #54595d;
     margin-top: .5em;
}
}



Revision as of 05:36, 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 {
    background: #f8f9fa;
    border: 1px solid #a2a9b1;
    border-radius: 2px;
    padding: 1em;
}

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

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

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

.ajaxpoll-answer-vote {
    position: relative;
    margin-top: .3em;
    background: #eaecf0;
    height: 8px;
    border-radius: 3px;
    overflow: hidden;
}

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

.ajaxpoll-answer-vote span {
    float: right;
    font-size: 0.85em;
    color: #54595d;
}

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

.ajaxpoll-info,
.ajaxpoll-misc {
    font-size: .9em;
    color: #54595d;
    margin-top: .5em;
}

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