Skip to content

Instantly share code, notes, and snippets.

Avatar

Kenold Beauplan kenold

View GitHub Profile
View desirdesigns-custom.css
/* Ken's custom's CSS - Questions? flexwebagency@gmail.com */
/* remove horizontal scroll */
body {
overflow-x: hidden;
}
/* custom classes */
.d-block {
display: block!important;
@kenold
kenold / font-line-height-mixin.scss
Last active Oct 23, 2019
Font sizing & line height mixin
View font-line-height-mixin.scss
@mixin font-size($sizeValue: 16, $line: $sizeValue * 1.5) {
font-size: ($sizeValue) + px;
line-height: ($line) + px;
font-size: ($sizeValue / 16) + rem;
line-height: ($line / 16) + rem;
}
// credit https://coderwall.com/p/ml9zxg/sass-mixin-for-rem-font-sizing-line-height-with-px-fallback
@kenold
kenold / package.json
Created Oct 17, 2019
Node Sass Starter
View package.json
{
"name": "site-name",
"version": "1.0.0",
"description": "Site Description",
"main": "index.js",
"scripts": {
"watch:sass": "node-sass sass/main.scss css/style.css -w",
"devserver": "live-server",
"start": "npm-run-all --parallel devserver watch:sass",
"compile:sass": "node-sass sass/main.scss css/style.comp.css",
@kenold
kenold / bulma-nav.css
Created Oct 16, 2019
Bulma menu animation - needs improvement
View bulma-nav.css
.navbar-menu {
display: block;
opacity: 0;
position: absolute; /* or float: left; width: 100%;*/
left: 0;
right: 0;
transform: translateY(-50%);
transition: all .4s ease-in-out;
@kenold
kenold / blog-card.html
Last active Sep 24, 2019
CSS Blog Card
View blog-card.html
<div class="card">
<a href="#">
<figure class="card__media">
<img src="image.jpg" alt="" class="card__image">
</figure>
<div class="card__body">
<div class="card__category">Blog</div>
<div class="card__title">Card Title</div>
</div>
<div class="card__footer">
View Jquery Text Anim
<!DOCTYPE html>
<html>
<head>
<title>Text Anim</title>
<style type="text/css">
#word {
background: yellow;
width: 200px;
}
</style>
@kenold
kenold / handlebars.helpers.ifEquals.js
Created May 16, 2018 — forked from niksumeiko/handlebars.helpers.ifEquals.js
Handlebars.js templates engine custom IF condition helper. Allows to compare values one to each other like you are used to in programming.
View handlebars.helpers.ifEquals.js
// Compares first value to the second one allowing entering IF clouse if true.
// Otherwise entering ELSE clause if exist.
Handlebars.registerHelper('ifEquals', function(a, b, options) {
if (a === b) {
return options.fn(this);
}
return options.inverse(this);
});
@kenold
kenold / cloudSettings
Last active May 3, 2018
Visual Studio Code Settings Sync Gist
View cloudSettings
{"lastUpload":"2018-05-03T22:58:09.915Z","extensionVersion":"v2.9.2"}
@kenold
kenold / index.html
Last active Feb 11, 2017
Generate YAML Front Matter from Pocket JSON API in Hugo Static Site Generator
View index.html
<!-- created by Kenold Beauplan // Twitter @kenoldb -->
{{ $url := "/data/tutorials.json" }}
{{ $data := getJSON $url}}
<!-- "list-unstyled" is a Bootstrap calss that removes the bullet points -->
<ul class="list-unstyled">
{{ range $data.list }}
{{ $item := . }}
<li>---</li>
<li>title:
@kenold
kenold / index.html
Last active Feb 10, 2017
HTML todo list
View index.html
<body>
<h1>ToDo List</h1>
<ul>
<li>Go to the store</li>
<li>Clean the office</li>
<li>Wash the car</li>
<li>Backup files to cloud</li>
</ul>
</body>
You can’t perform that action at this time.