MediaWiki:Common.css: Difference between revisions

From UKCA
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
/* CSS placed here will be applied to all skins */

/** Collapsible tables *********************************************************
*
* Description: Allows tables to be collapsed, showing only the header. See
* http://www.mediawiki.org/wiki/Manual:Collapsible_tables.
* Maintainers: [[en:User:R. Koot]]
*/
table.collapsed tr.collapsible {
display: none;
}
.collapseButton { /* 'show'/'hide' buttons created dynamically by the */
float: right; /* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
font-weight: normal; /* are styled here so they can be customised. */
text-align: right;
width: auto;
}
* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
max-width: 100%;
position: relative;
margin: auto;
}

.slideshow-container h2 {
border: None;
color: #f2f2f2;
}

.slideshow-container a {
color: #f2f2f2;
}

/* Hide the images by default */
.mySlides {
display: none;
}

.mySlides:first-of-type {
display: block;
}

.mySlides img {
width: 100%;
height: 20vw;
object-fit:cover;
}

/* Text arrow */

i {
border: solid white;
border-width: 0 3px 3px 0;
display: inline-block;
padding: 2px;
}

.point-right {
transform: rotate(-45deg);
-webkit-transform: rotate(-45deg);
}

/* Next & previous buttons */
.prev, .next {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
margin-top: -25px;
padding: 16px;
color: rgba(240,240,240,0.4) !important;
font-weight: bold;
font-size: 18px;
transition: 0.6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
}

.prev a, .next a {
color: rgba(240,240,240,0.4) !important;
}

/* Position the "next button" to the right */
.next {
right: 0;
border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
background-color: rgba(240,240,240,0.2);
}

/* Caption text */

.slideshow-container .text {
color: #f2f2f2;
font-size: 15px;
padding: 0px 0px 0px 20%;
position: absolute;
bottom: 30%;
width: 80%;
text-align: left;
}

/* Number text (1/3 etc) */
.numbertext {
color: #f2f2f2;
font-size: 12px;
padding: 8px 12px;
position: absolute;
top: 0;
}

/* The dots/bullets/indicators */
.dot {
cursor: pointer;
position: relative;
height: 8px;
width: 8px;
margin: 0px 3px 3px 0px;
background: rgba(240,240,240,0.4);
border-radius: 50%;
display: inline-block;
transition: background-color 0.6s ease;
}

.dots {
position: absolute;
left: 50%;
margin-left: -15px;
margin-top: -25px;
}

.active, .dot:hover {
background: rgba(240,240,240,0.7);
}

@-webkit-keyframes fade {
from {opacity: .4}
to {opacity: 1}
}

@keyframes fade {
from {opacity: .4}
to {opacity: 1}
}

/* Media */

@media only screen and (max-width: 1200px) {
.slideshow-container .text {
bottom: 20%;
}
}

@media only screen and (max-width: 1000px) {
.slideshow-container .text {
bottom: 10%;
}
}


@media only screen and (max-width: 800px) {
.slideshow-container .text, .slideshow-container .next, .slideshow-container .prev, .slideshow-container .dots{
display: none;
}
}

Latest revision as of 14:04, 3 September 2019

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

/** Collapsible tables *********************************************************
 *
 *  Description: Allows tables to be collapsed, showing only the header. See
 *                         http://www.mediawiki.org/wiki/Manual:Collapsible_tables.
 *  Maintainers: [[en:User:R. Koot]]
 */
 
table.collapsed tr.collapsible {
        display: none;
}
 
.collapseButton {               /* 'show'/'hide' buttons created dynamically by the             */
        float: right;           /* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
        font-weight: normal;    /* are styled here so they can be customised.             */
        text-align: right;
        width: auto;
}
* {box-sizing:border-box}

/* Slideshow container */
.slideshow-container {
  max-width: 100%;
  position: relative;
  margin: auto;
}

.slideshow-container h2 {
   border: None;
   color: #f2f2f2;
}

.slideshow-container a {
   color: #f2f2f2;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

.mySlides:first-of-type {
   display: block;
}

.mySlides img {
   width: 100%;
   height: 20vw;
   object-fit:cover;
}

/* Text arrow */

i {
  border: solid white;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 2px;
}

.point-right {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -25px;
  padding: 16px;
  color: rgba(240,240,240,0.4) !important;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.prev a, .next a {
  color: rgba(240,240,240,0.4) !important;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(240,240,240,0.2);
}

/* Caption text */

.slideshow-container .text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 0px 0px 0px 20%;
  position: absolute;
  bottom: 30%;
  width: 80%;
  text-align: left;
}

/* Number text (1/3 etc) */
.numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  position: relative;
  height: 8px;
  width: 8px;
  margin: 0px 3px 3px 0px;
  background: rgba(240,240,240,0.4);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.dots {
  position: absolute;
  left: 50%;
  margin-left: -15px;
  margin-top: -25px;
}

.active, .dot:hover {
  background: rgba(240,240,240,0.7);
}

@-webkit-keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
}

/* Media */

@media only screen and (max-width: 1200px) {
  .slideshow-container .text {
   bottom: 20%;
  }
}

@media only screen and (max-width: 1000px) {
  .slideshow-container .text {
   bottom: 10%;
  }
}


@media only screen and (max-width: 800px) {
  .slideshow-container .text, .slideshow-container .next, .slideshow-container .prev, .slideshow-container .dots{
    display: none;
  }
}