-
Notifications
You must be signed in to change notification settings - Fork 5
CSS
Sean Lynch edited this page Oct 17, 2019
·
83 revisions
*, *:before, *:after {
box-sizing: border-box;
}
or
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
- CSS Masking
-
clip: rect(10px, 290px, 190px, 10px);
- only supports rectangular clipping
- element must also be
position: absolute;
- deprecated: use
clip-path
- mdn
-
clip-path: url(#clipping);
-
mask
mask-image
mask-border
- https://jakearchibald.com/2014/dont-use-flexbox-for-page-layout/
- Solved by Flexbox
- A complete guide to Flexbox
- Flexbox Dice
- http://flexboxfroggy.com/
- What the FlexBox?! - 20 video tutorials
- http://wesbos.com/flexbox-resources/
- https://github.com/philipwalton/flexbugs
- Flexbox playground
- https://railslove.github.io/react-flexbox-playground/
- How Flexbox works — explained with big, colorful, animated gifs
- http://yoksel.github.io/flex-cheatsheet/
- http://flexboxzombies.com/p/flexbox-zombies
- http://vudav.github.io/flexbox-cheatsheet/
- Flexbox: space-between, Flexbox's Unsung Hero
- The Difference Between Width and Flex Basis
- Flex Layout Editor
- New things CSS grid brings to the
- CSS Grid – Table layout is back. Be there and be square.
- A Complete Guide to Grid
- http://cssgridgarden.com/
- https://fettblog.eu/grid-concepts/
- https://gridbyexample.com/
- Things I’ve Learned About CSS Grid Layout
- Responsive data tables with CSS Grid
- Using CSS Grid the right way
- CSS Grid Generator
useful with Grid and Flexbox
- More accessible markup with display: contents
- Get Ready for
display: contents
- https://caniuse.com/#feat=css-display-contents
- https://developer.mozilla.org/en-US/docs/Web/CSS/position#Sticky_positioning
- position: sticky is Amazing
- An event for CSS position:sticky
- Build Multiple Stacking Sticky Sidebars with Pure CSS and Bootstrap 4
- Position: stuck; — and a Way to Fix It - The shortcomings of position: sticky; when working with overflow.
- https://codepen.io/wortmann/pen/BNNZLb
- https://codepen.io/simevidas/pen/JbdJRZ
- http://jsfiddle.net/psflannery/t2n3qkvh/
Make list items look like a real, comma-separated list:
ul > li:not(:last-child)::after {
content: ",";
}
Display links when the element has no text value but the href attribute has a link:
a[href^="http"]:empty::before {
content: attr(href);
}
.uppercase {
text-transform: uppercase;
}
.lowercase {
text-transform: lowercase;
}
.capitalize {
text-transform: capitalize;
}
- https://developer.mozilla.org/en-US/docs/Web/CSS/-ms-overflow-style
- https://msdn.microsoft.com/en-us/library/windows/apps/hh441298.aspx
input[type=text]::-ms-clear {
display: none;
}
input[type=text]::-ms-reveal {
display: none;
}
::-webkit-search-decoration,
::-webkit-search-cancel-button,
::-webkit-search-results-button,
::-webkit-search-results-decoration {
display: none;
}
- https://github.com/sparkbox/bouncy-ball - Kind of like TodoMVC, but for web animation
- http://franklinta.com/2014/09/08/computing-css-matrix3d-transforms/
- https://dev.opera.com/articles/understanding-the-css-transforms-matrix/
- http://www.useragentman.com/matrix/#
- Material colors
- Dark colors
-
#000000
,#212121
,#303030
,#424242
-
#272c30
,#22272a
,#1d2223
-
- A Nerd’s Guide to Color on the Web
- Human Friendly Colours using HSL
- See: Examples
- Pure CSS scrolling shadows with background-attachment: local
- CSS only Responsive Tables
- Browser style defaults
- Device metrics
- Specificity calculator
- Learn CSS Layout
- Don't overthink grids
- https://github.com/AllThingsSmitty/css-protips
- http://alistapart.com/article/axiomatic-css-and-lobotomized-owls
- http://desandro.github.io/3dtransforms/docs/introduction.html
- http://cssreference.io/
- The invisible parts of CSS
- Boards
- Arduino
- BeagleBone Black / Green
- Raspberry PI
- Backup / Disk Cloning
- Docker
- Electronics
- GPIO
- IR
- Johnny-Five
- Linux USB Gadget API
- Logic Level Shifting
- Motors
- MQTT
- Neopixels / WS2812
- Network
- Node-RED
- OLED
- Quadcopter
- Radio
- SD Card
- SPI
- Zeroconf