diff --git a/examples/article.html b/examples/article.html
index 3631bf1..740d72d 100644
--- a/examples/article.html
+++ b/examples/article.html
@@ -67,8 +67,7 @@
Displaying code snippets
- Some inline javascript:var x = 25;
- Here's a javascript code block.
+ Some inline javascript:var x = 25;. And here's a javascript code block.
var x = 25;
function(x){
diff --git a/src/components/d-byline.js b/src/components/d-byline.js
index 1c5662d..52a9b8b 100644
--- a/src/components/d-byline.js
+++ b/src/components/d-byline.js
@@ -9,14 +9,20 @@ d-byline .byline {
line-height: 1.8em;
color: rgba(0, 0, 0, 0.6);
}
-
+d-byline .byline::before {
+ content: "";
+ display: block;
+ border-bottom: solid 1px #999;
+ width: 36px;
+ margin-bottom: 36px;
+}
d-byline .byline::after {
content: "";
display: block;
border-bottom: solid 1px #999;
- width: 40px;
- margin-top: 48px;
- margin-bottom: 48px;
+ width: 36px;
+ margin-top: 36px;
+ margin-bottom: 36px;
}
d-byline a,
diff --git a/src/components/d-math.js b/src/components/d-math.js
index c0ab8f1..3a9b691 100644
--- a/src/components/d-math.js
+++ b/src/components/d-math.js
@@ -19,8 +19,9 @@ const T = Template('d-math', `
#katex-container .katex-display {
text-align: left;
- padding: 8px 0 8px 0;
- margin: 20px 0;
+ padding: 8px 0 8px 40px;
+ margin: 20px 0 ;
+ /*border-left: solid 1px rgba(0, 0, 0, 0.1);*/
}
#katex-container .katex {
diff --git a/src/components/d-title.js b/src/components/d-title.js
index 89a804c..58953b8 100644
--- a/src/components/d-title.js
+++ b/src/components/d-title.js
@@ -13,7 +13,7 @@ const T = Template('d-title', `
padding-top: 16px;
padding-bottom: 0;
margin-top: 0;
- margin-bottom: 12px;
+ margin-bottom: 18px;
line-height: 1.15;
font-size: 32px;
font-weight: 700;
@@ -26,8 +26,9 @@ const T = Template('d-title', `
padding-top: 0 !important;
padding-bottom: 0 !important;
line-height: 1.6em !important;
- margin-top: 0 !important;
- margin-bottom: 18px !important;
+ margin-top: -2px !important;
+ margin-bottom: 36px !important;
+ border: none !important;
}
@media screen and (min-width: 768px), print {
@@ -47,10 +48,6 @@ const T = Template('d-title', `
}
}
-d-byline {
- border-top: 1px solid rgba(0, 0, 0, 0.1);
-}
-
diff --git a/src/styles/styles-article.css b/src/styles/styles-article.css
index 2a7a1f7..273f59a 100644
--- a/src/styles/styles-article.css
+++ b/src/styles/styles-article.css
@@ -18,39 +18,44 @@ d-article {
}
}
+/*h1::before {
+ content: "";
+ display: block;
+ border-bottom: solid 1px #999;
+ width: 40px;
+ margin-bottom: 24px;
+}*/
+
+
/* H2 */
d-article h2 {
- font-weight: 600;
+ font-weight: 400;
font-size: 26px;
line-height: 1.25em;
- margin-top: 16px;
- margin-bottom: 24px;
- padding-bottom: 24px;
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
+ padding-top: 36px;
+ border-bottom: 1px solid rgba(0, 0, 0, 0.2);
+ margin-bottom: 18px;
+ padding-bottom: 18px;
}
@media(min-width: 1024px) {
d-article h2 {
- margin-top: 2em;
- font-size: 32px;
+ font-size: 30px;
}
}
/* H3 */
d-article h3 {
- font-weight: 600;
- font-size: 20px;
+ font-weight: 700;
+ font-size: 18px;
line-height: 1.4em;
- margin-top: 36px;
- margin-bottom: 18px;
-}
-d-article h1 + h3 {
- margin-top: 48px;
+ margin-bottom: 24px;
+ margin-top: 0;
}
@media(min-width: 1024px) {
d-article h3 {
- font-size: 26px;
+ font-size: 20px;
}
}
@@ -110,14 +115,10 @@ d-article section {
d-article figure {
position: relative;
- margin-top: 30px;
- margin-bottom: 30px;
+ margin-bottom: 36px;
}
-@media(min-width: 1024px) {
- d-article figure {
- margin-top: 48px;
- margin-bottom: 48px;
- }
+d-article h1 + figure {
+ margin-top: 12px;
}
d-article figure img {
width: 100%;