Skip to content

Instantly share code, notes, and snippets.

View gpluess's full-sized avatar

Gregory Plüss gpluess

View GitHub Profile
@gpluess
gpluess / README.md
Created February 22, 2012 12:52
IE6 patch for the Twitter Bootstrap grid system

These patches provide basic support for the Bootstrap grid system in Internet Explorer 6. The JavaScript code requires jQuery.

Feel free to fork & improve.

@gpluess
gpluess / placeholder.js
Created August 13, 2012 14:50
Placeholder attribute for older browsers
// only bind if placeholder isn't natively supported by the browser
if (!('placeholder' in input)) {
$('input[placeholder]').each(function () {
'use strict';
var self = $(this);
self.val(self.attr('placeholder')).bind({
focus: function () {
if (self.val() === self.attr('placeholder')) {
@gpluess
gpluess / color-function.scss
Created August 13, 2020 07:23
Easy SCSS color-function #sass #scss #css
// Creating a map with our colors:
$colors: (
primary:#f37021,
secondary:#b4341d,
);
// Declaring colors as global variables of page
:root {
@each $name, $color in $colors {
--color-#{$name}: #{$color};