Permalink
Browse files

improved comment formatting

  • Loading branch information...
1 parent 0ee11a8 commit e50af3eac8118022f651f49dd56f8514125c722f @jonschlinkert committed Mar 1, 2013
Showing with 38 additions and 27 deletions.
  1. +38 −27 vertical-rhythm.less
View
@@ -4,28 +4,29 @@
/* Variables
-// -------------------------------------------
-// Put your custom variables here. If you use bootstrap, use those
-// and add your own for vertical rhythm */
+ * -------------------------------------------
+ * Put your custom variables here. If you use bootstrap, use those
+ * and add your own for vertical rhythm
+ */
@font-size-base: 14px;
@line-height-base: 20px;
-
/* TYPOGRAPHY BASE
-// --------------- */
-
-/* First, we establish a baseline to normalize typography.
-// Credit: this BASE section is based on Twitter Bootstrap's type.less
-// but with everything that isn't related to rhythm removed. */
+ * -------------------------------------------
+ * First, we establish a baseline to normalize typography.
+ * Credit: this BASE section is based on Twitter Bootstrap's type.less
+ * but with everything that isn't related to rhythm removed.
+ */
/* Headings
-// ---------------------------------------- */
-// normalize baselines for headings, remove
-// this block if you use Twitter Bootstrap
+ * -------------------------------------------
+ * normalize baselines for headings, remove
+ * this block if you use Twitter Bootstrap
+ */
h1, h2, h3, h4, h5, h6 {
margin: (@line-height-base / 2) 0;
@@ -59,7 +60,8 @@ h4 small { font-size: @font-size-base; }
/* Lists
-// ---------------------------------------- */
+ * -------------------------------------------
+ */
// Unordered and Ordered lists
ul, ol {
@@ -87,6 +89,7 @@ dd {
margin-left: (@line-height-base / 2);
}
+
// MISC
// ----
@@ -101,14 +104,15 @@ hr {
/* VERTICAL RHYTHM
-// ------------------------------------------- */
-
-// Add .rhythm to parent elements when you
-// wish to apply vertical rhythm to child elements
+ * -------------------------------------------
+ * Add .rhythm to parent elements when you
+ * wish to apply vertical rhythm to child elements
+ */
/* Body text & Misc
-// ------------------------------ */
+ * -------------------------------------------
+ */
.rhythm {
p, ul, ol, blockquote, address, pre, form {
@@ -124,11 +128,12 @@ hr {
/* Headings & paragraphs
-// ------------------------------ *
-/* Here we apply special spacing to certain
-// typographical patterns. It is impossible to
-// predict the patterns you require for your
-// project, so this is only a starting point. */
+ * -------------------------------------------
+ * Here we apply special spacing to certain
+ * typographical patterns. It is impossible to
+ * predict the patterns you require for your
+ * project, so this is only a starting point.
+ */
.rhythm {
h1, h2, h3 {
@@ -161,17 +166,22 @@ hr {
}
/* Lists
-// ------------------------------ */
-/* Special classes for numbered, bulleted,
-// and alpha lists. */
+ * -------------------------------------------
+ * Special classes for numbered, bulleted,
+ * and alpha lists.
+ */
.rhythm {
+
+ //
h3 + ul.bullet-list,
h3 + ul.numbered-list,
h3 + ul.alpha-list,
h3 + ol.numbered-list {
margin-top: (@line-height-base / 2);
}
+
+
ul.bullet-list + h3,
ul.numbered-list + h3,
ul.alpha-list + h3 {
@@ -210,7 +220,8 @@ hr {
/* Blockquotes
-// ------------------------------ */
+ * -------------------------------------------
+ */
.rhythm blockquote {
padding: @line-height-base @line-height-base 0;

0 comments on commit e50af3e

Please sign in to comment.