Skip to content

Instantly share code, notes, and snippets.

View Fresh-Dev's full-sized avatar

Kevin Kleinjung Fresh-Dev

  • Deutschland
View GitHub Profile
@Fresh-Dev
Fresh-Dev / customTextSelection.css
Created February 10, 2016 19:25
Custom Text Selection
::selection { background: #e2eae2; }
::-moz-selection { background: #e2eae2; }
::-webkit-selection { background: #e2eae2; }
@Fresh-Dev
Fresh-Dev / pseudoAnchor.css
Created February 10, 2016 19:25
Pseudo-Class AchorLink
a:link { color: blue; }
a:visited { color: purple; }
a:hover { color: red; }
a:active { color: yellow; }
@Fresh-Dev
Fresh-Dev / hideH1Logo.css
Created February 10, 2016 19:25
Hiding H1 for logo
h1 {
text-indent: -9999px;
margin: 0 auto;
width: 320px;
height: 85px;
background: transparent url("images/logo.png") no-repeat scroll;
}
@Fresh-Dev
Fresh-Dev / generalMediaQueries.css
Created February 10, 2016 19:24
General Media Queries
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px) and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen and (min-width : 321px) {
/* Styles */
}
@Fresh-Dev
Fresh-Dev / roundCorners.css
Created February 10, 2016 19:24
Round Corners
#container {
-webkit-border-radius: 4px 3px 6px 10px;
-moz-border-radius: 4px 3px 6px 10px;
-o-border-radius: 4px 3px 6px 10px;
border-radius: 4px 3px 6px 10px;
}
/* alternative syntax broken into each line */
#container {
-webkit-border-top-left-radius: 4px;
@Fresh-Dev
Fresh-Dev / blockquoteTemplate.css
Created February 10, 2016 19:24
Blockquote Templaet
blockquote {
background: #f9f9f9;
border-left: 10px solid #ccc;
margin: 1.5em 10px;
padding: .5em 10px;
quotes: "\201C""\201D""\2018""\2019";
}
blockquote:before {
color: #ccc;
content: open-quote;
@Fresh-Dev
Fresh-Dev / crossTransparency.css
Created February 10, 2016 19:24
Cross Browser Transparency
.transparent {
filter: alpha(opacity=50); /* internet explorer */
-khtml-opacity: 0.5; /* khtml, old safari */
-moz-opacity: 0.5; /* mozilla, netscape */
opacity: 0.5; /* fx, safari, opera */
}
@Fresh-Dev
Fresh-Dev / classicClearfix.css
Created February 10, 2016 19:24
Classic CSS Clearfix
clearfix:before, .container:after { content: ""; display: table; }
.clearfix:after { clear: both; }
/* IE 6/7 */
.clearfix { zoom: 1; }
@Fresh-Dev
Fresh-Dev / reset.css
Created February 10, 2016 19:24
CSS Reset
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
outline: none;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
@Fresh-Dev
Fresh-Dev / notify.cs
Created February 10, 2016 19:23
Systembenachrichtigung / Notification
/// Add NotifyIcon via Designer first
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Displaynotify();