Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Chucheng <ccwangchn@gmail.com>2020-05-14 04:38:08 +0300
committerWang Chucheng <ccwangchn@gmail.com>2020-05-14 04:38:08 +0300
commit60d83be945f0eef06276e71f245a72a27d75d5cb (patch)
treeb49cf1a261ad1e7209d058ba04bb48e0c352737e /assets/css
parentbcacd76dca02303192263c700dd2497cc219620d (diff)
style: add markdown style
Diffstat (limited to 'assets/css')
-rw-r--r--assets/css/markdown.css102
-rw-r--r--assets/css/styles.css1
2 files changed, 103 insertions, 0 deletions
diff --git a/assets/css/markdown.css b/assets/css/markdown.css
new file mode 100644
index 0000000..75ccc2d
--- /dev/null
+++ b/assets/css/markdown.css
@@ -0,0 +1,102 @@
+/* Additional vertical padding used by kbd tag. */
+.py-05 {
+ padding-top: 0.125rem;
+ padding-bottom: 0.125rem;
+}
+
+.markdown {
+ @apply text-gray-900 leading-normal break-words;
+}
+
+.markdown > * + * {
+ @apply mt-0 mb-4;
+}
+
+.markdown li + li {
+ @apply mt-1;
+}
+
+.markdown li > p + p {
+ @apply mt-6;
+}
+
+.markdown strong {
+ @apply font-semibold;
+}
+
+.markdown a {
+ @apply text-blue-600 font-semibold;
+}
+
+.markdown strong a {
+ @apply font-bold;
+}
+
+.markdown h1 {
+ @apply leading-tight border-b text-4xl font-semibold mb-4 mt-6 pb-2;
+}
+
+.markdown h2 {
+ @apply leading-tight border-b text-2xl font-semibold mb-4 mt-6 pb-2;
+}
+
+.markdown h3 {
+ @apply leading-snug text-lg font-semibold mb-4 mt-6;
+}
+
+.markdown h4 {
+ @apply leading-none text-base font-semibold mb-4 mt-6;
+}
+
+.markdown h5 {
+ @apply leading-tight text-sm font-semibold mb-4 mt-6;
+}
+
+.markdown h6 {
+ @apply leading-tight text-sm font-semibold text-gray-600 mb-4 mt-6;
+}
+
+.markdown blockquote {
+ @apply text-base border-l-4 border-gray-300 pl-4 pr-4 text-gray-600;
+}
+
+.markdown code {
+ @apply font-mono text-sm inline bg-gray-200 rounded px-1 py-05;
+}
+
+.markdown pre {
+ @apply bg-gray-100 rounded p-4;
+}
+
+.markdown pre code {
+ @apply block bg-transparent p-0 overflow-auto rounded-none;
+}
+
+.markdown ul {
+ @apply text-base pl-8 list-disc;
+}
+
+.markdown ol {
+ @apply text-base pl-8 list-decimal;
+}
+
+.markdown kbd {
+ @apply text-xs inline-block rounded border px-1 py-05 align-middle font-normal font-mono shadow;
+}
+
+.markdown table {
+ @apply text-base border-gray-600;
+}
+
+.markdown th {
+ @apply border py-1 px-3;
+}
+
+.markdown td {
+ @apply border py-1 px-3;
+}
+
+/* Override pygments style background color. */
+.markdown .highlight pre {
+ @apply bg-gray-100 !important;
+}
diff --git a/assets/css/styles.css b/assets/css/styles.css
index 909e46a..9611800 100644
--- a/assets/css/styles.css
+++ b/assets/css/styles.css
@@ -4,5 +4,6 @@
@import "node_modules/tailwindcss/components";
/* Site Specific */
@import "assets/css/site";
+@import "assets/css/markdown";
/* Tailwind's utility classes - generated based on config file */
@import "node_modules/tailwindcss/utilities"; \ No newline at end of file