JSFiddle - React, Tailwind, and code Playground
by Gwyn Milcote
HTML
<b>Budgie terminology and things to know</b>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Cabin">
<p>
<ul>
<li>'Heterozygous' and 'homozygous' aren't often used. Instead the term 'factor' is used for single or double doses, when a gene is incompletely dominant. For example, a bird with a single copy of -- may be called "SF pied" (single factor) while one with two copies, and a deeper colour, is "DF pied" (double factor).</li>
<li>A bird that's heterozygous, carrying two different alleles in a locus, is often called 'split'. For example, a green bird that's carrying a single recessive blue allele may be called "Light Green split for blue". It can be shortened with a slash: Light Green/blue" or "Greywing/dilute".</li>
<li>Melanin includes both black and blue pigments. Mutations that remove melanin (such as ino, pied) will remove both black and blue.</li>
<li>The face and neck are called the 'mask'. It's usually a different colour (yellow or white) than the body below it (green or blue).</li>
</ul>
</p>
Thanks to the following info sources:
<ul>
<li><a href='https://puppiesareprozac.com/budgie-parakeet/colors-varieties-mutations-genetics'>PuppiesAreProzac</a></li>
<li><a href='http://uk-budgie-breeders.blogspot.com/'>UK Budgie Breeders</a></li>
<li><a href='http://feistyhome.phpwebhosting.com/mutations.htm'>Feisty Feathers</a></li>
<li><a href='https://www.budgie-info.com/spangle-budgie.html'>Budgie Info</a></li>
<li><a href='http://kmbreeding.weebly.com/budgie-mutations.html'>K & M Breeding</a></li>
<li><a href='http://budgiebreeder.synthasite.com/lacewings.php'>Budgie Breeder</a></li>
<li><a href='http://www.rarebudgerigarclub.org.au/rares.htm'>Rare Budgerigar Club</a></li>
<li><a href='http://www.wabudgerigarcouncil.com/pics-2004-national-winners.htm'>Western Australia Budgerigar Council</a></li>
</ul>
Some photos were borrowed from those, others found while googling. I'll try to add links...
CSS
img, div, button {
box-sizing: border-box;
}
html, body {
color: rgba(0, 0, 0, 0.7);
font-family: 'Cabin', sans-serif;
}
.hidden, .hoverbox {
display: none;
}
.round {
border-radius: 5px;
background-clip: padding-box;
}
.flex {
display: flex;
flex-flow: row wrap;
}
.between {
justify-content: space-between;
}
.section {
margin: 10px auto;
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5);
background-color: #fff;
overflow: hidden;
}
.section .title {
font-size: 25px;
padding: 15px;
cursor: pointer;
}
.section .content {
padding: 15px;
}
.section .alleles {
padding: 10px;
min-width: 30%; /* Up to 3 loci in a line */
display: flex;
justify-content: center;
align-items: center;
background-color: #fff;
font-size: 20px;
}
.section .alleles .allele {
padding: 10px;
background-color: rgba(255, 255, 255, 0.2);
margin: 0px 10px;
cursor: pointer;
transition: 0.3s;
}
.section .alleles .allele:hover {
background-color: rgba(255, 255, 255, 0.4);
transition: 0.3s;
}
.section .images {
margin: 10px auto;
display: flex;
flex-flow: row wrap;
justify-content: space-evenly;
}
.section .image {
text-align: center;
/*width: 150px;*/
margin: 5px;
}
.section .image img {
height: 150px;
width: auto;
max-width: 250px;
border-radius: 5px;
}
#locus_choc .title, #locus_choc .alleles {
background-color: #996759;
background-image: linear-gradient(to right, #7A5136, #A87B5C);
}
#locus_di .title, #locus_di .alleles {
background-color: #EBD19F;
background-image: linear-gradient(to right, #E6C283, #FAE7C5);
}
#locus_bl .title, #locus_bl .alleles {
background-color: #9EA5B8;
background-image: linear-gradient(to right, #717282, #C5C6D4);
}
#locus_mh .title, #locus_mh .alleles {
background-color: #CF614B;
background-image: linear-gradient(to right, #963B1C, #E3744F);
}
#locus_lav .title, #locus_lav .alleles {
background-color: #E0D8E8;
...
JavaScript
$(".section .title").click(function(){
var locus = $(this).data("locus");
$("#locus_" + locus + " .content").toggleClass("hidden");
});