⇐ back to the gist-blog at jrw.fi
Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.
I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.
This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso
- USB Overdrive
- A non-Apple keyboard with media keys (or keys you want to make "media" keys). For reference, I'm using a Microsoft Sidewinder X4
- Plug in your keyboard and install USB Overdrive.
- Open USB Overdrive. Click into the Settings tab.
- Click the dropdown and select "Any Keyboard, Any Application"
<?php | |
// ------------------------------ FORM Processing --------------------------------------- | |
$errors = null; | |
$success = false; | |
// helper function to format form errors | |
function showError($e){ | |
return "<p class='error'>$e</p>"; |
The only requirements for popup footnotes in iBooks are: | |
* Ebook has to be an EPUB3 | |
* epub:type "noteref" and "footnote" | |
So you can link to a totally separate document, as you normally would for endnotes, | |
but include the attributes so the <a> link behaves differently in iBooks, instead triggering the popup. | |
Original reference link would look something like this (in a file called ch001.html): | |
<a epub:type="noteref" href="footnote.html#note1">1</a></div> |
# --------------------------------------------------------------------------- | |
# | |
# Description: This file holds all my BASH configurations and aliases | |
# | |
# Sections: | |
# 1. Environment Configuration | |
# 2. Make Terminal Better (remapping defaults and adding functionality) | |
# 3. File and Folder Management | |
# 4. Searching | |
# 5. Process Management |
<?php | |
/** | |
* Plugin Name: Gulp Sitemap Generator | |
* Plugin URI: https://gladdy.uk/blog/2014/04/13/using-uncss-and-grunt-uncss-with-wordpress/ | |
* Description: Generate a JSON list of every page on a site so it can be used with Gulp and uncss. | |
* Author: Liam Gladdy | |
* Author URI: http://gladdy.co.uk | |
* Version: 1.0 | |
*/ |
{ | |
"name": "my_vendor_name/my_package", | |
"description": "My Package Description", | |
"license": "GPL-3.0", | |
"autoload": { | |
"classmap": [ // search these directories for classes | |
"lib/" | |
] | |
}, | |
"repositories": { |
Industry | ||
---|---|---|
Accounting | ||
Airlines/Aviation | ||
Alternative Dispute Resolution | ||
Alternative Medicine | ||
Animation | ||
Apparel/Fashion | ||
Architecture/Planning | ||
Arts/Crafts | ||
Automotive |
src
├── layouts
│ └── default.html
├── pages
│ └── index.html
├── data
│ └── i18n
│ ├── cn.json
│ └── template.html