Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
 
(60 intermediate revisions by 2 users not shown)
Line 5: Line 5:
@import url('https://fonts.googleapis.com/css2?family=Montserrat');
@import url('https://fonts.googleapis.com/css2?family=Montserrat');


.mw-body h1,
/*TESTING*/
.mw-body-content h1,
.image-grid-container {
.mw-body-content h2,
    display: grid;
.mw-body-content h3,
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
.mw-body-content h4,
    gap: 10px;
.mw-body-content h5,
    padding: 20px;
.mw-body-content h6 {
     width: 100%;
     font-family: 'Montserrat', sans-serif;
}
}


body {
.image-wrapper {
font-family: 'Open Sans', sans-serif;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    /*padding-bottom: 100%;*/
    cursor: pointer;
}
}


.navbox-title
.image-wrapper:hover img {
{
    transform: scale(1.05);  
width: 100%;
min-width:100%;
}
}


body, body #mw-page-base {
.image-wrapper img {
background: url(https://wiki.massivecraft.com/images/e/ee/Bg3.png);
    width: 100%;
background-repeat: no-repeat;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}
}


#simpleSearch input {
.image-text {
     background-color: #ffffff;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
     background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 0;  
}
}
/*TESTING*/


.scroll-table table {
max-width: 100%;
overflow: hidden;
display: block;
overflow-x: auto;
white-space: nowrap;
}


.eighty-width img {
/* BEGIN GALLERY TRANSFORMATIONS */
     width: 80%;
/* Specific to packed-overlay galleries: Initial collapsed state for the text */
     height: auto;
ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper div.gallerytext {
     padding: 0;
    padding-right: var(--border-radius-base);
    padding-left: var(--border-radius-base);
    font-size: var(--font-size-x-small);
     color: var(--color-subtle);
    letter-spacing: 0.025em;
    max-height: 50px;  /* Only collapse in packed-overlay type */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;  /* Prevent text from wrapping */
    transition: max-height 0.3s ease-in-out, white-space 0.3s ease-in-out;
}
}


.fifty-width-left img {
/* Make sure gallerytextwrapper remains at the correct position */
     width: 50%;
ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper div.gallerytextwrapper {
     position: absolute;
    background: #fff;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    bottom: 0;
    left: 0;
     height: auto;
     height: auto;
     float: left;
     max-height: 40%;
    overflow: hidden;
    font-weight: bold;
    margin: 2px;
}
}


.fifty-width-right img {
/* Expand text on hover, but only for packed-overlay galleries */
     width: 50%;
ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper:hover div.gallerytext {
     height: auto;
     max-height: none; /* Remove height restriction */
     float: right;
    white-space: normal;  /* Allow text to wrap */
     overflow: visible;
     text-overflow: clip;
}
}


.twenty-five-width-left img {
/* Ensure other gallery types (e.g., mw-gallery-packed-hover) display text normally */
     width: 25%;
li.gallerybox div.gallerytextwrapper div.gallerytext {
     height: auto;
     max-height: none;  /* No collapsing for other gallery types */
     float: left;
    white-space: normal; /* Allow text to wrap normally */
     overflow: visible;
     text-overflow: clip;
}
}
/* END GALLERY TRANSFORMATIONS */


.twenty-five-width-right img {
.navbox-title
    width: 25%;
{
    height: auto;
width: 100%;
    float: right;
min-width:100%;
}
}


.topbanner img {
body, body #mw-page-base {
    max-width: 100%;
background: url(https://wiki.massivecraft.com/images/e/ee/Bg3.png);
    height: auto;
background-repeat: no-repeat;
}
}


.topbanner-var img {
#simpleSearch input {
     max-width: 100%;
     background-color: #ffffff;
    height: auto;
    border-radius: 25px;
    padding-bottom: 20px;
}
 
.proficiency {
flex-flow: row wrap;
}
 
.proficiency h2 {
border: none;
}
}


.proficiency ul {
.mainpage_box {
    columns: 3;
background-color: #14181f;
    width: 600px;
margin: 0;
min-width: 210px;
box-shadow: 0 2px 2px rgba( 102, 121, 153, 0.2 );
display: inline-block;
}
}


.proficiency li {
.mainpage_box p {
    margin-bottom: 10px;
margin: 0;
    height: 50px;
    display: flex;
    align-items: center;
    border: 2px solid;
}
}


