Template:Test: Difference between revisions

From WikiMSK

No edit summary
No edit summary
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Test/1}}{{{1}}}{{Test/2}}{{{2}}}{{Test/3}}
<html>
<html>
<style>
<style>
/*
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,400;0,700;1,400&display=swap');
CSS for the main interaction
.hero{
*/
background-image: url("https://wikimsk.org/w/img_auth.php/e/ea/Reading_manikin.jpg");
.tabset > input[type="radio"] {
height: 350px;
  position: absolute;
background-position: center;
  left: -200vw;
background-repeat: no-repeat;
background-size: cover;
position: relative;
display: flex;
justify-content: center; /* align horizontal */
align-items: center; /* align vertical */
}
}
 
.hero-text{
.tabset .tab-panel {
font-family:"Josefin Sans"
  display: none;
margin:2em;
}
padding:2em;
 
line-height:1rem;
.tabset > input:first-child:checked ~ .tab-panels > .tab-panel:first-child,
color:white;
.tabset > input:nth-child(3):checked ~ .tab-panels > .tab-panel:nth-child(2),
display:flex;
.tabset > input:nth-child(5):checked ~ .tab-panels > .tab-panel:nth-child(3),
flex-direction:column;
.tabset > input:nth-child(7):checked ~ .tab-panels > .tab-panel:nth-child(4),
align-items:center;
.tabset > input:nth-child(9):checked ~ .tab-panels > .tab-panel:nth-child(5),
justify-content:center;
.tabset > input:nth-child(11):checked ~ .tab-panels > .tab-panel:nth-child(6) {
  display: block;
}
 
/*
Styling
*/
.tabset > label {
  position: relative;
  display: inline-block;
  padding: 15px 15px 25px;
  border: 1px solid transparent;
  border-bottom: 0;
  cursor: pointer;
  font-weight: 600;
}
 
.tabset > label::after {
  content: "";
  position: absolute;
  left: 15px;
  bottom: 10px;
  width: 22px;
  height: 4px;
  background: #8d8d8d;
}
 
.tabset > label:hover,
.tabset > input:focus + label {
  color: #06c;
}
}


.tabset > label:hover::after,
.hero-title{
.tabset > input:focus + label::after,
font-size:80px;
.tabset > input:checked + label::after {
margin-bottom:3rem;
  background: #06c;
font-weight:900;
line-height:1.1em;
text-align: center;
text-decoration: underline;
text-decoration-color: #3498db;
text-shadow: 2px 2px DimGray;
}
}
 
.hero-caption{
.tabset > input:checked + label {
font-size:30px;
  border-color: #ccc;
text-align: center;
  border-bottom: 1px solid #fff;
text-shadow: 2px 2px DimGray;
  margin-bottom: -1px;
line-height:1.1em;
}
}


.tab-panel {
@media only screen and (max-width: 900px) {
  padding: 30px 0;
.hero-caption{
  border-top: 1px solid #ccc;
font-size:20px;
}
}
 
  .hero-title{
/*
font-size:60px;
  Demo purposes only
*/
*,
*:before,
*:after {
  box-sizing: border-box;
}
}
.tabset {
  max-width: 65em;
}
}
</style>
</style>
</html>
</html>
<div class="hero">
<div class="hero-text">
<div class="hero-title">WELCOME TO <span style="color:#3498db">WIKIMSK</span></div>
<div class="hero-caption">''The New Zealand Musculoskeletal Medicine Wiki''</div>
{{{test|}}}
</div>
</div>

Latest revision as of 19:14, 23 May 2022

WELCOME TO WIKIMSK
The New Zealand Musculoskeletal Medicine Wiki