tutu/src/profiles/Profile.css

107 lines
1.9 KiB
CSS
Raw Normal View History

2024-11-03 20:50:31 +08:00
.Profile {
.intro {
background-color: var(--tutu-color-surface-d);
color: var(--tutu-color-on-surface);
padding: 16px 12px;
display: flex;
flex-flow: column nowrap;
gap: 16px;
}
.banner {
width: 100%;
margin-top: calc(-1 * (var(--scaffold-topbar-height) + var(--safe-area-inset-top)));
>img {
object-fit: cover;
width: 100%;
height: 100%;
&::before {
visibility: hidden;
}
}
}
2024-11-03 20:50:31 +08:00
.description {
& a {
color: inherit;
font-style: italic;
}
word-break: break-all;
}
.acct-grp {
display: flex;
flex-flow: row wrap;
gap: 16px;
align-items: center;
&> :nth-child(2) {
2024-11-03 20:50:31 +08:00
flex-grow: 1;
}
&> :last-child {
2024-11-03 20:50:31 +08:00
flex-grow: 1;
text-align: right;
}
}
.name-grp {
display: flex;
flex-flow: column nowrap;
}
2024-11-05 16:19:55 +08:00
.bot-mark {
font-size: 1.2em;
}
.display-name {
display: flex;
align-items: center;
gap: 4px;
}
2024-11-03 20:50:31 +08:00
table.acct-fields {
word-break: break-all;
& td>a {
2024-11-03 20:50:31 +08:00
display: inline-flex;
align-items: center;
color: inherit;
min-height: 44px;
}
& a>.invisible {
2024-11-03 20:50:31 +08:00
display: none;
}
& svg {
vertical-align: middle;
}
}
.toot-list-toolbar {
position: sticky;
top: var(--scaffold-topbar-height);
z-index: calc(var(--tutu-zidx-nav, 1) - 1);
background: var(--tutu-color-surface);
border-bottom: 1px solid var(--tutu-color-surface-d);
contain: content;
/* TODO: box-shadow is needed here (same as app bar, e6).
There is no good way to detect if the sticky is "sticked" -
so let's leave it for future.
For now we use a trick to make it looks better.
*/
box-shadow: 0px -2px 4px 0px var(--tutu-color-shadow);
}
}
.Profile__page-title {
flex-grow: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}