Skip to content

Commit

Permalink
remove underline
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 committed Jan 3, 2024
1 parent cf0e36f commit c629698
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion website/src/components/faqs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function FAQ({ path, alt_header = null }) {
<div className={styles.faqs} onMouseEnter={handleMouseEnter} onMouseLeave={handleMouseLeave}>
<span className={styles.link} onClick={toggleOn}>
<span className={styles.toggle} style={{ transform: isOn ? 'rotateX(0deg)' : 'rotateX(180deg)' }}></span>
&nbsp;{alt_header || (fileContent?.meta && fileContent.meta.title)}
<span className={styles.headerText}>{alt_header || (fileContent?.meta && fileContent.meta.title)}</span>
<small className={styles.disclaimer}>Hover to view</small>
</span>
<div style={{ display: isOn ? 'block' : 'none' }} className={styles.body}>
Expand Down
8 changes: 6 additions & 2 deletions website/src/components/faqs/styles.module.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@

:local(.link) {
:local(.link) :local(.headerText) {
color: var(--ifm-link-color);
text-decoration: none;
transition: text-decoration 0.3s; /* Smooth transition */
}

:local(.link:hover) {
:local(.link:hover) :local(.headerText),
:local(.link:focus) :local(.headerText) {
text-decoration: underline;
cursor: pointer;
}
Expand All @@ -28,6 +31,7 @@
font-size: 0.8em;
color: #666;
margin-left: 10px; /* Adjust as needed */
text-decoration: none;
}

:local(.body) {
Expand Down

0 comments on commit c629698

Please sign in to comment.