mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-30 15:00:09 +02:00
test: ensure consistent CSS ordering (#6222)
This commit is contained in:
parent
c45d9c6a89
commit
7adc1c0cdb
9 changed files with 178 additions and 3 deletions
|
@ -171,3 +171,11 @@ div[class^='announcementBar_'] {
|
|||
width: 1px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
/* Used to test CSS insertion order */
|
||||
.test-marker-site-custom-css-unique-rule {
|
||||
content: "site-custom-css-unique-rule";
|
||||
}
|
||||
.test-marker-site-custom-css-shared-rule {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
|
|
@ -153,3 +153,8 @@
|
|||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Used to test CSS insertion order */
|
||||
.test-marker-site-index-page {
|
||||
content: "site-index-page";
|
||||
}
|
||||
|
|
17
website/src/theme/Layout/index.tsx
Normal file
17
website/src/theme/Layout/index.tsx
Normal file
|
@ -0,0 +1,17 @@
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import type {Props} from '@theme/Layout';
|
||||
import Layout from '@theme-original/Layout';
|
||||
|
||||
// This component is only used to test for CSS insertion order
|
||||
import './styles.module.css';
|
||||
|
||||
export default function LayoutWrapper(props: Props): JSX.Element {
|
||||
return <Layout {...props} />;
|
||||
}
|
12
website/src/theme/Layout/styles.module.css
Normal file
12
website/src/theme/Layout/styles.module.css
Normal file
|
@ -0,0 +1,12 @@
|
|||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
/* Used to test CSS insertion order */
|
||||
.test-marker-theme-layout {
|
||||
content: "theme-layout";
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue