My Technical Notes

Thursday, 11 December 2014

Less.css - Media Queries

In Less, we can use variables to help us prevent repeating the same media queries.


@mobile : ~"screen and (max-width: 700px)";

@media @mobile {
    .small-12.page-content, .main-content {
        width: 100%;
    }
}

No comments: