Intro to Vagrant
If you’ve ever started building a project that is running great locally, only to have it fail to build on a teammate’s machine or when deployed to any other environment despite your meticulous, step-by-step setup instructions, you may want to consider using a tool like Vagrant. Vagrant enables you to build a consistent virtual environment for developing and running software from any machine. It’s easy to make your local development environment mirror your production server while also making it portable. This can save lots of time when someone new joins the project, as the setup is all but done for them already.
Pure CSS Line Clamp Toggle
I’m currently working on a frontend project at work currently that involves building out a library of Twig components for a large website running on Drupal. The mobile designs for the component I’m working on today require that if the description field has more than one paragraph, only the first 2 lines of the first paragraph should be displayed along with a basic toggle switch so a user can read more if they want. There are multiple ways to approach this, but I wanted to come up with a pure CSS solution without using any javascript. Read more to see what I came up with!