4 ms·
I noticed that it's using box-shadow for the "3d effect" on buttons and window borders. I'm a bit disappointed they didn't use the "inset" or "outset" border-s
by jannes 7y ago
I noticed that it's using box-shadow for the "3d effect" on buttons and window borders.
I'm a bit disappointed they didn't use the "inset" or "outset" border-style [0] which pretty nobody uses anymore these days. I thought this kind of design is pretty much why these border-styles exist.
[0]: https://htmldog.com/references/css/properties/border-style/ https://htmldog.com/references/css/properties/border-style/
- runxel 7y agoIt may be because the transition wouldn't be as smooth as it is now?
- JansjoFromIkea 7y agoHaving done one of these myself a while ago, box-shadow was the only way to get the pixelated border corners. Here's the mixin I done https://github.com/padraigfl/packard-belle/blob/master/src/_scss/w98/functions/box-shadows.scss https://github.com/padraigfl/packard-belle/blob/master/src/_...
- zeven7 7y agoFrom what I recall, the shading for inset and outset is left up to the browser and is different for different browsers.