Skip to content
/ lazycss Public

Get modern, responsive website look with ~200 lines of classless CSS

License

Notifications You must be signed in to change notification settings

hhakk/lazycss

Repository files navigation

LazyCSS - classless CSS when you're lazy

Modern websites look the same. Navigation bar at the top, a responsive sidebar and centered content on desktop. LazyCSS is one attempt to create the modern cookiecutter layout effortlessly.

Either use this in your blog or as a general extendable template.

Installation

  1. Download the lazy.css file from the repo. Drop these lines into your HTML file under <head>:
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="lazy.css">

And you're done.

This repository contains a simple demo site (screenshots below).

Features

  • Probably smaller than the CSS you're currently using (under 200 lines excluding comments)
  • No need to minify
  • Configurable with variables (fonts, colors easily changed)
  • Responsive sidebar with <aside> -element.
  • Responsive navbar (with logo placement) by just writing
<nav>
  <ul>
    <li>Logo</li>
    <li>Item 2</li>
    <li>Item 3</li>
  </ul>
</nav>

License

See LICENCE.

Screenshots

Mobile

Before:

Mobile view (Original)

After:

Mobile view (LazyCSS)

Desktop

Before:

Desktop view (Original)

After:

Desktop view (LazyCSS)

Releases

No releases published

Packages

No packages published