mirror of
https://github.com/status-im/wakuconnect-chat-sdk.git
synced 2025-02-17 14:37:18 +00:00
* feat: add skeleton placeholder components and stories * feat: adds gap messages component and stories * feat: add information box component and stories (WIP) * feat: add dismiss prop and more stories * fix: changes onDismiss existing function to onClose * feat: add sidebar skeleton loader * feat: makes the banner component more flexible * update information box * fix: changes from review * feat: add topbar-skeleton component * Fix Skeleton typo --------- Co-authored-by: Pavel Prichodko <14926950+prichodko@users.noreply.github.com>
92 lines
1.2 KiB
CSS
92 lines
1.2 KiB
CSS
:root {
|
|
--topbar-height: 56px;
|
|
--composer-height: 100px;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
#root {
|
|
height: 100%;
|
|
overscroll-behavior: none;
|
|
user-select: none;
|
|
}
|
|
|
|
*::selection {
|
|
color: #fff;
|
|
background: hsla(229, 71%, 57%, 1);
|
|
}
|
|
|
|
#app {
|
|
isolation: isolate;
|
|
height: 100%;
|
|
display: grid;
|
|
grid-template-columns: 352px 1fr auto;
|
|
}
|
|
|
|
#main {
|
|
position: relative;
|
|
height: 100vh;
|
|
}
|
|
|
|
#sidebar {
|
|
overflow: auto;
|
|
height: 100vh;
|
|
}
|
|
|
|
#topbar {
|
|
position: absolute;
|
|
inset: 0 0 auto;
|
|
z-index: 100;
|
|
}
|
|
|
|
#content {
|
|
position: relative;
|
|
overflow: auto;
|
|
padding-top: var(--topbar-height);
|
|
padding-bottom: var(--composer-height);
|
|
height: 100vh;
|
|
}
|
|
|
|
#messages {
|
|
padding: 8px;
|
|
}
|
|
|
|
#anchor-actions {
|
|
position: absolute;
|
|
right: 20px;
|
|
transform: translateY(calc(-100% - 12px));
|
|
}
|
|
|
|
#composer {
|
|
position: absolute;
|
|
inset: auto 0 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
#members {
|
|
width: 352px;
|
|
overflow: auto;
|
|
}
|
|
|
|
@media screen and (max-width: 768px) {
|
|
#app {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
#sidebar {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@keyframes gradient {
|
|
0% {
|
|
background-position: 0% 50%;
|
|
}
|
|
50% {
|
|
background-position: 100% 50%;
|
|
}
|
|
100% {
|
|
background-position: 0% 50%;
|
|
}
|
|
}
|