MediaWiki:Common.css: Difference between revisions

From Morloch Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(76 intermediate revisions by 2 users not shown)
Line 1: Line 1:
/************************/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');
/*** Map Marking Code ***/
/************************/
.mapmark {position: relative; width: 500px; height: 350px;}


.wrap {
/***************************/
  white-space: pre-wrap;
/* Define Infobox Style  */
}
/***************************/


/************************/
.infobox {
/*** MAP TOOLTIPS  ******/
     border: 1px solid #aaaaaa;
/************************/
     background-color: #f9f9f9;
     color: black;
.tt1 {
     margin-bottom: 0.5em;
     position: relative;
     margin-left: 1em;
     color: #3a705e;
     padding: 0.2em;
}
     float: right;
     clear: right;
/* static part of the tooltip style */
.tt2 {
     font-size: 85%;
     background: -moz-linear-gradient(left, rgba(45,44,69,1) 0%, rgba(79,113,179,1) 50%, rgba(45,44,69,1) 100%);
    background: -webkit-gradient(left top, right top, color-stop(0%, rgba(45,44,69,1)), color-stop(50%, rgba(79,113,179,1)), color-stop(100%, rgba(45,44,69,1)));
    background: -webkit-linear-gradient(left, rgba(45,44,69,1) 0%, rgba(79,113,179,1) 50%, rgba(45,44,69,1) 100%);
    background: linear-gradient(to right, rgba(45,44,69,1) 0%, rgba(79,113,179,1) 50%, rgba(45,44,69,1) 100%);
}
.tt1 .tt2 {
    position: absolute;
    display: none;
    width: 500px;
     margin-left: 0px;
     padding-left: 0px;
    padding-right: 0px;
    border: 3px solid #000000;
    box-shadow: 3px 3px 6px #000000;
}
.tt2-l {
    top: 0;
     left: 70px;
}
.tt2-fix {
    top: 0;
    right: 70px;
}
.tt2-b {
    bottom: -65px;
     left: 70px;
}
.tt2-b-fix {
    bottom: -65px;
    right: 70px;
}
.tt1:hover .tt2 {
    display: block;
    z-index: 1000;
}
}


************************/
/* Modernize MediaWiki */
/*** ITEM TOOL TIPS  ***/
/***********************/


.item1 {
:root {
     position: relative;
     --primary-color: #3b82f6;
     color: #576da8;
     --text-color: #1e293b;
    --bg-color: #f8fafc;
    --border-color: #e2e8f0;
    --content-bg: #ffffff;
    --header-bg: #f1f5f9;
}
}
 
/* static part of the tooltip style */
body {
.item2 {
     font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
     font-size: 100%;
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}
}
 
.item1 .item2 {
#content, .mw-body {
     position: absolute;
     font-family: 'Inter', sans-serif !important;
     display: none;
     border-radius: 8px !important;
     width: 250px;
     border: 1px solid var(--border-color) !important;
     margin-left: 0px;
     box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
     padding-left: 0px;
     background-color: var(--content-bg) !important;
     padding-right: 0px;
     margin-top: 1em !important;
     border: 3px solid #000000;
     padding: 1.5em !important;
    box-shadow: 3px 3px 6px #000000;
}
}
 
.item2-l {
.portlet, .pBody {
     top: 0;
     border-radius: 6px !important;
    left: 70px;
}
}
 
.item2-fix {
.pBody {
     top: 0;
     background-color: var(--content-bg) !important;
     right: 70px;
     border: 1px solid var(--border-color) !important;
}
}
 
.item2-b {
.wikitable {
     bottom: -65px;
    border-collapse: collapse !important;
     left: 70px;
    border-radius: 8px !important;
    overflow: hidden !important;
     border: 1px solid var(--border-color) !important;
    width: 100% !important;
     margin: 1em 0 !important;
}
}
 
.item2-b-fix {
.wikitable th {
     bottom: -65px;
    background-color: var(--primary-color) !important;
     right: 70px;
    color: #ffffff !important;
     padding: 12px 8px !important;
     text-align: left !important;
}
}
 
.item1:hover .item2 {
.wikitable td {
     display: block;
     padding: 10px 8px !important;
     z-index: 1000;
     border: 1px solid var(--border-color) !important;
}
}


************************/
.wikitable tr:nth-child(even) {
/** POWER TOOL TIPS  ***/
    background-color: #f1f5f9 !important;
/***********************/
}


.pow1 {
a {
    position: relative;
     color: var(--primary-color) !important;
     color: #576da8;
}
/* static part of the tooltip style */
.pow2 {
    font-size: 100%;
    background: -moz-linear-gradient(left, rgba(45,44,69,1) 0%, rgba(79,113,179,1) 50%, rgba(45,44,69,1) 100%);
    background: -webkit-gradient(left top, right top, color-stop(0%, rgba(45,44,69,1)), color-stop(50%, rgba(79,113,179,1)), color-stop(100%, rgba(45,44,69,1)));
    background: -webkit-linear-gradient(left, rgba(45,44,69,1) 0%, rgba(79,113,179,1) 50%, rgba(45,44,69,1) 100%);
    background: linear-gradient(to right, rgba(45,44,69,1) 0%, rgba(79,113,179,1) 50%, rgba(45,44,69,1) 100%);
}
.pow1 .pow2 {
    position: absolute;
    display: none;
    width: 175px;
    margin-left: 0px;
    padding-left: 0px;
    padding-right: 0px;
    border: 3px solid #000000;
    box-shadow: 3px 3px 6px #000000;
}
.pow2-l {
    top: 0;
    left: 70px;
}
.pow2-fix {
    top: 0;
    right: 70px;
}
.pow2-b {
    bottom: -65px;
    left: 70px;
}
.pow2-b-fix {
    bottom: -65px;
    right: 70px;
}
.pow1:hover .pow2 {
    display: block;
    z-index: 1000;
}
}

Latest revision as of 16:13, 1 March 2026

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/***************************/
/* Define Infobox Style  */
/***************************/

.infobox {
    border: 1px solid #aaaaaa;
    background-color: #f9f9f9;
    color: black;
    margin-bottom: 0.5em;
    margin-left: 1em;
    padding: 0.2em;
    float: right;
    clear: right;
}

/* Modernize MediaWiki */

:root {
    --primary-color: #3b82f6;
    --text-color: #1e293b;
    --bg-color: #f8fafc;
    --border-color: #e2e8f0;
    --content-bg: #ffffff;
    --header-bg: #f1f5f9;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif !important;
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
}

#content, .mw-body {
    font-family: 'Inter', sans-serif !important;
    border-radius: 8px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    background-color: var(--content-bg) !important;
    margin-top: 1em !important;
    padding: 1.5em !important;
}

.portlet, .pBody {
    border-radius: 6px !important;
}

.pBody {
    background-color: var(--content-bg) !important;
    border: 1px solid var(--border-color) !important;
}

.wikitable {
    border-collapse: collapse !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    border: 1px solid var(--border-color) !important;
    width: 100% !important;
    margin: 1em 0 !important;
}

.wikitable th {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    padding: 12px 8px !important;
    text-align: left !important;
}

.wikitable td {
    padding: 10px 8px !important;
    border: 1px solid var(--border-color) !important;
}

.wikitable tr:nth-child(even) {
    background-color: #f1f5f9 !important;
}

a {
    color: var(--primary-color) !important;
}