change default style

This commit is contained in:
Le Tan 2017-05-22 23:37:43 +08:00
parent c2c70368da
commit 1370272424
2 changed files with 27 additions and 15 deletions

View File

@ -5,45 +5,59 @@ body {
line-height: 1; line-height: 1;
padding: 30px; padding: 30px;
} }
h1, h2, h3, h4 {
color: #111111; h1, h2, h3, h4, h5, h6 {
font-weight: 400; color: #222222;
} font-weight: bold;
h1, h2, h3, h4, h5, p {
margin-bottom: 24px; margin-bottom: 24px;
padding: 0; padding: 0;
} }
p {
margin-bottom: 24px;
padding: 0;
}
h1 { h1 {
font-size: 48px;
}
h2 {
font-size: 36px; 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;
} }
h2 {
font-size: 30px;
}
h3 { h3 {
font-size: 24px; font-size: 26px;
} }
h4 { h4 {
font-size: 21px; font-size: 22px;
} }
h5 { h5 {
font-size: 20px;
}
h6 {
font-size: 18px; font-size: 18px;
} }
a { a {
color: #0099ff; color: #0099ff;
margin: 0; margin: 0;
padding: 0; padding: 0;
vertical-align: baseline; vertical-align: baseline;
} }
a:hover { a:hover {
text-decoration: none; text-decoration: none;
color: #ff6600; color: #ff6600;
} }
a:visited { a:visited {
color: purple; color: purple;
} }
ul, ol { ul, ol {
padding: 0; padding: 0;
padding-left: 24px; padding-left: 24px;

View File

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