MediaWiki
Common.css
From Dogcraft Wiki
(removing sitenotice styles (in favor of global dc.net sitenotice. Styles archived at https://dogcraft.net/wiki/Dogcraft_Wiki:Archive/Site_notice.css)) |
(Major housekeeping 1: removed most commented out styles; selflink text-decor fix; removed go-to-dogcraft styles; removed unused but active styles: printfooter, skinsandbox, navwrapper-topbar-logo, guide ns ve edit button (now done in localsettings), main page scrollers (now done globally); rewrote and cleaned up some comments) |
||
Line 12: | Line 12: | ||
/* == ToDo: This comment == */ | /* == ToDo: This comment == */ | ||
/* vertically centering indicators (namespace label, featured article label) in all namespaces except main, alignign it with actions button - testing */ | /* vertically centering indicators (namespace label, featured article label) in all namespaces except main, alignign it with actions button - testing */ | ||
Line 31: | Line 27: | ||
a.new { /* Broken link color */ | a.new { /* Broken link color */ | ||
color: #8b0024; | color: #8b0024; /*this could be "red"*/ | ||
} | } | ||
Line 121: | Line 117: | ||
} | } | ||
.mw-selflink:hover { | .content .mw-selflink:hover { | ||
text-decoration:none; | text-decoration:none; | ||
} | } | ||
Line 142: | Line 138: | ||
background-clip:padding-box; | background-clip:padding-box; | ||
} | } | ||
/**/ | |||
#mw-indicator-mw-helplink a { /* Changing the default question mark in the help indicator on special and category pages */ | |||
/* Changing the default | |||
background-image: url('images/0/0d/Mw_helplink_image.svg'); | background-image: url('images/0/0d/Mw_helplink_image.svg'); | ||
} | } | ||
/* Overriding default margins for gallery mode slideshow */ | ul.gallery.mw-gallery-slideshow { /* Overriding default margins for gallery mode slideshow */ | ||
margin: 0; | margin: 0; | ||
} | } | ||
Line 177: | Line 171: | ||
} | } | ||
/ | |||
.mw-highlight { /* CSS and JS page backgrounds (to be moved into foreground.css later) */ | |||
background-color: #f8f8f8 !important; | background-color: #f8f8f8 !important; | ||
} | } | ||
/ | .mw-editsection { /* Editsection links (hiding these for now, may be back later) */ | ||
display: none; | display: none; | ||
} | } | ||
Line 215: | Line 208: | ||
} | } | ||
/ | .catlinks-allhidden { /* Hides the catlink box if no catlinks are included on the page */ | ||
display: none; | display: none; | ||
} | } | ||
Line 246: | Line 230: | ||
cursor: not-allowed; | cursor: not-allowed; | ||
} | } | ||
/* Hide "Main Page" titles */ | /* Hide "Main Page" titles */ | ||
Line 263: | Line 237: | ||
} | } | ||
/* ToDo ??? (this could be leftover from previous skin/the foundation grid) */ | |||
.row.display { | .row.display { | ||
background: #eee; | background: #eee; | ||
Line 279: | Line 254: | ||
padding-bottom: 8px; | padding-bottom: 8px; | ||
} | } | ||
/* clearfix */ | /* clearfix */ | ||
Line 343: | Line 316: | ||
@media only screen and (max-width: 1000px) { | @media only screen and (max-width: 1000px) { | ||
.mainpagefullscreen { | .mainpagefullscreen { | ||
width: 100%!important; | width: 100%!important; | ||
Line 353: | Line 325: | ||
} | } | ||
.example-orbit { | /* orbit styles are staying dispite foundation framework being removed, Owen's orbit carousels might use these */ | ||
.example-orbit { | |||
width: 100%!important; | width: 100%!important; | ||
padding-left: 0!important; | padding-left: 0!important; | ||
Line 385: | Line 358: | ||
margin:auto!important; | margin:auto!important; | ||
} | } | ||
.gallery { | .gallery { | ||
Line 490: | Line 455: | ||
/** ===TEMPLATES & OTHER=== **/ | /** ===TEMPLATES & OTHER=== **/ | ||
/* ==Hover class== */ | /* ==Hover class== ToDo: this should be removed, rewritten into a single utility class or moved into templatestyles and a template */ | ||
.hover:hover .hoverbox { | .hover:hover .hoverbox { | ||
display: inline; | display: inline; | ||
Line 654: | Line 619: | ||
} | } | ||
/* | /* User edit counts table*/ | ||
.uecTable2 { | .uecTable2 { | ||
width: 612px; | width: 612px; | ||
Line 670: | Line 635: | ||
overflow-y: scroll; | overflow-y: scroll; | ||
} | } | ||
} | } | ||
Line 729: | Line 657: | ||
#mall-map-container div:not(.mall-nohover) div:hover .mall-expand-content { | #mall-map-container div:not(.mall-nohover) div:hover .mall-expand-content { | ||
display:inline; | display:inline; | ||
} | } | ||
Line 754: | Line 676: | ||
border: 1px solid darkred !important; | border: 1px solid darkred !important; | ||
opacity: 50%; | opacity: 50%; | ||
} | } | ||
Line 779: | Line 697: | ||
scrollbar-color:lightgray transparent; | scrollbar-color:lightgray transparent; | ||
} | } | ||
/* == Gadget:Helppage CSS: placed here because the wikiActions portion needs to be here to be selectively enabled for Site Content Editors only. | /* == Gadget:Helppage CSS: placed here because the wikiActions portion needs to be here to be selectively enabled for Site Content Editors only. | ||
Line 824: | Line 722: | ||
} | } | ||
/* | /* Action=History page styles */ | ||
.action-history ul#pagehistory { | .action-history ul#pagehistory { | ||
margin: 0 0.5rem; | margin: 0 0.5rem; |
Revision as of 00:19, 21 August 2022
html { /*global CSS variables*/
--main-color: #8b0024;
--second-color: #e05176;
--button-color: #367fa9;
--link-color: #0099db;
--radius: 5px;
}
html {
scroll-behavior: smooth;
}
/* == ToDo: This comment == */
/* vertically centering indicators (namespace label, featured article label) in all namespaces except main, alignign it with actions button - testing */
body:not(.ns-0) .top .indicators {
margin: auto 0;
}
@media only screen and (max-width: 900px)
{
/* galery overflows on small mobile screens */
ul.gallery:not(.slick-slider) {
overflow-x: auto;
}
}
a.new { /* Broken link color */
color: #8b0024; /*this could be "red"*/
}
figure[typeof~="mw:Image/Thumb"] > :first-child > img {
width: calc(100% - 10px) !important;
}
a.oo-ui-labelElement-label:not(.new) { /*Visual editor redirect suggestions should be blue when it points to an existing page, instead of red*/
color:#0099db;
}
/* Visual editor prompt for editing templates goes off the screen on small mobile screens, taking the edit button with it.*/
@media only screen and (max-width: 900px)
{
.ve-ui-linearContextItem-title {
flex: 0;
}
}
@media only screen and (min-width: 901px) { /* desktop */
.ve-ui-toolbar-saveButton { /* save button full height */
padding-top: 0.857143em;
}
}
.oo-ui-windowManager-modal > .tdg-templateDataDialog {
z-index: 11;
}
.ve-ui-overlay-global {
z-index: 11;
}
.ve-ui-toolbar-floating > .oo-ui-toolbar-bar {
top: 7.5em;
}
/* Under 350px the ip bar height doubles */
@media only screen and (max-width: 349px) {
.ve-ui-toolbar-floating > .oo-ui-toolbar-bar {
top: 9em;
}
}
.ve-init-target-visual .oo-ui-menuToolGroup {
border-left-color: transparent;
border-right-color: transparent;
}
.ve-init-target-visual :not(.oo-ui-toolbar-actions) > .oo-ui-toolbar-position-top > .oo-ui-toolbar-bar {
border-bottom: none;
box-shadow: 0 3px 5px 1px rgba(0,0,0,0.3);
}
/* ==Structural/Skin changes== */
/*heading sizes - test here now, ask Owen to move into skin file after trial*/
h2 {
font-size:30px; /*primarily used*/
}
h3 {
font-size:24px; /*secondarily used*/
}
h4 {
font-size:20px;
}
h5 {
font-size:18px;
}
h6 {
font-size:16px; /*same as default text size*/
}
#actions-button {
z-index:5!important;
}
.mw-special-Movepage #ooui-2 {
z-index:600;
}
/* Selflinks */
a.mw-selflink {
color: inherit;
font-weight: bold;
text-decoration: inherit;
cursor: inherit;
}
.content .mw-selflink:hover {
text-decoration:none;
}
/* Search box allignment issue */
@media only screen and (min-width: 641px) {
.top-bar input {
padding-top: .5rem;
}
}
/* Correct anchor behavior with fixed topnav */
.mw-headline:target, .anchor:target {
padding-top: 110px;
margin-top: -110px;
}
.mw-hightlight :target {
border-top:110px solid transparent;
margin-top:-110px;
background-clip:padding-box;
}
/**/
#mw-indicator-mw-helplink a { /* Changing the default question mark in the help indicator on special and category pages */
background-image: url('images/0/0d/Mw_helplink_image.svg');
}
ul.gallery.mw-gallery-slideshow { /* Overriding default margins for gallery mode slideshow */
margin: 0;
}
/* Moving content down (testing) (main only) */
/*first heading needs to be the one to be moved down, because if the whole #content is moved down, the Action button will become
unclickable */
.ns-0 #firstHeading {
padding-top:3.5rem !important;
}
/* ==Skin fixes after updating to Mw 1.35== */
/** Image positioning **/
div.tright,
div.floatright,
table.floatright {
clear: right;
float: right;
}
div.tleft,
div.floatleft,
table.floatleft {
float: left;
clear: left;
}
.mw-highlight { /* CSS and JS page backgrounds (to be moved into foreground.css later) */
background-color: #f8f8f8 !important;
}
.mw-editsection { /* Editsection links (hiding these for now, may be back later) */
display: none;
}
/** Categories **/
.catlinks ul {
display: inline;
margin: 0;
padding: 0;
list-style: none;
list-style-type: none;
list-style-image: none;
}
.catlinks li {
display: inline-block;
line-height: 1.25em;
border-right: 1px solid #a2a9b1;
margin: 0.125em 0;
padding: 0 0.5em;
zoom: 1;
}
.catlinks li:last-of-type {
border-right: none;
}
.mw-normal-catlinks a {
vertical-align: middle;
}
.catlinks-allhidden { /* Hides the catlink box if no catlinks are included on the page */
display: none;
}
/* Setting the width of the captions on packed-overlay and packed-hover galleries to cover the entire image */
.gallerytextwrapper {
width: 100% !important;
}
/* Hide discusson pages */
/*#ca-talk,*/ #pt-mytalk, #wikiEditor-section-help div[rel="discussion"],
.mw-usertoollinks span:first-of-type, .mw-usertoollinks > span:nth-child(2)::before,
.mw-contributions-user-tools .mw-changeslist-links span:first-of-type,
.mw-contributions-user-tools .mw-changeslist-links > span:nth-child(2)::before,
.ns-talk #ca-edit, .ns-talk #ca-addsection {
display: none;
}
a.mw-usertoollinks-talk, a.mw-usertoollinks-talk:hover, a.mw-usertoollinks-talk:active { /* striketrough file page uploader talkpage links for lack of anything better */
text-decoration: line-through;
cursor: not-allowed;
}
/* Hide "Main Page" titles */
body.page-Main_Page .title,
body.page-Main_Page #tagline {
display: none;
}
/* ToDo ??? (this could be leftover from previous skin/the foundation grid) */
.row.display {
background: #eee;
font-size: 11px;
margin-bottom: 10px;
}
.row.display .columns,
.row.display .column {
background: #e7e7e7;
border: 1px solid #ddd;
font-size: 13px;
font-weight: bold;
text-indent: 3px;
padding-top: 8px;
color: #444;
padding-bottom: 8px;
}
/* clearfix */
.clearfix::after {
content: "";
clear: both;
display: table;
}
/** ===PHONE VIEW FIXES=== **/
/*==Sets infobox width to full screen on phones==*/
@media only screen and (max-width: 640px) {
.phonefullscreen {
width: 100%!important;
max-width:100%!important;
padding-left: 0!important;
padding-right: 0!important;
margin-left: 0!important;
margin-right: 0!important;
}
figure {
width: 100%!important;
margin-left: 0!important;
margin-right: 0!important;
}
.phonefullscreen2 {
width: 100%!important;
max-width:100%!important;
}
.trophyfullscreen {
display:block;
}
.trophyfullscreen > div {
float:none!important;
}
.infobox {
width: 100%!important;
}
.infobox .phonefullscreen img {
width: 100%;
}
.mw-references-wrap {
width: 100%!important;
overflow-wrap: break-word!important;
}
.flex-mobile-wrap {
flex-wrap: wrap;
}
.flex-mobile-wrap > div{
max-width:100% !important;
}
}
@media only screen and (max-width: 1000px) {
.mainpagefullscreen {
width: 100%!important;
display: block!important;
padding-left: 0!important;
padding-right: 0!important;
padding-bottom: 0!important;
max-width:100%!important;
}
/* orbit styles are staying dispite foundation framework being removed, Owen's orbit carousels might use these */
.example-orbit {
width: 100%!important;
padding-left: 0!important;
padding-right: 0!important;
}
.orbit-container {
width: 100%!important;
padding-left: 0!important;
padding-right: 0!important;
}
.orbit-container .thumbimage,
.orbit-container .thumbinner,
.orbit-container .thumb{
width: 100%!important;
max-width:100%!important;
}
}
/*==Sets image width to full screen on phones==*/
@media only screen and (max-width: 640px) {
.thumbimage, .thumbinner, .thumb{
width: 100%!important;
max-width:100%!important;
}
}
@media only screen and (max-width: 640px) {
.gallerybox {
width: 49%!important;
margin:auto!important;
}
.gallery {
margin:auto!important;
}
}
@media only screen and (max-width: 1000px) {
/*=Sets the Main Page option buttons to small=*/
.mainpagegallery .thumb {
width: 124.667px!important;
margin: auto !important;
}
.mainpagegallery .gallerybox {
width: 49%!important;
}
}
.thumb .thumbinner {
border-radius: 5px;
overflow: auto;
margin: 5px;
}
/*=Gray and italic image captions=*/
.thumbcaption {
color:#6f6f6f;
font-style:italic;
background:#fcfdfe;
padding-left:3px;
padding-right:3px;
}
/** ===CSS placed here will be applied to default skin for navigation boxes=== */
table.navbox { /* navbox container style */
border: 1px solid #aaa;
width: 100%;
margin: auto;
clear: both;
font-size: 88%;
text-align: center;
padding: 1px;
}
table.navbox + table.navbox {
margin-top: -1px; /* single pixel border between adjacent navboxes (doesn't work for IE6, but that's okay) */
}
.navbox-title, .navbox-abovebelow, table.navbox th {
text-align: center; /* title and above/below styles */
padding-left: 1em;
padding-right: 1em;
}
.navbox-group { /* group style */
white-space: nowrap;
text-align: right;
font-weight: bold;
padding-left: 1em;
padding-right: 1em;
}
.navbox, .navbox-subgroup {
background: #fdfdfd; /* Background color */
}
.navbox-list {
border-left: 2px solid #fdfdfd; /* Must match background color */
}
.navbox-title, table.navbox th {
background: #ccccff; /* Level 1 color */
}
.navbox-abovebelow, .navbox-group, .navbox-subgroup .navbox-title {
background: #ddddff; /* Level 2 color */
}
.navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow {
background: #e6e6ff; /* Level 3 color */
}
.navbox-even {
background: #f7f7f7; /* Even row striping */
}
.navbox-odd {
background: transparent; /* Odd row striping */
}
@media print {
.navbox {
display: none;
}
}
.nowraplinks a { /* prevents line breaks in links in primarily navbox */
white-space: nowrap;
}
.mw-gallery-slideshow .gallerybox, .mw-gallery-slideshow .gallerybox > div, .mw-gallery-slideshow .gallerybox div.thumb { /* slideshow gallery fix originally for infoboxes */
width: inherit !important;
}
/** ===TEMPLATES & OTHER=== **/
/* ==Hover class== ToDo: this should be removed, rewritten into a single utility class or moved into templatestyles and a template */
.hover:hover .hoverbox {
display: inline;
}
.hoverbox {
display: none;
}
.hover2:hover .hoverbox2 {
display: block;
}
.hoverbox2 {
display: none;
}
.hover3:hover .hoverbox {
display: inline;
position: absolute;
top: 0;
left: 0;
width: 1000px;
}
/* ==Flip Cards== */
.flip-card:focus .flip-card-inner, .flip-card:focus-within .flip-card-inner {
transform: rotateY(180deg);
}
.flip-card:hover #trophy-title {
background-color: var(--second-color)!important;
outline-color: var(--second-color)!important;
}
.flip-card:hover #trophy-image {
outline-color: var(--second-color)!important;
}
/* == Utility classes == */
.noscrollbar::-webkit-scrollbar { /*chrome, edge, safari*/
width:0;
}
.mw-parser-output .noscrollbar {
-ms-overflow-style: none; /*IE10+*/
scrollbar-width: none; /*firefox*/
}
.mw-ui-button.disabled {
background-color:#c8ccd1;
color:#ffffff;
border-color:#c8ccd1;
cursor:default
}
.mw-ui-button.disabled:hover,
.mw-ui-button.disabled:active {
background-color:#c8ccd1;
color:#ffffff;
box-shadow:none;
border-color:#c8ccd1
}
/* Hides the desktop version on mobile*/
@media only screen and (max-width: 999px) {
.vdesktop {
display: none;
}
}
/* Hides the mobile version on desktop*/
@media only screen and (min-width: 1000px) {
.vmobile {
display: none;
}
}
@media only screen and (min-width: 641px) {
.trophyfullscreen {
display:inline-block;
}
}
.image-cover {
object-fit:cover;
height:100%;
}
/* Speech Bubble */
.speech-bubble {
position: relative;
background: #f0f0f0;
border-radius: .4em;
}
.speech-bubble:after {
content: '';
position: absolute;
top: 0;
left: 12%;
width: 0;
height: 0;
border: 9px solid transparent;
border-bottom-color: #fffff0;
border-top: 0;
margin-left: -9px;
margin-top: -9px;
}
/* World Map */
@media only screen and (max-width: 640px) {
.worldmap {
width: 100%;
}
}
/* Wikitable Styles */
.wikitable th, .wikitable td {
border: 2px solid #fff !important;
}
.wikitable > * > tr > th {
background: var(--main-color);
color: #fff;
}
.wikitable tbody tr:nth-child(even) {
background: #f5f5f5;
}
.wikitable tbody tr:nth-child(odd) {
background: #e9edef;
}
@media only screen and (max-width: 640px) {
.wikitable, .mw-datatable {
max-width: 100%;
width: 100% !important;
overflow-x: scroll;
}
.wikitable:not(.mw-collapsed), .mw-datatable:not(.mw-collapsed) {
display:block;
}
}
/** ===WIKI EDITOR=== **/
/*Help section fully displayed*/
#wikiEditor-section-help .index, #wikiEditor-section-help .pages {
height: 100%;
}
/*Special characters to fit boxes*/
.wikiEditor-ui-toolbar .page-characters div span {
height: 30px;
}
/* User edit counts table*/
.uecTable2 {
width: 612px;
margin: auto;
}
/* ===Module:Chart fixes=== */
.piechart {
clip-path: circle(48% at 50% 50%);
}
@media only screen and (max-width: 640px) {
.chart {
overflow-y: scroll;
}
}
#mall-map-container .mall-expand-content {
display:none;
}
#mall-map-container div:not(.mall-nohover) div:hover {
width: auto !important;
height: auto !important;
min-width: 10em !important;
min-height: 10em !important;
max-width:10em !important;
max-height:50em !important;
overflow: auto;
position: absolute !important;
z-index: 10;
margin: -5px -20px;
/*transition: width 0.2s ease-in-out, height 0.2s ease-in-out;*/
}
#mall-map-container div:not(.mall-nohover) div:hover .mall-expand-content {
display:inline;
}
/* Prevents the automatic "add new cell to grid" blocks that VE generates in edit mode from showing up on the Mall Map page*/
.ve-ce-branchNode-blockSlug, .ve-ce-branchNode-newSlug {
display:none;
}
#mall-map-container > *:not(.mall-content) {
display:none;
}
.ve-active .page-Mall_map .ve-ce-focusableNode-highlight[title="Mall footer"] {
display: none;
}
.mall-expired > div {
background: repeating-linear-gradient(-45deg,#ff9a7a,#ff9a7a 8%,coral 8%,coral 16%) !important;
border: 1px solid darkred !important;
opacity: 50%;
}
/* scrollbars - trial */
.mw-parser-output ::-webkit-scrollbar {
width: .4em;
}
.mw-parser-output ::-webkit-scrollbar-track {
display:none;
}
.mw-parser-output ::-webkit-scrollbar-thumb {
background-color: lightgrey;
border-radius:1em;
}
.mw-parser-output * {
scrollbar-width:thin;
scrollbar-color:lightgray transparent;
}
/* == Gadget:Helppage CSS: placed here because the wikiActions portion needs to be here to be selectively enabled for Site Content Editors only.
The rest is here so its in one place. The gadget's js has also been moved to Common.js now. == */
.page-Help_Resources #wikiActions,
.page-Rules #wikiActions {
display:none;
}
#wikiNav:not(.expanded) > div { /* this is technically generally applied, but only used by Gadget:Helppage. It automatically hides the wiki dropdowns if .expanded is removed from the wikiNav*/
display: none;
}
.nav .right #wikiNav.current:not(.expanded) #wikiLink {
background: transparent !important;
-webkit-filter: brightness(0) invert(1);
filter: brightness(0) invert(1);
}
.nav .right #wikiNav.current #wikiLink:hover {
background: white !important;
}
#wikiNav:hover #wikiLink {
-webkit-filter: none !important;
filter: none !important;
}
/* Action=History page styles */
.action-history ul#pagehistory {
margin: 0 0.5rem;
}
.action-history ul#pagehistory li {
padding: 0.5rem 0.2rem;
list-style: none;
border-bottom: 1px solid #d9d6d3;
}
.action-history ul#pagehistory li.selected {
outline:none;
border-bottom: 1px solid #a2a9b1;
}
.action-history ul#pagehistory li.selected.before {
background:#e2e5e8;
}
.action-history ul#pagehistory li.selected.after {
background:#e9efef;
}
.action-history #pagehistory li:hover {
background:#e9efef;
}
/* class:mw-datatable */
.mw-datatable th {
background-color: #e2e5e8;
}
.mw-datatable tr:hover td {
background-color: #e9edef;
}
.mw-datatable {
border-collapse:collapse;
}
.mw-datatable th, .mw-datatable td {
padding: 0.2em 0.4em;
border: 1px solid #a2a9b1;
}
.ns-special .mw-datatable td, .ns-special .mw-datatable th {
border-top: none;
border-left: none;
border-right: none;
}
.ns-special .mw-datatable td {
background-color: transparent;
}
.ns-special .mw-datatable {
border: none;
}
This page was last modified on 21 August 2022, at 00:19. (2 months ago)