Skip to content

Instantly share code, notes, and snippets.

View adikahorvath's full-sized avatar
🏠
Working from home

Adam Horvath adikahorvath

🏠
Working from home
View GitHub Profile
@adikahorvath
adikahorvath / input-caret.css
Created April 27, 2021 19:25
input caret color
input {
caret-color: red;
}
@adikahorvath
adikahorvath / smooth.css
Created April 27, 2021 19:18
smooth scrolling w/ css
html {
scroll-behavior: smooth;
}
@adikahorvath
adikahorvath / darkmode.css
Last active November 14, 2020 14:31
dark mode on macOS
@media (prefers-color-scheme: dark) {
html,
body {
background: black;
color: white;
}
}
@media (prefers-color-scheme: light) {
html,
@adikahorvath
adikahorvath / text-overflow.css
Created September 20, 2017 12:04
text overflow
.text-overflow {
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
@adikahorvath
adikahorvath / css-var.css
Created September 20, 2017 12:01
CSS variable
:root {
--color-green: rgba(0,255,0);
}
html, body {
background: var(--color-green);
}
@adikahorvath
adikahorvath / modern-reset.css
Created November 8, 2016 15:01
modern css reset
* {
all: unset;
}
base, basefont, datalist, head, meta, script, style, title,
noembed, param, template {
display: none;
}
@adikahorvath
adikahorvath / horizontal-center.css
Created November 5, 2016 15:00
Horizontally center with flexbox
.horizontal-center {
display: flex;
align-items: center;
justify-content: center;
}
@adikahorvath
adikahorvath / hide-empty-cells.html
Created August 28, 2016 11:47
hide empty table cells
table {
empty-cells: hide;
}
@adikahorvath
adikahorvath / opentype.css
Created June 17, 2016 14:36
OpenType font family CSS features
p {
font-kerning: normal;
font-variant-ligatures: common-ligatures contextual;
-moz-font-feature-settings: "kern", "liga", "clig", "calt";
-ms-font-feature-settings: "kern", "liga", "clig", "alt";
-webkit-font-feature-settings: "kern", "liga", "clig", "calt";
font-feature-settings: "kern", "liga", "clig", "calt";
}
@adikahorvath
adikahorvath / appstore.html
Created June 17, 2016 14:33
meta tag for appstore smart banner
<meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=myURL" />