You are viewing an old revision of this post, from September 2, 2015 @ 14:44:50. See below for differences between this version and the current revision.

Slick View Mode Switch/Toggle

As seen on CodeDrops and GitHub. A simple view mode switch that has two example layouts, a grid and a list. BlueprintViewModeSwitch A layout switch with two viewing modes: grid and list. The layout is defined by a view class that gets applied to the main wrapper. Some example media queries show how to make things responsive.

The HTML

<div id="cbp-vm" class="cbp-vm-switcher cbp-vm-view-grid">
	<div class="cbp-vm-options">
		<a href="#" class="cbp-vm-icon cbp-vm-grid cbp-vm-selected" data-view="cbp-vm-view-grid">Grid View</a>
		<a href="#" class="cbp-vm-icon cbp-vm-list" data-view="cbp-vm-view-list">List View</a>
	</div>
	<ul>
		<li>
			<a class="cbp-vm-image" href="#"><img src="images/1.png"></a>
			<h3 class="cbp-vm-title">Silver beet</h3>
			<div class="cbp-vm-price">$19.90</div>
			<div class="cbp-vm-details">
				Silver beet shallot wakame tomatillo salsify mung bean beetroot groundnut.
			</div>
			<a class="cbp-vm-icon cbp-vm-add" href="#">Add to cart</a>
		</li>
		<li>
			<!--  ... -->
		</li>
		<!--  ... -->
	</ul>
</div>

The CSS

@font-face {
	font-family: 'fontawesome';
	src:url('../fonts/fontawesome/fontawesome.eot');
	src:url('../fonts/fontawesome/fontawesome.eot?#iefix') format('embedded-opentype'),
		url('../fonts/fontawesome/fontawesome.woff') format('woff'),
		url('../fonts/fontawesome/fontawesome.ttf') format('truetype'),
		url('../fonts/fontawesome/fontawesome.svg#fontawesome') format('svg');
	font-weight: normal;
	font-style: normal;
}

/* Main container */
.cbp-vm-switcher {
	padding: 20px;
	border: 3px solid #47a3da;
}

/* options/select wrapper with switch anchors */
.cbp-vm-options {
	text-align: right;
	padding-bottom: 10px;
	border-bottom: 3px solid #47a3da;
}

.cbp-vm-options a {
	display: inline-block;
	width: 40px;
	height: 40px;
	overflow: hidden;
	white-space: nowrap;
	color: #d0d0d0;
	margin: 2px;
}

.cbp-vm-options a:hover,
.cbp-vm-options a.cbp-vm-selected {
	color: #47a3da;
}

.cbp-vm-options a:before {
	width: 40px;
	height: 40px;
	line-height: 40px;
	font-size: 30px;
	text-align: center;
	display: inline-block;
}

/* General style of switch items' list */

.cbp-vm-switcher ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

/* Clear eventual floats */
.cbp-vm-switcher ul:before, 
.cbp-vm-switcher ul:after { 
	content: " "; 
	display: table; 
}

.cbp-vm-switcher ul:after { 
	clear: both; 
}

.cbp-vm-switcher ul li {
	display: block;
	position: relative;
}

.cbp-vm-image {
	display: block;
	margin: 0 auto;
}

.cbp-vm-image img {
	display: inline-block;
	max-width: 100%;
}

.cbp-vm-title {
	margin: 0;
	padding: 0;
}

.cbp-vm-price {
	color: #c0c0c0;
}

.cbp-vm-add {
	color: #fff;
	background: #47a3da;
	padding: 10px 20px;
	border-radius: 2px;
	margin: 20px 0 0;
	display: inline-block;
	transition: background 0.2s;
}

.cbp-vm-add:hover {
	color: #fff;
	background: #02639d;
}

.cbp-vm-add:before {
	margin-right: 5px;
}

/* Common icon styles */
.cbp-vm-icon:before {
	font-family: 'fontawesome';
	speak: none;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;
	-webkit-font-smoothing: antialiased;
}

.cbp-vm-grid:before {
	content: "f00a";
}

.cbp-vm-list:before {
	content: "f00b";
}

.cbp-vm-add:before {
	content: "f055";
}

/* Individual view mode styles */

/* Large grid view */
.cbp-vm-view-grid ul {
	text-align: center;
}

.cbp-vm-view-grid ul li {
	width: 33%;
	text-align: center;
	padding: 25px;
	margin: 20px 0 0;
	display: inline-block;
	min-height: 420px;
	vertical-align: top;
}

.cbp-vm-view-grid .cbp-vm-title {
	font-size: 2em;
}

.cbp-vm-view-grid .cbp-vm-details {
	max-width: 300px;
	min-height: 70px;
	margin: 0 auto;
} 

.cbp-vm-view-grid .cbp-vm-price {
	margin: 10px 0;
	font-size: 1.5em;
}


/* List view */
.cbp-vm-view-list li {
	padding: 20px 0;
	white-space: nowrap;
}

.cbp-vm-view-list .cbp-vm-image,
.cbp-vm-view-list .cbp-vm-title,
.cbp-vm-view-list .cbp-vm-details,
.cbp-vm-view-list .cbp-vm-price,
.cbp-vm-view-list .cbp-vm-add {
	display: inline-block;
	vertical-align: middle;
}

.cbp-vm-view-list .cbp-vm-image {
	width: 10%;
}

.cbp-vm-view-list .cbp-vm-title {
	font-size: 1.3em;
	padding: 0 10px;
	white-space: normal;
	width: 23%;
}

.cbp-vm-view-list .cbp-vm-price {
	font-size: 1.3em;
	width: 10%;
}

.cbp-vm-view-list .cbp-vm-details {
	width: 40%;
	padding: 0 15px;
	overflow: hidden;
	white-space: normal;
}

.cbp-vm-view-list .cbp-vm-add {
	margin: 0;
}

@media screen and (max-width: 66.7em) {
	.cbp-vm-view-list .cbp-vm-details  {
		width: 30%;
	}
} 

@media screen and (max-width: 57em) {
	.cbp-vm-view-grid ul li {
		width: 49%;
	}
}

@media screen and (max-width: 47.375em) {
	.cbp-vm-view-list .cbp-vm-image {
		width: 20%;
	}

	.cbp-vm-view-list .cbp-vm-title {
		width: auto;
	}

	.cbp-vm-view-list .cbp-vm-details  {
		display: block;
		width: 100%;
		margin: 10px 0;
	}

	.cbp-vm-view-list .cbp-vm-add  {
		margin: 10px;
	}
}

@media screen and (max-width: 40.125em) {
	.cbp-vm-view-grid ul li {
		width: 100%;
	}
}

The JavaScript

/**
 * cbpViewModeSwitch.js v1.0.0
 * http://www.codrops.com
 *
 * Licensed under the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 * 
 * Copyright 2013, Codrops
 * http://www.codrops.com
 */
(function() {

	var container = document.getElementById( 'cbp-vm' ),
		optionSwitch = Array.prototype.slice.call( container.querySelectorAll( 'div.cbp-vm-options > a' ) );

	function init() {
		optionSwitch.forEach( function( el, i ) {
			el.addEventListener( 'click', function( ev ) {
				ev.preventDefault();
				_switch( this );
			}, false );
		} );
	}

	function _switch( opt ) {
		// remove other view classes and any any selected option
		optionSwitch.forEach(function(el) { 
			classie.remove( container, el.getAttribute( 'data-view' ) );
			classie.remove( el, 'cbp-vm-selected' );
		});
		// add the view class for this option
		classie.add( container, opt.getAttribute( 'data-view' ) );
		// this option stays selected
		classie.add( opt, 'cbp-vm-selected' );
	}

	init();

})();
 

Revisions

  • October 25, 2015 @ 12:44:51 [Current Revision] by PeterLugg
  • October 25, 2015 @ 12:44:51 by PeterLugg
  • September 2, 2015 @ 14:44:50 by PeterLugg

Revision Differences

