Browse Source

change default style

Le Tan 8 years ago
parent
commit
1370272424
2 changed files with 25 additions and 13 deletions
  1. 25 11
      src/resources/styles/default.css
  2. 0 2
      src/voutline.cpp

+ 25 - 11
src/resources/styles/default.css

@@ -5,45 +5,59 @@ body {
     line-height: 1;
     padding: 30px;
 }
-h1, h2, h3, h4 {
-    color: #111111;
-    font-weight: 400;
+
+h1, h2, h3, h4, h5, h6 {
+    color: #222222;
+    font-weight: bold;
+    margin-bottom: 24px;
+    padding: 0;
 }
-h1, h2, h3, h4, h5, p {
+
+p {
     margin-bottom: 24px;
     padding: 0;
 }
+
 h1 {
-    font-size: 48px;
+    font-size: 36px;
 }
+
 h2 {
-    font-size: 36px;
-    /* The bottom margin is small. It's designed to be used with gray meta text
-     * below a post title. */
-    margin: 24px 0 6px;
+    font-size: 30px;
 }
+
 h3 {
-    font-size: 24px;
+    font-size: 26px;
 }
+
 h4 {
-    font-size: 21px;
+    font-size: 22px;
 }
+
 h5 {
+    font-size: 20px;
+}
+
+h6 {
     font-size: 18px;
 }
+
 a {
     color: #0099ff;
     margin: 0;
     padding: 0;
     vertical-align: baseline;
 }
+
 a:hover {
     text-decoration: none;
     color: #ff6600;
 }
+
 a:visited {
     color: purple;
 }
+
 ul, ol {
     padding: 0;
     padding-left: 24px;

+ 0 - 2
src/voutline.cpp

@@ -100,13 +100,11 @@ void VOutline::handleCurItemChanged(QTreeWidgetItem *p_curItem, QTreeWidgetItem
         return;
     }
     curHeader = tmp;
-    qDebug() << "current header changed" << tmp.anchor << tmp.lineNumber;
     emit outlineItemActivated(curHeader);
 }
 
 void VOutline::updateCurHeader(const VAnchor &anchor)
 {
-    qDebug() << "update current header" << anchor.anchor << anchor.lineNumber;
     if (anchor == curHeader) {
         return;
     }