Skip to content

Instantly share code, notes, and snippets.

View a-barbieri's full-sized avatar
💭
🐎 of course a horse

Alessandro a-barbieri

💭
🐎 of course a horse
View GitHub Profile
@a-barbieri
a-barbieri / css-sort-order.txt
Created September 13, 2017 08:20
CSS sort order
"font",
"font-family",
"font-size",
"font-weight",
"font-style",
"font-variant",
"font-size-adjust",
"font-stretch",
"font-effect",
@a-barbieri
a-barbieri / videos_helper.rb
Last active July 6, 2023 08:21
Rails helper to embed YouTube and Vimeo iframe in view
# Helpers for better embedding and manipulation of videos
# Place this code in app/helpers/videos_helper.rb
# Then from any view you can add:
#
# <%= get_video_iframe('http://the.video.url') %>
#
# Optionally you can add width and height.
#
# <%= get_video_iframe('http://the.video.url', '1600px', '900px') %>
#
/**
* Susy
* Configuration
*/
$S: (
columns: 2,
gutters: 1/20,
math: fluid,
output: float,
//------------------------------
// PARAMETERS, VARIABLES AND FUNCTIONS
// MEDIA QUERIES
$tablet: 640px;
$desktop: 960px;
// COLORS
@a-barbieri
a-barbieri / font.scss
Last active December 5, 2016 14:45
Default font styles
// ADOBE BLANK
// http://blog.typekit.com/2013/03/28/introducing-adobe-blank/
// https://github.com/adobe-fonts/adobe-blank
@font-face {
font-family: AdobeBlank;
src: url('../../assets/fonts/AdobeBlank.eot'); /* IE9 Compat Modes */
src: url('../../assets/fonts/AdobeBlank.ttf.woff') format('woff'), /* Pretty Modern Browsers */
url('../../assets/fonts/AdobeBlank.ttf') format('truetype'), /* Safari, Android, iOS */
}
.hide-text {