Quelques 337 marque-pages glanés pendant ma navigation sur le Web.
https://andersnoren.se/how-to-disable-faux-weights-with-css/
body { font-synthesis: none; }
https://paulmakeswebsites.com/writing/shadcn-radio-button/
input[type="radio"] {
/* Disable the browser’s default radio button styles */
appearance: none;
margin: 0;
/* Recreate the circle container */
border: 1px solid black;
background: white;
border-radius: 50%;
/* Center our dot in the container */
display: inline-grid;
place-content: center;
/* Use a pseudo-element to display our “dot” */
&::before {
content: "";
width: 0.75rem;
height: 0.75rem;
border-radius: 50%;
}
/* And display it when the radio button is checked */
&:checked::before {
background: black;
}
}
https://frontendmasters.com/blog/quick-trick-using-border-image-to-apply-and-overlay-gradient/
Il est possible d’utiliser la propriété CSS « border-image » pour facilement ajouter un fond sur une image et faciliter le contraste avec le texte.
.overlay {
border-image: fill 0 linear-gradient(#0003,#000);
}
https://codyhouse.co/nuggets
https://modernfontstacks.com
Cet outil permet de configurer, de tester et de visualiser des polices plutôt élégantes et surtout avec des rendus instantanés.
https://www.joshwcomeau.com/css/interactive-guide-to-flexbox/
Un guide avec des exemples interactifs sur l’utilisation et les propriétés de flexbox en CSS.
https://systemfontstack.com/
• Sans-serif
font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif;
• Serif
font-family: Iowan Old Style, Apple Garamond, Baskerville, Times New Roman, Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
•Mono
font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace;
https://ishadeed.com/article/defensive-css/
“Oftentimes, we wish that there was a way to avoid a certain CSS issue or behaviors from happening. You know, content is dynamic, and things can change on a web page, thus increasing the possibility of a CSS issue or a weird behavior.
Defensive CSS is a collection of snippets that can help you in writing CSS that is protected. In other words, you will have fewer issues in the future. If you follow my blog, you might read an article I wrote a while back which is called “The just in case mindset”. This is built upon it, and will be an ongoing list of snippets.”
https://wiki.csswg.org/ideas/mistakes
That should be corrected if anyone invents a time machine. :P
https://markodenic.com/css-tips/
• Typing Effect
• Drop shadow
• Smooth scrolling
• Center
• Cursors
• Truncate text
• …
https://www.smashingmagazine.com/2013/03/tips-and-tricks-for-print-style-sheets/#print-qr-codes-for-easy-url-references
Lorsqu’un visiteur de votre site imprime une page de votre site, ça peut être pratique d’ajouter un code QR avec l’URL de la page.
Google propose une API pour générer un code QR :
>
https://chart.googleapis.com/chart?cht=qr&chs=150x150&chl=http://yourdomain.com&choe=UTF-8
https://knopf.dev
Petite bibliothèque de boutons pré-stylisés.
http://browserhacks.com/#hack-28f493d247a12ab654f6c3637f6978d5
Trouvé via
https://philipnewcomer.net/2014/04/target-internet-explorer-10-11-css/ :
> @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {}
https://jakearchibald.com/2018/third-party-css-is-not-safe/
https://stackoverflow.com/questions/38781089/font-family-monospace-monospace
Connaissiez-vous le hack “font-family: monospace, monospace” ?
‣ via
http://romy.tetue.net/mettez-du-code-dans-vos-pages-web
https://code.tutsplus.com/fr/tutorials/the-30-css-selectors-you-must-memorize--net-16048
https://bitsofco.de/the-new-system-font-stack/
Les fonts par défaut des différents systèmes d’exploitation.
http://lehollandaisvolant.net/?id=20160407164815
Comment faire un loader uniquement en CSS :)
http://webdesign.tutsplus.com/tutorials/how-to-animate-festive-svg-icons-with-css--webdesign-17658
Comment animer avec du CSS des dessins SVG
http://emails.hteumeuleu.fr/2016/02/fab-four-emails-responsive-sans-media-queries/
Solution « responsive » pour afficher 4 colonnes sur les webmails desktop et deux colonnes sur les webmails mobiles.