mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-23 09:45:46 +03:00
Desperate attempt to make the text and buttons flows nicely in the header
This code will probably haunt me in the future
This commit is contained in:
parent
61edcb2115
commit
6c43ced27c
3 changed files with 17 additions and 4 deletions
18
src/app.css
18
src/app.css
|
@ -127,10 +127,24 @@ a[href^='http'][rel*='nofollow']:visited:not(:has(div)) {
|
|||
font-size: 1.2em;
|
||||
text-align: center;
|
||||
}
|
||||
.deck > header .header-grid h1:first-child {
|
||||
.deck > header .header-grid.header-grid-2 {
|
||||
grid-template-columns: 1fr max-content;
|
||||
}
|
||||
.deck > header .header-grid-2 h1 {
|
||||
text-align: left;
|
||||
padding-left: 8px;
|
||||
width: max-content;
|
||||
}
|
||||
.deck > header .header-grid h1:has(.ancestors-indicator) {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
max-width: fit-content;
|
||||
}
|
||||
.deck > header .header-grid h1:has(.ancestors-indicator) .hero-heading {
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.deck h2 {
|
||||
font-size: 1.45em;
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
.hero-heading {
|
||||
font-size: 16px;
|
||||
display: inline-block;
|
||||
margin-bottom: 0.25em;
|
||||
}
|
||||
.hero-heading .icon {
|
||||
vertical-align: middle;
|
||||
|
|
|
@ -475,7 +475,7 @@ function StatusPage() {
|
|||
<Icon icon="chevron-left" size="xl" />
|
||||
</Link>
|
||||
</div> */}
|
||||
<div class="header-grid">
|
||||
<div class="header-grid header-grid-2">
|
||||
<h1>
|
||||
{!heroInView && heroStatus && uiState !== 'loading' ? (
|
||||
<>
|
||||
|
|
Loading…
Reference in a new issue