-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Final touches to mini title dynamics
- Loading branch information
Showing
5 changed files
with
145 additions
and
133 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
.mini-title { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
background-color: var(--arcadia-pewter); | ||
color: white; | ||
z-index: 1020; | ||
height: var(--mini-title-height); | ||
transform: translateY(-100%); | ||
transition: transform 0.3s ease-out, top 0.2s ease-out; | ||
} | ||
|
||
/* When navbar is visible, position mini title below it */ | ||
.navbar-visible .mini-title { | ||
top: var(--navbar-height); | ||
} | ||
|
||
.mini-title.visible { | ||
transform: translateY(0); | ||
} | ||
|
||
.mini-title-content { | ||
grid-column: page-start/page-end-inset; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; /* Center the flex container */ | ||
opacity: 0.0; | ||
width: 100%; | ||
height: 100%; | ||
font-family: var(--nb-banner-title-font-family) !important; | ||
font-weight: 250 !important; | ||
font-size: 1.2rem; | ||
} | ||
|
||
.mini-title.visible .mini-title-content { | ||
opacity: 1.0; | ||
transition: opacity 1s ease-in-out; | ||
} | ||
|
||
/* Logo - stays its natural size */ | ||
.mini-title-logo-wrapper { | ||
flex: 0 0 auto; | ||
margin-right: 1rem; | ||
display: flex; | ||
justify-content: flex-end; | ||
} | ||
|
||
.mini-title-logo-wrapper img { | ||
height: 1.5rem; | ||
width: auto; | ||
} | ||
|
||
/* Title - takes available space but doesn't force expansion */ | ||
.mini-title-content p { | ||
flex: 0 1 auto; | ||
text-align: center; | ||
margin: 0; | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
min-width: 0; | ||
max-width: fit-content; /* Only take needed space */ | ||
} | ||
|
||
/* Version control - stays its natural size */ | ||
#mini-version-control { | ||
flex: 0 0 auto; | ||
margin-left: 1rem; | ||
display: flex; | ||
justify-content: flex-start; | ||
} | ||
|
||
#mini-version-control .nav-link { | ||
color: white; | ||
padding: 0; | ||
} | ||
|
||
#mini-version-control iconify-icon { | ||
font-size: 0.7em; | ||
} |
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