Line 126: Line 146:
padding: 0 !important;
padding: 0 !important;
color: #002bb8 !important;
color: #002bb8 !important;
}
table.testtable {
    background-image:url('https://wiki.massivecraft.com/images/2/2c/Altalook.png');
}
}



Latest revision as of 07:47, 17 September 2024

/* CSS placed here will be applied to all skins */

/* Weights can be grabbed if necessary */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans');
@import url('https://fonts.googleapis.com/css2?family=Montserrat');

/*TESTING*/
.image-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: 20px;
    width: 100%;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    /*padding-bottom: 100%;*/
    cursor: pointer;
}

.image-wrapper:hover img {
    transform: scale(1.05); 
}

.image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover; 
    transition: transform 0.3s ease;
}

.image-text {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; 
    text-align: center; 
    color: white;
    font-size: 24px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 0; 
}
/*TESTING*/


/* BEGIN GALLERY TRANSFORMATIONS */
/* Specific to packed-overlay galleries: Initial collapsed state for the text */
ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper div.gallerytext {
    padding: 0;
    padding-right: var(--border-radius-base);
    padding-left: var(--border-radius-base);
    font-size: var(--font-size-x-small);
    color: var(--color-subtle);
    letter-spacing: 0.025em;
    max-height: 50px;  /* Only collapse in packed-overlay type */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;  /* Prevent text from wrapping */
    transition: max-height 0.3s ease-in-out, white-space 0.3s ease-in-out;
}

/* Make sure gallerytextwrapper remains at the correct position */
ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper div.gallerytextwrapper {
    position: absolute;
    background: #fff;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 10px;
    bottom: 0;
    left: 0;
    height: auto;
    max-height: 40%;
    overflow: hidden;
    font-weight: bold;
    margin: 2px;
}

/* Expand text on hover, but only for packed-overlay galleries */
ul.mw-gallery-packed-overlay li.gallerybox div.gallerytextwrapper:hover div.gallerytext {
    max-height: none;  /* Remove height restriction */
    white-space: normal;  /* Allow text to wrap */
    overflow: visible;
    text-overflow: clip;
}

/* Ensure other gallery types (e.g., mw-gallery-packed-hover) display text normally */
li.gallerybox div.gallerytextwrapper div.gallerytext {
    max-height: none;  /* No collapsing for other gallery types */
    white-space: normal;  /* Allow text to wrap normally */
    overflow: visible;
    text-overflow: clip;
}
/* END GALLERY TRANSFORMATIONS */

.navbox-title
{
	width: 100%;
	min-width:100%;
}

body, body #mw-page-base {
	background: url(https://wiki.massivecraft.com/images/e/ee/Bg3.png);
	background-repeat: no-repeat;
}

#simpleSearch input {
    background-color: #ffffff;
}

.mainpage_box {
	background-color: #14181f;
	margin: 0;
	min-width: 210px;
	box-shadow: 0 2px 2px rgba( 102, 121, 153, 0.2 );
	display: inline-block;
}

.mainpage_box p {
	margin: 0;
}

.mw-collapsible span.mw-collapsible-toggle {
    float:left;
    margin-left:0;
    margin-right:1em;
    vertical-align:bottom;
}

.button-contain {
	font-size:160%;
	padding-left: 10px;
	padding-right: 10px;
}

.infobox {
	border: 1px solid #C9D8CC;
	border-spacing: 0;
}
	
#bodyContent .plainlinks a {
	background: none !important;
	padding: 0 !important;
	color: #002bb8 !important;
}

/* {{pp|small=yes}} */
.div-col {
	margin-top: 0.3em;
	column-width: 40em;
	column-rule: 1px solid #aaa;
}

/* Reset top margin for lists in div col */
.div-col dl,
.div-col ol,
.div-col ul {
	margin-top: 0;
}

/* Avoid elements breaking between columns
   See also Template:No col break */
.div-col li,
.div-col dd {
	page-break-inside: avoid; /* Removed from CSS in favor of break-inside c. 2020 */
	break-inside: avoid-column;
}

/* {{pp|small=yes}} */
.div-col-rel {
	margin-top: 0.3em;
	column-width: 40em;
	column-rule: 1px solid #aaa;
}

/* Reset top margin for lists in div col */
.div-col-rel dl,
.div-col-rel ol,
.div-col-rel ul {
	margin-top: 0;
}

/* Avoid elements breaking between columns
   See also Template:No col break */
.div-col-rel li,
.div-col-rel dd {
	page-break-inside: avoid; /* Removed from CSS in favor of break-inside c. 2020 */
	break-inside: avoid-column;
}