MediaWiki:Common.css: Unterschied zwischen den Versionen
LB (Diskussion | Beiträge) |
LB (Diskussion | Beiträge) |
||
Zeile 19: | Zeile 19: | ||
.portlet ul {font-size:105%;} | .portlet ul {font-size:105%;} | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | } | ||
+ | .half { | ||
+ | float: left; | ||
+ | width: 50%; | ||
+ | padding: 0 1em; | ||
+ | } | ||
+ | /* Acordeon styles */ | ||
+ | .tab { | ||
+ | position: relative; | ||
+ | margin-bottom: 1px; | ||
+ | width: 100%; | ||
+ | color: #fff; | ||
+ | overflow: hidden; | ||
+ | } | ||
+ | input { | ||
+ | position: absolute; | ||
+ | opacity: 0; | ||
+ | z-index: -1; | ||
+ | } | ||
+ | label { | ||
+ | position: relative; | ||
+ | display: block; | ||
+ | padding: 0 0 0 1em; | ||
+ | background: #16a085; | ||
+ | font-weight: bold; | ||
+ | line-height: 3; | ||
+ | cursor: pointer; | ||
+ | } | ||
+ | .blue label { | ||
+ | background: #2980b9; | ||
+ | } | ||
+ | .tab-content { | ||
+ | max-height: 0; | ||
+ | overflow: hidden; | ||
+ | background: #1abc9c; | ||
+ | -webkit-transition: max-height .35s; | ||
+ | -o-transition: max-height .35s; | ||
+ | transition: max-height .35s; | ||
+ | } | ||
+ | .blue .tab-content { | ||
+ | background: #3498db; | ||
+ | } | ||
+ | .tab-content p { | ||
+ | margin: 1em; | ||
+ | } | ||
+ | /* :checked */ | ||
+ | input:checked ~ .tab-content { | ||
+ | max-height: 10em; | ||
+ | } | ||
+ | /* Icon */ | ||
+ | label::after { | ||
+ | position: absolute; | ||
+ | right: 0; | ||
+ | top: 0; | ||
+ | display: block; | ||
+ | width: 3em; | ||
+ | height: 3em; | ||
+ | line-height: 3; | ||
+ | text-align: center; | ||
+ | -webkit-transition: all .35s; | ||
+ | -o-transition: all .35s; | ||
+ | transition: all .35s; | ||
+ | } | ||
+ | input[type=checkbox] + label::after { | ||
+ | content: "+"; | ||
+ | } | ||
+ | input[type=radio] + label::after { | ||
+ | content: "\25BC"; | ||
+ | } | ||
+ | input[type=checkbox]:checked + label::after { | ||
+ | transform: rotate(315deg); | ||
+ | } | ||
+ | input[type=radio]:checked + label::after { | ||
+ | transform: rotateX(180deg); | ||
+ | } |
Version vom 30. Mai 2018, 10:07 Uhr
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
@import url('https://fonts.googleapis.com/css?family=Ubuntu');
@import url('https://fonts.googleapis.com/css?family=Open+Sans');
body {font-family: 'Open Sans', sans-serif; font-size:11px;}
div#content h1, div#content h2, div#content h3, div#content h4, div#content h5 {font-family: 'Ubuntu', sans-serif;}
.nb2 div:hover {box-shadow:0px 0px 15px 0px #dddddd;}
.nb2 div {transition: box-shadow 0.3s;}
.nb2-o div:hover {box-shadow:0px 0px 15px 0px rgba(255, 149, 2, 0.53);}
.nb2-o div {transition: box-shadow 0.3s;}
.nb50 > div:hover {box-shadow:0px 0px 15px 0px #dddddd;}
.nb50 > div {transition: box-shadow 0.3s;}
a, a:active, a:focus, a:hover, a:visited {color:#038387;}
.portlet ul {font-size:105%;}
}
.half {
float: left;
width: 50%;
padding: 0 1em;
}
/* Acordeon styles */
.tab {
position: relative;
margin-bottom: 1px;
width: 100%;
color: #fff;
overflow: hidden;
}
input {
position: absolute;
opacity: 0;
z-index: -1;
}
label {
position: relative;
display: block;
padding: 0 0 0 1em;
background: #16a085;
font-weight: bold;
line-height: 3;
cursor: pointer;
}
.blue label {
background: #2980b9;
}
.tab-content {
max-height: 0;
overflow: hidden;
background: #1abc9c;
-webkit-transition: max-height .35s;
-o-transition: max-height .35s;
transition: max-height .35s;
}
.blue .tab-content {
background: #3498db;
}
.tab-content p {
margin: 1em;
}
/* :checked */
input:checked ~ .tab-content {
max-height: 10em;
}
/* Icon */
label::after {
position: absolute;
right: 0;
top: 0;
display: block;
width: 3em;
height: 3em;
line-height: 3;
text-align: center;
-webkit-transition: all .35s;
-o-transition: all .35s;
transition: all .35s;
}
input[type=checkbox] + label::after {
content: "+";
}
input[type=radio] + label::after {
content: "\25BC";
}
input[type=checkbox]:checked + label::after {
transform: rotate(315deg);
}
input[type=radio]:checked + label::after {
transform: rotateX(180deg);
}