Difference between revisions of "MediaWiki:Common.css"
m (Fix CSS code for tabs) |
|||
(14 intermediate revisions by 2 users not shown) | |||
Line 10: | Line 10: | ||
--color-bg: #0e2126; | --color-bg: #0e2126; | ||
--color-bg-darker: #0c181b; | --color-bg-darker: #0c181b; | ||
− | --color-theme: # | + | --color-theme: #17373ff7; |
--color-link: #4a7e8b; | --color-link: #4a7e8b; | ||
+ | --img-bg-top:url(https://wiki.beastsofbermuda.com/images/thumb/c/c7/Loading_screen_1_LAND_AND_SKY_sky_edited%282%29.png/2400px-Loading_screen_1_LAND_AND_SKY_sky_edited%282%29.png); | ||
+ | --img-bg-bottom:url(https://wiki.beastsofbermuda.com/images/thumb/4/4e/Loading_screen_2_WATER_DEEP_water_edited%281%29.png/2400px-Loading_screen_2_WATER_DEEP_water_edited%281%29.png); | ||
} | } | ||
Line 22: | Line 24: | ||
transition: all .16s ease; | transition: all .16s ease; | ||
} | } | ||
+ | |||
html, | html, | ||
body { | body { | ||
Line 29: | Line 32: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
+ | |||
+ | body:before, body:after { | ||
+ | content: ''; | ||
+ | position: absolute; | ||
+ | height: 100%; | ||
+ | width: 100%; | ||
+ | opacity: .75; | ||
+ | z-index: -1; | ||
+ | } | ||
+ | |||
+ | body:before{background:var(--img-bg-top) bottom / cover no-repeat;} | ||
+ | body:after{background:var(--img-bg-bottom) top / cover no-repeat;} | ||
img { | img { | ||
Line 35: | Line 50: | ||
object-fit: cover; | object-fit: cover; | ||
} | } | ||
+ | |||
a, | a, | ||
u, | u, | ||
Line 41: | Line 57: | ||
text-underline-offset: 3px; | text-underline-offset: 3px; | ||
} | } | ||
+ | |||
a { | a { | ||
font-weight: bold; | font-weight: bold; | ||
Line 65: | Line 82: | ||
body, #mw-head{ | body, #mw-head{ | ||
background: var(--color-bg)!important; | background: var(--color-bg)!important; | ||
+ | } | ||
+ | |||
+ | /*** TOP ***/ | ||
+ | |||
+ | #mw-head { | ||
+ | padding-inline: 20px 3%; | ||
} | } | ||
Line 85: | Line 108: | ||
background: transparent !important; | background: transparent !important; | ||
} | } | ||
+ | |||
+ | /*** MENU LEFT ***/ | ||
+ | |||
+ | div#mw-panel div.portal div.body { | ||
+ | margin: 0 !important; | ||
+ | } | ||
+ | |||
+ | #mw-panel { | ||
+ | padding: 0 !important; | ||
+ | } | ||
+ | |||
+ | #mw-panel ul { | ||
+ | gap: 5px; | ||
+ | display: grid; | ||
+ | } | ||
+ | |||
+ | #mw-panel li { | ||
+ | background: var(--color-bg-darker); | ||
+ | border-radius: 20px; | ||
+ | padding: 10px !important; | ||
+ | } | ||
+ | |||
+ | #mw-navigation div#mw-panel div.portal { | ||
+ | border: none!important; | ||
+ | } | ||
+ | |||
+ | div#mw-panel div.portal h3 { | ||
+ | color: #fff!important; | ||
+ | border-bottom: 2px solid!important; | ||
+ | margin-bottom: 16px!important; | ||
+ | } | ||
+ | |||
+ | @media screen { | ||
+ | #mw-panel .portal .body { | ||
+ | background: transparent; | ||
+ | } | ||
+ | } | ||
+ | |||
+ | /*** PAGES ***/ | ||
.mw-body { | .mw-body { | ||
Line 91: | Line 153: | ||
border-radius: 20px; | border-radius: 20px; | ||
border: none!important; | border: none!important; | ||
+ | } | ||
+ | |||
+ | .navigation-tabbar { | ||
+ | background-color: #0E2126; | ||
+ | color: #A2D1D2; | ||
+ | margin: 0.5em 0 0 0; | ||
+ | border: 1px solid #0C181B; | ||
+ | } | ||
+ | |||
+ | .tab { | ||
+ | padding:0 10px; | ||
+ | display: inline-block; | ||
+ | } | ||
+ | |||
+ | .tab-active { | ||
+ | background-color: #A2D1D2; | ||
+ | color: #FFF; | ||
} | } |
Latest revision as of 23:46, 16 November 2024
/* CSS placed here will be applied to all skins */
/*** GENERAL APPEARANCE ***/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
:root {
--font: montserrat;
--color-bg: #0e2126;
--color-bg-darker: #0c181b;
--color-theme: #17373ff7;
--color-link: #4a7e8b;
--img-bg-top:url(https://wiki.beastsofbermuda.com/images/thumb/c/c7/Loading_screen_1_LAND_AND_SKY_sky_edited%282%29.png/2400px-Loading_screen_1_LAND_AND_SKY_sky_edited%282%29.png);
--img-bg-bottom:url(https://wiki.beastsofbermuda.com/images/thumb/4/4e/Loading_screen_2_WATER_DEEP_water_edited%281%29.png/2400px-Loading_screen_2_WATER_DEEP_water_edited%281%29.png);
}
*,
*:before,
*:after {
box-sizing: border-box;
word-break: break-word;
text-wrap: pretty;
transition: all .16s ease;
}
html,
body {
margin: 0;
font: 16px/1.6 var(--font)!important;
text-align: justify;
box-sizing: border-box;
}
body:before, body:after {
content: '';
position: absolute;
height: 100%;
width: 100%;
opacity: .75;
z-index: -1;
}
body:before{background:var(--img-bg-top) bottom / cover no-repeat;}
body:after{background:var(--img-bg-bottom) top / cover no-repeat;}
img {
max-height: 100%;
max-width: 100%;
object-fit: cover;
}
a,
u,
strike {
text-decoration-thickness: 2px;
text-underline-offset: 3px;
}
a {
font-weight: bold;
color: var(--color-link)!important;
}
i,
em {
letter-spacing: .5px;
}
h1, h2, h3, h4, h5, h6 {
font-family: var(--font) !important;
font-weight: 600;
}
/*** CSS ***/
@media screen {
h1, h2, h3, h4, h5, h6 {
border-bottom: 3px solid;
}
}
body, #mw-head{
background: var(--color-bg)!important;
}
/*** TOP ***/
#mw-head {
padding-inline: 20px 3%;
}
#mw-head li {
background: var(--color-bg-darker)!important;
}
#p-personal li {
padding: 5px 10px;
border-radius: 10px;
}
#left-navigation div.vectorTabs li.selected, #right-navigation div.vectorTabs li.selected {
background-image: linear-gradient(var(--color-theme) 0,var(--color-bg-darker) 80%) !important;
}
#left-navigation div.vectorTabs, #right-navigation div.vectorTabs {
border-radius: 20px 20px 0 0;
overflow: hidden;
background: transparent !important;
}
/*** MENU LEFT ***/
div#mw-panel div.portal div.body {
margin: 0 !important;
}
#mw-panel {
padding: 0 !important;
}
#mw-panel ul {
gap: 5px;
display: grid;
}
#mw-panel li {
background: var(--color-bg-darker);
border-radius: 20px;
padding: 10px !important;
}
#mw-navigation div#mw-panel div.portal {
border: none!important;
}
div#mw-panel div.portal h3 {
color: #fff!important;
border-bottom: 2px solid!important;
margin-bottom: 16px!important;
}
@media screen {
#mw-panel .portal .body {
background: transparent;
}
}
/*** PAGES ***/
.mw-body {
background: var(--color-theme)!important;
margin-right: 2%;
border-radius: 20px;
border: none!important;
}
.navigation-tabbar {
background-color: #0E2126;
color: #A2D1D2;
margin: 0.5em 0 0 0;
border: 1px solid #0C181B;
}
.tab {
padding:0 10px;
display: inline-block;
}
.tab-active {
background-color: #A2D1D2;
color: #FFF;
}