Differences between revisions 1 and 17 (spanning 16 versions)
Revision 1 as of 2011-02-17 08:52:40
Size: 153
Editor: SamatJain
Comment: Ems for block widths
Revision 17 as of 2021-11-03 07:16:48
Size: 2880
Editor: SamatJain
Comment: Font sizes
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
 * [[http://markapp.io/|MarkApp: Building apps with HTML]]. Widgets and libraries that can be used without writing any JavaScript.
 * [[http://youmightnotneedjs.com/|You Might Not Need JavaScript]]. Various widgets and libraries that are HTML/CSS only.

 * [[http://kushagragour.in/lab/hint/|Hint.css]]: Pure CSS-only tooltip library

== Link colors ==

=== One ===

{{{
background-color: #f2f2f2;
/* Sidebar */
background-color: #f7f7f7

text-color: black;

a:link { color: #1863a1 }
a:visited { color: #751590 }
a:focus { color: #0181eb }
a:hover { color: #0181eb }
a:active { color: #01579f }
}}}

#3A99D3

== Highlight styles ==

Lorem Ipsum e-mail: background-color: gold, which is the same as Gary Johnson's e-mail campaign: #FFD700

Highlight text-shadow, from http://www.audiocheck.net/testtones_highdefinitionaudio.php:

{{{#!highlight css numbers=off
text-shadow: -3px 0px 3px yellow, 3px 0px 3px yellow, 6px 0px 6px yellow, -6px 0px 6px yellow;
}}}

== Flexbox ==

 * [[http://yoksel.github.io/flex-cheatsheet/|Flexbox Cheatsheet]]

== Animations ==

 * [[http://animista.net/|Animista]]: Wizard that lets you browse and create keyframe-based animations

== Twitter Bootstrap ==

 * [[https://github.com/winjs/winstrap|winjs/winstrap: The official Bootstrap theme for Microsoft's Modern design language]]

=== Bootstrap themes ===

 * [[https://bootswatch.com/|Bootswatch]]. Fave: [[https://bootswatch.com/lumen/|Lumen theme]].
 * [[https://hackerthemes.com/|Hacker Themes]]
Line 3: Line 55:
 * 40em =~ 640px
 * 50em =~ 800px
 * 64em =~ 1024px
 * 20em ≈ 320px
 * 30em ≈ 480px
* 40em 640px
 * 50em 800px
 * 60em ≈ 96
0px
 * 64em 1024px
Line 8: Line 63:

Other appealing widths:

 * 56rem

== Clearfix ==

[[http://www.positioniseverything.net/easyclearing.html|Clearfix]] is the original method for clearfix. At [[http://blogs.sitepoint.com/2005/02/26/simple-clearing-of-floats/|SitePoint]], apparently using `overflow: auto` also works for container elements.

== Font sizes ==

{{{#!highlight css numbers=off
/* Super-large top-page or mid-page heading */
font-size: 4rem; font-weight: 200;
}}}

== Spacing ==

letter-spacing: 0.8px;

letter-spacing: .06em;

letter-spacing: 03125em;

line-height: 1.25em;

line-height: 1.09em;

line-height: 1.4375rem;

h2 { margin-bottom: 0.3em; }

= CSS frameworks =

Quoted file sizes are minified + gzipped.

 * [[http://bulma.io/|Bulma]]: CSS framework based on Flexbox. Has widgets available. 19.7 KB
 * [[http://purecss.io/|Pure.css]]. Minimal CSS framework, 3.8 KB. From Yahoo. 6 KB.

= Text colors =

From oldblog.samat.org (Drupal-powered blog):

 * Text: main text is #1d1916 and some lighter text is #4F4F4F

= Background colors =

 * Warm off-white: background-color: hsl(30,90%,98%)

One

background-color: #f2f2f2;
/* Sidebar */
background-color: #f7f7f7

text-color: black;

a:link { color: #1863a1 }
a:visited { color: #751590 }
a:focus { color: #0181eb }
a:hover { color: #0181eb }
a:active { color: #01579f }

#3A99D3

Highlight styles

Lorem Ipsum e-mail: background-color: gold, which is the same as Gary Johnson's e-mail campaign: #FFD700

Highlight text-shadow, from http://www.audiocheck.net/testtones_highdefinitionaudio.php:

text-shadow: -3px 0px 3px yellow, 3px 0px 3px yellow, 6px 0px 6px yellow, -6px 0px 6px yellow;

Flexbox

Animations

  • Animista: Wizard that lets you browse and create keyframe-based animations

Twitter Bootstrap

Bootstrap themes

Ems for block widths

  • 20em ≈ 320px
  • 30em ≈ 480px
  • 40em ≈ 640px
  • 50em ≈ 800px
  • 60em ≈ 960px
  • 64em ≈ 1024px

from Responsive enhancement

Other appealing widths:

  • 56rem

Clearfix

Clearfix is the original method for clearfix. At SitePoint, apparently using overflow: auto also works for container elements.

Font sizes

/* Super-large top-page or mid-page heading */
font-size: 4rem; font-weight: 200;

Spacing

letter-spacing: 0.8px;

letter-spacing: .06em;

letter-spacing: 03125em;

line-height: 1.25em;

line-height: 1.09em;

line-height: 1.4375rem;

h2 { margin-bottom: 0.3em; }

CSS frameworks

Quoted file sizes are minified + gzipped.

  • Bulma: CSS framework based on Flexbox. Has widgets available. 19.7 KB

  • Pure.css. Minimal CSS framework, 3.8 KB. From Yahoo. 6 KB.

Text colors

From oldblog.samat.org (Drupal-powered blog):

  • Text: main text is #1d1916 and some lighter text is #4F4F4F

Background colors

  • Warm off-white: background-color: hsl(30,90%,98%)

SamatsWiki: CascadingStyleSheets (last edited 2021-11-03 07:16:48 by SamatJain)