Fix style blink
This commit is contained in:
parent
3125f96ca6
commit
cebd40cd02
2 changed files with 5 additions and 5 deletions
|
|
@ -49,10 +49,9 @@ const handleTextToggle = () => {
|
|||
|
||||
const isInsidePortfolio =
|
||||
new URLSearchParams(location.search).get('portfolioView') !== null;
|
||||
if (isInsidePortfolio) {
|
||||
toggleButton.style.visibility = 'hidden';
|
||||
logo.style.visibility = 'hidden';
|
||||
} else {
|
||||
if (!isInsidePortfolio) {
|
||||
toggleButton.style.visibility = 'visible';
|
||||
logo.style.visibility = 'visible';
|
||||
toggleButton.addEventListener('click', handleTextToggle);
|
||||
}
|
||||
handleTextToggle();
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ body {
|
|||
#info {
|
||||
@include card();
|
||||
@include center-children();
|
||||
|
||||
visibility: hidden;
|
||||
padding: 0.25rem 0.5rem;
|
||||
text-decoration: none;
|
||||
|
||||
|
|
@ -101,6 +101,7 @@ body {
|
|||
#toggle-text {
|
||||
bottom: 0;
|
||||
@include card();
|
||||
visibility: hidden;
|
||||
|
||||
font-size: 1.25rem;
|
||||
width: 150px;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue