Skip to content

Commit

Permalink
Merge pull request #226 from AthennaIO/develop
Browse files Browse the repository at this point in the history
fix: path component for dark mode
  • Loading branch information
jlenon7 authored Sep 1, 2024
2 parents f5ddbdf + 6682408 commit a6166fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/the-basics/helpers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4570,7 +4570,7 @@ Merge the project root path with `Path.dirs.workers`:
```typescript
import { Path } from '@athenna/common'

console.log(Path.workers()) // /home/user/athenna-project/src/workers
console.log(Path.workers()) // /home/user/athenna-project/src/worker
```

#### `Path::setWorkers()`
Expand Down
10 changes: 5 additions & 5 deletions src/components/path.module.css
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
/* Basic styling for the container and link */
.hoverCardContainer {
position: relative;
display: inline-block;
}

.hoverCardLink {
text-decoration: none;
color: #007BFF;
font-weight: bold;
cursor: pointer;
}

/* Initial state of the card - hidden */
.hoverCard {
position: absolute;
width: 200px;
padding: 10px;
background-color: #fff;
border: 1px solid #ccc;
background-color: #f6f6f7;
border-radius: 5px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
opacity: 0;
Expand All @@ -37,6 +33,10 @@
text-align: center;
}

[data-theme='dark'] .hoverCard {
background-color: #252529;
}

.hoverCardContainer:hover .hoverCard {
opacity: 1;
pointer-events: auto;
Expand Down

0 comments on commit a6166fc

Please sign in to comment.