Anonymous
×
Create a new article
Write your page title here:
We currently have 667 articles on SpellForce Wiki - Rohens encyclopedia. Type your article name above or click on one of the titles below and start writing!



SpellForce Wiki - Rohens encyclopedia

MediaWiki:Common.css: Difference between revisions

Die Seite wurde neu angelegt: „→‎Das folgende CSS wird für alle Benutzeroberflächen geladen.: { →‎Cleanup *******************************************: .langlist, .bookshelf-container, .wm-site-info, HR { display: none!important; } body#www-wikipedia-org .search-container label { display: none!important; } #searchLanguage { display: none!important; } .search-container.language-search { display: none!important; } .divider { disp…“
 
No edit summary
 
(35 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
{


/* Cleanup
.infobox {
********************************************/
    background: #eee;
  .langlist, .bookshelf-container, .wm-site-info, HR
    border: 1px solid #aaa;
  {
    float: right;
     display: none!important;
    margin: 0 0 1em 1em;
  }
    padding: 1em;
    width: 400px;
}
.infobox-title {
    font-size: 2em;
    text-align: center;
}
.infobox-image {
    text-align: center;
}
.infobox th {
    text-align: right;
    vertical-align: top;
    width: 120px;
}
.infobox td {
    vertical-align: top;
}
div.thumbinner {
    border: 1px solid #c8ccd1;
    background-color: #f8f9fa;
    font-size: 94%;
}
 
 
/* CSS Modal for Mediawiki
*  
* @author: Keenan Payne
* current version crafted together by [[User:Christharp]].
* Added scroll bar for inside div and changed some elements for better viewing inside a Mediawiki.
*/
 
.modalDialog {
position: fixed;
font-family: Arial, Helvetica, sans-serif;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: rgba(0,0,0,0.8);
z-index: 99999;
opacity:0;
transition: opacity 400ms ease-in;
pointer-events: none;
}
 
.modalDialog:target {
opacity:1;
pointer-events: auto;
}
 
.modalDialog > div {
position: relative;
        width: 50%;
        height:auto;
        margin: 10% auto;
padding: 5px 20px 13px 20px;
border-radius: 10px;
background: #fff;
     background: linear-gradient(#fff, #999);
}


  body#www-wikipedia-org .search-container label
.modalDialog img {
  {
        width:100%;
    display: none!important;
        height:auto;
  }
}


  #searchLanguage
.close {
  {
background: #606061;
    display: none!important;
color: #fff;
  }
line-height: 25px;
position: absolute;
right: -12px;
text-align: center;
top: -10px;
width: 24px;
text-decoration: none;
font-weight: bold;
border-radius: 12px;
box-shadow: 1px 1px 3px #000;
}


  .search-container.language-search
.close:hover {  
  {
        background: #00d9ff;
    display: none!important;
}
  }


   .divider
.portable-infobox.pi-theme-item_box {
   {
   line-height: 1.15;
    display: none!important;
}
   }
.portable-infobox.pi-theme-item_box .pi-item-spacing {
   position: relative;
}
.portable-infobox.pi-theme-item_box .pi-item-spacing:after {
content: '';
display: block;
padding: 0;
border: none;
height: 1px;
background: linear-gradient(to right, rgba(254,204,177,0) 0%,rgba(248,165,121,0.31) 22%,rgba(241,116,50,0.41) 50%,rgba(234,85,7,0.41) 51%,rgba(241,110,41,0.31) 70%,rgba(251,149,94,0) 100%);
color: #333;
text-align: center;
margin: 1px auto 0px;
overflow: visible;
bottom: 0;
position: absolute;
width: 100%;
left: 0;
}
.portable-infobox.pi-theme-item_box .pi-data-label {
   min-width: 95px;
  overflow-wrap: normal;
  line-height: 1.2em;
  width: 95px;
}


#p-Forum-label {
  line-height: 25px;
}
/* ───────────────────────────────
  DARK THEME IMAGE / CAPTION FIX
  Removes white backgrounds, borders,
  and lines from image figures & captions.
  Makes captions italic.
  ─────────────────────────────── */


/* Central Images
/* Remove white background and borders from image figures */
********************************************/
figure[typeof="mw:File/Thumb"],
  body#www-wikipedia-org
figure[typeof="mw:File/Frame"] {
  {
     background: transparent !important;
     background: white url('http://i.imgur.com/7jR9o.jpg') no-repeat scroll top center;
    border: none !important;
     background-position: center -70px;
     box-shadow: none !important;
  }
}


  a:link
/* Remove borders or outlines from the image itself */
  {
figure[typeof="mw:File/Thumb"] img,
     color: black!important;
figure[typeof="mw:File/Frame"] img {
  }
     border: none !important;
    box-shadow: none !important;
    outline: none !important;
}


  .central-featured
/* Remove background + border line from captions and make text italic */
  {
.mw-content-ltr figure[typeof="mw:File/Thumb"] > figcaption,
  }
.mw-content-ltr figure[typeof="mw:File/Frame"] > figcaption,
.mw-content-rtl figure[typeof="mw:File/Thumb"] > figcaption,
.mw-content-rtl figure[typeof="mw:File/Frame"] > figcaption {
    background: transparent !important;
    border: none !important;        /* removes the top border line */
    color: #ddd !important;        /* light text for dark background */
    padding: 0.4em 0 0 !important;  /* keeps slight spacing above text */
    font-style: italic !important;  /* makes captions italic */
}


/* Input
********************************************/
  .search-container
  {
    box-shadow: 2px 5px 20px #444;
    -webkit-box-shadow: 2px 5px 20px #444;
    padding: 0px!important;
    margin-bottom: 45px!important;
    background-color: rgba(255,255,255,0.1)!important;
  }


   fieldset
/* Reduces the size of images on mobile devices */
   {
@media screen and (max-width: 745px) {
     background-color: transparent!important;
   figure[typeof="mw:File/Thumb"],
    padding: 0px!important;
   figure[typeof="mw:File/Frame"] {
     margin: 0px!important;
     display: block;
     width: 100%;
   }
   }
 
   figure[typeof="mw:File/Thumb"] img,
   input#searchInput
   figure[typeof="mw:File/Frame"] img {
   {
     width: 95%;
    padding: 5px!important;
    margin: 50px 0px!important;
     width: 200px!important;
    color: #333!important;
    font-family: Calibri;
    font-size: 16px!important;
   }
   }
 
  .mw-content-ltr figure[typeof="mw:File/Thumb"] > figcaption,
   input.formBtn
  .mw-content-ltr figure[typeof="mw:File/Frame"] > figcaption,
   {
   .mw-content-rtl figure[typeof="mw:File/Thumb"] > figcaption,
     padding: 5px!important;
   .mw-content-rtl figure[typeof="mw:File/Frame"] > figcaption {
     margin: 50px 0px!important;
     display: block;
    width: 94%;
     margin: 3px auto!important;
    text-align: center;
   }
   }
 
  iframe[src*="youtube"] {
/* Footer
     max-width: 100%;
********************************************/
  .otherprojects
  {
     background-color: rgba(255,255,255,0.6)!important;
    padding: 10px 0px;
    border-top: 1px dashed grey!important;
   }
   }
}
}

Latest revision as of 23:24, 9 November 2025

/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */

.infobox {
    background: #eee;
    border: 1px solid #aaa;
    float: right;
    margin: 0 0 1em 1em;
    padding: 1em;
    width: 400px;
}
.infobox-title {
    font-size: 2em;
    text-align: center;
}
.infobox-image {
    text-align: center;
}
.infobox th {
    text-align: right;
    vertical-align: top;
    width: 120px;
}
.infobox td {
    vertical-align: top;
}
div.thumbinner {
    border: 1px solid #c8ccd1;
    background-color: #f8f9fa;
    font-size: 94%;
}


/* CSS Modal for Mediawiki
 * 
 * @author: Keenan Payne
 * current version crafted together by [[User:Christharp]].
 * Added scroll bar for inside div and changed some elements for better viewing inside a Mediawiki.
 */

.modalDialog {
	position: fixed;
	font-family: Arial, Helvetica, sans-serif;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0,0,0,0.8);
	z-index: 99999;
	opacity:0;
	transition: opacity 400ms ease-in;
	pointer-events: none;
}

 .modalDialog:target {
	opacity:1;
	pointer-events: auto;
}

