Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline code in dark mode is invisible #42

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 38 additions & 17 deletions _tmp/style.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! tailwindcss v2.2.7 | MIT License | https://tailwindcss.com */
/*! tailwindcss v2.2.19 | MIT License | https://tailwindcss.com */

/*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */

Expand Down Expand Up @@ -212,6 +212,11 @@ button,
Remove the inner border and padding in Firefox.
*/

::-moz-focus-inner {
border-style: none;
padding: 0;
}

/**
Restore the focus styles unset by the previous rule.
*/
Expand Down Expand Up @@ -241,6 +246,11 @@ progress {
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
height: auto;
}

/**
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
Expand All @@ -255,11 +265,20 @@ Correct the cursor style of increment and decrement buttons in Safari.
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
-webkit-appearance: none;
}

/**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/

::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}

/*
Interactive
===========
Expand Down Expand Up @@ -408,11 +427,6 @@ input::-moz-placeholder, textarea::-moz-placeholder {
color: #9ca3af;
}

input:-ms-input-placeholder, textarea:-ms-input-placeholder {
opacity: 1;
color: #9ca3af;
}

input::placeholder,
textarea::placeholder {
opacity: 1;
Expand All @@ -423,6 +437,14 @@ button {
cursor: pointer;
}

/**
* Override legacy focus reset from Normalize with modern Firefox focus styles.
*
* This is actually an improvement over the new defaults in Firefox in our testing,
* as it triggers the better focus styles even for links, which still use a dotted
* outline in Firefox by default.
*/

table {
border-collapse: collapse;
}
Expand Down Expand Up @@ -576,14 +598,17 @@ input::-moz-placeholder, textarea::-moz-placeholder {
opacity: 1;
}

input:-ms-input-placeholder, textarea:-ms-input-placeholder {
input::placeholder, textarea::placeholder {
color: #6b7280;
opacity: 1;
}

input::placeholder, textarea::placeholder {
color: #6b7280;
opacity: 1;
::-webkit-datetime-edit-fields-wrapper {
padding: 0;
}

::-webkit-date-and-time-value {
min-height: 1.5em;
}

select {
Expand Down Expand Up @@ -624,7 +649,7 @@ img:hover {
color: rgba(107, 114, 128, var(--tw-text-opacity));
}

.dark .prose h1, .dark .prose h2, .dark .prose h3, .dark .prose h4, .dark .prose h5, .dark .prose h6 .prose hr, .dark .prose strong {
.dark .prose h1, .dark .prose h2, .dark .prose h3, .dark .prose h4, .dark .prose h5, .dark .prose h6 .prose hr, .dark .prose strong, .dark .prose code {
--tw-text-opacity: 1;
color: rgba(156, 163, 175, var(--tw-text-opacity));
}
Expand Down Expand Up @@ -1336,6 +1361,7 @@ nav ul li a.active {
}

.sticky {
position: -webkit-sticky !important;
position: sticky !important;
}

Expand Down Expand Up @@ -1975,11 +2001,6 @@ nav ul li a.active {
color: rgba(209, 213, 219, var(--tw-placeholder-opacity)) !important;
}

.placeholder-gray-300:-ms-input-placeholder {
--tw-placeholder-opacity: 1 !important;
color: rgba(209, 213, 219, var(--tw-placeholder-opacity)) !important;
}

.placeholder-gray-300::placeholder {
--tw-placeholder-opacity: 1 !important;
color: rgba(209, 213, 219, var(--tw-placeholder-opacity)) !important;
Expand Down Expand Up @@ -2941,4 +2962,4 @@ nav ul li a.active {
}

@media (min-width: 1536px) {
}
}
6 changes: 6 additions & 0 deletions content/pages/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,11 @@ You have successfully launched your spacebook. If you are new here, you may want

->*Onward...*<-

## Code Example

This is `code` example

```javascript
console.log("Hello, world!");
```

4 changes: 2 additions & 2 deletions styles/tailwind.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
.prose a:hover {
@apply dark:text-gray-500
}
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 .prose hr, .prose strong {
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 .prose hr, .prose strong, .prose code {
@apply dark:text-gray-400
}
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
Expand Down Expand Up @@ -127,4 +127,4 @@
input {
@apply dark:text-gray-400
}
}
}