Under construction
Mo-Fr: 09:00 - 18:00

frontend

Organizing form elements with pug

Organizing form elements with Pug
in Front-end | November 12, 2019

Hi, developer! In order to layout faster and to support the project in an easier way, we have made a pug mixin for form elements. It looks like a big sausage code: However, in reality it is a very simple mixin to use. With it, we can do the following types of form elements: input(type=”text”) […]

Web fonts: Connect and use

Web Fonts CSS How to use
in Front-end | November 6, 2019

Hi, developer! Previously, in order to connect an off-site font to the site, the @ font-face directive was used with a link to the font in several formats (eot, svg, ttf, woff, etc.). In 2015, it became possible to use font caching in localstorage, and there was also no need to use many different formats. […]

Splitting styles with sass

Splitting styles SASS
in Front-end | September 23, 2019

Hi, developer! Sometimes during layout, it is necessary to split style files into several ones according to some principle. In this article, we will split the styles into the main file and the file for IE9. Folder structure (are displayed only those folders that we need for this article): Since sass does not compile files […]

Icon Fonts

Icon fonts
in Front-end | May 16, 2019

Hi, developer! In this article I will tell you how to create and use an icon font with gulp. We use gulp-iconfont and gulp-iconfont-css. Install plugins and prescribe dependencies gulpfile.js The fontName parameter is required; this is the name of our font. Write the task gulpfile.js And now more detailed: Let’s take all the icons (the path […]

Automatic layout testing

Automatic layout testing in Frontend
in Front-end | February 13, 2019

Hi, developer! A frequent problem of a layout designer is that he corrects styles in one place, but they change in several places. And, as a rule, the layout designer notices it too late. In this post, I will talk about regression testing. The main point of the method is that you take screenshots of […]