Skip to content

Commit d9ce404

Browse files
authored
Merge pull request #32 from DHTMLX/contact-support-button
[update] move ContactSupport styles to CSS Module
2 parents 58936ef + e5e166f commit d9ce404

3 files changed

Lines changed: 22 additions & 26 deletions

File tree

src/css/custom.css

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -219,23 +219,4 @@ p {
219219
border: 1px solid rgb(215, 212, 212);
220220
max-width: 100%;
221221
padding: 2px;
222-
}
223-
224-
/* styles for Contact Support component */
225-
226-
.contact-support-link-wrapper{
227-
display: flex;
228-
flex-direction: column;
229-
justify-content: start;
230-
align-items: start;
231-
gap: 0.5rem;
232-
margin: 1rem;
233-
}
234-
235-
.contact-support-link{
236-
font-size: var(--ifm-h4-font-size);
237-
font-weight: var(--ifm-heading-font-weight);
238-
text-align: center;
239-
}
240-
241-
/* end for Contact Support component */
222+
}

src/theme/TOCItems/index.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
import TOCItems from '@theme-original/TOCItems';
2+
import styles from './styles.module.css';
23

34
export default function TOCItemsWrapper(props) {
45
return (
56
<>
67
<TOCItems {...props} />
7-
<div className="contact-support-link-wrapper">
8+
<div className={styles.contactSupportLinkWrapper}>
89
Need more help?
9-
<a
10-
href="https://dhtmlx.com/docs/technical-support.shtml"
11-
target="_blank"
12-
rel="noopener noreferrer"
13-
className="contact-support-link pagination-nav__link"
10+
<a
11+
href="https://dhtmlx.com/docs/technical-support.shtml"
12+
target="_blank"
13+
rel="noopener noreferrer"
14+
className={`${styles.contactSupportLink} pagination-nav__link`}
1415
>
1516
Contact Support
1617
</a>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
.contactSupportLinkWrapper {
2+
display: flex;
3+
flex-direction: column;
4+
justify-content: start;
5+
align-items: start;
6+
gap: 0.5rem;
7+
margin: 1rem;
8+
}
9+
10+
.contactSupportLink {
11+
font-size: var(--ifm-h4-font-size);
12+
font-weight: var(--ifm-heading-font-weight);
13+
text-align: center;
14+
}

0 commit comments

Comments
 (0)