.modalDialog > div {
	position: relative;
        width: 50%;
        height:auto; 
        margin: 10% auto;
	padding: 5px 20px 13px 20px;
	border-radius: 10px;
	background: #fff;
    background: linear-gradient(#fff, #999);
}

.modalDialog img {
        width:100%;
        height:auto;
}

.close {
	background: #606061;
	color: #fff;
	line-height: 25px;
	position: absolute;
	right: -12px;
	text-align: center;
	top: -10px;
	width: 24px;
	text-decoration: none;
	font-weight: bold;
	border-radius: 12px;
	box-shadow: 1px 1px 3px #000;
}

.close:hover { 
        background: #00d9ff;
}

.portable-infobox.pi-theme-item_box {
  line-height: 1.15;
}
.portable-infobox.pi-theme-item_box .pi-item-spacing {
  position: relative;
}
.portable-infobox.pi-theme-item_box .pi-item-spacing:after {
	content: '';
	display: block;
	padding: 0;
	border: none;
	height: 1px;
	background: linear-gradient(to right, rgba(254,204,177,0) 0%,rgba(248,165,121,0.31) 22%,rgba(241,116,50,0.41) 50%,rgba(234,85,7,0.41) 51%,rgba(241,110,41,0.31) 70%,rgba(251,149,94,0) 100%);
	color: #333;
	text-align: center;
	margin: 1px auto 0px;
	overflow: visible;
	bottom: 0;
	position: absolute;
	width: 100%;
	left: 0;
}
.portable-infobox.pi-theme-item_box .pi-data-label {
  min-width: 95px;
  overflow-wrap: normal;
  line-height: 1.2em;
  width: 95px;
}

#p-Forum-label {
  line-height: 25px;
}
/* ───────────────────────────────
   DARK THEME IMAGE / CAPTION FIX
   Removes white backgrounds, borders,
   and lines from image figures & captions.
   Makes captions italic.
   ─────────────────────────────── */

/* Remove white background and borders from image figures */
figure[typeof="mw:File/Thumb"],
figure[typeof="mw:File/Frame"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Remove borders or outlines from the image itself */
figure[typeof="mw:File/Thumb"] img,
figure[typeof="mw:File/Frame"] img {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Remove background + border line from captions and make text italic */
.mw-content-ltr figure[typeof="mw:File/Thumb"] > figcaption,
.mw-content-ltr figure[typeof="mw:File/Frame"] > figcaption,
.mw-content-rtl figure[typeof="mw:File/Thumb"] > figcaption,
.mw-content-rtl figure[typeof="mw:File/Frame"] > figcaption {
    background: transparent !important;
    border: none !important;        /* removes the top border line */
    color: #ddd !important;         /* light text for dark background */
    padding: 0.4em 0 0 !important;  /* keeps slight spacing above text */
    font-style: italic !important;  /* makes captions italic */
}


/* Reduces the size of images on mobile devices */
@media screen and (max-width: 745px) {
  figure[typeof="mw:File/Thumb"],
  figure[typeof="mw:File/Frame"] {
    display: block;
    width: 100%;
  }
  figure[typeof="mw:File/Thumb"] img,
  figure[typeof="mw:File/Frame"] img {
    width: 95%;
  }
  .mw-content-ltr figure[typeof="mw:File/Thumb"] > figcaption,
  .mw-content-ltr figure[typeof="mw:File/Frame"] > figcaption,
  .mw-content-rtl figure[typeof="mw:File/Thumb"] > figcaption,
  .mw-content-rtl figure[typeof="mw:File/Frame"] > figcaption {
    display: block;
    width: 94%;
    margin: 3px auto!important;
    text-align: center;
  }
  iframe[src*="youtube"] {
    max-width: 100%;
  }
}