carbon/build/static/main.css

259 lines
4.2 KiB
CSS
Raw Normal View History

@font-face {
font-family: Whitney;
font-weight: 400;
src: url(/static/whitney-400.woff?static=0f823bc4b5) format("woff2");
}
2020-10-11 13:26:24 +00:00
@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;
2020-10-11 13:26:24 +00:00
font-family: Whitney;
line-height: 1.45;
2020-10-11 13:26:24 +00:00
margin: 0;
height: 100vh;
font-weight: 400;
2020-10-11 13:26:24 +00:00
}
.main {
height: 100vh;
display: flex;
}
.c-rooms {
background-color: #2f3135;
padding: 8px;
width: 240px;
font-size: 18px;
font-weight: 500;
2020-10-15 03:43:37 +00:00
overflow-y: auto;
2020-10-11 13:26:24 +00:00
scrollbar-width: thin;
scrollbar-color: #202224 #2f3135;
flex-shrink: 0;
2020-10-11 13:26:24 +00:00
}
.c-room {
display: flex;
align-items: center;
2020-10-15 03:43:37 +00:00
padding: 6px 8px;
margin: 2px 0;
2020-10-11 13:26:24 +00:00
cursor: pointer;
2020-10-15 03:43:37 +00:00
border-radius: 8px;
2020-10-11 13:26:24 +00:00
}
2020-10-15 03:43:37 +00:00
.c-room:not(.c-room--active):hover {
2020-10-11 13:26:24 +00:00
background-color: #393c42;
2020-10-15 03:43:37 +00:00
}
.c-room--active {
background-color: #42454a;
2020-10-11 13:26:24 +00:00
}
.c-room__icon {
2020-10-15 03:43:37 +00:00
width: 32px;
height: 32px;
2020-10-11 13:26:24 +00:00
margin-right: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.c-room__icon--no-icon {
background-color: #bbb;
}
2020-10-11 13:26:24 +00:00
.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;
2020-10-11 13:26:24 +00:00
}
.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;
2020-10-11 13:26:24 +00:00
}
.c-groups__display:not(.c-groups__display--closed):hover {
width: 320px;
overflow-y: auto;
2020-10-11 13:26:24 +00:00
}
.c-groups__container {
width: 320px;
2020-10-11 13:26:24 +00:00
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;
2020-10-11 13:26:24 +00:00
border-radius: 50%;
margin-right: 16px;
flex-shrink: 0;
2020-10-12 13:26:10 +00:00
transition: border-radius ease-out 0.12s;
}
.c-group--active .c-group__icon {
border-radius: 28%;
2020-10-11 13:26:24 +00:00
}
.c-group__name {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
2020-10-12 13:26:10 +00:00
.c-group-marker {
position: absolute;
top: 5px;
2020-10-15 03:43:37 +00:00
opacity: 0;
2020-10-12 13:26:10 +00:00
transform: translateY(8px);
2020-10-15 03:43:37 +00:00
transition: transform ease 0.12s, opacity ease-out 0.12s;
2020-10-12 13:26:10 +00:00
height: 46px;
width: 6px;
background-color: #ccc;
border-radius: 0px 6px 6px 0px;
}
2020-10-19 05:37:17 +00:00
.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: 32px;
height: 32px;
border-radius: 50%;
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;
2020-10-19 05:37:17 +00:00
grid-template-rows: 1fr 82px;
align-items: end;
2020-10-15 13:24:15 +00:00
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;
2020-10-19 05:37:17 +00:00
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;
2020-10-19 05:37:17 +00:00
}
.c-anchor {
overflow-anchor: auto;
height: 1px;
2020-10-11 13:26:24 +00:00
}