Skip to content

Instantly share code, notes, and snippets.

@jcsrb
jcsrb / dabblet.css
Created April 19, 2012 12:36
Untitled
a{
display:inline-block;
}
a:after{
display:block;
width: 15px;
height: 15px;
background-color: red;
background-image: attr(href)
@jcsrb
jcsrb / dabblet.css
Created April 19, 2012 09:00
Untitled
@media only screen and (min-width: 6in),only screen and (max-width: 10cm) {
body{
background-color: red;
}
}
@jcsrb
jcsrb / dabblet.css
Created March 19, 2012 10:12
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
html{
background: url(http://www.sharecg.com/images/medium/18073.jpg)
}
@jcsrb
jcsrb / dabblet.css
Created February 27, 2012 11:55
Progress
/* Progress */
.percent {
background-color: #fff;
clear: both;
position: relative;
border: 1px solid rgba(31, 84, 188, 0.30);
text-align: right;
background-image:
linear-gradient(
replace this
url\('?"?..\/img\/([^)]*)'?"?\)
with this:
image-url("$1")
@jcsrb
jcsrb / demo.css
Created February 23, 2012 19:56
all types of specific color declaration
/* unminified */
.hsla {
background-image: -webkit-linear-gradient(top, transparent 98%, hsla(0,50%,50%,.2) 98%);
background-image: -moz-linear-gradient(top, transparent 98%, hsla(0,50%,50%,.2) 98%);
background-image: -ms-linear-gradient(top, transparent 98%, hsla(0,50%,50%,.2) 98%);
background-image: -o-linear-gradient(top, transparent 98%, hsla(0,50%,50%,.2) 98%);
background-image: linear-gradient(top, transparent 98%, hsla(0,50%,50%,.2) 98%);
}
@jcsrb
jcsrb / dabblet.css
Created February 23, 2012 07:39
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
@jcsrb
jcsrb / dabblet.css
Created February 20, 2012 08:46
Pure CSS Picture Frame
/* Pure CSS Picture Frame */
html {
background-color: #653845;
background-image: linear-gradient(45deg, hsla(0,0%,0%,.1) 50%, transparent 50%),
linear-gradient(-45deg, hsla(0,0%,0%,.1) 50%, transparent 50%);
background-size: .25em .25em;
box-shadow: inset 0 0 500px hsla(0,0%,0%,.5);
height: 100%;
}
@jcsrb
jcsrb / config.inc.php
Created February 14, 2012 19:50
setup phpMyAdmin on shared hosting
$cfg['Servers'][$i]['host'] = 'localhost'; //or diferent
$cfg['Servers'][$i]['user'] = 'username';
$cfg['Servers'][$i]['password'] = 'password';
$cfg['Servers'][$i]['only_db'] = array('databasename'); // if the user can't list databases
$cfg['PmaAbsoluteUri_DisableWarning'] = TRUE;
@jcsrb
jcsrb / dabblet.css
Created February 10, 2012 09:01
Buttons
/**
* Buttons
*/
* {font-family: 'Droid Sans', sans-serif;}
.ui-button{
border: 1px solid transparent;
display: inline-block;