Skip to content

Instantly share code, notes, and snippets.

View adilsonfsantos's full-sized avatar

Adilson Santos adilsonfsantos

View GitHub Profile
autoload.lua
easycrop.lua
quick-scale.lua
webm.lua
@adilsonfsantos
adilsonfsantos / colors.ini
Last active July 25, 2022 07:54
Token colors from Jean-Tinland/vscode-theme-night-shift
foreground #ffffff
background #1b222d
selection_foreground #ffffff
selection_background #98a8c5
cursor #ffd484
cursor_text_color #282A36
# black
color0 #1b222d
color8 #39465e
@adilsonfsantos
adilsonfsantos / breakpoints-map.scss
Last active January 9, 2020 20:40
Sass mixin for responsive Material Design breakpoints with grid
// Base size for margins
$base-size: 16px;
// Breakpoints map https://material.io/design/layout/responsive-layout-grid.html#breakpoints
$grid-breakpoints-map: (
xs-small: (
width: 360px,
column: 4,
margin: $base-size
),
@adilsonfsantos
adilsonfsantos / elevation.scss
Last active January 9, 2020 15:51
Sass mixin for easy Material Design elevation
// Elevation map https://material.io/design/environment/elevation.html#default-elevations
// Overlay map https://material.io/design/color/dark-theme.html#properties
// TO DO add all values from the material design guidelines
$elevation-map: (
body: (
elevation: 0dp,
overlay: 0%
),
header: (
elevation: 4dp,
@adilsonfsantos
adilsonfsantos / Skeleton.scss
Last active February 8, 2020 06:12
Skeleton loading mixin
//easy animation control
@mixin animation($name, $duration, $timing, $loop) {
animation: $name $duration $timing $loop;
}
//simple aspect ratio
@mixin aspect-ratio($width, $height) {
padding-top: ($height / $width) * 100%;
}
@adilsonfsantos
adilsonfsantos / zoomImage.css
Created December 29, 2019 03:49
Pure JS/CSS image zoom on click
picture {
cursor: zoom-in;
height: 0;
max-height: 1250px;
max-width: 1400px;
padding-top: 50%;
position: relative;
width: 100%;
&::before {
@adilsonfsantos
adilsonfsantos / tag.html
Created December 20, 2019 17:40
Easy post tags in Jekyll
<p class="tag">{{ post.tags | join: ', ' }}</p>
<!-- For loop -->
{% for tag in post.tags %}
<li class="tag">{{ tag }}</li>
{% endfor %}
@adilsonfsantos
adilsonfsantos / nav.html
Created July 23, 2019 00:51
Snippet navigation in jekyll
{%- for item in site.data.nav.pages -%}
<li class="{% if item.url == page.url %}active{% endif %}"><a href="{{ item.url }}">{{ item.title }}</a></li>
{%- endfor -%}