Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Casprine Assempah casprine

🏠
Working from home
Block or report user

Report or block casprine

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@casprine
casprine / grid
Last active Feb 1, 2019
A dead simple grid system
View grid
// grid system
.grid-base,
.grid-1,
.grid-2,
.grid-3,
.grid-4,
.grid-5,
.grid-6 {
display: -webkit-box;
display: -webkit-flex;
@casprine
casprine / gulp-css
Created Jun 3, 2018
Concatenate,auto-prefix and minify css files using gulp
View gulp-css
let
gulp = require('gulp'),
concat = require('gulp-concat-css'),
minify = require('gulp-clean-css'),
prefix = require('gulp-autoprefixer');
let path = {
src: './*.css',
dest: './done/'
}
@casprine
casprine / px to em(sass)
Created May 31, 2018
Sass mixins to convert px to em
View px to em(sass)
$base: 15;
@function em($pixels, $context: $base) {
@if (unitless($pixels)) {
$pixels: $pixels * 1px;
}
@if (unitless($context)) {
$context: $context * 1px;
}
You can’t perform that action at this time.