From 6170ba6c16f988c50b307a452f532cee3a009620 Mon Sep 17 00:00:00 2001 From: BcRikko Date: Sat, 23 Feb 2019 11:04:38 +0900 Subject: [PATCH] docs: add table samples --- docs/script.js | 56 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/docs/script.js b/docs/script.js index 7852229..f6dfaa1 100644 --- a/docs/script.js +++ b/docs/script.js @@ -227,7 +227,58 @@ const sampleCollection = [ `, }, { - title: 'avatar', + title: 'tables', + showCode: false, + code: `
+ + + + + + + + + + + + + + + + + + + + + + + +
Table.is-borderedTable.is-centeredTable.is-centeredTable.is-centered
Thou hast had a good morningThou hast had a good afternoonThou hast had a good eveningThou hast had a good night
Thou hast had a good morningThou hast had a good afternoonThou hast had a good eveningThou hast had a good night
+
+ +
+ + + + + + + + + + + + + + + + + +
Table.is-darkTable.is-bordered
Thou hast had a good morningThou hast had a good afternon
Thou hast had a good morningThou hast had a good afternoon
+
`, + }, + { + title: 'avatars', description: 'It is recommended to "image-rendering: pixelated".', showCode: false, code: `Gravatar image example @@ -344,6 +395,9 @@ new Vue({ }, mounted() { hljs.initHighlightingOnLoad(); + [].forEach.call(document.querySelectorAll('dialog'), (a) => { + dialogPolyfill.registerDialog(a); + }); }, methods: { copy(event, id) {