Skip to content

Instantly share code, notes, and snippets.

View julzmon's full-sized avatar
💭
Whasuuuup

Julian julzmon

💭
Whasuuuup
View GitHub Profile
@juukie
juukie / _bootstrap-sass-xl.scss
Last active August 7, 2018 08:33
Add xl step to bootstrap sass. Should be after bootstrap.scss.
/* Place this after bootstrap.scss */
$screen-xl: 1560px !default;
$screen-xl-min: $screen-xl !default;
$screen-xl-desktop: $screen-xl-min !default;
$screen-lg-max: ($screen-xl-min - 1) !default;
$container-xlarge-desktop: (1530px + $grid-gutter-width) !default;
$container-xl: $container-xlarge-desktop !default;
.container {
@paulirish
paulirish / what-forces-layout.md
Last active July 26, 2026 09:05
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@creinartz
creinartz / .stylelintrc.json
Last active June 15, 2017 15:02
trivago CSS build demo
{
"plugins": [
"stylelint-declaration-use-variable"
],
"rules": {
"color-hex-case": ["lower", {"severity": "warning"} ],
"color-hex-length": ["short", {"severity": "warning"} ],
"color-named": ["never", {"severity": "warning"} ],
"time-no-imperceptible": [true, {"severity": "warning"} ],
"max-nesting-depth": [5, {"severity": "warning"} ],
@tunguskha
tunguskha / Gradient shadow in pure CSS.md
Last active October 12, 2024 17:02
Gradient shadow in pure CSS

Gradient shadow in pure CSS

alt text

HTML
<button>Let's Go !</button>
@ronalson
ronalson / DS-reading-list.md
Last active September 3, 2020 13:08
Design System / Tokens - Reading List
#!/usr/bin/env node
/*
MIT License
Copyright (c) 2025 Matt Ström-Awn
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights