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.tmd-block.group>article.title-media-desc*6>(h3.title>a[href="#$"]{Title $})+(div.media>a[href="#$"]>img[src="/images/temp.jpg" alt=""])+(div.desc>p{Lorem ipsum dolor sit amet, consectetuer adipiscing elit.}) |
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="tmd-block tmd-block-about group"> | |
<article class="title-media-desc"> | |
<h3 class="title"><a href="#1">Title 1</a></h3> | |
<div class="media"><a href="#1"><img src="/images/temp.jpg" alt=""></a></div> | |
<div class="desc"> | |
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p> | |
<p class="cta"><a href="#">Find out more</a></p> | |
</div> | |
</article> | |
<article class="title-media-desc"> |
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
@mixin respond-min($width, $fix-mqs: $fix-mqs) { | |
// If we're outputting for a fixed media query set... | |
@if $fix-mqs { | |
// ...and if we should apply these rules... | |
@if $fix-mqs >= $width { | |
// ...output the content the user gave us. | |
@content; | |
} | |
} | |
@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
html { -webkit-text-size-adjust: none; /* Prevent font scaling in landscape */ } |
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
## using the includes and setting the var | |
{% assign themetitle = 'text text' %} | |
{% include modules/theme_title.html %} | |
{% assign themetitle = 'new title text' %} | |
{% include modules/theme_title.html %} | |
## contents of theme_title.html |
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
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/.rvm/bin/subl |
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
{% include modules/module.html title="mixture" description="New kid on the block" imgPath="screenshots/mixture.jpg" ctaURL="http://mixture.io" %} | |
{% include modules/module.html title="jekyll" description="the old hand" imgPath="screenshots/jekylljpg" ctaURL="https://github.com/mojombo/jekyll/" %} | |
contents of module.html | |
<h1>{{ title }}</h1> | |
<p><img src="{{ imgPath }}" /></p> | |
<p>{{ description }}</p> | |
<p><a href="{{ ctaURL }}">Official site</a></p> |
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
# CREATE NEW MPP MODULE | |
desc 'New module' | |
task :newmodule do | |
if mac? | |
moduleName = ENV["name"] | |
if moduleName.nil? || moduleName == 0 | |
puts "\nMPP ERROR NOTE: You need to give a module name. e.g. 'rake name=test newmodule'\n" | |
else | |
touch "_assets/css/modules/#{moduleName}.scss" | |
touch "_includes/modules/#{moduleName}.html" |
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
<div class="<%= module_class %><% if modifiers %><% for item in modifiers %><%= " " + module_class + "--" + item %><% end %><% end %>"> | |
<%= lorem.paragraph %> | |
</div> |
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
// rem font and line-height mixin. Accepts a font-size, line-height and ratio numeric (without unit, "14" - not "14px") | |
// the line height defaults to the passed font-size and the ratio defaults to 1.5 (150%) | |
// as the body is 62.5% we can use base10 to determin the REM value and just append px for the pixel fallback | |
@mixin font-size($size: 14, $line: $size, $ratio: 1.5){ | |
// size variables | |
$remValueFontSize: ($size / 10) + rem; | |
$remValueLine: ($line / 10) * $ratio + rem; | |
$pxValueFontSize: floor($size) + px; | |
$pxValueLine: floor($size * $ratio) + px; |
OlderNewer