Here it goes….
/* Text and background color for light mode */
body {
color: #333;
}
/* Text and background color for dark mode */
@media (prefers-color-scheme: dark) {
body {
color: #ddd;
background-color: #222;
}
}
Here it goes….
/* Text and background color for light mode */
body {
color: #333;
}
/* Text and background color for dark mode */
@media (prefers-color-scheme: dark) {
body {
color: #ddd;
background-color: #222;
}
}
CodyHouse is a library of HTML, CSS, JS nuggets.
Yes! They are.
And they have a bunch of free awesome stuff for us!!
Simple….
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
/* IE10+ CSS styles go here */
}
image-rendering: -webkit-optimize-contrast;
Limit text on a div to a specific height
.giveMeEllipsis {
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: N; /* number of lines to show */
line-height: X; /* fallback */
max-height: X*N; /* fallback */
}
Source: http://stackoverflow.com/questions/3922739/limit-text-length-to-n-lines-using-css
Limit a line to non-wrap/break
li {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
Well,
Most of *tutorials* about speed optimization that I’v seen talk about minify css, combine them etc… today I’v faced myself (lol) in to a problem… I’m using Flat UI – Free Bootstrap Framework and Theme on a very simple html page. That page will be delivered in a zip file and I just want the HTML itself… So, I want to put the CSS in the HTML but I don’t want the unused stylesheets on it…
So I’v installed CSS remove and combine from Steve McArthur.
Some graphs taken from https://unused-css.com/ about the used/not used CSS selectors/stylesheed.
I’m was looking for a CSS vertical timeline to use on the NEW project that i’m working on…
This were the two ones that I will one from!
Found this awesome weather font.
This are just an example of them!
http://erikflowers.github.io/weather-icons/
original fonts by
http://www.artill.de/ // https://twitter.com/artill
Found a nice font-face of social icons!
It’s free for whatever use ( commercial or personal ), both for web or for printing purpose. Licensed under the Open Font License. It is also hosted on GitHub.
This font is based on Mono Social Icons byIconDock and Double-J Design. It adds two more icons to the set : Google Plus andGitHub Alternative Icon.