Skip to content

Commit

Permalink
Merge pull request nunocoracao#383 from nunocoracao/372-lipstick-excl…
Browse files Browse the repository at this point in the history
…ude-code-tag-from-tailwind-config

💄 remove wrapping from code and blockquotes and added background colo…
  • Loading branch information
nunocoracao authored Jan 5, 2023
2 parents 42953a8 + 8a91f00 commit 3cc1569
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 8 deletions.
27 changes: 19 additions & 8 deletions assets/css/compiled/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -885,14 +885,21 @@ select {
color: var(--tw-prose-code);
font-weight: 600;
font-size: 0.875em;
background-color: rgba(var(--color-neutral-200), 1);
padding-top: 2px;
padding-bottom: 2px;
padding-left: 3px;
padding-right: 3px;
}

.prose :where(code):not(:where([class~="not-prose"] *))::before {
content: "`";
display: none;
}

.prose :where(code):not(:where([class~="not-prose"] *))::after {
content: "`";
display: none;
}

.prose :where(a code):not(:where([class~="not-prose"] *)) {
Expand Down Expand Up @@ -1160,6 +1167,14 @@ select {
border-radius: 0.12rem;
}

.prose :where(p):not(:where([class~="not-prose"] *))::before {
display: none;
}

.prose :where(p):not(:where([class~="not-prose"] *))::after {
display: none;
}

.sr-only {
position: absolute;
width: 1px;
Expand Down Expand Up @@ -1474,14 +1489,6 @@ select {
height: 100%;
}

.h-\[120px\] {
height: 120px;
}

.h-\[100px\] {
height: 100px;
}

.h-\[150px\] {
height: 150px;
}
Expand Down Expand Up @@ -3339,6 +3346,10 @@ body:has(#menu-controller:checked) {
background-color: rgba(var(--color-secondary-400), 1);
}

.dark .dark\:prose-invert :where(code):not(:where([class~="not-prose"] *)) {
background-color: rgba(var(--color-neutral-600), 1);
}

.dark .dark\:text-neutral-500 {
--tw-text-opacity: 1;
color: rgba(var(--color-neutral-500), var(--tw-text-opacity));
Expand Down
22 changes: 22 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,25 @@ module.exports = {
padding: "0.1rem 0.2rem",
borderRadius: "0.12rem",
},
code:{
backgroundColor: theme("colors.neutral.200 / 1"),
paddingTop: "2px",
paddingBottom: "2px",
paddingLeft: "3px",
paddingRight: "3px",
},
'code::before': {
display: 'none'
},
'code::after': {
display: 'none'
},
'p::before': {
display: 'none'
},
'p::after': {
display: 'none'
},
},
},
invert: {
Expand All @@ -131,6 +150,9 @@ module.exports = {
mark: {
backgroundColor: theme("colors.secondary.400 / 1"),
},
code:{
backgroundColor: theme("colors.neutral.600 / 1"),
},
},
},
}),
Expand Down

0 comments on commit 3cc1569

Please sign in to comment.