Skip to content

Instantly share code, notes, and snippets.

View siggiarni's full-sized avatar

Sigurður Árni Svanbergsson siggiarni

View GitHub Profile
a:link {
}
a:visited {
}
a:focus {
.flex-container {
/* Display */
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
/* Direction */
<input type="text" pattern="[0-9]*" inputmode="numeric" autocomplete="cc-number">
.blend-modes {
background-blend-mode: screen;
background-blend-mode: overlay;
background-blend-mode: darken;
background-blend-mode: lighten;
background-blend-mode: color-dodge;
background-blend-mode: color-burn;
background-blend-mode: hard-light;
background-blend-mode: soft-light;
background-blend-mode: difference;
@siggiarni
siggiarni / css-whitespace.css
Last active August 29, 2015 14:02
CSS space
/* whitespace */
.foo {
content: "\0020";
}
/* non-breaking space */
.bar {
content: "\00a0";
}
@siggiarni
siggiarni / gist:11254753
Created April 24, 2014 13:34
Enabling the FTP Server on OS X Mavericks
Load the FTP server
sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist
Unload the FTP server
sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist
http://igerry.com/desktop/apple-os/enabling-ftp-server-os-x-mavericks.html
input[type=search] {
-webkit-appearance: none;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button
{
display: none;
}
@siggiarni
siggiarni / Password-Fields.css
Created April 14, 2014 10:28
The only font that emulate correctly the password field's big dots of other browsers is Verdana.See: http://stackoverflow.com/questions/6859727/styling-password-fields-in-css
input[type="password"]
{
font: large Verdana,sans-serif;
letter-spacing: 1px;
}