ChickenPet
10:46:35 pm
UCT
37
online
10:46:35 pm
UCT
37
online
A guide to styling using the site's CSS classes. The site uses Bootstrap 5, so all Bootstrap 5 classes will work here (some class names are different from the more widely-used Bootstrap 4), though some have been restyled to fit the site's aesthetic. The following show all classes that are different from Bootstrap defaults.
Code element
<span class="small"> Small text </span> / <span class="medium"> Medium text </span> / <span class="large"> Large text </span> / <span class="faded"> Faded </span> / <h3 class="body-font d-inline"> Body font </h3> / <span class="title-font"> Title font </span> / <code> Code </code>
<button class="btn btn-primary transition">.transition (makes any CSS changes animate)</button> <div class="row mt-5 mb-2"> <div class="col-md-3 col-6"> .pet <img src="/sprites/egg_1.png" class="pet"> </div> <div class="col-md-3 col-6"> .flip <img src="/sprites/egg_1.png" class="flip"> </div> <div class="col-md-3 col-6"> .shake <img src="/sprites/egg_1.png" class="shake"> </div> <div class="col-md-3 col-6"> .bob <img src="/sprites/egg_1.png" class="bob"> </div> </div>
<span class="tooltipped" title="This is the tooltip"> Has tooltip </span> / <span class="tooltipped-0" title="This is the tooltip"> Has tooltip with no underline </span> / <div class="popover-parent"> <a href="#" class="popover-trigger">Popover trigger</a> <div class="popover"> Popover content </div> </div>
<div class="border"> .border </div> <div class="border-contrast"> .border-contrast </div> <div class="border-default"> .border-default </div>
<span class="rotate-90 d-inline-block"> Rotate 90 </span> / <span class="rotate-180 d-inline-block"> Rotate 180 </span> / <span class="rotate-270 d-inline-block"> Rotate 270 </span> / <span class="flip-x d-inline-block"> Flip X </span> (display must be set to block, inline-block or flex)
<div class="bg-light"> .bg-light - elements inside a light background element will be styled as seen in the site's light theme (e.g. <a href="#">links</a> and <h3 class="d-inline-block">headers</h3>). </div>
<div class="bg-dark"> .bg-dark - elements inside a dark background element will be styled as seen in the site's dark theme (e.g. <a href="#">links</a> and <h3 class="d-inline-block">headers</h3>). </div>
<div class="bg-primary"> .bg-primary </div> <div class="bg-secondary"> .bg-secondary </div> <div class="bg-muted"> .bg-muted (more or less an alias for secondary). </div> <div class="bg-faded"> .bg-faded </div> <div class="bg-nav"> .bg-nav </div> <div class="bg-success"> .bg-success </div> <div class="bg-warning"> .bg-warning </div> <div class="bg-danger"> .bg-danger </div> <div class="bg-info"> .bg-info </div>
<span class="badge col-pink"> .col-pink </span> <span class="badge col-maroon"> .col-maroon </span> <span class="badge col-rose"> .col-rose </span> [...]
<a class="btn btn-primary"> .btn-primary </a> <a class="btn btn-secondary"> .btn-secondary </a> <a class="btn btn-success"> .btn-success </a> <a class="btn btn-warning"> .btn-warning </a> <a class="btn btn-danger"> .btn-danger </a> <a class="btn btn-info"> .btn-info </a>
<div class="alert alert-primary"> .alert-primary </div> <div class="alert alert-secondary"> .alert-secondary </div> <div class="alert alert-success"> .alert-success </div> <div class="alert alert-warning"> .alert-warning </div> <div class="alert alert-danger"> .alert-danger </div> <div class="alert alert-info"> .alert-info </div>
<span class="text-muted"> .text-muted </span> <span class="text-primary"> .text-primary </span> <span class="text-danger"> .text-danger </span> <span class="text-success"> .text-success </span>
<div class="card-border"> .card-border </div>
<div class="card-simple"> .card-simple </div>
<div class="card-highlight"> .card-highlight </div>
<div class="card-bg"> .card-bg </div>
<div class="row-center bg-faded" style="width: 200px; height: 200px;"> <div class="card-simple">A</div> <div class="card-simple">B</div> <div class="card-simple">C</div> </div> <div class="column-center bg-faded" style="width: 200px; height: 200px;"> <div class="card-simple">A</div> <div class="card-simple">B</div> <div class="card-simple">C</div> </div> <div class="row-stretch bg-faded" style="width: 200px; height: 200px;"> <div class="card-simple">A</div> <div class="card-simple">B</div> <div class="card-simple">C</div> </div> <div class="column-stretch bg-faded" style="width: 200px; height: 200px;"> <div class="card-simple">A</div> <div class="card-simple">B</div> <div class="card-simple">C</div> </div> <div class="row-between bg-faded" style="width: 200px; height: 200px;"> <div class="card-simple">A</div> <div class="card-simple">B</div> <div class="card-simple">C</div> </div> <div class="column-between bg-faded" style="width: 200px; height: 200px;"> <div class="card-simple">A</div> <div class="card-simple">B</div> <div class="card-simple">C</div> </div>
<img src="/splash/banner1.png" class="mw-200"> .mw-200 (maximum width 200px) <br> <img src="/splash/jnaq.jpg" class="mh-200"> .mh-200 (maximum height 200px) <br> <img src="/splash/banner1.png" class="mw-300"> .mw-300 (maximum width 300px) <br> <img src="/splash/jnaq.jpg" class="mh-300"> .mh-300 (maximum height 300px) <br> <img src="/splash/banner1.png" class="mw-400"> .mw-400 (maximum width 400px) <br> <img src="/splash/jnaq.jpg" class="mh-400"> .mh-400 (maximum height 400px) <br> <img src="/splash/banner1.png" class="mw-500"> .mw-500 (maximum width 500px) <br> <img src="/splash/jnaq.jpg" class="mh-500"> .mh-500 (maximum height 500px) <br> <img src="/sprites/crown.png" class="emoji"> .emoji (height 1.3em) <br> <img src="/sprites/crown.png" class="miw-200"> .mw-200 (minimum width 200px) <br> <img src="/sprites/crown.png" class="miw-300"> .mw-300 (minimum width 300px) <br> <img src="/sprites/crown.png" class="miw-400"> .mw-400 (minimum width 400px) <br> <img src="/sprites/crown.png" class="miw-500"> .mw-500 (minimum width 500px)