Webpacker is Rails' way of integrating Webpack, and version 4 has been released just a few days ago, allowing us...

makandra dev

This card is mainly an explanation how variable fonts work in CSS, not necessarily a recommendation to actually use them...

makandra dev

min-width is known as a CSS property that can be set to define a least width for an element...

tl;dr In Chrome DevTools in the Layouts tab you have handy options to debug CSS Flexbox and Grid. Including...

Imagine you have 2 HTML boxes. The first one has a margin-bottom of let's say 30px and the...

to create a Gallery that has a name and has_many :images, which in turn have a...

Why is this useful? You can have a background image on the same element, overlaying it with a transparent gradient...

caniuse.com

Since late 2015, all major browsers (still excluding Firefox) support pointing device media queries. These can be used to distinguish...

When building a web application, one is tempted to claim it "done" too early. Make sure you check this list...

Our applications not only need to be functional, they need to be fast. But, to quote Donald Knuth, premature optimization...

Note: Modern Rails has two build pipelines, the asset pipeline (or "Sprockets") and Webpacker. The principles below apply for both...

Most forms have a single submit button that will save the record when pressed. Sometimes a form needs additional submit...

TL;DR: Grid elements have min-width: auto in a 1fr column, which may lead to overflows. With minmax(0...

makandra dev
github.com

Note This card does not reflect the current state of lazy loading technologies. The native lazy attribute could be used...

sass >= 1.35.0 has the option quietDeps and silenceDeprecations to silence deprecation warnings from dependencies. quietDeps: No deprecation warnings for dependencies...

Let's say we have posts with an attribute title that is mandatory. Our example feature request is to tag...

I needed to make sure that an element is visible and not overshadowed by an element that has a higher...

Best results in other decks

JavaScript code can access and manipulate the browser's DOM tree. Using JavaScript we can add interactive behavior to our...

makandra Curriculum

Understand at least the following CSS concepts: Classes Selecting elements for styling Basic styling (color, typography, spacing)

Search in all decks