A Pen by Hugo Giraudel on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<section class="bg--white h-corners product-details"> | |
<article itemscope itemtype="http://schema.org/Product"> | |
<div class="row h-nm"> | |
<div class="column whole"> | |
<mvt:if expr="NOT ISNULL l.settings:product:customfield_values:customfields:product_flags"> | |
<mvt:if expr="l.settings:product:customfield_values:customfields:product_flags EQ 'On Sale'"> | |
<mvt:assign name="l.settings:product:flagColor" value="'bg--red color--white'" /> | |
<mvt:elseif expr="l.settings:product:customfield_values:customfields:product_flags EQ 'New'"> | |
<mvt:assign name="l.settings:product:flagColor" value="'bg--green'" /> | |
<mvt:else> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.masonry-layout { | |
box-sizing: border-box; | |
-webkit-column-count: 1; | |
-moz-column-count: 1; | |
column-count: 1; | |
-webkit-column-gap: 0; | |
-moz-column-gap: 0; | |
column-gap: 0; | |
} | |
.masonry-layout * { |
JQuery + CSS code to make a simple rating widget based on Fontawesome. Nothing fancy but I don't want to figure out how to do it again.
Based on the example found here: http://css-tricks.com/star-ratings/ which unfortunately provides only CSS and no actual functionality.
See it on Plunker: https://plnkr.co/vptHYAnWHMbX2LfR6a02
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The basics, who you commit as: | |
[user] | |
name = John Doe | |
email = john@doe.org | |
# Your Github username | |
[github] | |
user = githubusername | |
# Some aliases to save 1000s keystrokes each year: | |
[alias] | |
log = log --color |
HTML form with responsive web design. Furthermore it's done with CSS Flexbox, so no floats are used at all. This form layout was inspired by another pen made by Chris Coyier: http://codepen.io/chriscoyier/pen/DmnlJ
A Pen by Torben Colding on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" /> | |
<link rel="stylesheet" href="main.css" /> | |
<title>ITCSS Grid Example</title> | |
</head> | |
<body> |
Here's some example code:
var myVar = function() {
// function body goes here...
return {
value: "something"
}
}();
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// -------------------------------------------------------------------------------------- | |
// A More Modern Scale for Web Typography | |
// Based on this article: http://typecast.com/blog/a-more-modern-scale-for-web-typography | |
// -------------------------------------------------------------------------------------- | |
$body-font-size: 1em !default; | |
// Adjusts body typography to be default | |
// for each browser. | |
@mixin reset-body-font-size($font-size: 100%, $size-adjustment: 0.5) { |