Skip to content

Commit

Permalink
Add some dogfooding
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Mar 18, 2022
1 parent 9804474 commit 8d04740
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
22 changes: 22 additions & 0 deletions website/_dogfooding/dogfooding.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

html.plugin-docs.plugin-id-docs-tests .red > a {
color: red;
}

html.plugin-docs.plugin-id-docs-tests .navbar {
border-bottom: solid thin cyan;
}

html.plugin-blog.plugin-id-blog-tests .navbar {
border-bottom: solid thin lime;
}

html.plugin-pages.plugin-id-pages-tests .navbar {
border-bottom: solid thin yellow;
}
5 changes: 4 additions & 1 deletion website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,10 @@ const config = {
remarkPlugins: [npm2yarn],
},
theme: {
customCss: [require.resolve('./src/css/custom.css')],
customCss: [
require.resolve('./src/css/custom.css'),
require.resolve('./_dogfooding/dogfooding.css'),
],
},
gtag: !isDeployPreview
? {
Expand Down
4 changes: 0 additions & 4 deletions website/src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,6 @@ div[class^='announcementBar_'] {
font-weight: bold;
}

.red > a {
color: red;
}

.screen-reader-only {
border: 0;
clip: rect(0 0 0 0);
Expand Down

0 comments on commit 8d04740

Please sign in to comment.