Skip to content

Commit

Permalink
📝 Update docs and css
Browse files Browse the repository at this point in the history
  • Loading branch information
jpanther committed Jun 4, 2023
1 parent a5317a5 commit e2a46a0
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 76 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Support for Stack Exchange and Stack Overflow ([#52](https://github.com/jpanther/lynx/pull/52))

### Changed

- Upgrade to Tailwind v3.3.2 ([#74](https://github.com/jpanther/lynx/pull/74))
Expand Down
145 changes: 71 additions & 74 deletions assets/css/compiled/main.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*! Lynx v1.2.4 | MIT License | https://github.com/jpanther/lynx */

/*! tailwindcss v3.3.2 | MIT License | https://tailwindcss.com */
/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com */

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
Expand Down Expand Up @@ -31,7 +31,6 @@
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
*/

html {
Expand All @@ -48,8 +47,6 @@ html {
/* 4 */
font-feature-settings: normal;
/* 5 */
font-variation-settings: normal;
/* 6 */
}

/*
Expand Down Expand Up @@ -436,9 +433,6 @@ video {
--tw-pan-y: ;
--tw-pinch-zoom: ;
--tw-scroll-snap-strictness: proximity;
--tw-gradient-from-position: ;
--tw-gradient-via-position: ;
--tw-gradient-to-position: ;
--tw-ordinal: ;
--tw-slashed-zero: ;
--tw-numeric-figure: ;
Expand Down Expand Up @@ -486,9 +480,6 @@ video {
--tw-pan-y: ;
--tw-pinch-zoom: ;
--tw-scroll-snap-strictness: proximity;
--tw-gradient-from-position: ;
--tw-gradient-via-position: ;
--tw-gradient-to-position: ;
--tw-ordinal: ;
--tw-slashed-zero: ;
--tw-numeric-figure: ;
Expand Down Expand Up @@ -1176,6 +1167,14 @@ video {
background-color: #ff0000;
}

.link-stack-exchange {
background-color: #0095ff;
}

.link-stack-overflow {
background-color: #f48024;
}

/* -- Chroma Highlight -- */

/* Background */
Expand Down Expand Up @@ -1205,36 +1204,36 @@ video {
margin: auto;
}

.\!mb-9 {
margin-bottom: 2.25rem !important;
}

.mb-2 {
margin-bottom: 0.5rem;
.mt-10 {
margin-top: 2.5rem;
}

.mb-3 {
margin-bottom: 0.75rem;
}

.mb-6 {
margin-bottom: 1.5rem;
.mb-2 {
margin-bottom: 0.5rem;
}

.mr-1 {
margin-right: 0.25rem;
.mt-4 {
margin-top: 1rem;
}

.mt-10 {
margin-top: 2.5rem;
.mr-1 {
margin-right: 0.25rem;
}

.mt-2 {
margin-top: 0.5rem;
}

.mt-4 {
margin-top: 1rem;
.mb-6 {
margin-bottom: 1.5rem;
}

.\!mb-9 {
margin-bottom: 2.25rem !important;
}

.block {
Expand All @@ -1249,14 +1248,14 @@ video {
display: flex;
}

.h-36 {
height: 9rem;
}

.h-full {
height: 100%;
}

.h-36 {
height: 9rem;
}

.h-screen {
height: 100vh;
}
Expand Down Expand Up @@ -1297,12 +1296,17 @@ video {
place-self: start;
}

.rounded-full {
border-radius: 9999px;
}

.rounded {
border-radius: 0.25rem;
}

.rounded-full {
border-radius: 9999px;
.py-2 {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}

.px-6 {
Expand All @@ -1315,11 +1319,6 @@ video {
padding-bottom: 2.5rem;
}

.py-2 {
padding-top: 0.5rem;
padding-bottom: 0.5rem;
}

.pt-5 {
padding-top: 1.25rem;
}
Expand All @@ -1337,6 +1336,11 @@ video {
line-height: 2.5rem;
}

.text-xl {
font-size: 1.25rem;
line-height: 1.75rem;
}

.text-lg {
font-size: 1.125rem;
line-height: 1.75rem;
Expand All @@ -1347,11 +1351,6 @@ video {
line-height: 1.25rem;
}

.text-xl {
font-size: 1.25rem;
line-height: 1.75rem;
}

.text-xs {
font-size: 0.75rem;
line-height: 1rem;
Expand All @@ -1365,27 +1364,45 @@ video {
line-height: 1.75rem;
}

.text-neutral-400 {
.text-neutral-500 {
--tw-text-opacity: 1;
color: rgb(156 163 175 / var(--tw-text-opacity));
color: rgb(107 114 128 / var(--tw-text-opacity));
}

.text-neutral-500 {
.text-neutral-900 {
--tw-text-opacity: 1;
color: rgb(107 114 128 / var(--tw-text-opacity));
color: rgb(17 24 39 / var(--tw-text-opacity));
}

.text-neutral-800 {
--tw-text-opacity: 1;
color: rgb(31 41 55 / var(--tw-text-opacity));
}

.text-neutral-900 {
.text-neutral-400 {
--tw-text-opacity: 1;
color: rgb(17 24 39 / var(--tw-text-opacity));
color: rgb(156 163 175 / var(--tw-text-opacity));
}

.hover\:text-primary-500:hover {
--tw-text-opacity: 1;
color: rgb(168 85 247 / var(--tw-text-opacity));
}

.hover\:underline:hover {
text-decoration-line: underline;
}

.hover\:decoration-primary-400:hover {
text-decoration-color: #c084fc;
}

@media (prefers-color-scheme: dark) {
.dark\:bg-neutral-800 {
--tw-bg-opacity: 1;
background-color: rgb(31 41 55 / var(--tw-bg-opacity));
}

.dark\:prose-invert {
--tw-prose-body: var(--tw-prose-invert-body);
--tw-prose-headings: var(--tw-prose-invert-headings);
Expand Down Expand Up @@ -1417,25 +1434,10 @@ video {
.dark\:prose-invert :where(mark):not(:where([class~="not-prose"] *)) {
background-color: #c084fc;
}
}

.hover\:text-primary-500:hover {
--tw-text-opacity: 1;
color: rgb(168 85 247 / var(--tw-text-opacity));
}

.hover\:underline:hover {
text-decoration-line: underline;
}

.hover\:decoration-primary-400:hover {
text-decoration-color: #c084fc;
}

@media (prefers-color-scheme: dark) {
.dark\:bg-neutral-800 {
--tw-bg-opacity: 1;
background-color: rgb(31 41 55 / var(--tw-bg-opacity));
.dark\:text-white {
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
}

.dark\:text-neutral-400 {
Expand All @@ -1447,27 +1449,22 @@ video {
--tw-text-opacity: 1;
color: rgb(107 114 128 / var(--tw-text-opacity));
}

.dark\:text-white {
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
}
}

@media (min-width: 640px) {
.sm\:min-w-0 {
min-width: 0px;
}

.sm\:px-14 {
padding-left: 3.5rem;
padding-right: 3.5rem;
}

.sm\:px-24 {
padding-left: 6rem;
padding-right: 6rem;
}

.sm\:px-14 {
padding-left: 3.5rem;
padding-right: 3.5rem;
}
}

@media (min-width: 768px) {
Expand Down
4 changes: 2 additions & 2 deletions assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

/* Links */
.link {
@apply text-white bg-primary-700 hover:brightness-90;
@apply bg-primary-700 text-white hover:brightness-90;
}

.link-amazon {
Expand Down Expand Up @@ -138,7 +138,7 @@
/* -- Chroma Highlight -- */
/* Background */
.prose .chroma {
@apply rounded-md text-neutral-700 bg-neutral-50 dark:bg-neutral-700 dark:text-neutral-200;
@apply rounded-md bg-neutral-50 text-neutral-700 dark:bg-neutral-700 dark:text-neutral-200;
}

@tailwind utilities;
2 changes: 2 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ disableKinds = ["taxonomy", "term"]
# { slack = "https://workspace.url/team/userid" },
# { snapchat = "https://snapchat.com/add/username" },
# { soundcloud = "https://soundcloud.com/username" },
# { stack-exchange = "https://stackexchange.com/users/userid/username" },
# { stack-overflow = "https://stackoverflow.com/users/userid/username" },
# { steam = "https://steamcommunity.com/profiles/userid" },
# { telegram = "https://t.me/username" },
# { tiktok = "https://tiktok.com/@username" },
Expand Down
2 changes: 2 additions & 0 deletions exampleSite/content/styles.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ These are all the built-in link styles available in Lynx. Don't forget that you
{{< link slack >}}
{{< link snapchat >}}
{{< link soundcloud >}}
{{< link stack-exchange >}}
{{< link stack-overflow >}}
{{< link steam >}}
{{< link telegram >}}
{{< link tiktok >}}
Expand Down

0 comments on commit e2a46a0

Please sign in to comment.