Home

Water.css 为简单而生的 css 框架

来源 https://github.com/kognise/water.css
官方Demo https://watercss.netlify.com

Water.css

Water.css is a just-add-css collection of styles to make simple websites like this just a little bit nicer. Get it already!

Now you can write your simple static site with nice semantic html, and Water.css will manage the styling for you.

Water.css - Make your tiny website just a little nicer | Product Hunt Embed

Goals

Is it responsive?

Heck yeah! It doesn’t include any fancy styles so it’s easily mobile responsive. Just add the famous responsive viewport tag and you’ll be good to go!

In fact, try resizing this page. Everything flows super nicely as you’ll see.

Element demos

This is supposed to be a demo page so we need more elements!

Form elements


Code

Below is some code, you can copy it with Ctrl-C. Did you know, alert(1) can show an alert in JavaScript!

// This logs a message to the console and check out the scrollbar.
console.log(‘Hello, world!’)

Other

Here’s a horizontal rule and image because I don’t know where else to put them.

Example kitten

And here's a nicely marked up table!

Name Quantity Price
Godzilla 2 $299.99
Mozilla 10 $100,000.00
Quesadilla 1 $2.22

Typography

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque dictum hendrerit velit, quis ullamcorper sem congue ac. Quisque id magna rhoncus, sodales massa vel, vestibulum elit. Duis ornare accumsan egestas. Proin maximus lacus interdum leo molestie convallis. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Ut iaculis risus eu felis feugiat, eu mollis neque elementum. Donec interdum, nisl id dignissim iaculis, felis dui aliquet dui, non fermentum velit lectus ac quam. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. This is strong, this is normal, this is just bold, and this is emphasized! And heck, here's a link.

"The HTML blockquote Element (or HTML Block Quotation Element) indicates that the enclosed text is an extended quotation. Usually, this is rendered visually by indentation (see Notes for how to change it). A URL for the source of the quotation may be given using the cite attribute, while a text representation of the source can be given using the <cite> cite element."
MDN, "The Block Quotation element"

  1. Ordered list item 1
  2. Ordered list item 2
  3. Ordered list item 3

Addresses are also styled to be awesome!

john.doe@example.com
778-330-2389
666-666-6666

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6