Nokogiri: CSS syntax for XML namespaces

Posted Almost 4 years ago by Dominik Schöler.

CSS selectors are a very simple tool to select elements from a Nokogiri document. However, the colon in the XML...

How to evaluate CSS media queries in JavaScript

Posted Almost 4 years ago by Henning Koch.

To make CSS rules dependent on the screen size, we use media queries: @media (max-width: 500px) { // rules for screen...

Git: How to add changes matching a regular expression

Posted Almost 4 years ago by Arne Hartherz.

When you have many changes, and you want to spread them across different commits, here is a way to stage...

Video transcoding: Web and native playback overview (April 2020)

Posted About 4 years ago by Michael Leimstädtner.

Embedding videos on a website is very easy, add a tag to your source code and it just works...

Letting a DOM element fade into transparency

Posted About 4 years ago by Henning Koch.

You can use the CSS property mask-image to define an "alpha channel" for an element. E.g. to let an...

Defining new elements for your HTML document

Posted About 4 years ago by Henning Koch.

Browsers come with a set of built-in elements like or . When we need a new component not covered by...

Understanding grid sizes of (SVG) icons

Posted Over 4 years ago by Michael Leimstädtner.

A primer on vector graphics For rastered image formats like JPG or PNG, each pixel is basically drawn on a...

Automated wordbreaks for long words

Posted Over 4 years ago by Jakob Scholz.

So I had the issue that User input (coming from many different sources and users) often contains the...

A collection of useful design resources for developers

Posted Over 4 years ago by Emanuel.

This collection contains some useful design resources for developers. Many of them were mentioned in the Refactoring UI tutorials.

Integrating or upgrading makandra-rubocop

Posted Over 4 years ago by Daniel Straßner.

Most of the time it is a tedious task to apply a code style guide to an existing code...

Using CSS transitions

Posted Over 4 years ago by Dominik Schöler.

CSS transitions are a simple animation framework that is built right into browsers. No need for Javascript here. They're...

The Difference Between Width and Flex Basis | Geddski

Posted Over 4 years ago by Henning Koch.
gedd.ski

Within a Flexbox layout, there are multiple CSS attributes that may affect a child's basis (the initial width before...

DOM API for jQuery users

Posted Almost 5 years ago by Dominik Schöler.

General hints on the DOM the root of the DOM is document custom elements inherit from HTMLElement. They need a...

Unpoly: Automatically show the full better_errors page when Rails raises an error

Posted Almost 5 years ago by Henning Koch.

When an AJAX request raises an exception on the server, Rails will show a minimal error page with only basic...

Webpack(er): A primer

Posted Almost 5 years ago by Tobias Kraze.

webpack is a very powerful asset bundler written in node.js to bundle (ES6) JavaScript modules, stylesheets, images, and other assets...

RubyMine: Efficiently filtering results in the "Finder" overlay

Posted Almost 5 years ago by Michael Leimstädtner.

RubyMine comes with a nice way to grep through your project's files: The finder (ctrl + shift + f). Don't...

Adding Jasmine JavaScript specs to a Webpack(er) project

Posted Almost 5 years ago by Tobias Kraze.

The goal is to get Jasmine specs running in a Rails project using Webpacker, with the browser based test runner...

cucumber_factory: How to keep using Cucumber 2 Transforms in Cucumber 3

Posted Almost 5 years ago by Michael Leimstädtner.

Cucumber up to version 2 had a neat feature called Step Argument Transforms which was dropped in favor of Cucumber...

Heads up: Capybara 3's text matchers no longer squish whitespace by default

Posted Almost 5 years ago by Michael Leimstädtner.

Until Capybara 2, node finders that accept a text option were able to find nodes based on rendered text, even...

Rails Asset Pipeline: Building an Icon Font from SVG Files

Posted Almost 5 years ago by Dominik Schöler.

Webpacker can automatically create an icon font from SVG files, which is really handy. When you're using the asset...

Webpack: Automatically generating an icon font from .svg files

Posted Almost 5 years ago by Tobias Kraze.

Over the years we have tried several solution to have vector icons in our applications. There are many ways to...

Webpack: How to split your bundles

Posted Almost 5 years ago by Tobias Kraze.

To keep JavaScript sources small, it can sometimes make sense to split your webpack bundles. For example, if your website...

How to test Autoprefixer and CSSnext in PostCSS

Posted Almost 5 years ago by Emanuel.

PostCSS is a tool for transforming styles with JS plugins. In Webpacker you can configure the plugins and their settings...

Migration from the Asset Pipeline to Webpacker

Posted About 5 years ago by Emanuel.

This is a short overview of things that are required to upgrade a project from the Asset Pipeline to Webpacker...