mirror of
https://github.com/wassname/template.git
synced 2026-10-01 12:43:05 +08:00
Minor style changes
This commit is contained in:
1 parent
50a3a49fd5
commit
8d23e288ae
4 files changed
+8
-8
No files matched your search
@@ -25,7 +25,7 @@ export class Article extends T(HTMLElement) {
|
||||
for (const addedNode of mutation.addedNodes) {
|
||||
switch (addedNode.nodeName) {
|
||||
case 'HR':
|
||||
console.warn('Use of <hr> tags in distill articles is discouraged!');
|
||||
console.warn('Use of <hr> tags in distill articles is discouraged as they interfere with layout! To separate sections, please just use h2 or h3 tags.');
|
||||
break;
|
||||
case '#text': { // usually text nodes are only linebreaks.
|
||||
const text = addedNode.nodeValue;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Template } from '../mixins/template';
|
||||
import { body } from '../helpers/layout';
|
||||
import { page } from '../helpers/layout';
|
||||
|
||||
const T = Template('d-title', `
|
||||
<style>
|
||||
@@ -34,14 +34,14 @@ const T = Template('d-title', `
|
||||
@media(min-width: 1024px) {
|
||||
::slotted(h1) {
|
||||
padding-top: 64px;
|
||||
padding-bottom: 64px;
|
||||
padding-bottom: 32px;
|
||||
font-size: 48px;
|
||||
}
|
||||
}
|
||||
@media(min-width: 1280px) {
|
||||
::slotted(h1) {
|
||||
padding-top: 96px;
|
||||
padding-bottom: 64px;
|
||||
padding-bottom: 32px;
|
||||
font-size: 56px;
|
||||
}
|
||||
}
|
||||
@@ -50,7 +50,7 @@ d-byline {
|
||||
border-top: 1px solid rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
${body('::slotted(h1), ::slotted(h2)')}
|
||||
${page('::slotted(h1), ::slotted(h2)')}
|
||||
|
||||
</style>
|
||||
|
||||
|
||||
Reference in new issue
Block a user