-
-
Save adamwathan/d257699f16ec7cc1b002b5fb7f81f35c to your computer and use it in GitHub Desktop.
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
.markdown { | |
@apply text-lg text-grey-darkest leading-normal; | |
& > * + *, & li + li, & li > p + p { | |
@apply mt-6; | |
} | |
& strong { | |
@apply text-black font-bold; | |
} | |
& a { | |
@apply text-black font-semibold; | |
} | |
& strong a { | |
@apply font-bold; | |
} | |
& h2 { | |
@apply leading-tight text-xl font-bold text-black mb-2 mt-10; | |
} | |
& h3 { | |
@apply leading-tight text-lg font-bold text-black mt-8 -mb-2; | |
} | |
& code { | |
@apply font-mono text-sm inline bg-grey-lighter px-1; | |
} | |
& pre code { | |
@apply block bg-black p-4 rounded; | |
} | |
& blockquote { | |
@apply border-l-4 border-grey-light pl-4 italic; | |
} | |
& ul, & ol { | |
@apply pl-5; | |
@screen sm { | |
@apply pl-10; | |
} | |
} | |
} |
I usually use this PostCSS plugin for nesting support:
Thank you, Adam, cool. Looking forward to TW UI.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Adam,
&
seems to be sass ampersand, but file name says.css
. Can you disclose what you are doing here with&
?All the best, Mikael