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.
<header>
<div class="header-container">
<a href=""><h1>Plugins</h1></a>
<span class="dashicons dashicons-arrow-down-alt2"></span>
<nav role="navigation" class="subnav">
<a href="">Favorites</a>
<a href="">Beta Testing</a>
<a href="">Developers</a>
<span>
<input type="text" class="searchfield" placeholder="Search plugins">
<button class="button button-primary button-search"><i class="dashicons dashicons-search"></i></button>
</span>
</nav>
</div>
</header>
<div class="container">
<img src="https://ps.w.org/wordpress-importer/assets/banner-772x250.png" class="banner" />
<section class="header-detail">
<div class="plugin-icon"></div>
<div class="plugin-name">
<h1>WordPress Importer</h1>
<p>By <a href="">wordpressdotorg</a></p>
<div class="button-block">
<div class="fav-btn-box">
<div class="fav-btn"><span href="" class="favme dashicons dashicons-heart masterTooltip" title="Log in to add this plugin to your favorites."></span></div>
</div>
<button class="button button-primary button-large">Download</button>
</div>
</div>
</section>
<div class="tabs-container">
<ul class="tabs">
<li id="tab-detail" class="active"> Details </li>
<li id="tab-review"> Reviews </li>
<li id="tab-support"> Support </li>
<li id="tab-dev"> Development </li>
<li id="more">More</li>
</ul>
<ul class="overflow"></ul>
</div>
<div class="notification">This plugin is also available in Deutsch.</div>
<!--// DETAILS -->
<section id="details" class="tab-content active">
<div class="container">
<article>
<h4>Plugin Details</h4>
<p>The WordPress Importer will import the following content from a WordPress export file:</p>
<ul>
<li>Posts, pages and other custom post types</li>
<li>Comments</li>
<li>Custom fields and post meta</li>
<li>Categories, tags and terms from custom taxonomies</li>
<li>Authors</li>
</ul>
<p>For further information and instructions please see the Codex page on Importing Content</p>
<h5>Filters</h5>
<p>The importer has a couple of filters to allow you to completely enable/block certain features:</p>
<ul>
<li><code>import_allow_create_users:</code> return false if you only want to allow mapping to existing users</li>
<li><code>import_allow_fetch_attachments:</code> return false if you do not wish to allow importing and downloading of attachments</li>
<li><code>import_attachment_size_limit:</code> return an integer value for the maximum file size in bytes to save (default is 0, which is unlimited)</li>
</ul>
<p>There are also a few actions available to hook into:</p>
<ul>
<li><code>import_start:</code> occurs after the export file has been uploaded and author import settings have been chosen</li>
<li><code>import_end:</code> called after the last output from the importer</li>
</ul>
<h4>Screenshots</h4>
<div style="width:100%; height:400px; padding-top:160px; text-align:center; background:#eee;">(Lightbox or Slider)</div>
<h4>FAQs</h4>
<h5 class="accordion-header">Does this plugin do this?</h5>
<div class="accordion-content"><p>Yes, this plugin does that. Yoda endor vader fett hutt. Hutt windu darth jinn kamino. Jinn sebulba ventress solo maul palpatine. Ben naboo wampa c-3p0 skywalker mon ewok amidala kit. Moff leia gonk amidala darth vader antilles palpatine.</p></div>
<h5 class="accordion-header">What happens when this happens?</h5>
<div class="accordion-content"><p>Something else happens. Yoda endor vader fett hutt. Hutt windu darth jinn kamino. Jinn sebulba ventress solo maul palpatine. Ben naboo wampa c-3p0 skywalker mon ewok amidala kit. Moff leia gonk amidala darth vader antilles palpatine.</p></div>
<h5 class="accordion-header">I already did this one thing, but it's not working. What's todo now?</h5>
<div class="accordion-content"><p>Try this other thing. Yoda endor vader fett hutt. Hutt windu darth jinn kamino. Jinn sebulba ventress solo maul palpatine. Ben naboo wampa c-3p0 skywalker mon ewok amidala kit. Moff leia gonk amidala darth vader antilles palpatine.</p> <p>Yoda endor vader fett hutt. Hutt windu darth jinn kamino. Jinn sebulba ventress solo maul palpatine. Ben naboo wampa c-3p0 skywalker mon ewok amidala kit. Moff leia gonk amidala darth vader antilles palpatine.</p></div>
<h5 class="accordion-header">I'm lost and can't find my way</h5>
<div class="accordion-content"><p>This plugin will find it for you. Yoda endor vader fett hutt. Hutt windu darth jinn kamino. Jinn sebulba ventress solo maul palpatine. Ben naboo wampa c-3p0 skywalker mon ewok amidala kit. Moff leia gonk amidala darth vader antilles palpatine.</p></div>
<br /><br />
</article>
<aside>
<ul class="aside-details" style="margin-top:2rem;">
<li>Built for: <strong><a href="">BuddyPress</a></strong></li>
<li>Version: <strong>3.1.11</strong></li>
<li>Last updated: <strong>Yesterday</strong></li>
<li>Active installs: <strong>1,238</strong></li>
<li>Category: <div class="tag-container"><span class="tag">Discussion & Community</span><span class="tag">Accessibility</span></div></li>
</ul>
<h4>Ratings <a href="" class="jump-link">See all</a></h4>
<div class="stars">
<span class="dashicons dashicons-star-filled"></span>
<span class="dashicons dashicons-star-filled"></span>
<span class="dashicons dashicons-star-filled"></span>
<span class="dashicons dashicons-star-filled"></span>
<span class="dashicons dashicons-star-half"></span>
</div>
<div class="star-count">
<div>5 stars</div>
<div>4 stars</div>
<div>3 stars</div>
<div>2 stars</div>
<div>1 stars</div>
</div>
<div class="support">
<h4>Support</h4>
<p class="aside">Issues resolved in last two months</p>
<div class="support-issues">
<div class="support-issues-resolved"></div>
<div class="support-count">108 out of 537</div>
</div>
<p><button class="button">View support forum</button></p>
</div>
<h4>Donate</h4>
<p>Would you like to support the advancement of this plugin?</p>
<p><button class="button">Donate to this plugin</button></p>
</aside>
</div>
</section>
<!--// REVIEWS -->
<section id="reviews" class="tab-content">
<div class="container">
<article>
<h4>Reviews</h4>
<div>
<div class="review">
<div class="avatar"></div>
<div class="stars__small">
<span class="dashicons dashicons-star-filled"></span>
<span class="dashicons dashicons-star-filled"></span>
<span class="dashicons dashicons-star-filled"></span>
<span class="dashicons dashicons-star-filled"></span>
<span class="dashicons dashicons-star-empty"></span>
</div>
<strong>This is a really cool plugin!</strong>
<p>Ben naboo wampa c-3p0 skywalker mon ewok amidala kit. Moff leia gonk amidala darth vader antilles palpatine.</p>
</div>
<div class="review">
<div class="avatar"></div>
<div class="stars__small">
<span class="dashicons dashicons-star-filled"></span>
<span class="dashicons dashicons-star-empty"></span>
<span class="dashicons dashicons-star-empty"></span>
<span class="dashicons dashicons-star-empty"></span>
<span class="dashicons dashicons-star-empty"></span>
</div>
<strong>Meh, I've seen better and this is a really long title for this review</strong>
<p>Yoda endor vader fett hutt. Hutt windu darth jinn kamino. Jinn sebulba ventress solo maul palpatine. Ben naboo wampa c-3p0 skywalker mon ewok amidala kit. Moff leia gonk amidala darth vader antilles palpatine.</p>
</div>
<div class="review">
<div class="avatar"></div>
<div class="stars__small">
<span class="dashicons dashicons-star-filled"></span>
<span class="dashicons dashicons-star-filled"></span>
<span class="dashicons dashicons-star-filled"></span>
<span class="dashicons dashicons-star-filled"></span>
<span class="dashicons dashicons-star-empty"></span>
</div>
<strong>This is a really cool plugin!</strong>
<p>Ben naboo wampa c-3p0 skywalker mon ewok amidala kit. Moff leia gonk amidala darth vader antilles palpatine.</p>
</div>
<div class="review">
<div class="avatar"></div>
<div class="stars__small">
<span class="dashicons dashicons-star-filled"></span>
<span class="dashicons dashicons-star-empty"></span>
<span class="dashicons dashicons-star-empty"></span>
<span class="dashicons dashicons-star-empty"></span>
<span class="dashicons dashicons-star-empty"></span>
</div>
<strong>Meh, I've seen better and this is a really long title for this review</strong>
<p>Yoda endor vader fett hutt. Hutt windu darth jinn kamino. Jinn sebulba ventress solo maul palpatine. Ben naboo wampa c-3p0 skywalker mon ewok amidala kit. Moff leia gonk amidala darth vader antilles palpatine.</p>
</div>
</div>
</article>
<aside>
<h4>Ratings</h4>
<div class="stars">
<span class="dashicons dashicons-star-filled"></span>
<span class="dashicons dashicons-star-filled"></span>
<span class="dashicons dashicons-star-filled"></span>
<span class="dashicons dashicons-star-filled"></span>
<span class="dashicons dashicons-star-half"></span>
</div>
<div class="star-count">
<div>5 stars</div>
<div>4 stars</div>
<div>3 stars</div>
<div>2 stars</div>
<div>1 stars</div>
</div>
</aside>
</section>
<!--// SUPPORT -->
<section id="support" class="tab-content">
<div class="container">
<div class="container">
<h4>Support</h4>
<table>
<thead>
<tr>
<th>Topic</th>
<th>Posts</th>
<th>Last Poster</th>
<th>Freshness</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="">There's a guy who says he's my dad, but he doesn't look like me.</a></td>
<td>2</td>
<td>Luke Skywalker</td>
<td>2 weeks</td>
</tr>
<tr>
<td><a href="">Fatal error: I'm frozen in carbonite and I'm not sure where they're taking me.</a></td>
<td>1</td>
<td>Han Solo</td>
<td>2 weeks</td>
</tr>
<tr>
<td><a href="">There's been a disturbance.</a></td>
<td>10</td>
<td>The Force</td>
<td>3 weeks</td>
</tr>
<tr>
<td><a href="">The Millenium Falcon has lost is ability for light speed.</a></td>
<td>1</td>
<td>Lando</td>
<td>8 weeks</td>
</tr>
</tbody>
</table>
<!-- Nothing will change here for now -->
<img src="https://cldup.com/af8n19Jp8M.png" />
</div>
</section>
<!--// DEVELOPMENT -->
<section id="dev" class="tab-content">
<div class="container">
<article>
<h4>Changelogs</h4>
<div class="readmore">
<p><strong>1.4</strong>
Yoda endor vader fett hutt. Hutt windu darth jinn kamino. Jinn sebulba ventress solo maul palpatine.</p>
<p><strong>1.3</strong>
Ben naboo wampa c-3p0 skywalker mon ewok amidala kit. Moff leia gonk amidala darth vader antilles palpatine.</p>
<p><strong>1.2</strong>
Ben naboo wampa c-3p0 skywalker mon ewok amidala kit. Moff leia gonk amidala darth vader antilles palpatine.</p>
</div>
<h5>Subscribe</h5>
<p><a href="">Development log</a></p>
<h5>Browse the code</h5>
<p><a href="">Development log</a><br />
<a href="">Subversion repository</a><br />
<a href="">Browse in Trac</a><br />
</p>
<h5>Current version</h5>
<p><a href="">3.1.11 (svn)</a></p>
<table class="table__accordion">
<thead>
<tr class="table__accordion-show">
<th>Other versions</th>
</tr>
</thead>
<tbody>
<tr class="table__accordion-show">
<td><a href="">Development version</a></td>
</tr>
<tr>
<td>3.1.1</td>
</tr>
<tr>
<td>3.0</td>
</tr>
<tr>
<td>2.9</td>
</tr>
<tr>
<td>2.8</td>
</tr>
<tr>
<td>2.7</td>
</tr>
<tr class="table__accordion-show table__accordion-trigger">
<td colspan="4" class="txt"><span class="dashicons dashicons-arrow-down-alt2"></span></td>
</tr>
</tbody>
</table>
<br /><br />
</article>
<aside>
<ul class="aside-details" style="margin-top:2rem;">
<li>Built for: <strong><a href="">BuddyPress</a></strong></li>
<li>Version: <strong>3.1.11</strong></li>
<li>Last updated: <strong>Yesterday</strong></li>
<li>Active installs: <strong>1,238</strong></li>
<li>Category: <div class="tag-container"><span class="tag">Discussion & Community</span><span class="tag">Accessibility</span></div></li>
</ul>
<h4>Contributors</h4>
<p>Moff leia gonk amidala darth vader antilles palpatine.</p>
<div class="people-grid">
<div>
<div class="avatar"></div>
<p><a href="">Name of person</a></p>
</div>
<div>
<div class="avatar"></div>
<p><a href="">Name of person</a></p>
</div>
<div>
<div class="avatar"></div>
<p><a href="">Name of person</a></p>
</div>
<div>
<div class="avatar"></div>
<p><a href="">Name of person</a></p>
</div>
</div>
<h4>Support</h4>
<p class="aside">416 of 587 support threads in the last two months have been resolved.</p>
<p><button class="button">View support forum</button></p>
<h4>Donate</h4>
<p>Would you like to support the advancement of this plugin?</p>
<p><button class="button">Donate to this plugin</button></p>
</aside>
</div>
</section>
</div><!-- /container -->
$max-width: 53rem;
img { max-width:100%; }
.notification {
padding:.5rem;
background:$color__green;
text-align:center;
font-size:ms(-2);
cursor:pointer;
margin-top: 1rem;
}
@media ( min-width:67rem ) {
.notification { margin:1rem auto 0; max-width:$max-width; }
}
.tabs + .notification {
margin-top: 1rem;
}
.dashicons {
display:block;
margin:0 auto -1rem;
font-size:4rem;
color:#CBCDCE;
width:auto;
height:auto;
}
.cta-wrapper {
text-align:center;
font-size:ms(-1);
margin:2rem 0 2rem;
display:block;
}
@media (min-width: $ms-breakpoint) {
.cta-wrapper {
font-size:ms(-2);
margin: 4rem 0 2rem;
}
}
.tabs-container {
position:relative;
max-width:$max-width;
margin: 0 auto;
}
.tabs {
width: auto;
max-width: $max-width;
list-style: none;
font-size: ms(-2);
margin: 0 auto;
padding: 0;
border-bottom: 2px solid #EEE;
li {
display: inline-block;
//padding: ms(-4) ms(2);
border: 2px solid transparent;
border-bottom: none;
cursor: pointer;
margin-bottom: -2px;
color: $color__wp-blue;
transition: background .2s ease;
// testing tab responsiveness
padding: ms(-4) 0;
min-width: 100px;
text-align: center;
margin: -2px;
&.active, &:hover {
border: 2px solid #EEE;
border-radius: 2px 2px 0 0;
}
&:hover {
border-bottom: none;
background: #EEE;
}
&.active {
cursor: default;
color: $color__base-gray;
background: #FFF;
border-bottom: none;
}
}
// @media (max-width:425px) {
// border-top: 2px solid #eee;
// li {
// display: block;
// border: none;
// border-bottom: 1px solid #eee;
// margin-botto: 1px;
// &.active, &:hover {
// border: none;
// border-bottom: 1px solid #eee;
// }
// }
// }
}
.tab-content {
display: none;
&.active {
display: block;
}
}
.overflow {
position: absolute;
right: 0;
margin: 0;
display: none;
}
.overflow li {
display: block;
background: #fff;
padding: ms(-4) ms(2);
border: 2px solid #eee;
border-top: none;
font-size: ms(-2);
&:hover {
background: #EEE;
}
}
#more {
display: none;
//float: right;
&.show { display:inline-block; }
}
.moreme #more {
display: inline-block;
}
.subpage {
header {
position:absolute;
top:0;
left:0;
width:100%;
padding:1rem 0;
margin-bottom:-1rem;
z-index:1;
background:$color__wp-blue;
overflow:hidden;
h1 {
font-size:ms(4);
text-align:left;
color:#FFF;
margin:0 2rem 0 0;
max-width: $max-width; //1050px
display:inline;
line-height:1;
}
&.open {
-webkit-box-shadow:0 1px 8px rgba(0,0,0,.5);
box-shadow:0 1px 8px rgba(0,0,0,.5);
.subnav {
max-height:400px;
padding:1rem 0 0;
a, span {
opacity:1;
-webkit-transition: opacity .3s ease;
transition: opacity .3s ease;
&:last-child { padding-bottom:0; }
}
}
}
}
> .container {
max-width: $max-width;
margin:0 auto;
padding:3rem 0;
@extend .clearfix;
border-top:2px solid #EEE;
article {
max-width: ms(32);
margin:0 auto;
h1 {
@extend h3;
}
h2 {
@extend h5;
}
}
}
header + .container {
border-top: none;
padding-top: 60px;
}
}
@media ( min-width:$ms-breakpoint ) {
.subpage header + .container {
padding-top: 68px;
}
}
.header-container {
max-width: $max-width;
margin:0 auto;
padding:0 2rem;
position:relative;
@extend .clearfix;
[class*='dashicons-arrow-'] {
color:#FFF;
position:absolute;
top:-1rem;
right:0;
display:block;
cursor:pointer;
padding:1.1rem 2rem;
width:auto;
height:auto;
font-size:ms(4);
}
a:hover {
text-decoration: none;
}
}
.subnav {
width:100%;
padding:0;
-webkit-transition: max-height .2s ease;
transition: max-height .2s ease;
max-height:0;
a, span {
display:block;
font-size:ms(-2);
border-top:1px solid rgba(255,255,255,.2);
padding:1rem;
margin:0;
opacity:0;
text-decoration:none;
color:rgba(255,255,255,.8);
position:relative;
&:hover, &.active {
color:#FFF;
}
&.active {
border-color:rgba(255,255,255,.2);
}
}
input.searchfield {
border: 0;
padding: 5px 10px;
position: relative;
border-radius: 2px;
width: 10rem;
}
input + .button.button-search {
display: none;
border-radius: 0 2px 2px 0;
margin-left: -7px;
position: relative;
top: 0;
border-left: none;
&:active {
top: 0;
border-right: 1px solid #006799;
box-shadow: none;
background: #006799;
}
.dashicons {
color: #FFF;
font-size: 1rem;
margin: auto;
}
}
}
@media (min-width:1024px) {
.subpage {
header {
position:relative;
&.open {
-webkit-box-shadow:none;
box-shadow:none;
.subnav {
padding:0;
}
}
}
}
.header-container [class*='dashicons-arrow-'] { display:none; }
.subpage header + .container { padding-top:1rem; }
.subnav {
position:absolute;
top:0rem;
right:0;
z-index:10;
width:auto;
height:auto;
a, span {
margin-right:2rem;
display:inline;
opacity:1;
padding:0;
border:none;
&.active { border-bottom:1px solid #FFF; }
}
input.searchfield {
border-radius: 2px 0 0 2px;
}
input + .button.button-search {
top: 1px;
display: inline-block;
}
}
}
@media (min-width: 67rem) {
.header-container {
padding: 0;
}
.subnav a:last-child, .subnav span:last-child {
margin-right: 0;
}
.subpage header + .container { padding-top:3rem; }
}
header {
padding: ms(4) ms(1);
background:$color__wp-blue;
h1 {
text-align:center;
color:#FFF;
line-height: 1;
}
.subheading {
color:#FFF;
}
form {
margin-bottom:2rem;
input[type="search"] {
width: ms(28);
padding:.5rem;
display:block;
margin:0 auto;
border:none;
}
}
@media (min-width: $ms-breakpoint) {
padding: ms(4);
}
}
.banner {
margin:0 0 ms(1);
width: 100%;
max-width: $max-width;
min-width: 100%;
height: auto;
background:#EEE;
display: block;
@media (min-width: 67rem) {
margin:0 auto ms(1);
min-width: auto;
}
}
.header-detail {
padding:0 ms(4) ms(1);
//border-bottom:2px solid #EEE;
position: relative;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: flex-start;
align-items: flex-start;
align-content: flex-start;
.plugin-icon {
height:64px;
background: #EEE;
margin-right:1rem;
position: relative;
flex-basis: 64px;
display: none;
}
.plugin-name {
flex-grow: 1;
flex-basis: 172px;
}
.button-block {
position: relative;
margin-top: 10px;
}
h1, p {
margin:0 0 .4rem;
}
h1 {
line-height: 1.3;
}
p {
color: lighten($color__base-gray, 30%);
}
@media ( min-width:$max-width ) {
.plugin-icon {
height: 96px;
flex-basis: 96px;
}
}
@media ( min-width:$ms-breakpoint ) {
.plugin-name {
padding-right: 210px;
}
.button-block {
position: absolute;
right: ms(4);
top: 0;
}
.plugin-icon {
display: block;
}
}
@media (min-width:67rem) {
padding:0 0 ms(1) 0;
.button-block {
right: 0;
}
}
}
.fav-btn-box {
display: inline-block;
width: 40px;
height: 40px;
}
.fav-btn {
display:flex;
height: 100%;
justify-content: center;
align-items: center;
}
@keyframes favme-anime {
0% {
opacity: 1;
font-size: ms(0);
-webkit-text-stroke-color: transparent;
}
25% {
opacity:.6;
color: #FFF;
font-size: ms(-2);
-webkit-text-stroke-width: 1px;
-webkit-text-stroke-color: #DC3232;
}
75% {
opacity:.6;
color: #FFF;
font-size: ms(3);
-webkit-text-stroke-width: 1px;
-webkit-text-stroke-color: #DC3232;
}
100% {
opacity: 1;
font-size: ms(2);
-webkit-text-stroke-color: transparent;
}
}
@keyframes favme-hover {
from {
font-size: ms(3);
}
80% {
font-size: ms(2);
}
}
.favme {
display:block;
font-size: ms(2);
width: auto;
height: auto;
cursor: pointer;
box-shadow: none;
transition: all .2s ease;
color: #CBCDCE;
margin: 0;
&.active {
color: #DC3232;
}
&:hover {
animation: favme-hover .3s infinite alternate;
}
&.is_animating {
animation: favme-anime .3s;
}
}
.button-fav {
.dashicons-heart {
font-size: ms(0);
display: block;
padding: 0;
margin: 0;
line-height: 1.15;
}
&:hover .dashicons, &:active .dashicons, &.active .dashicons {
color: #DC3232;
}
}
.stars {
margin-bottom: 1rem;
@extend .clearfix;
[class*='dashicons-star-'] {
font-size: ms(4);
color:#FFB900;
display:inline-block;
margin:0;
}
.dashicons-star-empty {
color: #CCC;
}
}
.stars__small {
@extend .stars;
display: inline-block;
margin: 0 10px 0 0;
line-height: 1;
[class*='dashicons-star-'] {
font-size: ms(0);
}
}
.star-count {
font-size: ms(-2);
@extend .clearfix;
}
.review {
margin-bottom: 2rem;
.avatar {
width: 60px;
height: 60px;
background: #EEE;
float: left;
margin-right: 10px;
}
p {
margin: 0 0 1em;
}
}
h4 {
a.jump-link {
float:right;
font-size:ms(-2);
position:relative;
top:.55em;
font-weight:normal;
}
}
.people-grid {
@extend .clearfix;
> div {
// width: 48%;
// float: left;
margin:0 4% 1rem 0;
&:nth-child(even) {
margin-right: 0;
}
.avatar {
width: 32px;
height: 32px;
float: left;
background: #EEE;
margin-right: 10px;
vertical-align: middle;
}
p {
margin: 0;
}
}
}
.aside-details {
margin:0;
padding:0;
font-size: ms(-2);
list-style:none;
li {
padding: 0.5rem 0;
border-top:1px solid #EEE;
@extend .clearfix;
strong { float:right; }
}
}
.readmore {
margin-bottom: 0;
+ a {
border-top: 2px solid #EEE;
margin-top: 1px;
font-size: ms(-2);
padding-top: .5rem;
position: relative;
background: #FFF;
text-decoration: none;
&:after {
font-family: dashicons;
content: "\f347";
padding-left: 5px;
position: relative;
top: 3px;
}
}
h5 {
font-size: ms(0);
text-transform: none;
&:first-child {
margin-top: 0;
}
}
p:first-child {
margin-top: 0;
}
&[aria-expanded="true"] + a:after {
content: "\f343";
}
}
.slider {
width:100vw;
margin:0;
padding:0 10vw;
li {
height:400px;
display:flex;
justify-content: center;
align-items: center;
background:#CCC;
&:nth-child(even) { background:#EEE; }
}
}
.unslider {
.unslider-arrow { display:none; }
}
.tag__cards {
float: right;
font-size: ms(-6);
text-transform: uppercase;
padding: 3px 8px;
background: #826EB4;
color: #FFF;
position: absolute;
bottom: 0;
width: 100%;
text-align: center;
letter-spacing: 1px;
&.light {
background: #F56E28;
}
}
.tag-container {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
max-width: 100%;
display: block;
@media ( min-width:940px ) {
float: right;
width: 60%;
.tag {
float: right;
}
}
}
.tag {
background: #EEE;
border-radius: 2px;
padding: 3px 6px;
font-size: ms(-4);
white-space: nowrap;
margin: 2px;
border-bottom: 1px solid #dfdfdf;
width: auto;
display: inline-block;
cursor: pointer;
&:hover {
color: $color__wp-blue;
}
&:active {
background: #DFDFDF;
}
}
main {
max-width:50rem;
margin:0 auto;
padding:ms(10) ms(4);
h1 {
@extend h3;
}
}
section {
margin:0 auto;
padding:0 ms(4);
max-width:$max-width;
.container {
max-width:$max-width;
margin:0 auto;
@extend .clearfix;
}
h1 {
@extend h3;
a.jump-link {
float:right;
font-size:ms(0);
position:relative;
top:.7rem;
}
}
h2 {
text-align:center;
}
&.download {
display:none;
}
&.download, &.apps-mobile {
h2 {
margin-top:0rem;
}
}
&.download-mobile {
.subheading {
margin:0 auto;
}
.cta-wrapper {
margin:2rem 0 0;
}
}
&.apps {
display:none;
}
@media (min-width: $ms-breakpoint) {
aside {
float:left;
width:30%;
}
article {
float:left;
width:65%;
}
aside + article {
margin-left:5%;
}
article + aside {
margin-left:5%;
}
}
@media (min-width:67rem) {
padding:0;
}
}
.three-up {
@extend .clearfix;
> div {
margin-top:3rem;
.logo__bluehost, .logo__getlisted, .logo__wpcom { height:35px; }
}
@media (min-width: $ms-breakpoint) {
> div {
float:left;
width:30%;
margin-right:5%;
font-size:ms(-2);
&:last-child {
margin-right:0;
}
}
}
}
.more-info .three-up {
> div {
margin-top:0;
}
}
.two-up {
@extend .clearfix;
> div {
float:left;
width:48%;
margin-right:4%;
margin-bottom:4%;
background:#CCC; height:200px;
&:nth-child(even) {
margin-right:0;
}
}
}
.web-stores { //mobile section
width:100%;
margin: 2rem auto 0;
text-align:center;
@extend .clearfix;
a {
width:150px;
display:inline-block;
margin:10px;
}
@media (min-width: $ms-breakpoint) {
margin: 4rem auto 0;
}
}
.ios .button-android { display:none; }
.android .button-ios { display:none; }
// Hiding & Showing different content based on screensize
@media (min-width:769px) {
.apps-mobile, .download-mobile { display:none; }
section.apps, section.download { display:block; }
}
.support-issues {
width: 100%;
height: 30px;
background: #EEE;
font-size: ms(-4);
position: relative;
margin-bottom: 1rem;
.support-issues-resolved {
width: 20%;
height: 30px;
background: $color__green;
}
.support-count {
position: absolute;
left: 8px;
top: 5px;
width: 100%;
}
}
// Accordion for FAQs
.accordion-header {
cursor: pointer;
position: relative;
border-top: 1px solid #eee;
padding-top: 1rem;
margin: 1rem 0 0;
font-size: 1rem;
text-transform: none;
letter-spacing:normal;
&:hover {
color: $color__wp-blue;
}
&:before {
content: "\f347";
font-family: dashicons;
position: relative;
float: right;
right: 10px;
top: 0;
}
&.active-header:before {
content: "\f343";
}
}
.accordion-content {
display:none;
p {
margin:1rem 0 0;
}
}
/*!
* @preserve
*
* Readmore.js jQuery plugin
* Author: @jed_foster
* Project home: https://jedfoster.github.io/Readmore.js
* Licensed under the MIT license
*
* Debounce function from http://davidwalsh.name/javascript-debounce-function
*/
!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";function e(t,e,i){var a;return function(){var n=this,o=arguments,r=function(){a=null,i||t.apply(n,o)},s=i&&!a;clearTimeout(a),a=setTimeout(r,e),s&&t.apply(n,o)}}function i(t){var e=++h;return String(null==t?"rmjs-":t)+e}function a(t){var e=t.clone().css({height:"auto",width:t.width(),maxHeight:"none",overflow:"hidden"}).insertAfter(t),i=e.outerHeight(),a=parseInt(e.css({maxHeight:""}).css("max-height").replace(/[^-\d\.]/g,""),10),n=t.data("defaultHeight");e.remove();var o=a||t.data("collapsedHeight")||n;t.data({expandedHeight:i,maxHeight:a,collapsedHeight:o}).css({maxHeight:"none"})}function n(t){if(!d[t.selector]){var e=" ";t.embedCSS&&""!==t.blockCSS&&(e+=t.selector+" + [data-readmore-toggle], "+t.selector+"[data-readmore]{"+t.blockCSS+"}"),e+=t.selector+"[data-readmore]{transition: height "+t.speed+"ms;overflow: hidden;}",function(t,e){var i=t.createElement("style");i.type="text/css",i.styleSheet?i.styleSheet.cssText=e:i.appendChild(t.createTextNode(e)),t.getElementsByTagName("head")[0].appendChild(i)}(document,e),d[t.selector]=!0}}function o(e,i){this.element=e,this.options=t.extend({},s,i),n(this.options),this._defaults=s,this._name=r,this.init(),window.addEventListener?(window.addEventListener("load",l),window.addEventListener("resize",l)):(window.attachEvent("load",l),window.attachEvent("resize",l))}var r="readmore",s={speed:100,collapsedHeight:200,heightMargin:16,moreLink:'<a href="#">Read More</a>',lessLink:'<a href="#">Close</a>',embedCSS:!0,blockCSS:"display: block; width: 100%;",startOpen:!1,beforeToggle:function(){},afterToggle:function(){}},d={},h=0,l=e(function(){t("[data-readmore]").each(function(){var e=t(this),i="true"===e.attr("aria-expanded");a(e),e.css({height:e.data(i?"expandedHeight":"collapsedHeight")})})},100);o.prototype={init:function(){var e=t(this.element);e.data({defaultHeight:this.options.collapsedHeight,heightMargin:this.options.heightMargin}),a(e);var n=e.data("collapsedHeight"),o=e.data("heightMargin");if(e.outerHeight(!0)<=n+o)return!0;var r=e.attr("id")||i(),s=this.options.startOpen?this.options.lessLink:this.options.moreLink;e.attr({"data-readmore":"","aria-expanded":this.options.startOpen,id:r}),e.after(t(s).on("click",function(t){return function(i){t.toggle(this,e[0],i)}}(this)).attr({"data-readmore-toggle":"","aria-controls":r})),this.options.startOpen||e.css({height:n})},toggle:function(e,i,a){a&&a.preventDefault(),e||(e=t('[aria-controls="'+_this.element.id+'"]')[0]),i||(i=_this.element);var n=t(i),o="",r="",s=!1,d=n.data("collapsedHeight");n.height()<=d?(o=n.data("expandedHeight")+"px",r="lessLink",s=!0):(o=d,r="moreLink"),this.options.beforeToggle(e,n,!s),n.css({height:o}),n.on("transitionend",function(i){return function(){i.options.afterToggle(e,n,s),t(this).attr({"aria-expanded":s}).off("transitionend")}}(this)),t(e).replaceWith(t(this.options[r]).on("click",function(t){return function(e){t.toggle(this,i,e)}}(this)).attr({"data-readmore-toggle":"","aria-controls":n.attr("id")}))},destroy:function(){t(this.element).each(function(){var e=t(this);e.attr({"data-readmore":null,"aria-expanded":null}).css({maxHeight:"",height:""}).next("[data-readmore-toggle]").remove(),e.removeData()})}},t.fn.readmore=function(e){var i=arguments,a=this.selector;return e=e||{},"object"==typeof e?this.each(function(){if(t.data(this,"plugin_"+r)){var i=t.data(this,"plugin_"+r);i.destroy.apply(i)}e.selector=a,t.data(this,"plugin_"+r,new o(this,e))}):"string"==typeof e&&"_"!==e[0]&&"init"!==e?this.each(function(){var a=t.data(this,"plugin_"+r);a instanceof o&&"function"==typeof a[e]&&a[e].apply(a,Array.prototype.slice.call(i,1))}):void 0}});
// End Readmore.js
// -----------------------
$('.readmore').readmore();
// Mobile Subnav open/close
$(document).ready(function() {
$('.header-container > .dashicons').click(function() {
$('header').toggleClass('open');
if ($('header').hasClass('open')) {
$('span.dashicons').removeClass('dashicons-arrow-down-alt2').addClass('dashicons-arrow-up-alt2');
} else {
$('span.dashicons').removeClass('dashicons-arrow-up-alt2').addClass('dashicons-arrow-down-alt2');
};
});
});
// Accordion Tables
$(function() {
$(".table__accordion tr:not(.table__accordion-show)").hide();
$(".table__accordion tr:first-child").show();
$(".table__accordion tr.table__accordion-trigger").click(function(){
$(this).prevAll(".table__accordion tr:not(.table__accordion-show)").fadeToggle(100);
}).eq().trigger('click');
$(".table__accordion-trigger td").click(function() {
$(this).toggleClass('less');
if ($(this).hasClass('less')) {
$(this).children().removeClass('dashicons-arrow-down-alt2').addClass('dashicons-arrow-up-alt2');
} else {
$(this).children().removeClass('dashicons-arrow-up-alt2').addClass('dashicons-arrow-down-alt2');
};
});
});
$('.button-fav').click(function() {
$(this).toggleClass('active');
});
// TABS
$('.tabs li:not("#more")').click(function() {
$('.tabs li:not("#more")').removeClass('active');
$(this).addClass('active');
$('section').removeClass('active');
});
$('.tabs li#tab-review').click(function() {
$('section#reviews').addClass('active');
});
$('.tabs li#tab-support').click(function() {
$('section#support').addClass('active');
});
$('.tabs li#tab-detail').click(function() {
$('section#details').addClass('active');
});
$('.tabs li#tab-dev').click(function() {
$('section#dev').addClass('active');
});
// Favorite Button - Heart
$('.button-fav').click(function() {
$(this).toggleClass('active');
});
$('.favme').click(function() {
$(this).toggleClass('active');
});
/* when a user clicks, toggle the 'is-animating' class */
$(".favme").on('click touchstart', function(){
$(this).toggleClass('is_animating');
});
/*when the animation is over, remove the class*/
$(".favme").on('animationend', function(){
$(this).toggleClass('is_animating');
});
// Simple Tooltip
// http://www.alessioatzeni.com/blog/simple-tooltip-with-jquery-only-text/
$(document).ready(function() {
// Tooltip only Text
$('.masterTooltip').hover(function(){
// Hover over code
var title = $(this).attr('title');
$(this).data('tipText', title).removeAttr('title');
$('<p class="tooltip"></p>')
.text(title)
.appendTo('body')
.fadeIn('slow');
}, function() {
// Hover out code
$(this).attr('title', $(this).data('tipText'));
$('.tooltip').remove();
}).mousemove(function(e) {
var mousex = e.pageX + 5; //Get X coordinates
var mousey = e.pageY + 5; //Get Y coordinates
$('.tooltip')
.css({ top: mousey, left: mousex })
});
});
//Accordion for FAQs
$(document).ready(function() {
//Add Inactive Class To All Accordion Headers
$('.accordion-header').toggleClass('inactive-header');
//Set The Accordion Content Width
//var contentwidth = $('.accordion-header').width();
//$('.accordion-content').css({'width' : contentwidth });
//Open The First Accordion Section When Page Loads
//$('.accordion-header').first().toggleClass('active-header').toggleClass('inactive-header');
//$('.accordion-content').first().slideDown().toggleClass('open-content');
// The Accordion Effect
$('.accordion-header').click(function () {
if($(this).is('.inactive-header')) {
$('.active-header').toggleClass('active-header').toggleClass('inactive-header').next().slideToggle().toggleClass('open-content');
$(this).toggleClass('active-header').toggleClass('inactive-header');
$(this).next().slideToggle().toggleClass('open-content');
}
else {
$(this).toggleClass('active-header').toggleClass('inactive-header');
$(this).next().slideToggle().toggleClass('open-content');
}
});
return false;
});
// TAB Responsiveness
$(document).ready(function(){
var item_width = $('.tabs li').width();
var item_count = ($( ".tabs li" ).length);
var nav_width_og = $('.tabs-container').width();
var nav_width = $('.tabs-container').width();
if ((item_width*(item_count+1)) > nav_width ){
$('#more').appendTo('body');
$('#more').hide();
}
for(var i = 0; i < item_count; i++) {
nav_width = $('.tabs-container').width();
item_width = $('.tabs li').width();
item_count = ($( ".tabs li" ).length);
if (nav_width<(item_width*item_count)){
$('.tabs li').not('#more').last().appendTo($('.overflow'));
$('#more').appendTo($('.tabs'));
$('#more').show();
}
}
$(window).resize(function(){
nav_width = $('.tabs-container').width();
item_width = $('.tabs li').width();
item_count = ($( ".tabs li" ).length);
if (nav_width<(item_width*item_count)){
$('.tabs li').not('#more').last().appendTo($('.overflow'));
$('#more').appendTo($('.tabs'));
$('.tabs-container').addClass('moreme');
$('#more').show();
}
if (nav_width>(item_width*item_count)+(item_width-1)){
$('.overflow li').last().appendTo($('.tabs'));
$('#more').appendTo($('.tabs'));
}
if (nav_width == nav_width_og ){
$('#more').appendTo('body');
$('#more').hide();
}
});
$('#more').click(function(){
$('.overflow').slideToggle("fast");
});
});
Also see: Tab Triggers