HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<body class="d-flex flex-column h-100" data-bs-theme="dark">
<header class="border-bottom border-black fixed-top bg-gradient" id="header">
<div class="region region-header">
<nav class="navbar navbar-expand-md">
<div class="container">
<!-- Site logo -->
<a href="/" rel="home" class="site-logo navbar-brand">
<img src="data:image/svg+xml,%3Csvg version='1.1' id='Logo' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 445 232' style='enable-background:new 0 0 445 232;fill:black;' xml:space='preserve'%3E%3Cg%3E%3Cpolygon points='34.6,0 0.1,0 67,116 0.1,232 34.6,232 34.6,232 84.3,232 84.3,202 51.9,202 84.3,145.9 134,232 168.5,232 '/%3E%3Cpolygon points='168.5,0 149.3,0 134,0 84.5,0 84.5,30 116.7,30 87.3,81.1 104.5,111 '/%3E%3Cpath d='M177,153.6l-28.7-96.5H172l17.3,65.8l17.3-65.8h21.7l-28.7,96.5v47.8H177L177,153.6L177,153.6z'/%3E%3Cpath d='M235.5,57.2h22.7v123.7h37.3v20.6h-60L235.5,57.2L235.5,57.2z'/%3E%3Cpath d='M300.7,91.8c0-23.1,12.2-36.3,34.4-36.3s34.4,13.2,34.4,36.3v75.1c0,23.1-12.2,36.3-34.4,36.3s-34.4-13.2-34.4-36.3V91.8z M323.4,168.3c0,10.3,4.5,14.2,11.8,14.2c7.2,0,11.8-3.9,11.8-14.2V90.3c0-10.3-4.5-14.2-11.8-14.2c-7.2,0-11.8,3.9-11.8,14.2 V168.3z'/%3E%3Cpath d='M374.8,57.2h70.1v20.6h-23.7v123.7h-22.7V77.8h-23.7L374.8,57.2L374.8,57.2z'/%3E%3C/g%3E%3C/svg%3E" alt="Home" height="50">
</a>
<!-- Navbar toggler (mobile) -->
<button class="navbar-toggler px-3 py-2" data-bs-toggle="collapse" data-bs-target="#header-contents" aria-controls="header-contents" aria-expanded="false" aria-label="Toggle navigation">
<i class="xi-menu"></i>
<!-- <span class="navbar-toggler-icon"></span> -->
</button>
<!-- Header contents (menus, etc.) -->
<div class="collapse navbar-collapse flex-column flex-md-row align-items-center justify-content-center" id="header-contents">
<!-- Main nav menu -->
<ul class="navbar-nav me-auto pe-3 gap-1">
<li class="nav-item"><a href="/people" class="nav-link">People</a></li>
<li class="nav-item"><a href="/wrestlers" class="nav-link active" aria-current="page">Wrestlers</a></li>
<li class="nav-item"><a href="/articles" class="nav-link">Articles</a></li>
<li class="nav-item"><a href="/social" class="nav-link">Social</a></li>
<li class="nav-item"><a href="/forum" class="nav-link">Forums</a></li>
<li class="nav-item"><a href="/links" class="nav-link">Links</a></li>
</ul>
<!-- QuickBrowse search bar -->
<form class="me-1 me-lg-3" role="search">
<input type="search" class="form-control form-control-sm" placeholder="QuickBrowse..." aria-label="Quick Browse">
</form>
<!-- User account menu -->
<div class="dropdown text-end">
<button class="btn d-block link-dark text-decoration-none dropdown-toggle" data-bs-toggle="dropdown" data-bs-target="#user-menu" aria-expanded="false">
<img src="https://github.com/mdo.png" alt="mdo" width="32" height="32" class="rounded-circle">
</button>
<ul class="dropdown-menu dropdown-menu-end text-small" id="user-menu">
<li><a class="dropdown-item" href="#">My profile</a></li>
<li><a class="dropdown-item" href="#">Settings</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#">Log out</a></li>
</ul>
</div>
</div>
</div>
</nav>
</div>
</header>
<main id="main" class="flex-grow-1 py-2">
<!-- Breadcrumb Region -->
<div class="region region-breadcrumb container">
<nav aria-label="breadcrumb" class="rounded-3 bg-darker bg-opacity-40 px-3 py-2 mt-2 mb-3">
<ol class="breadcrumb plain-links mb-0 d-flex align-items-baseline" id="breadcrumb">
<li><a href="/" class="link-icon">
<i class="xi-home"></i>
<span class="sr-only">Home</span>
</a></li>
<li><a href="/wrestlers">Wrestlers</a></li>
<li><a href="/wrestlers/wwe">WWE</a></li>
<li class="active" aria-current="page">
<span class="text-muted">X-Pac</span>
</li>
</ol>
</nav>
</div>
<!-- Main Content Region -->
<div id="main-content" class="container d-flex">
<!-- Profile image (side) -->
<aside id="image" class="flex-shrink-0 col-2 col-md-3 pe-md-4 pe-2 pb-3">
<img src="https://i.imgur.com/PNzsvLl.png" alt="X-Pac">
</aside>
<!-- Main body -->
<article id="bio" class="flex-grow-1 col-8 col-md-9">
<!-- Title/name & org logo -->
<div id="title-name" class="d-flex align-items-center py-2 justify-content-between">
<div class="page-title w-100">
<h1 class="mb-0 d-flex align-items-center">
<span>X-Pac</span>
<span class="text-size-3 ms-auto pb-1">
<a href="/people/sean-waltman/wwe">Entire WWE listing</a>
</span>
<i class="xi-arrow-right-circle ms-3 me-4 text-size-4"></i>
</h1>
</div>
<a href="/wrestlers/wwe" aria-label="Back to WWE Wrestlers" class="h-100 rounded-4 border border-secondary bg-dark p-2 go-back-up"><img src="https://image.ibb.co/d7bGxJ/WWE_Logo_100x100_x2.png" width="50"></a>
</div>
<!-- Gimmick infobar -->
<div id="info-bar" class="d-flex align-items-center gap-2 gap-md-4 color-links mb-4">
<!-- <- -->
<div class="arrow-left fs-4">
<i class="xi-arrow-left"></i>
</div>
<!-- Previous Gimmick -->
<div class="gimmick-prev w-25">
<div class="text-small text-bold text-white">Previous gimmick:</div>
<div>
<a href="/wrestlers/wcw/syxx">Syxx</a>
(<a href="/wrestlers/wcw">WCW</a>)
</div>
</div>
<!-- Next Gimmick -->
<div class="gimmick-next">
<div class="text-small text-bold text-white">Next gimmick:</div>
<div>
<a href="/wrestlers/xpw/x">X</a>
(<a href="/wrestlers/xpw">XPW</a>)
</div>
</div>
<!-- -> -->
<div class="arrow-right fs-4">
<i class="xi-arrow-right"></i>
</div>
<!-- Real Name -->
<div class="real-name flex-grow-1 text-end">
<div class="text-small text-bold text-white">Real name:</div>
<div>
<a href="/people/sean-waltman">Sean Waltman</a>
</div>
</div>
<!-- Bio Toggle -->
<div class="bio-toggle align-self-end">
<button class="btn btn-link icon rounded-circle toggle-bio-text" data-bs-toggle="collapse" data-bs-target="#bio-text" aria-expanded="true" aria-controls="bio-text" aria-label="Expand/collapse Bio Text area">
<i class="xi-chevron-up when-expanded"><span class="sr-only">Collapse bio</span></i>
<i class="xi-chevron-down when-collapsed"><span class="sr-only">Expand bio</span></i>
</button>
</div>
</div>
<!-- Bio -->
<div id="bio-text" class="collapse show">
<div class="bio-container d-flex">
<div class="bio-stats col-8 pe-4">
<h2>Stats</h2>
<ul class="wrestler-stats list-unstyled">
<li class="text-muted">
<span class="fw-bold">Birthday:</span>
July 13, 1972
</li>
<li class="text-muted">
<span class="fw-bold">Birthplace:</span>
Minneapolis, Minnesota
</li>
<li class="border-top mt-2 pt-2">
<strong>Billed From:</strong>
Minneapolis, Minnesota
</li>
<li>
<strong>Height:</strong>
6 ft 1 in (185 cm)
</li>
<li>
<strong>Weight:</strong>
212 lb (96 kg)
</li>
<li>
<strong>Trained By:</strong>
<a href ="/people/eddie-sharkey">Eddie Sharkey</a>,
<a href="/people/boris-malenko">Boris Malenko</a>
</li>
</ul>
<ul class="wrestler-timeline list-unstyled">
<li><strong>First Appearance:</strong> <a href="/shows/wwe/monday-night-raw">Monday Night Raw</a> (March 30, 1998) <em class="text-secondary">— night after WM 14</em></li>
<li><strong>Final Appearance:</strong> <a href="/shows/wwe/monday-night-raw">Monday Night Raw</a> (July 8, 2002) <em class="text-secondary">— night of Nash's quad tear</em></li>
</ul>
</div>
<div class="bio-text col-4">
<h2>Bio</h2>
<p class="wrestler-bio">
Following a neck injury, <strong>Sean Waltman</strong> was released from his <a href="/companies/world-championship-wrestling">WCW</a> contract by president <a href="/people/eric-bischoff">Eric Bischoff</a> and immediately returned to <strong>WWE</strong> as the newest recruit of <a href="/wrestlers/wwe/d-generation-x">D-Generation X</a>. Undergoing yet another name change, he became <strong>X-Pac</strong>, a brash, lewd Superstar who backed up his big mouth in the ring.
</p>
</div>
</div>
</div>
<!-- Themes -->
<h2>Themes</h2>
<ul class="nav nav-pills mb-3" id="theme-category--tabs" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link active" id="theme-category-entrance-tab" data-bs-toggle="pill" data-bs-target="#theme-category-entrance" type="button" role="tab" aria-controls="theme-category-entrance" aria-selected="true">Entrance</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="theme-category-exit-tab" data-bs-toggle="pill" data-bs-target="#theme-category-exit" type="button" role="tab" aria-controls="theme-category-exit" aria-selected="false">Exit</button>
</li>
<li class="nav-item" role="presentation">
<button class="nav-link" id="theme-category-parody-tab" data-bs-toggle="pill" data-bs-target="#theme-category-parody" type="button" role="tab" aria-controls="theme-category-parody" aria-selected="false">Parody</button>
</li>
</ul>
<div class="tab-content" id="theme-category--contents">
<div class="tab-pane theme-category fade show active" id="theme-category-entrance" role="tabpanel" aria-labelledby="theme-category-entrance-tab" tabindex="0">
<h3 class="sr-only" tabindex="0">Entrance</h3>
<ol class="theme-listing m-0 p-0">
<!-- Theme Listing #1 -->
<li class="d-flex flex-row flex-wrap align-items-center">
<!-- Title & controls -->
<div class="theme-line d-flex flex-row align-items-center">
<!-- Theme title, artist, etc. -->
<span class="theme-title">
<em><a href="/wrestlers/wwe/shawn-michaels">[Shawn Michaels 6th]</a></em> ⇒
<strong>“Are You Ready?” (Intro Cut)</strong>
<small>by</small>
<span class="theme-artists">
<a href="/artists/jim-johnston">Jim Johnston</a>,
<a href="/artists/chris-warren">Chris Warren</a>
</span>
</span>
<!-- Hover tools (show infobox, lyrics, etc.) -->
<span class="hover-tools d-flex ms-auto align-items-center">
<!-- Toggle Infobox Collapse -->
<a href="#infobox_12345" title="More information" data-bs-toggle="collapse" role="button" class="btn btn-link icon rounded-circle toggle-infobox" aria-expanded="false" aria-controls="infobox_12345"><i class="xi-info"><span class="sr-only">View more info</span></i></a>
<!-- Toggle Lyrics Offcanvas -->
<a href="#lyrics_12345" title="View lyrics" data-bs-toggle="offcanvas" role="button" class="btn btn-link icon rounded-circle toggle-lyrics" aria-controls="lyrics_12345"><i class="xi-file-text-o"><span class="sr-only">View lyrics</span></i></a>
</span>
</div>
<!-- Infobox -->
<div id="infobox_12345" class="theme-infobox collapse w-100">
<div class="theme-infobox-contents card card-body bg-dark rounded-4 p-3 m-2 text-small">
<div class="theme-artists">
<strong>Artist(s):</strong>
<span>Jim Johnston feat. Chris Warren</span>
</div>
<div class="theme-albums">
<strong>Album(s):</strong>
<span>WWF: The Music, Vol. 3</span>
</div>
<div class="theme-first-use">
<strong>First used:</strong>
<span>RAW is WAR (Mar 30, 1998)</span>
</div>
<div class="theme-notes d-flex">
<div class="flex-shrink-1 me-1"><strong>Notes:</strong></div>
<div>
Alternate title: "Break It Down" - WWE: Anthology<br>
<em class="text-muted">Usage starts at 0:23</em>
</div>
</div>
<div class="theme-video-proof">
<strong>Video Proof:</strong><br>
<iframe width="400" height="224" class="rounded-3 mx-auto border" src="https://www.youtube.com/embed/vU7mP3LZ86U?start=240" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen=""></iframe>
</div>
</div>
</div>
</li>
<!-- Theme Listing #2 -->
<li class="d-flex flex-row flex-wrap align-items-center">
<div class="theme-line d-flex flex-row align-items-center">
<span class="theme-title color-links">
<strong>“Make Some Noise”</strong>
<small>by</small>
<a href="/artists/jim-johnston">Jim Johnston</a>,
<a href="/artists/chris-warren">Chris Warren</a>,
<a href="/artists/lucky-luke">Lucky Luke</a>,
<a href="/artists/prince-michael">Prince Michael</a>
</span>
<span class="hover-tools d-flex ms-auto">
<a href="#infobox_12346" title="More information" data-bs-toggle="collapse" role="button" class="btn btn-link icon rounded-circle toggle-infobox" aria-expanded="false" aria-controls="infobox_12346"><i class="xi-info"><span class="sr-only">View more info</span></i></a>
<a href="#lyrics_12346" title="View lyrics" data-bs-toggle="offcanvas" role="button" class="btn btn-link icon rounded-circle toggle-lyrics" aria-controls="lyrics_12346"><i class="xi-file-text-o"><span class="sr-only">View lyrics</span></i></a>
</span>
</div>
</li>
<!-- Theme Listing #... -->
<li class="d-flex flex-row flex-wrap align-items-center">
...
</li>
</ol>
</div>
<div class="tab-pane fade" id="theme-category-exit" role="tabpanel" aria-labelledby="theme-category-exit-tab" tabindex="0">
<h3 class="sr-only" tabindex="0">Exit</h3>
<p>Content here.</p>
</div>
<div class="tab-pane fade" id="theme-category-parody" role="tabpanel" aria-labelledby="theme-category-parody-tab" tabindex="0">
<h2 class="sr-only" tabindex="0">Parody</h2>
<p>Content here.</p>
</div>
</div>
</article>
</div>
</main>
<footer id="footer" class="footer mt-auto py-5 bg-black">
<div class="region region-footer container d-flex">
<div>
Lorem ipsum footer left.
</div>
<div class="ms-auto">
Lorem ipsum footer right.
</div>
</div>
</footer>
<div class="offcanvas offcanvas-end" tabindex="-1" id="lyrics_12345" aria-labelledby="lyrics_12345_title">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="lyrics_12345_title">Lyrics: “Are You Ready?” (Intro Cut)</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body px-4 text-small">
<p>
Break it down
</p>
<p>
Degenerate into something fool<br>
We just got tired of doing what you told us to do<br>
That's the breaks boy<br>
Yeah, that's the breaks, little man<br>
Break it down
</p>
<p>
D-Generation X!<br>
D-Generation!
</p>
<p>
You think you can tell me what to do?<br>
You know who you're talking to?<br>
Well, you better get used to the way the ball bounces<br>
I see what you got, it measures in ounces<br>
But that's the breaks, boy<br>
Yeah, that's the breaks, little man<br>
Break it down
</p>
<p>
D-Generation X!<br>
D-Generation!
</p>
<p>
You think you're a big man?<br>
I'll treat you like you're a little man
</p>
<p>
Yeah<br>
Break it down
</p>
<p>
Yo, tell me what it's like to be half a man<br>
It must break your heart to see what I am<br>
But, that's the breaks, boy<br>
Yeah, that's the breaks, little man
</p>
<p>
Break it down
</p>
<p>
D-Generation X!<br>
D-Generation!
</p>
<p>
You think you can tell me what to do?<br>
You know who you're talking to?<br>
Just stop wanting me to be someone else<br>
Put it away like a book on a shelf<br>
That you can't read boy<br>
Yeah, that you can't read, little man
</p>
</div>
</div>
</body>
$link-color: #3cf;
body {
font-family: 'Roboto', sans-serif;
counter-reset: themes;
}
strong, em {
color: white;
}
[data-bs-theme=dark] {
--bs-body-color: #fff;
--bs-body-color-rgb: 255,255,255;
--bs-body-bg: #17242c;
--bs-body-bg-rgb: 23,36,44;
.dropdown-menu {
--bs-dropdown-link-hover-bg: #069;
}
.navbar {
--bs-navbar-nav-link-padding-x: 0.5rem;
@media (min-width: 992px) {
--bs-navbar-nav-link-padding-x: 1rem;
}
} // .navbar
.nav-link {
--bs-nav-link-font-size: 0.75rem;
@media (min-width: 992px) {
--bs-nav-link-font-size: 1rem;
}
} // .nav-link
.navbar-toggler {
--bs-navbar-color: var(--bs-body-bg);
--bs-navbar-toggler-border-color: var(--bs-navbar-color);
}
} // DARK THEME
main, footer {
color: #ccc;
img, video {
max-width: 100%;
height: auto;
}
img, svg, video, canvas, audio, iframe, embed, object {
display: block;
vertical-align: middle;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
color: white;
font-family: 'Patua One', serif;
}
}
header.fixed-top + main {
margin-top: 76px;
}
/// BASIC ///
.sr-only:not(:focus):not(:active) {
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}
/// FONT SIZES ///
// Relative sizing.
.text-small {
font-size: 87.5%;
}
.text-xs, .text-tiny {
font-size: 75%;
}
.text-micro {
font-size: 66.6667%;
}
// Ranged sizing (0.5 – 2.5 rem).
@for $i from 0 through 8 {
.text-size-#{$i} {
font-size: #{($i + 2) / 4}rem;
}
}
/// COLLAPSE TOGGLE ICONS ///
[data-bs-toggle=collapse] {
&[aria-expanded=true] i.when-collapsed,
&[aria-expanded=false] i.when-expanded {
display: none;
}
}
.btn.btn-link.icon {
text-decoration: none;
line-height: 1.75rem;
height: 2.5rem;
width: 2.5rem;
&.toggle-bio-text {
border: 1px solid #09f9;
&:hover,
&:active {
border-color: #09f;
}
} // &.toggle-bio-text
&:hover,
&:active {
background: #09f6;
i {
color: white;
}
}
} // link icons
/// ALT COLORS ///
.bg-gradient {
background-image: linear-gradient(160deg, #009bf5 0%, #80d0c7 100%) !important;
}
.bg-darker {
background: #0006 !important;
}
/// HEADER ///
#header {
ul.navbar-nav {
li.nav-item {
a.nav-link {
border-radius: 0.5rem;
color: black;
&:hover {
background: var(--bs-body-bg);
color: #09f;
}
&.active {
background: #fff6;
color: black;
}
} // a.nav-link
+ li.nav-item {
margin-left: 0.25rem;
}
} // li.nav-item
} // ul.navbar-nav
} // #header
/// BREADCRUMB ///
#breadcrumb {
li {
line-height: 1;
+ li {
margin-left: 0.5rem;
&::before {
content: '\00BB ';
margin-right: 0.5rem;
}
} // + li
} // li
} // .breadcrumb
/// PERSON/WRESTLER PROFILE IMAGE ///
#image {
img {
position: sticky;
top: 6rem;
}
} // #image
/// TITLE/NAME & ORG LOGO ///
#title-name {
background-color: var(--bs-body-bg);
height: 5rem;
position: sticky;
top: 4.75rem;
// Page title/name
.page-title {
h1 {}
} // .page-title
// "Back to [Org] [Type]" logo link
.go-back-up {}
} // #title-name
/// BIO & THEMES ///
#bio {
.theme-category {
ol.theme-listing {
list-style-type: none;
li {
border-radius: 1.25rem;
line-height: 2.5rem;
min-height: 2.5rem;
+ li {
margin-top: 0.25rem;
}
&::before {
background: #09f;
border-radius: 50%;
box-shadow: 2px 2px 2px #0006;
counter-increment: themes;
content: counter(themes);
color: #000;
font-weight: bold;
height: 1.5rem;
line-height: 1.5rem;
margin: 0.25rem 0.5rem;
max-height: 1.5rem;
min-width: 1.5rem;
text-align: center;
width: 1.5rem;
}
&.infobox-opened::before {
background: white;
}
&:hover {
background: #09f1;
box-shadow: 0 0 2px #0cf;
}
&.infobox-opened {
background: #09f3;
box-shadow: 0 0 3px #fff;
}
.theme-line {
width: calc(100% - 2.5rem);
.theme-title {
line-height: 1rem;
.theme-artists a {
white-space: nowrap;
}
} // .theme-title
.hover-tools {
.btn.btn-link.icon {
width: 2rem;
height: 2rem;
margin: 0.25rem 0.25rem 0.25rem 0;
line-height: 1.25rem;
display: flex;
justify-content: center;
}
} // .hover-tools
} // .theme-line
.theme-infobox {
transition: all 0.5s ease-in-out;
line-height: 1.5rem;
}
&.infobox-opened .theme-line .hover-tools {
display: flex !important;
.toggle-infobox {
border-color: $link-color;
i {
color: white;
}
} // .toggle-infobox
} // .hover-tools (within .infobox-opened)
&:not(:hover) .hover-tools {
display: none !important;
}
} // li
} // ol.theme-listing
} // .theme-category
} // #bio
/// OPACITY HELPERS ///
$opacities: 10 20 30 40 50 60 70 80 90 100;
@each $opac in $opacities {
.opacity-#{$opac},
.o-#{$opac} {
opacity: #{$opac / 100};
}
}
/// LINKS ///
a {
cursor: pointer;
header & {
font-weight: 600;
}
main &,
footer & {
color: $link-color;
text-decoration: none;
&:hover,
&:active {
color: white;
text-decoration: underline;
}
} // main/footer links
&.link-icon {
text-decoration: none !important;
&:hover,
&:active {
i:before {
color: white;
}
} // hover/active
} // &.link-icon
} // a
.btn.btn-link i {
color: $link-color;
text-decoration: none;
}
/// HELPERS ///
.left-0 {
left: 0;
}
.right-0 {
right: 0;
}
.top-0 {
top: 0;
}
.bottom-0 {
bottom: 0;
}
$(function() {
// Prevent links from going anywhere.
$('a').on('click', e => {
e.preventDefault();
return false;
});
// Toggling infobox also toggles parent <li> marker bg color.
$('.toggle-infobox').on('click', e => {
$(e.currentTarget).parents('li').toggleClass('infobox-opened');
});
});
Also see: Tab Triggers