on master help sign in
docs: style pre > code blocks as such

fixes urbit/urbit.org#1139

commit9a5d7507c5c4bf6a81e2d5c8bff019c1f5bc0f37 authorJames Acklin <james.acklin@gmail.com> dateMon 27 Sep 2021, 21:55 (5 years ago) parent6441f64
1 file changed+7−3
styles/markdown.css+7−3
styles/markdown.css+7−3
@@ -1,8 +1,8 @@
1−.markdown *:last-child {
1+.markdown *:last-child:not(pre) {
22 @apply pb-0 mb-0;
33}
44
5−.markdown *:first-child {
5+.markdown *:first-child:not(pre) {
66 @apply pt-0 mt-0;
77}
88
@@ -108,9 +108,13 @@
108108 @apply bg-green-100 text-green-400;
109109}
110110
111+.markdown pre {
112+ @apply block p-4 bg-wall-100 rounded-md;
113+}
114+
111115.markdown pre code,
112116.markdown pre[class*="language-"] code {
113− @apply p-4 md:p-8 rounded-xl;
117+ @apply p-0 bg-transparent;
114118}
115119
116120.markdown ul {