mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-26 23:42:11 -05:00
feat(header): new glass header on channel view
This commit is contained in:
parent
e20c3ee518
commit
83f38d71ce
6 changed files with 28 additions and 1 deletions
|
@ -37,6 +37,7 @@ export const Bar = styled.div<{ position: "top" | "bottom"; accent?: boolean }>`
|
||||||
user-select: none;
|
user-select: none;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
transition: color ease-in-out 0.08s;
|
transition: color ease-in-out 0.08s;
|
||||||
|
top: 48px;
|
||||||
|
|
||||||
${(props) =>
|
${(props) =>
|
||||||
props.accent
|
props.accent
|
||||||
|
|
|
@ -8,6 +8,12 @@ export default styled.div`
|
||||||
user-select: none;
|
user-select: none;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
|
|
||||||
|
> * > ::-webkit-scrollbar-thumb {
|
||||||
|
width: 4px;
|
||||||
|
background-clip: content-box;
|
||||||
|
border-top: 48px solid transparent;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
export const GenericSidebarBase = styled.div<{
|
export const GenericSidebarBase = styled.div<{
|
||||||
|
|
|
@ -31,7 +31,13 @@ const Header = styled.div<Props>`
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background-size: cover !important;
|
background-size: cover !important;
|
||||||
background-position: center !important;
|
background-position: center !important;
|
||||||
background-color: var(--primary-header);
|
//background-color: var(--primary-header);
|
||||||
|
background-color: rgba(54, 54, 54, 0.75);
|
||||||
|
backdrop-filter: blur(10px);
|
||||||
|
z-index: 20;
|
||||||
|
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
/*> div {
|
/*> div {
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|
|
@ -30,6 +30,7 @@ const Routes = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
position: relative;
|
||||||
background: var(--primary-background);
|
background: var(--primary-background);
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,12 @@ const ChannelMain = styled.div`
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
|
|
||||||
|
> * > ::-webkit-scrollbar-thumb {
|
||||||
|
width: 4px;
|
||||||
|
background-clip: content-box;
|
||||||
|
border-top: 48px solid transparent;
|
||||||
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
const ChannelContent = styled.div`
|
const ChannelContent = styled.div`
|
||||||
|
|
|
@ -39,8 +39,15 @@ const Area = styled.div`
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
|
padding-top: 48px;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
|
|
||||||
|
> * > ::-webkit-scrollbar-thumb {
|
||||||
|
width: 4px;
|
||||||
|
background-clip: content-box;
|
||||||
|
border-top: 80px solid transparent;
|
||||||
|
}
|
||||||
|
|
||||||
> div {
|
> div {
|
||||||
display: flex;
|
display: flex;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
|
|
Loading…
Reference in a new issue