Skip to content

Commit ce8af9e

Browse files
fix: updated files
1 parent 976b5b2 commit ce8af9e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+194
-192
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
20
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "docusaurus-tailwindcss-loader",
3+
"version": "1.0.0",
4+
"description": "A Docusaurus plugin to load TailwindCSS",
5+
"main": "index.js",
6+
"peerDependencies": {
7+
"postcss-import": "^14.0.2",
8+
"tailwindcss": "^3.0.1",
9+
"postcss-preset-env": "^7.4.1"
10+
}
11+
}

src/components/NotFoundPage.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import error from "../../static/img/error404.png";
33

44
const NotFoundPage = () => {
55
return (
6-
<main className="container margin-vert--xl">
6+
<main className="margin-vert--xl container">
77
<div className="row">
88
<div className="col col--6 col--offset-3">
99
<div className="text-center">
@@ -12,10 +12,12 @@ const NotFoundPage = () => {
1212
width={300}
1313
height={300}
1414
alt="404 Error"
15-
style={{ margin: '0 auto' }}
15+
style={{margin: "0 auto"}}
1616
/>
1717
<h1 className="hero__title">🐰 Oops! 🐰</h1>
18-
<p className="hero__subtitle margin-vert--md">404 - Page Not Found</p>
18+
<p className="hero__subtitle margin-vert--md">
19+
404 - Page Not Found
20+
</p>
1921
<div className="margin-vert--lg">
2022
<div className="loading-dots">
2123
<span>Redirecting to documentation</span>

src/css/custom.css

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@
1212

1313
:root {
1414
/* Hotfix: Changed primary color to black to resolve conflict with Docusaurus' default primary orange after disabling Tailwind preflight CSS. Added font size and line height adjustments to compensate for the removal of Tailwind preflight. */
15-
15+
1616
/* --ifm-color-primary-lighter: #ffb575; */
17-
font-size:18px;
17+
font-size: 18px;
1818
line-height: 1.6;
1919
--ifm-color-primary: #000;
2020

21-
--ifm-color-primary-lighter: #FFF;
21+
--ifm-color-primary-lighter: #fff;
2222
--ifm-color-primary: #ff914d;
2323
--ifm-color-primary-dark: #e67643;
2424
--ifm-color-primary-darker: #c95919;
2525
--ifm-color-primary-darkest: #be2c1b;
2626
--ifm-color-primary-light: #ffd0a0;
27-
27+
2828
--ifm-color-primary-lightest: #ffceb1;
2929
--ifm-code-font-size: 95%;
3030
--doc-sidebar-width: 275px !important;
@@ -37,11 +37,10 @@
3737

3838
html[data-theme="dark"] {
3939
/* Hotfix: Changed 'ifm-color-primary-lighter' to white to resolve conflict with Docusaurus' default color after disabling Tailwind preflight CSS. */
40-
4140

4241
/* --ifm-color-primary-lighter: #ffb575; */
43-
--ifm-color-primary-lighter: #FFF;
44-
42+
--ifm-color-primary-lighter: #fff;
43+
4544
--ifm-color-primary: #ff914d;
4645
--ifm-color-primary-dark: #e67643;
4746
--ifm-color-primary-darker: #c95919;
@@ -112,7 +111,7 @@ html[data-theme="light"] {
112111
}
113112

114113
/* Hotfix: Remove extra margin-bottom on community links subtext in the home page due to Tailwind preflight removal */
115-
h3{
114+
h3 {
116115
margin-bottom: 0.1rem;
117116
}
118117
h1,
@@ -213,7 +212,7 @@ div[class^="sidebar_"] .button svg {
213212

214213
/* Pagination */
215214
.pagination-nav {
216-
@apply flex mt-12 flex-col items-start justify-center space-x-0 space-y-5 md:flex-row md:space-x-10 md:space-y-0;
215+
@apply mt-12 flex flex-col items-start justify-center space-x-0 space-y-5 md:flex-row md:space-x-10 md:space-y-0;
217216
}
218217
.pagination-nav__item {
219218
@apply w-full max-w-md;
@@ -228,7 +227,7 @@ div[class^="sidebar_"] .button svg {
228227
}
229228

230229
.navbar__items--right {
231-
@apply justify-end ml-auto flex-row-reverse;
230+
@apply ml-auto flex-row-reverse justify-end;
232231
gap: 13px;
233232
}
234233

@@ -336,7 +335,7 @@ footer svg {
336335
}
337336

338337
/* Reset margin bottom on h3 (refer docs community section li item heading) after disabling tailwind preflight. */
339-
h3{
338+
h3 {
340339
margin-bottom: 1px;
341340
}
342341

@@ -604,13 +603,14 @@ a[class="breadcrumbs__link"] {
604603
}
605604

606605
/* Hotfix: Manually add Tailwind preflight styles to fix clipboard issues in Safari.
607-
Using `preflight: true` caused style conflicts, so these styles are directly included here. */*,
606+
Using `preflight: true` caused style conflicts, so these styles are directly included here. */
607+
*,
608608
::before,
609609
::after {
610610
box-sizing: border-box;
611611
border-width: 0;
612612
border-style: solid;
613-
border-color: theme('borderColor.DEFAULT', currentColor);
613+
border-color: theme("borderColor.DEFAULT", currentColor);
614614
}
615615

616616
* {
@@ -623,7 +623,7 @@ html {
623623
-webkit-text-size-adjust: 100%;
624624
-moz-tab-size: 4;
625625
tab-size: 4;
626-
font-family: theme('fontFamily.sans', ui-sans-serif, system-ui, sans-serif);
626+
font-family: theme("fontFamily.sans", ui-sans-serif, system-ui, sans-serif);
627627
}
628628

629629
body {
@@ -677,9 +677,9 @@ html {
677677
}
678678

679679
button,
680-
[type='button'],
681-
[type='reset'],
682-
[type='submit'] {
680+
[type="button"],
681+
[type="reset"],
682+
[type="submit"] {
683683
-webkit-appearance: button;
684684
background-color: transparent;
685685
background-image: none;
@@ -706,12 +706,12 @@ menu {
706706
}
707707

708708
:focus-visible {
709-
outline: 2px solid theme('colors.blue.600', #2563eb);
709+
outline: 2px solid theme("colors.blue.600", #2563eb);
710710
outline-offset: 2px;
711711
}
712712

713-
[type='number']::-webkit-inner-spin-button,
714-
[type='number']::-webkit-outer-spin-button {
713+
[type="number"]::-webkit-inner-spin-button,
714+
[type="number"]::-webkit-outer-spin-button {
715715
height: auto;
716716
}
717717

@@ -745,7 +745,7 @@ textarea {
745745
}
746746

747747
.theme-back-to-top-button {
748-
background-color: #FF914D !important;
748+
background-color: #ff914d !important;
749749
color: white !important;
750750
}
751751

@@ -756,5 +756,3 @@ textarea {
756756
.theme-back-to-top-button:hover {
757757
background-color: #e67643 !important;
758758
}
759-
760-

src/pages/styles.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,4 +159,4 @@
159159
.announcementInner {
160160
margin: 0 auto;
161161
max-width: 768px;
162-
}
162+
}

src/theme/Heading/styles.module.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ See https://twitter.com/JoshWComeau/status/1332015868725891076
1919
}
2020

2121
:global(.hash-link::before) {
22-
content: '#';
22+
content: "#";
2323
}
2424

2525
:global(.hash-link:focus),

src/theme/NotFound/Content/index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import React, { useEffect } from "react";
1+
import React, {useEffect} from "react";
22
import {PageMetadata} from "@docusaurus/theme-common";
3-
import {useLocation} from '@docusaurus/router';
3+
import {useLocation} from "@docusaurus/router";
44
import NotFoundPage from "../../../components/NotFoundPage";
55

66
export default function NotFound() {
77
const location = useLocation();
8-
8+
99
useEffect(() => {
1010
const timer = setTimeout(() => {
1111
// Check if we're already in the /docs path
12-
const newPath = location.pathname.startsWith('/docs')
13-
? '/docs/'
14-
: '/docs' + location.pathname;
12+
const newPath = location.pathname.startsWith("/docs")
13+
? "/docs/"
14+
: "/docs" + location.pathname;
1515
window.location.href = newPath;
1616
}, 1000); // Increased to 1 seconds to match animation
1717

src/theme/NotFound/Content/styles.module.css

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@
2222
}
2323

2424
@keyframes dotPulse {
25-
0% { opacity: 0; }
26-
50% { opacity: 1; }
27-
100% { opacity: 0; }
28-
}
25+
0% {
26+
opacity: 0;
27+
}
28+
50% {
29+
opacity: 1;
30+
}
31+
100% {
32+
opacity: 0;
33+
}
34+
}

static/css/code-block-buttons.css

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
/* "Copy" code block button */
22
pre {
3-
position: relative;
4-
}
5-
6-
pre .btnIcon {
7-
position: absolute;
8-
top: 4px;
9-
z-index: 2;
10-
cursor: pointer;
11-
border: 1px solid transparent;
12-
padding: 0;
13-
color: #fff;
14-
background-color: transparent;
15-
height: 30px;
16-
transition: all .25s ease-out;
17-
}
18-
19-
pre .btnIcon:hover {
20-
text-decoration: none;
21-
}
22-
23-
.btnIcon__body {
24-
align-items: center;
25-
display: flex;
26-
}
27-
28-
.btnIcon svg {
29-
fill: currentColor;
30-
margin-right: .4em;
31-
}
32-
33-
.btnIcon__label {
34-
font-size: 11px;
35-
}
36-
37-
.btnClipboard {
38-
right: 10px;
39-
}
3+
position: relative;
4+
}
5+
6+
pre .btnIcon {
7+
position: absolute;
8+
top: 4px;
9+
z-index: 2;
10+
cursor: pointer;
11+
border: 1px solid transparent;
12+
padding: 0;
13+
color: #fff;
14+
background-color: transparent;
15+
height: 30px;
16+
transition: all 0.25s ease-out;
17+
}
18+
19+
pre .btnIcon:hover {
20+
text-decoration: none;
21+
}
22+
23+
.btnIcon__body {
24+
align-items: center;
25+
display: flex;
26+
}
27+
28+
.btnIcon svg {
29+
fill: currentColor;
30+
margin-right: 0.4em;
31+
}
32+
33+
.btnIcon__label {
34+
font-size: 11px;
35+
}
36+
37+
.btnClipboard {
38+
right: 10px;
39+
}

vale_styles/Google/AMPM.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
extends: existence
22
message: "Use 'AM' or 'PM' (preceded by a space)."
3-
link: 'https://developers.google.com/style/word-list'
3+
link: "https://developers.google.com/style/word-list"
44
level: error
55
nonword: true
66
tokens:

0 commit comments

Comments
 (0)