Skip to content

Instantly share code, notes, and snippets.

View mohsin's full-sized avatar

Saifur Rahman Mohsin mohsin

View GitHub Profile
@mohsin
mohsin / Sass version of PHP Implode
Created April 13, 2015 22:25
Sass version of PHP Implode
//
// Returns string after joining list elements with a glue string.
// Similar to PHP's implode function
//
@function implode($list, $glue: '', $is-nested: false)
$result: null
@for $i from 1 through length($list)
$e: nth($list, $i)
@mohsin
mohsin / Font Smoothing mixin
Created April 13, 2015 22:23
Font Smoothing mixin
//
// Font Smoothing mixin usage
// @include font-smoothing($value)
//
=font-smoothing($value: antialiased)
@if $value == antialiased
-webkit-font-smoothing: antialiased
-moz-osx-font-smoothing: grayscale
@else
@mohsin
mohsin / Font Face mixin usage
Created April 13, 2015 22:22
Font Face mixin usage
//
// Font Face mixin usage (https://github.com/perry/sass-font-face)
// @include font-face($style-name, $file, $family, $category)
// $style-name being the name of the font e.g. Helvetica
// $file meaning the file name, without the file extensions
// $family being the folder inside the fonts folder where the font files are
// $category is serif or sans-serif or monospace etc. as a fall back in CSS
//
=font-face($style-name, $file, $family, $category: "", $weight: "", $style: "")
@mohsin
mohsin / gist:f69ee7c97737cae8b3b1
Last active August 29, 2015 14:18
OctoberCMS Backend Light Theme
.layout #layout-mainmenu.navbar {
background-color: #FFF;
border-bottom: 1px solid #DDD;
}
.layout #layout-mainmenu.navbar ul li {
text-align: center;
padding: 0 15px;
margin-right: 3px;
}
nav#layout-mainmenu.navbar ul li.power-off a, nav#layout-mainmenu.navbar ul li.preview a {