Flexbox is here to stay and its time to start using it. Flexbox has more than 95% support globally, which matches support for calc and viewport units. Bootstrap 4 will be supporting it and my new website will be Flexbox based as well :)
Oh and if you need older browser support … use Flexibility.
Bulma is a modern CSS framework based on Flexbox. It provides a nice set of core functionality and almost every kind component you might need to build a quick skeleton for your project.
I am starting a small list of Material Design resources. If you have anything to share, let me know in the comments.
Code My UI provides handpicked code snippets, you can use in your own web projects. You can find website design inspiration, plus some code samples.
Code My UI
metisMenu offers a lot of options to tweak layout and usage. The plugin provides options for
GitHub / WordPress Version
Use the CSS font loading API. Not supported in all browsers yet (MDN, W3C). You can call document.fonts to get a FontFaceSet object.
document.fonts.check('bold 16px Roboto'); // true or false
Use Font Face Observer – its a small @font-face loader and monitor compatible with any web font service. It will monitor when a web font is applied to the page and notify you. It does not limit you in any way in where, when, or how you load your web fonts. Unlike the Web Font Loader Font Face Observer uses scroll events to detect font loads efficiently and with minimum overhead.
Use jQuery-FontSpy.js, works by checking the change in width of a string.
Use Webfont Loader, if loading fonts from Typekit , Fonts.com, Google, Fontdeck or custom location.
This introduces the following events:
BackgroundCheck automatically switches to a darker or a lighter version of an element depending on the brightness of images behind it.
Pretty amazing and useful, when doing long one-pagers with switching section backgrounds and navigation elements hovering above them.
„Snappy is a PHP5 library allowing thumbnail, snapshot or PDF generation from a url or a html page. It uses the excellent webkit-based wkhtmltopdf and wkhtmltoimage available on OSX, Linux, Windows.“
SPLIT PANES / DOCKER allow you to display multiple areas, either side by side or one on top of each other. Nested layouts are often part of it. By dragging a divider that appears between the areas, the user can specify how much of the total width / height goes to each area.
I have been building a backend interface in the past weeks, that forced me to look into ways to organize the workspace more efficiently . I could code my own splitter, but is not a priority right now and makes no sense to always reinvent the wheel :)
Here some of the options out there…
This uses the jQuery UI draggable component and provides limited options :)