Skip to content

Instantly share code, notes, and snippets.

@jpdevries
jpdevries / gist:b7a2a88a91f00d7c13e5
Last active August 29, 2015 14:12
simple MODX installation
cd /www/modx/ #your webroot
wget http://modx.s3.amazonaws.com/releases/2.3.2/modx-2.3.2-pl-advanced.zip
unzip modx-2.3.2-pl-advanced.zip
# you'll have a core and setup folder. hit the /setup in a web browser and complete the setup process
@jpdevries
jpdevries / SassMeister-input.scss
Created February 20, 2015 02:21
Generated by SassMeister.com.
// ----
// libsass (v3.1.0)
// ----
@import "bourbon/bourbon";
.dashbox {
@include display(flex); // be a flex container
@include flex-direction(row); // lay children out horizontally
@include flex-wrap(wrap); // allow wrapping
@jpdevries
jpdevries / SassMeister-input.scss
Created February 20, 2015 04:25
Generated by SassMeister.com.
// ----
// libsass (v3.1.0)
// ----
$white:rgb(250,250,250);
.my-component {
background:lighten(purple,30%);
color:purple;
body.inverted & { // when in invert mode accommodate with high contrast
@jpdevries
jpdevries / SassMeister-input.scss
Created February 20, 2015 04:28
Generated by SassMeister.com.
// ----
// libsass (v3.1.0)
// ----
@import "bourbon/bourbon";
@import "neat/neat";
$mobile: max-width 640px 4;
p {
@jpdevries
jpdevries / SassMeister-input.scss
Created February 20, 2015 16:34
Generated by SassMeister.com.
// ----
// libsass (v3.1.0)
// ----
@import "bourbon/bourbon";
@import "neat/neat";
.focus {
@include outer-container(); // default 12column grid
.primary {
@jpdevries
jpdevries / SassMeister-input.scss
Created February 20, 2015 16:40
Generated by SassMeister.com.
// ----
// libsass (v3.1.0)
// ----
%legible {
max-width:42em; /* don't let lines get too wide */
line-height:1.6em; /* keep things legible */
}
// the below selectors will be combined in CSS
@jpdevries
jpdevries / gist:e258b059edf6c4ed95c9
Created February 26, 2015 01:00
Safari Speech Synthesis Bug?
/*
it seems like Safari should know to do this itself
I am not sure if speechSynthesis instances are supposed persist navagitaion changes
*/
$(window).bind('beforeunload', function(){
try { window.speechSynthesis.cancel(); } catch (e) {}
});
@jpdevries
jpdevries / esc.chunk.html
Last active August 29, 2015 14:16
Escape MODX Parser with this Chunk
[[+input:notempty=`[[[[+input]]]]`]]
@jpdevries
jpdevries / settings-table.html
Created March 8, 2015 03:37
Example Markup for creating an Accessible Settings Table
<table class="settings-table">
<thead>
<tr>
<th><code>Settings</code></th>
<th><code>Value</code></th>
</tr>
</thead>
<tbody>
<!-- each setting consists of two rows -->
<!-- setting 1 -->
@jpdevries
jpdevries / SassMeister-input.scss
Created March 8, 2015 04:57
Generated by SassMeister.com.
// ----
// Sass (v3.4.12)
// Compass (v1.0.3)
// ----
html.js {
.js-hide {
display:none;
}
}