m
m
Line 8: Line 8:
  
  
/* Code for tabs */
+
/* Code for slideshow template */
a {
+
#slideshow {
color: #21D4FD;  
+
  text-align: center;
transition: all 0.3s;
+
  overflow: hidden;
 +
  height: 510px;
 +
  width: 728px;
 +
  margin: 0 auto;
 
}
 
}
a:hover {
+
 
color: #B721FF;
+
.slide-wrapper {
 +
  width: 2912px;
 +
  -webkit-animation: slide 18s ease infinite;
 
}
 
}
  
.tabbed {
+
.slide {
overflow-x: hidden; /* so we could easily hide the radio inputs */
+
  float: left;
margin: 32px 0;
+
  height: 510px;
padding-bottom: 16px;
+
  width: 728px;
border-bottom: 1px solid #ccc;
+
 
}
 
}
  
.tabbed [type="radio"] {
+
.slide:nth-child(1) {
/* hiding the inputs */
+
  background: #D93B65;
display: none;
+
 
}
 
}
  
.tabs {
+
.slide:nth-child(2) {
display: flex;
+
  background: #037E8C;
align-items: stretch;
+
list-style: none;
+
padding: 0;
+
border-bottom: 1px solid #ccc;
+
 
}
 
}
.tab > label {
+
 
display: block;
+
.slide:nth-child(3) {
margin-bottom: -1px;
+
  background: #36BF66;
padding: 12px 15px;
+
border: 1px solid #ccc;
+
background: #eee;
+
color: #666;
+
font-size: 12px;
+
font-weight: 600;
+
text-transform: uppercase;
+
letter-spacing: 1px;
+
cursor: pointer;
+
transition: all 0.3s;
+
}
+
.tab:hover label {
+
border-top-color: #333;
+
color: #333;
+
 
}
 
}
  
.tab-content {
+
.slide:nth-child(4) {
display: none;
+
  background: #D9D055;
color: #777;
+
 
}
 
}
  
/* As we cannot replace the numbers with variables or calls to element properties, the number of this selector parts is our tab count limit */
+
.slide-number {
.tabbed [type="radio"]:nth-of-type(1):checked ~ .tabs .tab:nth-of-type(1) label,
+
  color: #000;
.tabbed [type="radio"]:nth-of-type(2):checked ~ .tabs .tab:nth-of-type(2) label,
+
  text-align: center;
.tabbed [type="radio"]:nth-of-type(3):checked ~ .tabs .tab:nth-of-type(3) label,
+
  font-size: 10em;
.tabbed [type="radio"]:nth-of-type(4):checked ~ .tabs .tab:nth-of-type(4) label,
+
.tabbed [type="radio"]:nth-of-type(5):checked ~ .tabs .tab:nth-of-type(5) label {
+
border-bottom-color: #fff;
+
border-top-color: #B721FF;
+
background: #fff;
+
color: #222;
+
 
}
 
}
  
.tabbed [type="radio"]:nth-of-type(1):checked ~ .tab-content:nth-of-type(1),
+
@-webkit-keyframes slide {
.tabbed [type="radio"]:nth-of-type(2):checked ~ .tab-content:nth-of-type(2),
+
  20% {margin-left: 0px;}
.tabbed [type="radio"]:nth-of-type(3):checked ~ .tab-content:nth-of-type(3),
+
  30% {margin-left: -728px;}
.tabbed [type="radio"]:nth-of-type(4):checked ~ .tab-content:nth-of-type(4) {
+
  50% {margin-left: -728px;}
display: block;
+
  60% {margin-left: -1456px;}
 +
  70% {margin-left: -1456px;}
 +
  80% {margin-left: -2184px;}
 +
  90% {margin-left: -2184px;}
 
}
 
}

Revision as of 16:03, 2 January 2024

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

/* Pad Google AdSense box in portlet in sidebar */
#p-googleadsense .pBody {
    padding-top: 5px;
    text-align:  center;
}


/* Code for slideshow template */
#slideshow {
  text-align: center;
  overflow: hidden;
  height: 510px;
  width: 728px;
  margin: 0 auto;
}

.slide-wrapper {
  width: 2912px;
  -webkit-animation: slide 18s ease infinite;
}

.slide {
  float: left;
  height: 510px;
  width: 728px;
}

.slide:nth-child(1) {
  background: #D93B65;
}

.slide:nth-child(2) {
  background: #037E8C;
}

.slide:nth-child(3) {
  background: #36BF66;
}

.slide:nth-child(4) {
  background: #D9D055;
}

.slide-number {
  color: #000;
  text-align: center;
  font-size: 10em;
}

@-webkit-keyframes slide {
  20% {margin-left: 0px;}
  30% {margin-left: -728px;}
  50% {margin-left: -728px;}
  60% {margin-left: -1456px;}
  70% {margin-left: -1456px;}
  80% {margin-left: -2184px;}
  90% {margin-left: -2184px;}
}