changeset 152:c9dc1eeeea9a

Better-styled markdown tab.
author Edho Arief <edho@myconan.net>
date Mon, 26 Nov 2012 22:46:24 +0700
parents db5164ff73a9
children 1d6f6288cd15
files app/assets/stylesheets/tabs.css app/assets/stylesheets/tabs.scss
diffstat 2 files changed, 26 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/app/assets/stylesheets/tabs.css	Mon Nov 26 21:53:12 2012 +0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,3 +0,0 @@
-#markdown .well {
-  background-color: white;
-}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/assets/stylesheets/tabs.scss	Mon Nov 26 22:46:24 2012 +0700
@@ -0,0 +1,26 @@
+#markdown {
+  // copypasta from bootstrap's variables.scss
+  $baseFontSize_orig: 14px;
+  $baseLineHeight_orig: 20px;
+
+  // reduce for paste show
+  $baseFontSize: $baseFontSize_orig * 0.8;
+  $baseLineHeight: $baseLineHeight_orig * 0.8;
+
+  .well {
+  background-color: darken(white, 2%);
+  }
+
+  // copypasta from bootstrap's type.scss
+  h1,
+  h2,
+  h3 { line-height: $baseLineHeight * 2; }
+
+  // more copypasta from bootstrap's type.scss
+  h1 { font-size: $baseFontSize * 2.75; }
+  h2 { font-size: $baseFontSize * 2.25; }
+  h3 { font-size: $baseFontSize * 1.75; }
+  h4 { font-size: $baseFontSize * 1.25; }
+  h5 { font-size: $baseFontSize; }
+  h6 { font-size: $baseFontSize * 0.85; }
+}