Carbon/build/static/main.css

261 lines
4.3 KiB
CSS

@font-face {
font-family: Whitney;
font-weight: 400;
src: url(/static/whitney-400.woff?static=0f823bc4b5) format("woff2");
}
@font-face {
font-family: Whitney;
font-weight: 500;
src: url(/static/whitney-500.woff?static=ba33ed18fe) format("woff2");
}
body {
font-family: sans-serif;
background-color: #36393e;
color: #ddd;
font-size: 16px;
font-family: Whitney;
line-height: 1.45;
margin: 0;
height: 100vh;
font-weight: 400;
}
.main {
height: 100vh;
display: flex;
}
.c-rooms {
background-color: #2f3135;
padding: 8px;
width: 240px;
font-size: 18px;
font-weight: 500;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: #202224 #2f3135;
flex-shrink: 0;
}
.c-room {
display: flex;
align-items: center;
padding: 6px 8px;
margin: 2px 0;
cursor: pointer;
border-radius: 8px;
}
.c-room:not(.c-room--active):hover {
background-color: #393c42;
}
.c-room--active {
background-color: #42454a;
}
.c-room__icon {
width: 32px;
height: 32px;
margin-right: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.c-room__icon--no-icon {
background-color: #bbb;
}
.c-room__name {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.c-groups {
position: relative;
width: 80px;
flex-shrink: 0;
font-size: 22px;
font-weight: 500;
}
.c-groups__display {
background-color: #202224;
overflow: hidden;
width: 80px;
position: absolute;
left: 0;
top: 0;
bottom: 0;
right: 0;
transition: width ease-out 0.12s;
scrollbar-width: thin;
scrollbar-color: #42454a #202224;
}
.c-groups__display:not(.c-groups__display--closed):hover {
width: 320px;
overflow-y: auto;
}
.c-groups__container {
width: 320px;
padding: 8px;
}
.c-group {
display: flex;
align-items: center;
padding: 4px 8px;
cursor: pointer;
border-radius: 8px;
}
.c-group:hover {
background-color: #2f3135;
}
.c-group__icon {
width: 48px;
height: 48px;
background-color: #393c42;
border-radius: 50%;
margin-right: 16px;
flex-shrink: 0;
transition: border-radius ease-out 0.12s;
}
.c-group--active .c-group__icon {
border-radius: 28%;
}
.c-group__name {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.c-group-marker {
position: absolute;
top: 5px;
opacity: 0;
transform: translateY(8px);
transition: transform ease 0.12s, opacity ease-out 0.12s;
height: 46px;
width: 6px;
background-color: #ccc;
border-radius: 0px 6px 6px 0px;
}
.c-event-groups * {
overflow-anchor: none;
}
.c-message-group, .c-message-event {
margin-top: 12px;
padding-top: 12px;
border-top: 1px solid #4b4e54;
}
.c-message-group {
display: flex;
}
.c-message-group__avatar {
flex-shrink: 0;
margin-right: 16px;
cursor: pointer;
}
.c-message-group__icon {
width: 40px;
height: 40px;
border-radius: 50%;
}
.c-message-group__icon--no-icon {
background-color: #48d;
}
.c-message-group__intro {
display: flex;
align-items: baseline;
}
.c-message-group__name {
color: #5bf;
margin: -2px 0px -3px;
font-size: 19px;
font-weight: 500;
cursor: pointer;
}
.c-message-group__name:hover {
text-decoration: underline;
}
.c-message-group__date {
font-size: 14px;
margin-left: 9px;
color: #999;
}
.c-message {
margin-top: 4px;
opacity: 1;
transition: opacity 0.2s ease-out;
}
.c-message--pending {
opacity: 0.5;
}
.c-message-event {
padding-top: 10px;
padding-left: 6px;
}
.c-message-event__inner {
display: flex;
align-items: center;
}
.c-message-event__icon {
margin-right: 8px;
position: relative;
top: 1px;
}
.c-message-notice {
padding: 12px;
}
.c-message-notice__inner {
text-align: center;
padding: 12px;
background-color: #42454a;
border-radius: 8px;
}
.c-chat {
display: grid;
grid-template-rows: 1fr 82px;
align-items: end;
flex: 1;
}
.c-chat__messages {
height: 100%;
overflow-y: scroll;
scrollbar-color: #202224 #2f3135;
display: grid;
align-items: end;
}
.c-chat__inner {
padding: 20px 20px 20px;
}
.c-chat-input {
width: 100%;
border-top: 2px solid #4b4e54;
background-color: #36393e;
}
.c-chat-input__textarea {
width: calc(100% - 40px);
height: 39.2px;
box-sizing: border-box;
margin: 20px;
padding: 8px;
font-family: inherit;
font-size: inherit;
background-color: #42454a;
color: #fff;
appearance: none;
-moz-appearance: none;
-webkit-appearance: none;
border: none;
border-radius: 8px;
resize: none;
}
.c-anchor {
overflow-anchor: auto;
height: 1px;
}