Skip to content

Instantly share code, notes, and snippets.

View bbrochier's full-sized avatar
:octocat:
Happy coder !

Benniboom bbrochier

:octocat:
Happy coder !
View GitHub Profile
@bbrochier
bbrochier / text-highlight.css
Created August 9, 2013 07:12
Text highlight color
/* Text highlight color -------------- */
::selection{
background:#000;
color:#fff;
}
::-moz-selection{
background:#000;
color:#fff;
}
@bbrochier
bbrochier / glowing-input-hover.css
Last active December 20, 2015 20:48
Glowing focus on form input
// Glowing focus on form input ---------------------
input[type=text], input[type=email], textarea {
transition: all 0.30s ease-in-out;
-webkit-transition: all 0.30s ease-in-out;
-moz-transition: all 0.30s ease-in-out;
outline:none;
}
input[type=text]:focus, input[type=email]:focus, textarea:focus {
@bbrochier
bbrochier / ie8-mediaqueries.html
Created August 9, 2013 10:59
Media Queries for IE8 and earlier
<!--[if lt IE 9]>
<script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script>
<![endif]-->
@bbrochier
bbrochier / alerts.css
Created August 9, 2013 11:00
Alerts CSS
.alert {
padding: 15px 35px 15px 15px;
margin-bottom: 20px;
color: #c09853;
background-color: #fcf8e3;
border: 1px solid #fbeed5;
border-radius: 4px;
}
.alert-error {
@bbrochier
bbrochier / fade-hover-sprite.css
Created August 9, 2013 11:05
Fade transition on a link with background sprite
a.bouton {
background: url(sprites.png) no-repeat;
background-position: 0 0;
display: inline-block;
position: relative;
width: 30px;
height: 30px;
}
a.bouton:after {
@bbrochier
bbrochier / css-arrows-general.css
Created August 9, 2013 11:06
CSS arrows triangle
/* http://css-tricks.com/snippets/css/css-triangle/ */
.arrow-up {
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 5px solid black;
}
@bbrochier
bbrochier / easing-hover-link-mixin.less
Last active December 20, 2015 20:49
Easing hover link
@bbrochier
bbrochier / same-height-elements.js
Created August 9, 2013 11:10
Same height elements
// Same Height Elements
$.fn.setAllToMaxHeight = function(){
return this.height( Math.max.apply(this, $.map( this , function(e){ return $(e).height() }) ) );
}
$(".mon-ul li").setAllToMaxHeight();
@bbrochier
bbrochier / gmap-marker-click.html
Last active December 20, 2015 20:59
Google maps : Markers with Click event
<script src='https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false'></script>
<div id="map-canvas" height="500" width="500"></div>
<div id="info"></div>
@bbrochier
bbrochier / placeholder-color.css
Last active December 20, 2015 23:19
Change color of input placeholders
::-webkit-input-placeholder {color: #fff;}
::-moz-placeholder {color: #fff;}
:-ms-input-placeholder {color: #fff;}