background preloader

Flexbox in 5 minutes

Flexbox in 5 minutes

http://flexboxin5.com/

Related:  Front-endhtml/cssFLEXBOX

How to Localize a WordPress Theme and Make it Translation Ready Localizing WordPress themes isn’t something developers should simply dismiss. And if you’re a developer who doesn’t know how to localize a theme, then you should definitely read on. This is the second post in a series on translating WordPress. Glen Maddern: Internet Pro If you wanted to identify an inflection point in the recent development of CSS thinking, you’d probably pick Christopher Chedeau’s “CSS in JS” talk from NationJS in November, 2014. It was a watershed moment that set a bunch of different minds spiralling off in their own directions like particles after a high-energy collision. For instance, React Style, jsxstyle and Radium are three of the newest, cleverest, and most viable approaches to styling in React and all reference it in their project Readme. If invention is a case of exploring the adjacent possible, then Christopher is responsible for making a lot of what’s possible more adjacent. These are all legitimate problems that affect most large CSS codebases in one way or another. Christopher points out that these all have good solutions if you move your styling to JavaScript, which is true but introduces its own complexities and idiosyncrasies.

CSS Flexible Box Layout Module Level 1 Conformance requirements are expressed with a combination of descriptive assertions and RFC 2119 terminology. The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “MAY”, and “OPTIONAL” in the normative parts of this document are to be interpreted as described in RFC 2119. However, for readability, these words do not appear in all uppercase letters in this specification. All of the text of this specification is normative except sections explicitly marked as non-normative, examples, and notes. [RFC2119] Examples in this specification are introduced with the words “for example” or are set apart from the normative text with class="example", like this:

Taxonomies Filter Widget Taxonomies Filter Widget is a robust but powerful WordPress plugin that creates a widget which acts as a filter for your categories, tags, taxonomies and numerical custom fields. Visitors will then be able to do faceted searches on your site to filter posts and pages by taxonomies and numerical custom fields, using drop-downs, checkboxes, radio buttons, multiselect and range sliders. While built especially for sites with a variety of categories, custom taxonomies and custom posts (eg: shops, directories, tutorials, job boards or listings), this plugin will also do a great job at filtering the WordPress posts and pages by categories, tags and even post format. Check a video demonstration here or use the live preview to see it in action. WooCommerce demo using this plugin to filter products by multiple categories and by a price range slider! You can filter:

MindBEMding – getting your head ’round BEM syntax One of the questions I get asked most frequently is what do -- and __ mean in your classes? The answer is thanks to BEM and Nicolas Gallagher… BEM – meaning block, element, modifier – is a front-end naming methodology thought up by the guys at Yandex. Solved by Flexbox — Cleaner, hack-free CSS All of the code samples on this site show how to solve a particular design problem with Flexbox. They show just the code that's needed to make the demos work in a spec-compliant browser. Some browsers do not fully comply with the latest version of the spec, so sadly, a few workarounds were necessary. Workarounds for non-compliant browsers are not shown in the code samples, but if you're curious about those implementation details, you can check out the source files. Each demo links to its source, and all browser-specific workarounds are well-documented, so don't be afraid to take a look. The vendor prefixing and translating of current flex properties to their legacy equivalents is all handled by autoprefixer.

How to Customize the Breadcrumb Appearance in WooCommerce WooCommerce is a great plugin for enabling eCommerce within your WordPress website. It provides great functionality and easy-of-use. One great feature are breadcrumbs. Out of the box, WooCommerce has breadcrumbs that look pretty nice. Depending on the site you are building you may want to customize them. By default, they look something like this:

It's Time for Everyone to Learn About PostCSS A while ago, I wrote “I’m Excited About PostCSS, But I’m Scared to Leave Sass”. Since then, I have wholeheartedly embraced PostCSS (and left Sass, at least temporarily). I’ve been using PostCSS on large-scale projects, contributing to and authoring plugins, communicating with the maintainers to learn more about what’s possible; and that’s all gone swimmingly. Just swimmingly. Meanwhile, the buzz around PostCSS has increased, provoking all kinds of reactions — curiosity, excitement, suspicion, confusion, weariness, bitterness, defensiveness, vitriol, exhiliration, flippant indifference, smug disdain, cheerful fist-pumping, and so on. I have two points I’d like to contribute to the fuss:

Working with flexbox Flexible layouts. Equal height columns. Presentation independence from your HTML source order. These things haven't been so easy to achieve with CSS—until now. Create a Cool Website with Fancy Scrolling Effects I’m sure we’re all familiar with the popular parallax effect in web design. It has become a great tool to create a fun browsing experience that responds to the user’s controls as they scroll up and down the page. In this tutorial we’ll use a couple of readily available jQuery plugins to quickly put together a cool little single page website of our own, complete with fancy scrolling effects. This tutorial will be a walkthrough of my design process for a simple portal site that presents all of my websites and social profiles. Each website has its own individual section in a series of ‘slides’ laid out vertically.

It’s Only Color Working with color while designing is really about creating another dimension in your medium. Choosing a successful palette creates a foundation for adding meaning and hierarchy to your design. Although it may seem overwhelming at first, choosing a palette can be a very straightforward process. I’ve found that three colors are all you need – and choosing them doesn’t have to be arduous. Equally, putting them to use shouldn’t be stressful. Advanced Cross-Browser Flexbox Introduction The CSS Flexible box module level 3 — or Flexbox for short — brings with it a lot of power and some very exciting possibilities for web development, allowing us to put together complex site layouts easily and rapidly, and dispensing with some of the illogical hacks and kludges that we’ve traditionally used. I dealt with the basics of Flexbox in my article Flexbox: fast track to layout nirvana? In this article I will go a bit further, looking at a more advanced example, and using Modernizr to serve different styles to browsers with differing levels of Flexbox support, providing the best level of cross browser support currently available. Introducing the example The example I have built for this article looks like Figure 1:

Parallax Tutorial using CSS and jQuery How to implement parallax effects on scroll using CSS & jQuery Ever wondered how to achieve parallax effects on scroll? I'll show you how simple it can be, using CSS & a bit of jQuery. Design checklist Today, there are two popular methods for using icons: icons fonts and SVG icons. Icon fonts have some significant benefits over bitmap images. For example, they are scalable and you only need to send a single HTTP request to load them (instead of multiple request that bitmap images require). Besides that, they are supported in all browsers. If you decide to use an icon font, you can use Icomoon to do so.

Related: