GithubHelp home page GithubHelp logo

gerhobbelt / gesso Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sgonyea/gesso

0.0 1.0 0.0 104 KB

The primer coat for a CSS project; more than a CSS Reset and less than a CSS Framework.

Home Page: http://joebergantine.com/werkstatt/gesso

License: BSD 3-Clause "New" or "Revised" License

gesso's Introduction

Gesso

Gesso is best described as a primer coat for a CSS project; more than a CSS Reset and less than a CSS Framework.

Prefer to Work with SASS rather than raw CSS?

This project has been ported into SASS as well. Check out compass-gesso.

Usage

From the head of an HTML or XHTML document reference the normalize.css, typgoraphy.css, screen.css (screen media) and print.css (print media) files IN THAT ORDER. DO NOT specify a media type for normalize or typogrpahy but MAKE SURE TO SPECIFY MEDIA TYPE for the screen and print stylesheets. (Gesso deliberately does not utilize @import to take advantage of server-side compression).

These styles are designed to work best with an XHTML 1.0 Strict Doctype and a semantics-based design technique. The package uses a normalizing stylesheet and the <address>, <b>, <big>, <caption>, <cite>, <code>, <dfn>, <em>, <i>, <small>, <strong>, <th>, <u>, and <var> elements have their default styling completely removed. Other elements are mostly reset.

<div> is treated as a purely structural element and lists are setup to require styling to serve as textual lists.

The Typography stylesheet sets up a Baseline Grid and defines screen-friendly font stacks including a humanist sans-serif stack, a serif stack and a monospace font stack.

There are a few extra non-semantic hooks for better typographic styling including a definition for the .amp class (for ampersands customization) and a .caps class definition for setting text in all caps.

The effects of these stylesheets and the methods used to import them can and will have odd effects (or just flat out won't work) on Netscape Communicator and IE 5 Mac. At one point this was intentional but now it probably isn't even worth worth mentioning.

Miscellaneous Files

font-stack.rtf is a rich-text file for comparing the font stacks. Requires all the fonts in the stack to be loaded on a computer to actually compare them.

test.html is an example XHTML document delineating the variety of elements that the stylesheet affects for a simple visual reference.

Example Definition To Be Placed In the <head> of an HTML Document

<link rel="stylesheet" type="text/css" href="stylesheets/normalize.css" />

<link rel="stylesheet" type="text/css" href="stylesheets/typography.css" />

<link rel="stylesheet" type="text/css" media="screen" href="stylesheets/screen.css" />

<link rel="stylesheet" type="text/css" media="print" href="stylesheets/print.css" />

gesso's People

Contributors

bergantine avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.