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>
<h1>Plugins</h1>
<p class="subheading">Enhance your website with some of these great additions.</p>
<form class="search-header">
<input type="search" placeholder="Search plugins">
</form>
</header>
<div class="notification">This page is also available in Deutsch.</div>
<section>
<h1>Popular Plugins <a href="" class="jump-link">See all</a></h1>
<div class="two-up__cards">
<div>
<div class="avatar">
<img src="//ps.w.org/advanced-custom-fields/assets/icon-128x128.png" />
</div>
<div class="detail">
<h1><a href="">Advanced Custom Fields</a></h1>
<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-half"></span>
<span class="review-count">(841)</span>
</div>
<p>Customise WordPress with powerful, professional and intuitive fields</p>
</div>
<hr />
<div class="meta">
<span class="author">
<i class="dashicons dashicons-admin-users"></i> <a href="https://profiles.wordpress.org/elliotcondon/" class="author" title="Plugin Author">Elliot Condon</a>
</span>
<span class="installs" title="Active Install Count">
<i class="dashicons dashicons-chart-area"></i> 1+ million Active Installs
</span>
<span class="compatibility" title="WordPress Versions Compatibility">
<i class="dashicons dashicons-wordpress-alt"></i> 4.6+ Compatible</span>
<span class="updated" title="Date Last Updated">
<i class="dashicons dashicons-calendar"></i> Updated 5 Days Ago
</span>
</div>
</div>
<div>
<div class="avatar">
<img src="//ps.w.org/really-simple-captcha/assets/icon-256x256.png" />
<div class="tag__cards light">lite</div>
</div>
<div class="detail">
<h1><a href="">Really Simple CAPTCHA</a></h1>
<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-half"></span>
<span class="review-count">(83)</span>
</div>
<p>Really Simple CAPTCHA is a CAPTCHA module intended to be called from other plugins. It is originally created for my Contact Form 7 plugin.</p>
</div>
<hr />
<div class="meta">
<span class="author">
<i class="dashicons dashicons-admin-users"></i> <a href="https://profiles.wordpress.org/elliotcondon/" class="author" title="Plugin Author">Takayuki Miyoshi</a>
</span>
<span class="installs" title="Active Install Count">
<i class="dashicons dashicons-chart-area"></i> 1+ million Active Installs
</span>
<span class="compatibility" title="WordPress Versions Compatibility">
<i class="dashicons dashicons-wordpress-alt"></i> 4.5+ Compatible</span>
<span class="updated" title="Date Last Updated">
<i class="dashicons dashicons-calendar"></i> Updated 4 Months Ago
</span>
</div>
</div>
<div>
<div class="avatar">
<img src="//ps.w.org/better-wp-security/assets/icon-128x128.jpg" />
<div class="tag__cards">service</div>
</div>
<div class="detail">
<h1><a href="">iThemes Security (formerly Better WP Security)</a></h1>
<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-half"></span>
<span class="review-count">(3,648)</span>
</div>
<p>Take the guesswork out of WordPress security. iThemes Security offers 30+ ways to lock down WordPress in an easy-to-use WordPress security plugin.</p>
</div>
<hr />
<div class="meta">
<span class="author">
<i class="dashicons dashicons-admin-users"></i> <a href="https://profiles.wordpress.org/elliotcondon/" class="author" title="Plugin Author">iThemes</a>
</span>
<span class="installs" title="Active Install Count">
<i class="dashicons dashicons-chart-area"></i> 800,000+ Active Installs
</span>
<span class="compatibility" title="WordPress Versions Compatibility">
<i class="dashicons dashicons-wordpress-alt"></i> 4.6+ Compatible</span>
<span class="updated" title="Date Last Updated">
<i class="dashicons dashicons-calendar"></i> Updated 3 Weeks Ago
</span>
</div>
</div>
<div>
<div class="avatar">
<img src="https://ps.w.org/contact-form-7/assets/icon-128x128.png" />
<div class="tag__cards">service</div>
</div>
<div class="detail">
<h1><a href="">Contact Form 7</a></h1>
<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-half"></span>
<span class="review-count">(934)</span>
</div>
<p>Just another contact form plugin. Simple but flexible.</p>
</div>
<hr />
<div class="meta">
<span class="author">
<i class="dashicons dashicons-admin-users"></i> <a href="https://profiles.wordpress.org/elliotcondon/" class="author" title="Plugin Author">Takayuki Miyoshi</a>
</span>
<span class="installs" title="Active Install Count">
<i class="dashicons dashicons-chart-area"></i> 1+ million Active Installs
</span>
<span class="compatibility" title="WordPress Versions Compatibility">
<i class="dashicons dashicons-wordpress-alt"></i> 4.7 Compatible</span>
<span class="updated" title="Date Last Updated">
<i class="dashicons dashicons-calendar"></i> Updated 3 Weeks Ago
</span>
</div>
</div>
</div>
</section>
<section>
<h1>Trending Plugins <a href="" class="jump-link">See all</a></h1>
<div class="two-up__cards">
<div>
<div class="avatar">
<img src="//ps.w.org/easy-digital-downloads/assets/icon-128x128.png" />
</div>
<div class="detail">
<h1><a href="">Easy Digital Downloads</a></h1>
<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-half"></span>
<span class="review-count">(220)</span>
</div>
<p>Sell digital downloads through WordPress with this complete digital downloads management plugin</p>
</div>
<hr />
<div class="meta">
<span class="author">
<i class="dashicons dashicons-admin-users"></i> <a href="https://profiles.wordpress.org/mordauk/" class="author" title="Plugin Author">Pippin Williamson</a>
</span>
<span class="installs" title="Active Install Count">
<i class="dashicons dashicons-chart-area"></i> 50,000+ Active Installs
</span>
<span class="compatibility" title="WordPress Versions Compatibility">
<i class="dashicons dashicons-wordpress-alt"></i> 4.7 Compatible</span>
<span class="updated" title="Date Last Updated">
<i class="dashicons dashicons-calendar"></i> Updated 3 Hours Ago
</span>
</div>
</div>
<div>
<div class="avatar">
<img src="//ps.w.org/better-wp-security/assets/icon-128x128.jpg" />
<div class="tag__cards">service</div>
</div>
<div class="detail">
<h1><a href="">iThemes Security (formerly Better WP Security)</a></h1>
<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-half"></span>
<span class="review-count">(3,648)</span>
</div>
<p>Take the guesswork out of WordPress security. iThemes Security offers 30+ ways to lock down WordPress in an easy-to-use WordPress security plugin.</p>
</div>
<hr />
<div class="meta">
<span class="author">
<i class="dashicons dashicons-admin-users"></i> <a href="https://profiles.wordpress.org/elliotcondon/" class="author" title="Plugin Author">iThemes</a>
</span>
<span class="installs" title="Active Install Count">
<i class="dashicons dashicons-chart-area"></i> 800,000+ Active Installs
</span>
<span class="compatibility" title="WordPress Versions Compatibility">
<i class="dashicons dashicons-wordpress-alt"></i> 4.6+ Compatible</span>
<span class="updated" title="Date Last Updated">
<i class="dashicons dashicons-calendar"></i> Updated 3 Weeks Ago
</span>
</div>
</div>
<div>
<div class="avatar">
<img src="//ps.w.org/wp-smushit/assets/icon-128x128.jpg" />
<div class="tag__cards light">lite</div>
</div>
<div class="detail">
<h1><a href="">WP Smush - Image Optimization</a></h1>
<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-half"></span>
<span class="review-count">(2,122)</span>
</div>
<p>Reduce image file sizes, improve performance and boost your SEO using the free WPMU DEV WordPress Smush API.</p>
</div>
<hr />
<div class="meta">
<span class="author">
<i class="dashicons dashicons-admin-users"></i> <a href="https://profiles.wordpress.org/wpmudev/" class="author" title="Plugin Author">WPMU DEV</a>
</span>
<span class="installs" title="Active Install Count">
<i class="dashicons dashicons-chart-area"></i> 500,000+ Active Installs
</span>
<span class="compatibility" title="WordPress Versions Compatibility">
<i class="dashicons dashicons-wordpress-alt"></i> 4.6.1 Compatible</span>
<span class="updated" title="Date Last Updated">
<i class="dashicons dashicons-calendar"></i> Updated 1 Week Ago
</span>
</div>
</div>
<div>
<div class="avatar">
<img src="//ps.w.org/simple-cache/assets/icon-128x128.png" />
<div class="tag__cards light">lite</div>
</div>
<div class="detail">
<h1>Simple Cache</h1>
<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-half"></span>
<span class="review-count">(30)</span>
</div>
<p>A very simple plugin to make your site run lightning fast with caching.</p>
</div>
<hr />
<div class="meta">
<span class="author">
<i class="dashicons dashicons-admin-users"></i> <a href="https://profiles.wordpress.org/tlovett1/" class="author" title="Plugin Author">Taylor Lovett</a>
</span>
<span class="installs" title="Active Install Count">
<i class="dashicons dashicons-chart-area"></i> 3,000+ Active Installs
</span>
<span class="compatibility" title="WordPress Versions Compatibility">
<i class="dashicons dashicons-wordpress-alt"></i> 4.7 Compatible</span>
<span class="updated" title="Date Last Updated">
<i class="dashicons dashicons-calendar"></i> Updated 3 Weeks Ago
</span>
</div>
</div>
</div>
</section>
<section>
<h1>Beta Plugins <a href="" class="jump-link">See all</a></h1>
<div class="two-up__cards">
<div>
<div class="avatar">
<img src="//ps.w.org/shiny-updates/assets/icon-128x128.png" />
</div>
<div class="detail">
<h1>Shiny Updates</h1>
<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-half"></span>
<span class="review-count">(13)</span>
</div>
<p>A smoother experience for managing plugins and themes.</p>
</div>
<hr />
<div class="meta">
<span class="author">
<i class="dashicons dashicons-admin-users"></i> <a href="https://profiles.wordpress.org/obenland/" class="author" title="Plugin Author">Konstantin Obenland</a>
</span>
<span class="installs" title="Active Install Count">
<i class="dashicons dashicons-chart-area"></i> 900+ Active Installs
</span>
<span class="compatibility" title="WordPress Versions Compatibility">
<i class="dashicons dashicons-wordpress-alt"></i> 4.6.1 Compatible</span>
<span class="updated" title="Date Last Updated">
<i class="dashicons dashicons-calendar"></i> Updated 3 Weeks Ago
</span>
</div>
</div>
<div>
<div class="avatar">
<img src="//ps.w.org/customize-posts/assets/icon-128x128.png" />
</div>
<div class="detail">
<h1>Customize Posts</h1>
<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-half"></span>
<span class="review-count">(9)</span>
</div>
<p>Edit posts and postmeta in the Customizer. Stop editing your posts/postmeta blind!</p>
</div>
<hr />
<div class="meta">
<span class="author">
<i class="dashicons dashicons-admin-users"></i> <a href="https://profiles.wordpress.org/xwp/" class="author" title="Plugin Author">XWP</a>
</span>
<span class="installs" title="Active Install Count">
<i class="dashicons dashicons-chart-area"></i> 300+ Active Installs
</span>
<span class="compatibility" title="WordPress Versions Compatibility">
<i class="dashicons dashicons-wordpress-alt"></i> 4.7 Compatible</span>
<span class="updated" title="Date Last Updated">
<i class="dashicons dashicons-calendar"></i> Updated 2 Weeks Ago
</span>
</div>
</div>
<div>
<div class="avatar">
<img src="//ps.w.org/customizer-ui-experiments/assets/icon-128x128.png" />
<div class="tag__cards light">lite</div>
</div>
<div class="detail">
<h1>Customizer UI Experiments</h1>
<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-half"></span>
<span class="review-count">(1)</span>
</div>
<p>Testing ground for UI and UX changes and features proposed for the Customizer.</p>
</div>
<hr />
<div class="meta">
<span class="author">
<i class="dashicons dashicons-admin-users"></i> <a href="https://profiles.wordpress.org/celloexpressions/" class="author" title="Plugin Author">Nick Halsey</a>
</span>
<span class="installs" title="Active Install Count">
<i class="dashicons dashicons-chart-area"></i> 100+ Active Installs
</span>
<span class="compatibility" title="WordPress Versions Compatibility">
<i class="dashicons dashicons-wordpress-alt"></i> 4.5.4 Compatible</span>
<span class="updated" title="Date Last Updated">
<i class="dashicons dashicons-calendar"></i> Updated 8 Months Ago
</span>
</div>
</div>
<div>
<div class="avatar">
<img src="//ps.w.org/rest-api/assets/icon-128x128.png" />
</div>
<div class="detail">
<h1>WordPress REST API (Version 2)</h1>
<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-half"></span>
<span class="review-count">(26)</span>
</div>
<p>Access your site's data through an easy-to-use HTTP REST API. (Version 2)</p>
</div>
<hr />
<div class="meta">
<span class="author">
<i class="dashicons dashicons-admin-users"></i> <a href="https://profiles.wordpress.org/rmccue/" class="author" title="Plugin Author">Ryan McCue</a>
</span>
<span class="installs" title="Active Install Count">
<i class="dashicons dashicons-chart-area"></i> 30,000+ Active Installs
</span>
<span class="compatibility" title="WordPress Versions Compatibility">
<i class="dashicons dashicons-wordpress-alt"></i> 4.7 Compatible</span>
<span class="updated" title="Date Last Updated">
<i class="dashicons dashicons-calendar"></i> Updated 1 Day Ago
</span>
</div>
</div>
</div>
</section>
<section class="more-info">
<div class="three-up">
<div>
<h4>Plugin Authors</h4>
<p>ucas ipsum dolor sit amet wicket mccool sidious kyp kessel greedo kastolar arkanis jan di. Pavan ventress anakin thul chewbacca t'landa. Cade tavion evazan bando mon kiffar roan antemeridian.</p>
</div>
<div>
<h4>Plugin Reviewers</h4>
<p>Sing priapulin ki-adi-mundi ismaren hutt cornelius mirialan sulorine isard. Ansuroer wharl ranat chistori. Gilad owen reach solo unduli fett falleen mygeeto jerjerrod. Mothma vratix lumiya maris.</p>
</div>
<div>
<h4>Plugin Handbook</h4>
<p>Togorian nikto vratix darth. Antonio calrissian annoo chazrach. Ewok xexto ackbar zann. Valorum darth noghri greeata yané. Sy solo ventress meridian firmus auril darth mantell dunwell.</p>
</div>
</div>
</section>
$max-width: 50rem;
img { max-width:100%; }
.notification {
padding:.5rem;
background:$color__green;
text-align:center;
font-size:ms(-2);
cursor:pointer;
}
@media ( min-width:67rem ) {
.notification { margin:1rem auto 0; max-width:$max-width; }
}
.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;
}
}
.wp-core-ui .button-xl {
font-size:ms(0);
padding: .5em 1.5em;
height:auto;
}
header {
padding: ms(4) ms(1);
background:$color__wp-blue;
h1 {
text-align:center;
color:#FFF;
line-height: 1;
}
.subheading {
color:#FFF;
opacity: .8;
}
@media (min-width: $ms-breakpoint) {
padding: ms(4);
}
}
form.search-header {
margin:0 auto 2rem;
position: relative;
width: ms(28);
&:after {
content: "\f179";
font-family: dashicons;
position: absolute;
right: 16px;
top: 11px;
}
input[type="search"] {
width: ms(28);
max-width: 100%;
padding:.5rem;
display:block;
margin:0 auto;
border:none;
font-size: ms(0);
padding-right: 40px;
}
}
.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; }
}
main {
max-width:50rem;
margin:0 auto;
padding:ms(10) ms(4);
h1 {
@extend h3;
}
}
section {
margin:0 auto;
padding:ms(10) ms(4);
max-width:$max-width;
border-bottom:2px solid #EEE;
.container {
max-width:$max-width;
margin:0 auto;
@extend .clearfix;
}
h1 {
@extend h3;
margin-bottom: 3rem;
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%;
margin-right:5%;
}
article {
float:left;
width:65%;
}
}
}
@media (min-width: 67rem) {
section {
padding: ms(10) 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;
}
}
.stars {
margin-bottom: 1rem;
@extend .clearfix;
[class*='dashicons-star-'] {
font-size: ms(4);
color:#FFB900;
display:inline-block;
margin:0;
}
}
.stars__small {
@extend .stars;
display: block;
margin: 0 10px 8px 0;
line-height: 1;
.review-count {
font-size: ms(-2);
color: #999;
}
[class*='dashicons-star-'] {
font-size: ms(0);
}
}
.two-up__cards {
@extend .clearfix;
> div {
height: auto;
margin-bottom:4%;
position: relative;
display: flex;
flex-direction: row;
align-items: flex-start;
flex-wrap: wrap;
background: #f9f9f9;
padding:10px;
//color: #555;
> .avatar {
width: 30%;
margin: 0;
position: relative;
max-width: 128px;
height: 123px;
}
.detail {
width: 70%;
height: 125px;
overflow: hidden;
padding-left: 4%;
}
h1 {
font-size: ms(0);
margin: 0 0 8px;
line-height:1.3;
}
p {
font-size: ms(-2);
margin: 0 0 8px;
//padding-bottom: 32px;
}
hr {
width: 120%;
height: 1px;
margin: 10px -10px 0;
border: none;
border-bottom: 1px solid #fff;
position: relative;
display: block;
}
.meta {
width: 100%;
clear: both;
background: #f9f9f9;
padding: 8px 0 0;
span {
font-size: ms(-3);
width: 48%;
display: inline-block;
i {
display: inline-block;
font-size: 1rem;
margin-right: 0.4rem;
}
}
.dashicons {
margin:0 2px -1rem;
color:#bbb;
width:auto;
height:auto;
display: none;
@media (min-width:414px) {
display: inline-block;
}
}
}
// &:hover {
// cursor: pointer;
// h1, p { color: $color__wp-blue; }
// }
}
@media ( min-width:414px ) {
> div {
> img {
width: 120px;
}
}
}
@media ( min-width:992px ) {
> div {
float:left;
width:48%;
min-height: 150px;
margin-right:4%;
> img {
width: 128px;
height: 128px;
}
&:nth-child(even) {
margin-right:0;
}
}
}
}
.tag__cards {
display:none;
float: right;
font-size: ms(-6);
text-transform: uppercase;
padding: 3px 8px;
background: #826EB4;
color: #FFF;
position: absolute;
bottom: -20px;
width: 100%;
text-align: center;
letter-spacing: 1px;
&.light {
background: #F56E28;
}
}
Also see: Tab Triggers