September 2, 2015 @ 14:44:50Current Revision
Content
Unchanged: As seen on <a href="http:// tympanus.net/ codrops/2013/ 07/01/view-mode-switch/" target="_blank" >CodeDrops</a> and <a href="https:/ /github.com/codrops/ ViewModeSwitch" target="_blank" >GitHub</a>.Unchanged: As seen on <a href="http:// tympanus.net/ codrops/2013/ 07/01/view-mode-switch/" target="_blank" >CodeDrops</a> and <a href="https:/ /github.com/codrops/ ViewModeSwitch" target="_blank" >GitHub</a>.
Unchanged: A simple view mode switch that has two example layouts, a grid and a list.Unchanged: A simple view mode switch that has two example layouts, a grid and a list.
Deleted: <a href="http:// tympanus.net/ Blueprints/ViewModeSwitch/"><img class="alignnone size-full wp-image-15668" src="http://codropspz.tympanus.netdna- cdn.com/codrops/wp-content/ uploads/2013/ 07/BlueprintViewModeSwitch1.png" alt="BlueprintViewModeSwitch" width="580" height="315" /></a> Added: <a href="http:// tympanus.net/ Blueprints/ViewModeSwitch/"><img class="alignnone size-full wp-image-15668" src="http://wiki.pixelpress.com.au/ files/2015/09/ BlueprintViewModeSwitch1.png" alt="BlueprintViewModeSwitch" width="580" height="315" /></a>
Unchanged: A layout switch with two viewing modes: grid and list. The layout is defined by a view class that gets applied to the main wrapper. Some example media queries show how to make things responsive.Unchanged: A layout switch with two viewing modes: grid and list. The layout is defined by a view class that gets applied to the main wrapper. Some example media queries show how to make things responsive.
Unchanged: <h3>The HTML</h3>Unchanged: <h3>The HTML</h3>
Unchanged: <pre class="brush:html; gutter:false; hljs xml"><span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute" >id</span>=<span class="hljs-value" >"cbp-vm"</span> <span class="hljs-attribute" >class</span>=<span class="hljs-value" >"cbp-vm-switcher cbp-vm-view-grid" </span>&gt;</span>Unchanged: <pre class="brush:html; gutter:false; hljs xml"><span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute" >id</span>=<span class="hljs-value" >"cbp-vm"</span> <span class="hljs-attribute" >class</span>=<span class="hljs-value" >"cbp-vm-switcher cbp-vm-view-grid" </span>&gt;</span>
Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute" >class</span>=<span class="hljs-value" >"cbp-vm-options" </span>&gt;</span>Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute" >class</span>=<span class="hljs-value" >"cbp-vm-options" </span>&gt;</span>
Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute" >href</span>=<span class="hljs-value">"#"</span> <span class="hljs-attribute" >class</span>=<span class="hljs-value" >"cbp-vm-icon cbp-vm-grid cbp-vm-selected"</span> <span class="hljs-attribute" >data-view</span>=<span class="hljs-value" >"cbp-vm-view- grid"</span> &gt;</span>Grid View<span class="hljs-tag">&lt;/<span class="hljs-title" >a</span>&gt;</span>Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute" >href</span>=<span class="hljs-value">"#"</span> <span class="hljs-attribute" >class</span>=<span class="hljs-value" >"cbp-vm-icon cbp-vm-grid cbp-vm-selected"</span> <span class="hljs-attribute" >data-view</span>=<span class="hljs-value" >"cbp-vm-view- grid"</span> &gt;</span>Grid View<span class="hljs-tag">&lt;/<span class="hljs-title" >a</span>&gt;</span>
Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute" >href</span>=<span class="hljs-value">"#"</span> <span class="hljs-attribute" >class</span>=<span class="hljs-value" >"cbp-vm-icon cbp-vm-list"</span> <span class="hljs-attribute" >data-view</span>=<span class="hljs-value" >"cbp-vm-view- list"</span> &gt;</span>List View<span class="hljs-tag">&lt;/<span class="hljs-title" >a</span>&gt;</span>Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute" >href</span>=<span class="hljs-value">"#"</span> <span class="hljs-attribute" >class</span>=<span class="hljs-value" >"cbp-vm-icon cbp-vm-list"</span> <span class="hljs-attribute" >data-view</span>=<span class="hljs-value" >"cbp-vm-view- list"</span> &gt;</span>List View<span class="hljs-tag">&lt;/<span class="hljs-title" >a</span>&gt;</span>
Unchanged: <span class="hljs-tag">&lt;/<span class="hljs-title" >div</span>&gt;</span>Unchanged: <span class="hljs-tag">&lt;/<span class="hljs-title" >div</span>&gt;</span>
Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title" >ul</span>&gt;</span>Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title" >ul</span>&gt;</span>
Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title" >li</span>&gt;</span>Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title" >li</span>&gt;</span>
Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute" >class</span>=<span class="hljs-value" >"cbp-vm-image"</span> <span class="hljs-attribute" >href</span>=<span class="hljs-value" >"#"</span>&gt; </span><span class="hljs-tag">&lt;<span class="hljs-title">img</span> <span class="hljs-attribute" >src</span>=<span class="hljs-value" >"images/1.png"</span>&gt; </span><span class="hljs-tag">&lt;/<span class="hljs-title" >a</span>&gt;</span>Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute" >class</span>=<span class="hljs-value" >"cbp-vm-image"</span> <span class="hljs-attribute" >href</span>=<span class="hljs-value" >"#"</span>&gt; </span><span class="hljs-tag">&lt;<span class="hljs-title">img</span> <span class="hljs-attribute" >src</span>=<span class="hljs-value" >"images/1.png"</span>&gt; </span><span class="hljs-tag">&lt;/<span class="hljs-title" >a</span>&gt;</span>
Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title">h3</span> <span class="hljs-attribute" >class</span>=<span class="hljs-value" >"cbp-vm-title"</span>&gt; </span>Silver beet<span class="hljs-tag">&lt;/<span class="hljs-title" >h3</span>&gt;</span>Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title">h3</span> <span class="hljs-attribute" >class</span>=<span class="hljs-value" >"cbp-vm-title"</span>&gt; </span>Silver beet<span class="hljs-tag">&lt;/<span class="hljs-title" >h3</span>&gt;</span>
Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute" >class</span>=<span class="hljs-value" >"cbp-vm-price"</span>&gt; </span>$19.90<span class="hljs-tag">&lt;/<span class="hljs-title" >div</span>&gt;</span>Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute" >class</span>=<span class="hljs-value" >"cbp-vm-price"</span>&gt; </span>$19.90<span class="hljs-tag">&lt;/<span class="hljs-title" >div</span>&gt;</span>
Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute" >class</span>=<span class="hljs-value" >"cbp-vm-details" </span>&gt;</span>Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title">div</span> <span class="hljs-attribute" >class</span>=<span class="hljs-value" >"cbp-vm-details" </span>&gt;</span>
Unchanged: Silver beet shallot wakame tomatillo salsify mung bean beetroot groundnut.Unchanged: Silver beet shallot wakame tomatillo salsify mung bean beetroot groundnut.
Unchanged: <span class="hljs-tag">&lt;/<span class="hljs-title" >div</span>&gt;</span>Unchanged: <span class="hljs-tag">&lt;/<span class="hljs-title" >div</span>&gt;</span>
Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute" >class</span>=<span class="hljs-value" >"cbp-vm-icon cbp-vm-add"</span> <span class="hljs-attribute" >href</span>=<span class="hljs-value" >"#"</span>&gt;</span>Add to cart<span class="hljs-tag">&lt;/<span class="hljs-title" >a</span>&gt;</span>Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title">a</span> <span class="hljs-attribute" >class</span>=<span class="hljs-value" >"cbp-vm-icon cbp-vm-add"</span> <span class="hljs-attribute" >href</span>=<span class="hljs-value" >"#"</span>&gt;</span>Add to cart<span class="hljs-tag">&lt;/<span class="hljs-title" >a</span>&gt;</span>
Unchanged: <span class="hljs-tag">&lt;/<span class="hljs-title" >li</span>&gt;</span>Unchanged: <span class="hljs-tag">&lt;/<span class="hljs-title" >li</span>&gt;</span>
Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title" >li</span>&gt;</span>Unchanged: <span class="hljs-tag">&lt;<span class="hljs-title" >li</span>&gt;</span>
Unchanged: <span class="hljs-comment">&lt;!-- ... --&gt;</span>Unchanged: <span class="hljs-comment">&lt;!-- ... --&gt;</span>
Unchanged: <span class="hljs-tag">&lt;/<span class="hljs-title" >li</span>&gt;</span>Unchanged: <span class="hljs-tag">&lt;/<span class="hljs-title" >li</span>&gt;</span>
Unchanged: <span class="hljs-comment">&lt;!-- ... --&gt;</span>Unchanged: <span class="hljs-comment">&lt;!-- ... --&gt;</span>
Unchanged: <span class="hljs-tag">&lt;/<span class="hljs-title" >ul</span>&gt;</span>Unchanged: <span class="hljs-tag">&lt;/<span class="hljs-title" >ul</span>&gt;</span>
Unchanged: <span class="hljs-tag">&lt;/<span class="hljs-title" >div</span>&gt;</span>Unchanged: <span class="hljs-tag">&lt;/<span class="hljs-title" >div</span>&gt;</span>
Unchanged: </pre>Unchanged: </pre>
Unchanged: <h3>The CSS</h3>Unchanged: <h3>The CSS</h3>
Unchanged: <pre class="brush:css; gutter:false hljs css"><span class="hljs-at_ rule">@<span class="hljs-keyword" >font-face</span></span> <span class="hljs-rules">{Unchanged: <pre class="brush:css; gutter:false hljs css"><span class="hljs-at_ rule">@<span class="hljs-keyword" >font-face</span></span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-family< /span>:<span class="hljs-value"> <span class="hljs-string" >'fontawesome'< /span></span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-family< /span>:<span class="hljs-value"> <span class="hljs-string" >'fontawesome'< /span></span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >src</span>:<span class="hljs-value"><span class="hljs-function" >url</span>(<span class="hljs-string" >'../fonts/fontawesome/ fontawesome.eot'< /span>)</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >src</span>:<span class="hljs-value"><span class="hljs-function" >url</span>(<span class="hljs-string" >'../fonts/fontawesome/ fontawesome.eot'< /span>)</span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >src</span>:<span class="hljs-value"><span class="hljs-function" >url</span>(<span class="hljs-string" >'../fonts/fontawesome/ fontawesome.eot?#iefix'</span>) <span class="hljs-function" >format</span>(<span class="hljs-string" >'embedded-opentype'</span>),Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >src</span>:<span class="hljs-value"><span class="hljs-function" >url</span>(<span class="hljs-string" >'../fonts/fontawesome/ fontawesome.eot?#iefix'</span>) <span class="hljs-function" >format</span>(<span class="hljs-string" >'embedded-opentype'</span>),
Unchanged: <span class="hljs-function" >url</span>(<span class="hljs-string" >'../fonts/fontawesome/ fontawesome.woff'</span>) <span class="hljs-function" >format</span>(<span class="hljs-string" >'woff'</span>),Unchanged: <span class="hljs-function" >url</span>(<span class="hljs-string" >'../fonts/fontawesome/ fontawesome.woff'</span>) <span class="hljs-function" >format</span>(<span class="hljs-string" >'woff'</span>),
Unchanged: <span class="hljs-function" >url</span>(<span class="hljs-string" >'../fonts/fontawesome/ fontawesome.ttf'</span>) <span class="hljs-function" >format</span>(<span class="hljs-string" >'truetype'</span>),Unchanged: <span class="hljs-function" >url</span>(<span class="hljs-string" >'../fonts/fontawesome/ fontawesome.ttf'</span>) <span class="hljs-function" >format</span>(<span class="hljs-string" >'truetype'</span>),
Unchanged: <span class="hljs-function" >url</span>(<span class="hljs-string" >'../fonts/fontawesome/ fontawesome.svg#fontawesome'</span>) <span class="hljs-function" >format</span>(<span class="hljs-string" >'svg'</span> )</span></span>;Unchanged: <span class="hljs-function" >url</span>(<span class="hljs-string" >'../fonts/fontawesome/ fontawesome.svg#fontawesome'</span>) <span class="hljs-function" >format</span>(<span class="hljs-string" >'svg'</span> )</span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-weight< /span>:<span class="hljs-value"> normal</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-weight< /span>:<span class="hljs-value"> normal</span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-style</span>:<span class="hljs-value"> normal</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-style</span>:<span class="hljs-value"> normal</span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-comment">/* Main container */</span>Unchanged: <span class="hljs-comment">/* Main container */</span>
Unchanged: <span class="hljs-class" >.cbp-vm-switcher</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-switcher</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >padding</span>:<span class="hljs-value"> <span class="hljs-number" >20px</span>< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >padding</span>:<span class="hljs-value"> <span class="hljs-number" >20px</span>< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >border</span>:<span class="hljs-value"> <span class="hljs-number">3px</span> solid <span class="hljs-hexcolor" >#47a3da</span> </span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >border</span>:<span class="hljs-value"> <span class="hljs-number">3px</span> solid <span class="hljs-hexcolor" >#47a3da</span> </span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-comment">/* options/select wrapper with switch anchors */</span>Unchanged: <span class="hljs-comment">/* options/select wrapper with switch anchors */</span>
Unchanged: <span class="hljs-class" >.cbp-vm-options</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-options</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >text-align</span>:<span class="hljs-value"> right</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >text-align</span>:<span class="hljs-value"> right</span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >padding-bottom< /span>:<span class="hljs-value"> <span class="hljs-number" >10px</span>< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >padding-bottom< /span>:<span class="hljs-value"> <span class="hljs-number" >10px</span>< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >border-bottom< /span>:<span class="hljs-value"> <span class="hljs-number">3px</span> solid <span class="hljs-hexcolor" >#47a3da</span> </span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >border-bottom< /span>:<span class="hljs-value"> <span class="hljs-number">3px</span> solid <span class="hljs-hexcolor" >#47a3da</span> </span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-options</span> <span class="hljs-tag">a</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-options</span> <span class="hljs-tag">a</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >display</span>:<span class="hljs-value"> inline-block< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >display</span>:<span class="hljs-value"> inline-block< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >40px</span>< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >40px</span>< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >height</span>:<span class="hljs-value"> <span class="hljs-number" >40px</span>< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >height</span>:<span class="hljs-value"> <span class="hljs-number" >40px</span>< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >overflow</span>:<span class="hljs-value"> hidden</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >overflow</span>:<span class="hljs-value"> hidden</span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >white-space< /span>:<span class="hljs-value"> nowrap</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >white-space< /span>:<span class="hljs-value"> nowrap</span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >color</span>:<span class="hljs-value"> <span class="hljs-hexcolor" >#d0d0d0</span> </span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >color</span>:<span class="hljs-value"> <span class="hljs-hexcolor" >#d0d0d0</span> </span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number" >2px</span></ span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number" >2px</span></ span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-options</span> <span class="hljs-tag" >a</span><span class="hljs-pseudo" >:hover</span>,Unchanged: <span class="hljs-class" >.cbp-vm-options</span> <span class="hljs-tag" >a</span><span class="hljs-pseudo" >:hover</span>,
Unchanged: <span class="hljs-class" >.cbp-vm-options</span> <span class="hljs-tag" >a</span><span class="hljs-class" >.cbp-vm-selected</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-options</span> <span class="hljs-tag" >a</span><span class="hljs-class" >.cbp-vm-selected</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >color</span>:<span class="hljs-value"> <span class="hljs-hexcolor" >#47a3da</span> </span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >color</span>:<span class="hljs-value"> <span class="hljs-hexcolor" >#47a3da</span> </span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-options</span> <span class="hljs-tag" >a</span><span class="hljs-pseudo" >:before</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-options</span> <span class="hljs-tag" >a</span><span class="hljs-pseudo" >:before</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >40px</span>< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >40px</span>< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >height</span>:<span class="hljs-value"> <span class="hljs-number" >40px</span>< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >height</span>:<span class="hljs-value"> <span class="hljs-number" >40px</span>< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >line-height< /span>:<span class="hljs-value"> <span class="hljs-number" >40px</span>< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >line-height< /span>:<span class="hljs-value"> <span class="hljs-number" >40px</span>< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-size</span>:<span class="hljs-value"> <span class="hljs-number" >30px</span>< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-size</span>:<span class="hljs-value"> <span class="hljs-number" >30px</span>< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >text-align</span>:<span class="hljs-value"> center</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >text-align</span>:<span class="hljs-value"> center</span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >display</span>:<span class="hljs-value"> inline-block< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >display</span>:<span class="hljs-value"> inline-block< /span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-comment">/* General style of switch items' list */</span>Unchanged: <span class="hljs-comment">/* General style of switch items' list */</span>
Unchanged: <span class="hljs-class" >.cbp-vm-switcher</span> <span class="hljs-tag">ul</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-switcher</span> <span class="hljs-tag">ul</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >list-style</span>:<span class="hljs-value"> none</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >list-style</span>:<span class="hljs-value"> none</span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >padding</span>:<span class="hljs-value"> <span class="hljs-number" >0</span></span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >padding</span>:<span class="hljs-value"> <span class="hljs-number" >0</span></span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number" >0</span></span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number" >0</span></span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-comment">/* Clear eventual floats */</span>Unchanged: <span class="hljs-comment">/* Clear eventual floats */</span>
Unchanged: <span class="hljs-class" >.cbp-vm-switcher</span> <span class="hljs-tag" >ul</span><span class="hljs-pseudo" >:before</span>, Unchanged: <span class="hljs-class" >.cbp-vm-switcher</span> <span class="hljs-tag" >ul</span><span class="hljs-pseudo" >:before</span>,
Unchanged: <span class="hljs-class" >.cbp-vm-switcher</span> <span class="hljs-tag" >ul</span><span class="hljs-pseudo" >:after</span> <span class="hljs-rules">{ Unchanged: <span class="hljs-class" >.cbp-vm-switcher</span> <span class="hljs-tag" >ul</span><span class="hljs-pseudo" >:after</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >content</span>:<span class="hljs-value"> <span class="hljs-string">" "</span></span></span>; Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >content</span>:<span class="hljs-value"> <span class="hljs-string">" "</span></span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >display</span>:<span class="hljs-value"> table</span></span>; Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >display</span>:<span class="hljs-value"> table</span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-switcher</span> <span class="hljs-tag" >ul</span><span class="hljs-pseudo" >:after</span> <span class="hljs-rules">{ Unchanged: <span class="hljs-class" >.cbp-vm-switcher</span> <span class="hljs-tag" >ul</span><span class="hljs-pseudo" >:after</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >clear</span>:<span class="hljs-value"> both</span></span>; Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >clear</span>:<span class="hljs-value"> both</span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-switcher</span> <span class="hljs-tag">ul</span> <span class="hljs-tag">li</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-switcher</span> <span class="hljs-tag">ul</span> <span class="hljs-tag">li</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >display</span>:<span class="hljs-value"> block</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >display</span>:<span class="hljs-value"> block</span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >position</span>:<span class="hljs-value"> relative</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >position</span>:<span class="hljs-value"> relative</span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-image</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-image</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >display</span>:<span class="hljs-value"> block</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >display</span>:<span class="hljs-value"> block</span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number">0</span> auto</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number">0</span> auto</span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-image</span> <span class="hljs-tag">img</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-image</span> <span class="hljs-tag">img</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >display</span>:<span class="hljs-value"> inline-block< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >display</span>:<span class="hljs-value"> inline-block< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >max-width</span>:<span class="hljs-value"> <span class="hljs-number" >100%</span>< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >max-width</span>:<span class="hljs-value"> <span class="hljs-number" >100%</span>< /span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-title</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-title</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number" >0</span></span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number" >0</span></span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >padding</span>:<span class="hljs-value"> <span class="hljs-number" >0</span></span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >padding</span>:<span class="hljs-value"> <span class="hljs-number" >0</span></span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-price</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-price</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >color</span>:<span class="hljs-value"> <span class="hljs-hexcolor" >#c0c0c0</span> </span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >color</span>:<span class="hljs-value"> <span class="hljs-hexcolor" >#c0c0c0</span> </span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-add</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-add</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >color</span>:<span class="hljs-value"> <span class="hljs-hexcolor" >#fff</span>< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >color</span>:<span class="hljs-value"> <span class="hljs-hexcolor" >#fff</span>< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >background</span>:<span class="hljs-value"> <span class="hljs-hexcolor" >#47a3da</span> </span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >background</span>:<span class="hljs-value"> <span class="hljs-hexcolor" >#47a3da</span> </span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >padding</span>:<span class="hljs-value"> <span class="hljs-number" >10px</span> <span class="hljs-number" >20px</span>< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >padding</span>:<span class="hljs-value"> <span class="hljs-number" >10px</span> <span class="hljs-number" >20px</span>< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >border-radius< /span>:<span class="hljs-value"> <span class="hljs-number" >2px</span></ span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >border-radius< /span>:<span class="hljs-value"> <span class="hljs-number" >2px</span></ span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number" >20px</span> <span class="hljs-number">0</span> <span class="hljs-number" >0</span></span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number" >20px</span> <span class="hljs-number">0</span> <span class="hljs-number" >0</span></span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >display</span>:<span class="hljs-value"> inline-block< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >display</span>:<span class="hljs-value"> inline-block< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >transition</span>:<span class="hljs-value"> background <span class="hljs-number" >0.2s</span>< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >transition</span>:<span class="hljs-value"> background <span class="hljs-number" >0.2s</span>< /span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-add</span><span class="hljs-pseudo" >:hover</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-add</span><span class="hljs-pseudo" >:hover</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >color</span>:<span class="hljs-value"> <span class="hljs-hexcolor" >#fff</span>< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >color</span>:<span class="hljs-value"> <span class="hljs-hexcolor" >#fff</span>< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >background</span>:<span class="hljs-value"> <span class="hljs-hexcolor" >#02639d</span> </span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >background</span>:<span class="hljs-value"> <span class="hljs-hexcolor" >#02639d</span> </span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-add</span><span class="hljs-pseudo" >:before</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-add</span><span class="hljs-pseudo" >:before</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin-right< /span>:<span class="hljs-value"> <span class="hljs-number" >5px</span></ span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin-right< /span>:<span class="hljs-value"> <span class="hljs-number" >5px</span></ span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-comment">/* Common icon styles */</span>Unchanged: <span class="hljs-comment">/* Common icon styles */</span>
Unchanged: <span class="hljs-class" >.cbp-vm-icon</span><span class="hljs-pseudo" >:before</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-icon</span><span class="hljs-pseudo" >:before</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-family< /span>:<span class="hljs-value"> <span class="hljs-string" >'fontawesome'< /span></span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-family< /span>:<span class="hljs-value"> <span class="hljs-string" >'fontawesome'< /span></span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >speak</span>:<span class="hljs-value"> none</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >speak</span>:<span class="hljs-value"> none</span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-style</span>:<span class="hljs-value"> normal</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-style</span>:<span class="hljs-value"> normal</span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-weight< /span>:<span class="hljs-value"> normal</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-weight< /span>:<span class="hljs-value"> normal</span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-variant< /span>:<span class="hljs-value"> normal</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-variant< /span>:<span class="hljs-value"> normal</span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >text-transform< /span>:<span class="hljs-value"> none</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >text-transform< /span>:<span class="hljs-value"> none</span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >line-height< /span>:<span class="hljs-value"> <span class="hljs-number" >1</span></span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >line-height< /span>:<span class="hljs-value"> <span class="hljs-number" >1</span></span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >-webkit-font- smoothing</span>:<span class="hljs-value"> antialiased</ span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >-webkit-font- smoothing</span>:<span class="hljs-value"> antialiased</ span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-grid</span><span class="hljs-pseudo" >:before</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-grid</span><span class="hljs-pseudo" >:before</span> <span class="hljs-rules">{
Deleted: <span class="hljs-rule"><span class="hljs-attribute" >content</span>:<span class="hljs-value"> <span class="hljs-string" >"\f00a"</span> </span></span>; Added: <span class="hljs-rule"><span class="hljs-attribute" >content</span>:<span class="hljs-value"> <span class="hljs-string" >"f00a"</span> </span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-list</span><span class="hljs-pseudo" >:before</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-list</span><span class="hljs-pseudo" >:before</span> <span class="hljs-rules">{
Deleted: <span class="hljs-rule"><span class="hljs-attribute" >content</span>:<span class="hljs-value"> <span class="hljs-string" >"\f00b"</span> </span></span>; Added: <span class="hljs-rule"><span class="hljs-attribute" >content</span>:<span class="hljs-value"> <span class="hljs-string" >"f00b"</span> </span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-add</span><span class="hljs-pseudo" >:before</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-add</span><span class="hljs-pseudo" >:before</span> <span class="hljs-rules">{
Deleted: <span class="hljs-rule"><span class="hljs-attribute" >content</span>:<span class="hljs-value"> <span class="hljs-string" >"\f055"</span> </span></span>; Added: <span class="hljs-rule"><span class="hljs-attribute" >content</span>:<span class="hljs-value"> <span class="hljs-string" >"f055"</span> </span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-comment">/* Individual view mode styles */</span>Unchanged: <span class="hljs-comment">/* Individual view mode styles */</span>
Unchanged: <span class="hljs-comment">/* Large grid view */</span>Unchanged: <span class="hljs-comment">/* Large grid view */</span>
Unchanged: <span class="hljs-class" >.cbp-vm-view-grid</span> <span class="hljs-tag">ul</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-view-grid</span> <span class="hljs-tag">ul</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >text-align</span>:<span class="hljs-value"> center</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >text-align</span>:<span class="hljs-value"> center</span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-view-grid</span> <span class="hljs-tag">ul</span> <span class="hljs-tag">li</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-view-grid</span> <span class="hljs-tag">ul</span> <span class="hljs-tag">li</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >33%</span></ span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >33%</span></ span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >text-align</span>:<span class="hljs-value"> center</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >text-align</span>:<span class="hljs-value"> center</span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >padding</span>:<span class="hljs-value"> <span class="hljs-number" >25px</span>< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >padding</span>:<span class="hljs-value"> <span class="hljs-number" >25px</span>< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number" >20px</span> <span class="hljs-number">0</span> <span class="hljs-number" >0</span></span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number" >20px</span> <span class="hljs-number">0</span> <span class="hljs-number" >0</span></span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >display</span>:<span class="hljs-value"> inline-block< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >display</span>:<span class="hljs-value"> inline-block< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >min-height</span>:<span class="hljs-value"> <span class="hljs-number" >420px</span> </span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >min-height</span>:<span class="hljs-value"> <span class="hljs-number" >420px</span> </span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >vertical-align< /span>:<span class="hljs-value"> top</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >vertical-align< /span>:<span class="hljs-value"> top</span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-view-grid</span> <span class="hljs-class" >.cbp-vm-title</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-view-grid</span> <span class="hljs-class" >.cbp-vm-title</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-size</span>:<span class="hljs-value"> <span class="hljs-number" >2em</span></ span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-size</span>:<span class="hljs-value"> <span class="hljs-number" >2em</span></ span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-view-grid</span> <span class="hljs-class" >.cbp-vm-details</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-view-grid</span> <span class="hljs-class" >.cbp-vm-details</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >max-width</span>:<span class="hljs-value"> <span class="hljs-number" >300px</span> </span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >max-width</span>:<span class="hljs-value"> <span class="hljs-number" >300px</span> </span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >min-height</span>:<span class="hljs-value"> <span class="hljs-number" >70px</span>< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >min-height</span>:<span class="hljs-value"> <span class="hljs-number" >70px</span>< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number">0</span> auto</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number">0</span> auto</span></span>;
Unchanged: <span class="hljs-rule" >}</span></span> Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-view-grid</span> <span class="hljs-class" >.cbp-vm-price</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-view-grid</span> <span class="hljs-class" >.cbp-vm-price</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number" >10px</span> <span class="hljs-number" >0</span></span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number" >10px</span> <span class="hljs-number" >0</span></span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-size</span>:<span class="hljs-value"> <span class="hljs-number" >1.5em</span> </span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-size</span>:<span class="hljs-value"> <span class="hljs-number" >1.5em</span> </span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-comment">/* List view */</span>Unchanged: <span class="hljs-comment">/* List view */</span>
Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-tag">li</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-tag">li</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >padding</span>:<span class="hljs-value"> <span class="hljs-number" >20px</span> <span class="hljs-number" >0</span></span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >padding</span>:<span class="hljs-value"> <span class="hljs-number" >20px</span> <span class="hljs-number" >0</span></span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >white-space< /span>:<span class="hljs-value"> nowrap</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >white-space< /span>:<span class="hljs-value"> nowrap</span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-image</span>,Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-image</span>,
Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-title</span>,Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-title</span>,
Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-details</span>,Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-details</span>,
Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-price</span>,Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-price</span>,
Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-add</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-add</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >display</span>:<span class="hljs-value"> inline-block< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >display</span>:<span class="hljs-value"> inline-block< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >vertical-align< /span>:<span class="hljs-value"> middle</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >vertical-align< /span>:<span class="hljs-value"> middle</span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-image</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-image</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >10%</span></ span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >10%</span></ span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-title</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-title</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-size</span>:<span class="hljs-value"> <span class="hljs-number" >1.3em</span> </span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-size</span>:<span class="hljs-value"> <span class="hljs-number" >1.3em</span> </span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >padding</span>:<span class="hljs-value"> <span class="hljs-number">0</span> <span class="hljs-number" >10px</span>< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >padding</span>:<span class="hljs-value"> <span class="hljs-number">0</span> <span class="hljs-number" >10px</span>< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >white-space< /span>:<span class="hljs-value"> normal</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >white-space< /span>:<span class="hljs-value"> normal</span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >23%</span></ span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >23%</span></ span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-price</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-price</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-size</span>:<span class="hljs-value"> <span class="hljs-number" >1.3em</span> </span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >font-size</span>:<span class="hljs-value"> <span class="hljs-number" >1.3em</span> </span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >10%</span></ span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >10%</span></ span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-details</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-details</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >40%</span></ span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >40%</span></ span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >padding</span>:<span class="hljs-value"> <span class="hljs-number">0</span> <span class="hljs-number" >15px</span>< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >padding</span>:<span class="hljs-value"> <span class="hljs-number">0</span> <span class="hljs-number" >15px</span>< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >overflow</span>:<span class="hljs-value"> hidden</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >overflow</span>:<span class="hljs-value"> hidden</span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >white-space< /span>:<span class="hljs-value"> normal</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >white-space< /span>:<span class="hljs-value"> normal</span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-add</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-add</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number" >0</span></span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number" >0</span></span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-at_ rule">@<span class="hljs-keyword" >media</span> screen and (max-width: <span class="hljs-number" >66.7em</span>) </span>{Unchanged: <span class="hljs-at_ rule">@<span class="hljs-keyword" >media</span> screen and (max-width: <span class="hljs-number" >66.7em</span>) </span>{
Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-details</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-details</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >30%</span></ span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >30%</span></ span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: } Unchanged: }
Unchanged: <span class="hljs-at_ rule">@<span class="hljs-keyword" >media</span> screen and (max-width: <span class="hljs-number" >57em</span>) </span>{Unchanged: <span class="hljs-at_ rule">@<span class="hljs-keyword" >media</span> screen and (max-width: <span class="hljs-number" >57em</span>) </span>{
Unchanged: <span class="hljs-class" >.cbp-vm-view-grid</span> <span class="hljs-tag">ul</span> <span class="hljs-tag">li</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-view-grid</span> <span class="hljs-tag">ul</span> <span class="hljs-tag">li</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >49%</span></ span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >49%</span></ span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: }Unchanged: }
Unchanged: <span class="hljs-at_ rule">@<span class="hljs-keyword" >media</span> screen and (max-width: <span class="hljs-number" >47.375em</span>) </span>{Unchanged: <span class="hljs-at_ rule">@<span class="hljs-keyword" >media</span> screen and (max-width: <span class="hljs-number" >47.375em</span>) </span>{
Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-image</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-image</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >20%</span></ span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >20%</span></ span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-title</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-title</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> auto</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> auto</span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-details</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-details</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >display</span>:<span class="hljs-value"> block</span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >display</span>:<span class="hljs-value"> block</span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >100%</span>< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >100%</span>< /span></span>;
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number" >10px</span> <span class="hljs-number" >0</span></span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number" >10px</span> <span class="hljs-number" >0</span></span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-add</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-view-list</span> <span class="hljs-class" >.cbp-vm-add</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number" >10px</span>< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >margin</span>:<span class="hljs-value"> <span class="hljs-number" >10px</span>< /span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: }Unchanged: }
Unchanged: <span class="hljs-at_ rule">@<span class="hljs-keyword" >media</span> screen and (max-width: <span class="hljs-number" >40.125em</span>) </span>{Unchanged: <span class="hljs-at_ rule">@<span class="hljs-keyword" >media</span> screen and (max-width: <span class="hljs-number" >40.125em</span>) </span>{
Unchanged: <span class="hljs-class" >.cbp-vm-view-grid</span> <span class="hljs-tag">ul</span> <span class="hljs-tag">li</span> <span class="hljs-rules">{Unchanged: <span class="hljs-class" >.cbp-vm-view-grid</span> <span class="hljs-tag">ul</span> <span class="hljs-tag">li</span> <span class="hljs-rules">{
Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >100%</span>< /span></span>;Unchanged: <span class="hljs-rule"><span class="hljs-attribute" >width</span>:<span class="hljs-value"> <span class="hljs-number" >100%</span>< /span></span>;
Unchanged: <span class="hljs-rule" >}</span></span>Unchanged: <span class="hljs-rule" >}</span></span>
Unchanged: }</pre>Unchanged: }</pre>
Unchanged: <div class="ct-ad- article-wrapper ct-ad-article- wrapper-in">Unchanged: <div class="ct-ad- article-wrapper ct-ad-article- wrapper-in">
Unchanged: <div class="ct-ad-article">Unchanged: <div class="ct-ad-article">
Unchanged: <div></div>Unchanged: <div></div>
Unchanged: </div>Unchanged: </div>
Unchanged: </div>Unchanged: </div>
Unchanged: <h3>The JavaScript</h3>Unchanged: <h3>The JavaScript</h3>
Unchanged: <pre class="brush:js; gutter:false hljs javascript"><span class="hljs-comment">/**Unchanged: <pre class="brush:js; gutter:false hljs javascript"><span class="hljs-comment">/**
Unchanged: * cbpViewModeSwitch.js v1.0.0Unchanged: * cbpViewModeSwitch.js v1.0.0
Unchanged: * http://www.codrops.comUnchanged: * http://www.codrops.com
Unchanged: *Unchanged: *
Unchanged: * Licensed under the MIT license.Unchanged: * Licensed under the MIT license.
Unchanged: * http://www.opensource.org/ licenses/mit-license.phpUnchanged: * http://www.opensource.org/ licenses/mit-license.php
Unchanged: * Unchanged: *
Unchanged: * Copyright 2013, CodropsUnchanged: * Copyright 2013, Codrops
Unchanged: * http://www.codrops.comUnchanged: * http://www.codrops.com
Unchanged: */</span>Unchanged: */</span>
Unchanged: (<span class="hljs-function"><span class="hljs-keyword" >function</span><span class="hljs-params">()</span> </span>{Unchanged: (<span class="hljs-function"><span class="hljs-keyword" >function</span><span class="hljs-params">()</span> </span>{
Unchanged: <span class="hljs-keyword">var</span> container = <span class="hljs-built_ in">document< /span>.getElementById( <span class="hljs-string" >'cbp-vm'</span> ),Unchanged: <span class="hljs-keyword">var</span> container = <span class="hljs-built_ in">document< /span>.getElementById( <span class="hljs-string" >'cbp-vm'</span> ),
Unchanged: optionSwitch = <span class="hljs-built_ in">Array</span> .prototype.slice.call( container.querySelectorAll( <span class="hljs-string" >'div.cbp-vm-options &gt; a'</span> ) );Unchanged: optionSwitch = <span class="hljs-built_ in">Array</span> .prototype.slice.call( container.querySelectorAll( <span class="hljs-string" >'div.cbp-vm-options &gt; a'</span> ) );
Unchanged: <span class="hljs-function"><span class="hljs-keyword" >function</span> <span class="hljs-title" >init</span><span class="hljs-params">()</span> </span>{Unchanged: <span class="hljs-function"><span class="hljs-keyword" >function</span> <span class="hljs-title" >init</span><span class="hljs-params">()</span> </span>{
Unchanged: optionSwitch.forEach( <span class="hljs-function"><span class="hljs-keyword" >function</span><span class="hljs-params">( el, i )</span> </span>{Unchanged: optionSwitch.forEach( <span class="hljs-function"><span class="hljs-keyword" >function</span><span class="hljs-params">( el, i )</span> </span>{
Unchanged: el.addEventListener( <span class="hljs-string" >'click'</span>, <span class="hljs-function"><span class="hljs-keyword" >function</span><span class="hljs-params">( ev )</span> </span>{Unchanged: el.addEventListener( <span class="hljs-string" >'click'</span>, <span class="hljs-function"><span class="hljs-keyword" >function</span><span class="hljs-params">( ev )</span> </span>{
Unchanged: ev.preventDefault();Unchanged: ev.preventDefault();
Unchanged: _switch( <span class="hljs-keyword" >this</span> );Unchanged: _switch( <span class="hljs-keyword" >this</span> );
Unchanged: }, <span class="hljs-literal" >false</span> );Unchanged: }, <span class="hljs-literal" >false</span> );
Unchanged: } );Unchanged: } );
Unchanged: }Unchanged: }
Unchanged: <span class="hljs-function"><span class="hljs-keyword" >function</span> <span class="hljs-title" >_switch</span><span class="hljs-params">( opt )</span> </span>{Unchanged: <span class="hljs-function"><span class="hljs-keyword" >function</span> <span class="hljs-title" >_switch</span><span class="hljs-params">( opt )</span> </span>{
Unchanged: <span class="hljs-comment">// remove other view classes and any any selected option</span>Unchanged: <span class="hljs-comment">// remove other view classes and any any selected option</span>
Unchanged: optionSwitch.forEach(<span class="hljs-function"><span class="hljs-keyword" >function</span><span class="hljs-params" >(el)</span> </span>{ Unchanged: optionSwitch.forEach(<span class="hljs-function"><span class="hljs-keyword" >function</span><span class="hljs-params" >(el)</span> </span>{
Unchanged: classie.remove( container, el.getAttribute( <span class="hljs-string" >'data-view'</span> ) );Unchanged: classie.remove( container, el.getAttribute( <span class="hljs-string" >'data-view'</span> ) );
Unchanged: classie.remove( el, <span class="hljs-string" >'cbp-vm-selected'</span> );Unchanged: classie.remove( el, <span class="hljs-string" >'cbp-vm-selected'</span> );
Unchanged: });Unchanged: });
Unchanged: <span class="hljs-comment">// add the view class for this option</span>Unchanged: <span class="hljs-comment">// add the view class for this option</span>
Unchanged: classie.add( container, opt.getAttribute( <span class="hljs-string" >'data-view'</span> ) );Unchanged: classie.add( container, opt.getAttribute( <span class="hljs-string" >'data-view'</span> ) );
Unchanged: <span class="hljs-comment">// this option stays selected</span>Unchanged: <span class="hljs-comment">// this option stays selected</span>
Unchanged: classie.add( opt, <span class="hljs-string" >'cbp-vm-selected'</span> );Unchanged: classie.add( opt, <span class="hljs-string" >'cbp-vm-selected'</span> );
Unchanged: }Unchanged: }
Unchanged: init();Unchanged: init();
Unchanged: })();Unchanged: })();
Unchanged: </pre>Unchanged: </pre>
Unchanged: <div class="ct-github-link"><a href="https:/ /github.com/codrops/ ViewModeSwitch">Find this project on Github</a></div>Unchanged: <div class="ct-github-link"><a href="https:/ /github.com/codrops/ ViewModeSwitch">Find this project on Github</a></div>
Unchanged: &nbsp;Unchanged: &nbsp;

Note: Spaces may be added to comparison text to allow better line wrapping.

Tags:

No comments yet.

Leave a Reply