-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a way to debug information of a post by hovering over it (#25)
This information only exists while developing locally.
- Loading branch information
Showing
7 changed files
with
111 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,38 @@ | ||
.post-card { | ||
height: 100%; | ||
|
||
box-shadow: 0 0 5px rgba(0, 0, 0, 0.05); | ||
border: 1px solid var(--minima-border-color-01); | ||
border-radius: 4px; | ||
background-color: var(--minima-card-background-color); | ||
} | ||
|
||
// ------------------------------------------------------------------------- \\ | ||
// Debugging functionality | ||
|
||
.post-debug-container { | ||
position: relative; /* Needed for absolute positioning of tooltip */ | ||
} | ||
|
||
.post-debug-content { | ||
position: absolute; | ||
bottom: 10px; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
|
||
background: rgba(0, 0, 0, 0.8); | ||
color: white; | ||
padding: 0.5em; | ||
border-radius: 5px; | ||
font-size: 0.8rem; | ||
white-space: nowrap; | ||
|
||
opacity: 0; | ||
visibility: hidden; | ||
transition: opacity 0.2s ease-in-out; | ||
} | ||
|
||
.post-debug-container:hover .post-debug-content { | ||
opacity: 1; | ||
visibility: visible; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters