When writing a Sass function, you may run into an error message that may be confusing: @function rules may not...

tl;dr In RubyMine you can use find and replace with capture groups (.*?) and backreferences $1 (if you have several...

When you build a JSON API you need to come up with a style to represent attributes, pagination, errors or...

tl;dr The :is() pseudo selector - specificity of its most specific argument - matches against a comma-separated list of selectors...

tl;dr The :where() pseudo selector - zero specificity - matches against a comma-separated list of selectors. Example Compound selectors like...

developer.mozilla.org

The inset CSS property is a shorthand that corresponds to the top, right, bottom, and/or left properties. It has the...

While working on a Rails application, your code base will grow a collection of different file types including: Ruby (business...

I recently had the problem that embedded code boxes crashed my layout. It turned out that pres break out of...

makandra dev

To ensure a consistent code style for JavaScript code, we use ESLint. The workflow is similar to integrating rubocop...

This are the steps I needed to do to add esbuild to an application that used the vanilla rails asset...

github.com

When Capybara locates elements in the DOM, by default it allows only accessing visible elements -- when you are using a...

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

css-tricks.com

An element with display: grid can define its grid-template-columns based on (preferred) child width using the repeat function...

makandra dev
ishadeed.com

Table Of Contents Flexbox wrapping Spacing Long content Prevent an image from being stretched or compressed Lock scroll chaining

makandra dev
stackoverflow.com

Modern versions of Capybara include a finder method #ancestor which allows you to find a parental element using CSS or...

makandra Curriculum

Basic validations Read the Rails Guide on ActiveRecord Validations. You should have an overview which kinds of validations are built...

You want to use fields in your applications. However, your desktop users may encounter some weird quirks: Aside from allowing...

makandra dev
smashingmagazine.com

Debugging in CSS means figuring out what might be the problem when you have unexpected layout results. We’ll look...

Event delegation is a pattern where a container element has a single event listener that handles events for all descendants...

makandra dev

Besides their default styling properties, HTML elements have a semantic meaning. For example, an h1 tag is usually styled with...

Most browsers have built-in drag and drop support for different page elements like text and images. While this may...

github.com

age is a simple, modern and secure file encryption tool, format, and Go library. It features small explicit keys, no...

The attached compiler() function below applies JavaScript behavior to matching HTML elements as they enter the DOM. This works like...

Often people need links which are not linked directly, but should trigger execution of JavaScript. ❌ Bad workarounds