diff options
author | Bradley Taunt <bt@btxx.org> | 2024-06-08 13:43:37 -0400 |
---|---|---|
committer | Bradley Taunt <bt@btxx.org> | 2024-06-08 13:43:37 -0400 |
commit | 16d28628aca9b2d356de31c319f5e7bc0f5b2b02 (patch) | |
tree | 11947abb71e38cbe75116871694a44c33d257763 /build/stripe-menu-css | |
parent | dcfb172704f3afb68a30425029ec834be2883274 (diff) |
Remove incorrectly generated files, fix up markdown articles
Diffstat (limited to 'build/stripe-menu-css')
-rw-r--r-- | build/stripe-menu-css/index.html | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/build/stripe-menu-css/index.html b/build/stripe-menu-css/index.html index 1f16e6e..7d4d03f 100644 --- a/build/stripe-menu-css/index.html +++ b/build/stripe-menu-css/index.html @@ -3,11 +3,12 @@ <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="color-scheme" content="dark light"> <link rel="icon" href="data:,"> <title>Stripe Menu Dropdowns (CSS)</title> <link href="/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" /> <link href="/rss.xml" type="application/rss+xml" rel="alternate" title="RSS feed for blog posts" /> -<style>*{box-sizing:border-box;}body{font-family:sans-serif;line-height:1.33;margin:0 auto;max-width:650px;padding:1rem;}img{max-width:100%;}pre{border:1px solid;overflow:auto;padding:5px;}table{text-align:left;width:100%;}.footnotes{font-size:90%;}</style> +<style>*{box-sizing:border-box;}body{font-family:sans-serif;line-height:1.33;margin:0 auto;max-width:650px;padding:1rem;}blockquote{background:rgba(0,0,0,0.1);border-left:4px solid;padding-left:5px;}img{max-width:100%;}pre{border:1px solid;overflow:auto;padding:5px;}table{text-align:left;width:100%;}.footnotes{font-size:90%;}</style> </head> <nav> @@ -16,29 +17,17 @@ <main> <h1 id="stripe-menu-dropdowns-css">Stripe Menu Dropdowns (CSS)</h1> - <p>2020-03-31</p> - <p>In a previous article I wrote, <a href="blog/minimal-css-menu">Minimal CSS: Dropdown Menus</a>, I showed how you could create a basic menu dropdown with only 121 bytes of CSS. While this demo is great for simple text-based menu dropdowns, it doesn’t show just how complex (in a good way) you can make CSS-only menus. So, let’s do just that.</p> - <h2 id="what-we-want-to-emulate">What we want to emulate</h2> - <p>I think, like most designers, that the UI and web design work from the <a href="https://stripe.com/">Stripe</a> team is pretty fantastic. Their clean approach using subtle animations and minimal elements make for a pleasant experience. Unfortunately, there is one problem with their current dropdown menus on their main website:</p> - <p>They don’t work if JavaScript is disabled.</p> - <p>But we can easily fix that. So enough chit-chat, let’s rip-off their menu design and recreate it with only CSS!</p> - <h3 id="original-stripe-website">Original (<a href="https://stripe.com">Stripe Website</a>)</h3> - <h3 id="our-recreation-codepen-demo">Our recreation (<a href="https://codepen.io/bradleytaunt/full/ExjMjLL">CodePen Demo</a>)</h3> - <p>Although our redesign is far from an exact replica (some subtle animations are missing which could always be added) - it’s still impressive what you can do with some bare-bones CSS. Just something to keep in mind the next time you decide to reach for a JavaScript library to implement a similar design.</p> - <h2 id="see-it-live-in-action">See it live in action</h2> - <p>Load in the CodePen below and play around with the menu dropdown. Feel free to re-use, break. share or steal this for any and all purposes. Enjoy!</p> - <p><a href="https://codepen.io/bradleytaunt/pen/ExjMjLL">Live CodePen Example</a></p> <footer role="contentinfo"> <h2>Menu Navigation</h2> |