Skip to content

Instantly share code, notes, and snippets.

View nternetinspired's full-sized avatar

Seth Warburton nternetinspired

View GitHub Profile
@nternetinspired
nternetinspired / SassMeister-input-HTML.html
Created May 5, 2015 13:26
Generated by SassMeister.com.
<div class="background">
<img class="center background-image" src="http://placehold.it/600x400">
</div>
@nternetinspired
nternetinspired / SassMeister-input-HTML.html
Last active August 29, 2015 14:20
Generated by SassMeister.com.
<div class="background">
<img class="center background-image" src="http://placehold.it/600x400">
</div>
@nternetinspired
nternetinspired / SassMeister-input-HTML.html
Last active August 29, 2015 14:20
Generated by SassMeister.com.
<div class="background">
<img class="center background-image" src="http://placehold.it/600x400">
</div>
@nternetinspired
nternetinspired / SassMeister-input-HTML.html
Created May 5, 2015 12:43
Generated by SassMeister.com.
<div class="hero">
<div class="hero-overlay center">Centred Content</div>
<div class="hero-image">
<img src="http://placehold.it/600x400">
</div>
</div>
@nternetinspired
nternetinspired / SassMeister-input-HTML.html
Created August 26, 2014 20:13
Generated by SassMeister.com.
<h1>Color swatches generated with Sass</h1>
<p>This demo includes only the styles needed to generate the colours, so you should be able to drop the markup and Sass/CSS into your project without conflict. Please note though, this isn't intended to be used in production environments <em>this is a development tool</em> to help you quickly find colours for your project.</em></p>
<h2>Complement colour</h2>
<p>The exact opposite of your base colour, useful for delivering contrast but needs to be used with care. <em>Never</em> set copy in your complement colour against a background of your base colour, or vice-versa.</em></p>
<div class="swatch swatch-complement">
<div class="clearfix">
<div class="color-item color-brand">
<div class="color-swatch"></div>
<div class="color-label">
<div class="color-value"></div>
@nternetinspired
nternetinspired / SassMeister-input-HTML.html
Created July 14, 2014 08:09
Generated by SassMeister.com.
<div class="center-me"></div>
@nternetinspired
nternetinspired / SassMeister-input-HTML.html
Created June 25, 2014 14:27
Generated by SassMeister.com.
<div class="media">
<img class="media-image" src="http://placehold.it/250x150" alt="" />
<div class="media-content">Drinking vinegar before they sold out Truffaut put a bird on it, Bushwick sustainable leggings organic mustache forage ennui YOLO kogi viral.</div>
</div>
<div class="media">
<img class="media-image" src="http://placehold.it/250x150" alt="" />
<div class="media-content">Echo Park forage kale chips beard artisan. Farm-to-table keytar gluten-free ennui, Carles fanny pack mlkshk. Drinking vinegar gentrify normcore lomo wolf yr. Chillwave Helvetica beard iPhone. </div>
</div>
@nternetinspired
nternetinspired / oneweb-sidebar.scss
Last active August 29, 2015 13:57
Position the sidebar in Oneweb
.main-row {
// Offset the content container as we're padding the grid items
.content {
@extend .grid-container;
padding-bottom: 0;
}
}
[role="main"] {
@extend .grid-item-padded;
The crux of this proposal is the removal of the initimate connection between Joomla's core and third-party libraries on which it relies, in order to provide independence and robustness to each, enabling greater flexibility and strength in Joomla. Hopefully the benefits are largely self-evident.
There are really only a couple of key components to this proposal which, while they may proving challenging to implemnent, should conceptually be easy to grasp;
1. PROTECT THE INTEGRITY OF THIRD-PARTY ASSETS
2. CONFINE VENDOR-SPECIFIC CODE TO VENDOR-SPECIFIC IMPLEMENTATIONS
______________________________________________
1. PROTECT THE INTEGRITY OF THIRD-PARTY ASSETS
There's little point in adopting a popular library, like Bootstrap or jQuery, if it is then adapted in-situ. It is, at that point, no longer the popular third-party library that was adopted, it is a derivative. The burden of maintaining, supporting and developing such derivatives then falls the to Joomla project and this is a burden that can ill be affor
@nternetinspired
nternetinspired / gist:7482445
Last active February 24, 2022 17:20
Load Disqus comments only on demand if you give a shit about page weight and your visitors. Even with no comments, i.e. an empty comment form, calling Disqus will load an extra 226Kb. If your page has comments this can be far higher. This Gist accompanies my blog post: http://internet-inspired.com/wrote/load-disqus-on-demand/
// Requires jQuery of course.
$(document).ready(function() {
$('.show-comments').on('click', function(){
var disqus_shortname = 'YOUR-DISQUS-USERNAME'; // Replace this value with *your* username.
// ajax request to load the disqus javascript
$.ajax({
type: "GET",
url: "http://" + disqus_shortname + ".disqus.com/embed.js",
dataType: "script",