←back to thread

838 points bennettfeely | 6 comments | | HN request time: 1.04s | source | bottom
1. jannes ◴[] No.22943965[source]
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/

replies(3): >>22944205 #>>22944516 #>>22945314 #
2. runxel ◴[] No.22944205[source]
It may be because the transition wouldn't be as smooth as it is now?
replies(1): >>22945978 #
3. JansjoFromIkea ◴[] No.22944516[source]
Having 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/_...

4. zeven7 ◴[] No.22945314[source]
From what I recall, the shading for inset and outset is left up to the browser and is different for different browsers.
5. jannes ◴[] No.22945978[source]
Did Windows 98 have smoooth transitions, though?
replies(1): >>22946355 #
6. runxel ◴[] No.22946355{3}[source]
Haha, you got a point there ;)