The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
--current time in seconds since midnight | |
set currentTime to (time of (current date)) | |
## Morning | |
-- (04:00 - 10:30) | |
set morning to 37800 | |
set morningVolume to 80 | |
-- Happy: Wake Up in a Good Mood | |
set morningTrack to "spotify:user:116779154:playlist:5sYrf2RnhPY22meUSS5fUu" |
Created to allow teams to easily use the superior rem unit of measurement without losing time in translation between px and rem or force Design teams to learn rems.
Credit for the calculation (round($val) / $base;) goes to Edward Irby(https://github.com/EdwardIrby/ephemeralXYZ/blob/master/app/src/utils/_util.scss)
Thanks to Offroad Code for the original REM calculator I used which inspired me to create this. https://offroadcode.com/prototypes/rem-calculator/
// In terminal type these commands in this order | |
// command 1 // | |
sudo rm -rf /usr/local/bin/subl | |
// command 2 // | |
sudo ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin | |
// then run.. | |
subl . |
// Creates a background that appears to be split diagonally through the middle by two colors. | |
// THIS REPLACES COMPASS'S BUILT IN GRADIENT INCLUDE | |
// COMPASS IS NOT FULLY CROSS-BROWSER | |
// This is built off of the format from http://www.colorzilla.com/gradient-editor/ | |
@mixin diagonal-gradient($color1, $color2, $color1-hover, $color2-hover){ | |
///* Old browsers - Fallback to flat color */ | |
background: $color1; | |
///* FF3.6+ */ |
@mixin setFlexBox($flexType){ | |
//options are block level or inline | |
@if $flexType == 'block'{ | |
display: -webkit-box; | |
display: -moz-box; | |
display: box; | |
display: -ms-flexbox; | |
display: flexbox; | |
display: -webkit-flex; | |
display: flex; |
background: url(/img/acceldom.jpg) 10px 10px no-repeat; | |
background: | |
url(/img/acceldom.jpg) 10px 10px no-repeat, | |
-webkit-gradient(linear, 0 0, 0 100%, from(#EEF), to(#000)) 300px 50px no-repeat, | |
-webkit-gradient(linear, 0 0, 0 100%, from(#EFE), to(#000)) 0 0 no-repeat; | |
background: | |
url(/img/acceldom.jpg) 10px 10px no-repeat, | |
-moz-linear-gradient(#EEF, rgba(0,0,0,1)) 300px 50px no-repeat, | |
-moz-linear-gradient(#EFE, rgba(0,0,0,1)) 0 0 no-repeat; |
Reference: | |
Created by Redo The Web | |
http://redotheweb.com/2013/05/15/client-side-full-text-search-in-css.html |