Skip to content

Instantly share code, notes, and snippets.

@iba-cmsteam
iba-cmsteam / apadtive.fontsize.css
Created April 19, 2017 14:15
CSS.adaptive font size
http://codepen.io/MadeByMike/pen/bEEGvv
@iba-cmsteam
iba-cmsteam / ellipsis.css
Created April 19, 2017 14:12
CSS.ellipsis
.truncate {
width: 250px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
@iba-cmsteam
iba-cmsteam / typewriter.css
Created April 19, 2017 14:12
CSS.typewriter effect
.typewriter h1 {
overflow: hidden; /* Ensures the content is not revealed until the animation */
border-right: .15em solid orange; /* The typwriter cursor */
white-space: nowrap; /* Keeps the content on a single line */
margin: 0 auto; /* Gives that scrolling effect as the typing happens */
letter-spacing: .15em; /* Adjust as needed */
animation:
typing 3.5s steps(40, end),
blink-caret .75s step-end infinite;
}
@iba-cmsteam
iba-cmsteam / blockquote.css
Created April 19, 2017 14:10
CSS.blockquote.css
blockquote {
background: #f9f9f9;
border-left: 10px solid #ccc;
margin: 1.5em 10px;
padding: 0.5em 10px;
quotes: "\201C""\201D""\2018""\2019";
}
blockquote:before {
color: #ccc;
content: open-quote;
@iba-cmsteam
iba-cmsteam / remove.link.dotted.css
Created April 19, 2017 14:09
CSS.remove link dotted
@iba-cmsteam
iba-cmsteam / monotone.color.css
Created April 19, 2017 14:08
CSS.monotone.color.css
.filtered {
background: yellow;
position: relative;
}
.filtered img {
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
opacity: 0.5;
}
@iba-cmsteam
iba-cmsteam / monotote.img.css
Created April 19, 2017 14:07
CSS.monotone img
.filtered {
-webkit-filter: grayscale(100%);
filter: grayscale(100%);
}
@iba-cmsteam
iba-cmsteam / layered.paper.css
Created April 19, 2017 14:05
CSS.layered paper
.layered-paper {
background: #eee;
box-shadow:
0 1px 1px rgba(0,0,0,0.15), /* The top layer shadow */
0 10px 0 -5px #eee, /* The second layer */
0 10px 1px -4px rgba(0,0,0,0.15), /* The second layer shadow */
0 20px 0 -10px #eee, /* The third layer */
0 20px 1px -9px rgba(0,0,0,0.15); /* The third layer shadow */
}
@iba-cmsteam
iba-cmsteam / longwords.breaks.css
Last active April 19, 2017 14:04
CSS.long words breaks
.dont-break-out {
/* These are technically the same, but use both */
overflow-wrap: break-word;
word-wrap: break-word;
-ms-word-break: break-all;
/* This is the dangerous one in WebKit, as it breaks things wherever */
word-break: break-all;
/* Instead use this non-standard one: */
@iba-cmsteam
iba-cmsteam / gradient.underlines.css
Created April 19, 2017 14:03
CSS.gradient underlines
a {
position: relative;
padding-bottom: 2px;
text-decoration: none;
}
a:hover::after {
content: "";
position: absolute;
bottom: 2px;