generated from distantcam/windty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reorganise stylewith style / mkdn and the rest inline
- Loading branch information
Showing
9 changed files
with
107 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/_assets/public/css/highlightjs.css → src/_assets/css/highlightjs.css
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@layer components { | ||
.mkdn h2 { | ||
@apply mt-8 mb-6 text-left text-2xl font-bold leading-tight text-indigo-800 | ||
} | ||
.mkdn h3 { | ||
@apply my-4 text-left text-xl font-bold leading-normal text-blue-950 | ||
} | ||
.mkdn p, .mkdn ul, .mkdn ol { | ||
@apply my-4 text-xl font-light leading-6 text-slate-900 | ||
} | ||
.mkdn ul { | ||
@apply list-disc | ||
} | ||
.mkdn ol { | ||
@apply list-decimal | ||
} | ||
.mkdn li { | ||
@apply ml-8 mb-2 | ||
} | ||
.mkdn code { | ||
@apply text-xl | ||
} | ||
.mkdn a { | ||
@apply text-blue-900 underline underline-offset-2 hover:no-underline | ||
} | ||
.mkdn .note { | ||
@apply text-cyan-900 bg-sky-200 border p-4 border-cyan-900 border-l-8 | ||
before:content-['ⓘ_Note:_'] before:font-bold | ||
} | ||
} | ||
|
||
/* Markdown style | ||
see: https://aloxe.github.io/huwindty/documentation/styles/ | ||
other solution for markdown styling | ||
read: https://dev.to/matthewtole/eleventy-markdown-and-tailwind-css-14f8 | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
eleventyExcludeFromCollections: true | ||
permalink: /css/mkdn.css | ||
--- | ||
|
||
{% set css %} | ||
{% include "../../_assets/css/mkdn.css" %} | ||
{% endset %} | ||
{{css | postcss | safe}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters