Titan/webapp/titanembeds/static/css/embed.css

1129 lines
17 KiB
CSS
Raw Permalink Normal View History

2017-06-12 06:31:34 +02:00
@font-face {
font-family: Whitney;
font-style: light;
font-weight: 300;
src: url("/static/fonts/whitney_light.woff") format("woff");
}
@font-face {
font-family: Whitney;
font-style: normal;
font-weight: 500;
src: url("/static/fonts/whitney_normal.woff") format("woff");
}
@font-face {
font-family: Whitney;
font-style: medium;
font-weight: 600;
src: url("/static/fonts/whitney_medium.woff") format("woff");
}
@font-face {
font-family: Whitney;
font-style: bold;
font-weight: 700;
src: url("/static/fonts/whitney_bold.woff") format("woff");
}
html {
background-color: #455A64;
background-color: var(--main);
2017-06-12 06:31:34 +02:00
color: white;
font-family: Whitney, Helvetica Neue, Helvetica, Arial, sans-serif;
}
@media (min-width: 992px) {
body.fixed-sidenav #overall-main-content, body.fixed-sidenav #overall-main-content nav, body.fixed-sidenav #overall-main-content footer {
margin-left: auto;
width: calc(100% - 300px);
}
body.fixed-sidenav #overall-main-content #message-spinner {
left: calc(50% + 150px);
}
body.fixed-sidenav #guild-nav {
z-index: 995;
}
}
2018-08-08 04:05:06 +02:00
body, #overall-main-content {
height: 100vh;
}
#overall-main-content {
overflow-y: hidden;
}
body.custom-scrollbars main {
overflow: hidden;
}
main {
2018-08-08 04:05:06 +02:00
overflow-y: scroll;
2017-06-12 06:31:34 +02:00
min-height: calc(100vh - 80px);
overflow-x: hidden;
2018-08-08 04:05:06 +02:00
height: 100%;
}
footer {
2017-06-12 06:31:34 +02:00
position: fixed;
bottom: 0;
left: 0;
right: 0;
height: 50px;
background-color: #37474F;
background-color: var(--chatbox);
}
2018-08-08 04:23:59 +02:00
.navbar-fixed {
position: fixed;
}
nav {
background-color: #263238;
background-color: var(--header);
background: linear-gradient(#263238, rgba(38,50,56,0));
background: linear-gradient(var(--header), rgba(38,50,56,0));
2017-06-12 06:31:34 +02:00
box-shadow: none;
}
nav .brand-logo {
2017-06-12 06:31:34 +02:00
font-size: 1.5rem;
}
2017-06-12 06:31:34 +02:00
@media only screen and (min-width: 601px) {
nav a.button-collapse {
display: block;
}
}
2017-06-12 06:31:34 +02:00
@media only screen and (min-width: 993px) {
.container {
width: 85%;
}
}
.side-nav {
2017-06-12 06:31:34 +02:00
color: white;
background-color: #607d8b;
max-width: 95%;
}
.side-nav .userView .name {
2017-06-12 06:31:34 +02:00
font-size: 20px;
}
.side-nav li>a {
2017-06-12 06:31:34 +02:00
color: #eceff1;
}
2017-09-09 23:46:00 +02:00
.side-nav li>a[id^=channel] {
margin-left: 7px;
}
.side-nav .subheader {
2017-06-12 06:31:34 +02:00
color: #cfd8dc;
font-variant: small-caps;
}
#members-nav {
background-color: #607D8B;
background-color: var(--rightsidebar);
}
#members-nav li>a {
color: #ECEFF1;
color: var(--noroleusers);
2017-11-18 08:58:36 +01:00
}
#members-nav li>a.role-title {
height: unset;
line-height: normal;
padding-bottom: 20px;
padding-top: 10px;
}
2017-11-18 09:23:24 +01:00
#members-nav li>a.subheader {
height: fit-content;
line-height: initial;
padding-top: 15px;
}
#guild-nav {
background-color: #607D8B;
background-color: var(--leftsidebar);
2018-04-01 08:55:34 +02:00
height: 100%;
padding-bottom: 0px;
}
2017-06-12 06:31:34 +02:00
.side-nav div.divider {
background-color: #90A4AE;
background-color: var(--sidebardivider);
2017-06-12 06:31:34 +02:00
margin-left: 10px;
margin-right: 10px;
}
.role-title {
margin-bottom: -15px !important;
font-variant: normal !important;
font-size: 80% !important;
}
.channel-hash {
2017-06-12 06:31:34 +02:00
font-size: 95%;
color: #b0bec5;
}
.membercircle {
2017-06-12 06:31:34 +02:00
margin-top: 5px;
height: 40px;
}
.membername {
2017-06-12 06:31:34 +02:00
position: absolute;
padding-left: 10px;
}
#chatcontent {
padding-left: 1%;
padding-top: 60px;
2017-06-12 06:31:34 +02:00
word-wrap: break-word;
margin-bottom: 60px;
}
2017-06-12 06:31:34 +02:00
#curuser_discrim,
#curuser_name {
display: block;
}
2017-04-09 19:12:06 +02:00
2017-06-12 06:31:34 +02:00
#chatcontent > p {
width: 90%;
2017-09-24 06:17:06 +02:00
border-top: solid 1px rgba(0, 0, 0, 0.1);
padding-top: 10px;
margin-bottom: 0;
}
2018-07-25 08:55:22 +02:00
#chatcontent > p a.linkified {
word-break: break-word;
}
#chatcontent > p.collapsed {
border-top: none;
margin-top: 0;
padding-top: 0;
}
#chatcontent > p.collapsed > .chattimestamp, #chatcontent > p.collapsed > .chatusername, #chatcontent > p.collapsed > .authoravatar {
display: none;
2017-06-12 06:31:34 +02:00
}
2017-04-09 19:12:06 +02:00
2017-10-08 10:36:56 +02:00
#chatcontent .chatusername {
cursor: pointer;
}
#chatcontent .chatusername.discordbotsorgvoted {
2017-12-08 02:43:01 +01:00
text-shadow: 2px 2px 10px yellow;
}
2017-09-24 06:17:06 +02:00
/*#chatcontent > p > span {*/
/* display: table-row*/
/*}*/
2017-04-09 19:12:06 +02:00
2018-08-19 04:55:31 +02:00
#chatcontent .new-member .new-member-arrow {
color: green;
cursor: pointer;
vertical-align: bottom;
}
#chatcontent .new-member .chatusername, #chatcontent .new-member .authoravatar{
display: none;
}
#chatcontent .new-member .chatmessage {
display: inline;
}
2017-06-12 06:31:34 +02:00
::-webkit-input-placeholder {
color: #636363;
color: var(--placeholder);
}
2017-06-12 06:31:34 +02:00
:-moz-placeholder {
color: #636363;
color: var(--placeholder);
}
2017-06-12 06:31:34 +02:00
::-moz-placeholder {
color: #636363;
color: var(--placeholder);
2017-06-12 06:31:34 +02:00
}
:-ms-input-placeholder {
color: #636363;
color: var(--placeholder);
2017-06-12 06:31:34 +02:00
}
::-ms-input-placeholder {
color: #636363;
color: var(--placeholder);
2017-06-12 06:31:34 +02:00
}
#discord-members > li > a.subheader,
#online-server-members-header > a,
2017-06-12 06:31:34 +02:00
#discord-members-count,
#embed-discord-members-count,
#authenticated-embed-users-header > a,
2017-06-12 06:31:34 +02:00
#guest-members-count,
#guest-embed-users-header > a {
2017-06-12 06:31:34 +02:00
text-transform: uppercase;
}
.circle:hover {
border-radius: 20px;
background: linear-gradient(to right, #f9f9f9 90%, #fff);
}
2018-01-05 00:13:00 +01:00
#channels-list {
display: block;
margin-bottom: 40px;
}
2017-06-12 06:31:34 +02:00
#channels-list > li:hover {
-webkit-filter: brightness(150%);
}
2017-09-09 23:46:00 +02:00
.subheader .channel-category {
text-transform: uppercase;
}
.chatusername {
2017-06-12 06:31:34 +02:00
font-weight: bold;
color: #eceff1;
2017-09-24 06:17:06 +02:00
margin-right: 10px;
vertical-align: middle;
font-size: 110%;
}
.chattimestamp {
2017-09-24 06:17:06 +02:00
font-size: 11px;
2017-06-12 06:31:34 +02:00
color: #90a4ae;
margin-right: 3px;
}
2017-09-24 06:17:06 +02:00
.authoravatar {
width: 100%;
max-width: 30px;
border-radius: 50%;
vertical-align: middle;
margin-right: 10px;
}
.footercontainer {
display: flex;
2017-06-12 06:31:34 +02:00
width: 100%;
position: relative;
margin: 10px;
white-space: nowrap;
overflow: hidden;
border-radius: 20px;
border: 1px solid rgb(99, 99, 99);
margin-left: -0px;
padding-left: -4px;
}
#messageboxouter {
width: 100%;
overflow: hidden;
height: 46px;
}
.input-field.inline {
display: inline-block;
vertical-align: middle;
margin-left: 0px;
}
textarea.materialize-textarea {
overflow-y: hidden;
padding: 8px 0px 0px 5px;
resize: none;
min-height: 50px;
margin: 0px 0px 0px 0px;
line-height: initial;
border-bottom: none;
}
textarea.materialize-textarea:focus:not([readonly]) {
border-bottom: none;
box-shadow: none;
}
.currentuserchip {
2017-06-12 06:31:34 +02:00
display: inline-block;
position: relative;
top: -6px;
padding: 6px;
padding-right: 9px;
background-color: #455a64;
}
#currentuserimage_parent {
display: inline-block;
2018-08-12 07:45:03 +02:00
margin-top: 3px;
}
.currentuserimage {
2017-06-12 06:31:34 +02:00
width: 30px;
}
.currentusername {
2018-08-12 07:45:03 +02:00
display: none;
2017-06-12 06:31:34 +02:00
position: relative;
left: 5px;
}
2018-08-12 07:45:03 +02:00
#nameplate:hover #currentusername {
display: inline-block
}
2017-06-12 06:31:34 +02:00
#curuser_discrim {
font-size: 50%;
color: #FFFFFF;
color: var(--discrim);
2017-06-12 06:31:34 +02:00
}
#curuser_discrim,
#curuser_name {
margin-top: -2px;
}
#currentuserimage {
margin-right: 4px;
}
.input-field {
2017-06-12 06:31:34 +02:00
position: relative;
top: -19px;
}
.left {
2017-06-12 06:31:34 +02:00
float: left;
}
.modal {
background-color: #546E7A;
background-color: var(--modal);
2018-08-04 08:54:58 +02:00
border-radius: 25px;
2017-04-05 09:14:29 +02:00
}
.modal-overlay {
height: auto;
}
2017-04-05 09:14:29 +02:00
.betatag {
font-variant: small-caps;
font-size: 15px;
color: #eceff1;
2017-04-09 00:12:28 +02:00
}
#channeltopic {
width: 80%;
margin-left: 30px;
margin-right: auto;
font-size: 85%;
}
label {
color: white;
}
a {
color: #82b1ff;
}
2017-04-26 21:12:35 +02:00
#chatcontent a:hover {
text-decoration: underline;
}
2017-05-13 23:48:47 +02:00
.brand-logo img {
width: 25px;
margin-right: 10px;
margin-top: 6px;
-webkit-filter: brightness(0) invert(1);
filter: brightness(0) invert(1);
}
@media screen and (max-width: 390px) {
.brand-logo-text {
display: none;
}
}
2017-05-13 23:48:47 +02:00
.align-top {
vertical-align: top;
2017-05-24 07:32:19 +02:00
}
#modal_guildinfobox {
background-color: #455a64;
padding-top: 10px;
padding-bottom: 10px;
}
#modal_guildiconcircle {
width: 100%;
max-width: 200px;
}
2017-05-24 20:56:26 +02:00
.btn, #discordlogin_btn {
2017-05-24 07:32:19 +02:00
max-width: 100%;
}
#guestlogin_btn {
display: none;
}
2017-11-05 08:45:14 +01:00
#modal_invite_btn {
padding: 0 1em;
}
2017-05-24 20:56:26 +02:00
@media only screen and (max-width: 800px) {
#modal_guildiconcircle {
max-width: 75px;
}
}
2017-05-24 07:32:19 +02:00
@media only screen and (min-width: 800px) {
.valign-wrap {
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
2017-06-12 06:31:34 +02:00
-ms-flex-align: center;
align-items: center;
2017-05-24 07:32:19 +02:00
}
}
#loginmodal {
font-size: 9pt;
}
#loginmodal h4 {
font-size: 15pt;
}
#guest_login_instr {
margin: 0;
}
#loginmodal .flow-text {
font-size: 11pt;
}
@media screen and (max-width: 600px) {
#guest_login_instr {
display: none;
}
#loginmodal h4 {
font-size: 12pt;
}
}
@media screen and (max-width: 500px) {
#modal_guildinfobox {
width: 100%;
}
#modal_guildiconcircle {
float: left;
}
#authfields {
width: 100%;
}
#modal_guildiconcircle {
width: 55px;
}
#modal_guildname {
margin: 5px;
}
#authfield-choosetxt.flow-text {
font-size: 9pt;
margin-top: 3px;
margin-bottom: 3px;
}
}
@media screen and (max-width: 400px) {
#authfields {
margin-top: 5px;
}
#discordlogin_btn_warn {
display: none;
}
#loginmodal a.btn, #loginmodal a.btn-large {
height: 30px;
line-height: 30px;
padding: 0;
font-size: 7pt;
}
#loginmodal h4 {
display: none;
}
#discordlogin_box {
width: 100%;
}
#guestlogin_box {
width: 100%;
}
#discordlogin_btn {
width: 100%;
}
#custom_username_field {
margin-bottom: 0;
}
#custom_username_field_label {
font-size: 6pt;
}
#authfield-choosetxt {
font-size: 7pt;
}
}
@media screen and (max-width: 230px) {
#authfield-choosetxt {
display: none;
}
}
#nameplate {
cursor: pointer;
2017-06-12 06:31:34 +02:00
background: transparent;
margin-left: 10px;
}
#visitor_mode_message {
margin-right: auto;
margin-left: auto;
display: block;
width: 305px;
}
#visitor_mode_message_note {
display: none;
}
@media only screen and (min-width: 400px) {
#visitor_mode_message_note {
display: inline;
}
}
#focusmodal {
background-color: rgba(84, 110, 122, 0.58);
text-shadow: 1px 1px 2px black, 0 0 1em #607d8b, 0 0 0.2em #b0bec5;
}
2017-06-09 10:22:22 +02:00
.message_emoji {
height: 20px;
}
.message_emoji:hover {
2017-08-13 12:14:03 +02:00
cursor: pointer;
}
#chatcontent .message_emoji:hover {
2017-06-09 10:22:22 +02:00
height: 30px;
}
2017-09-24 06:17:06 +02:00
/*.chatusername {*/
/* display: table-header-group;*/
/*}*/
2017-06-12 06:31:34 +02:00
.chatmessage {
2017-09-24 06:17:06 +02:00
display: block;
color: #C3C4C5;
color: var(--chatmessage);
2017-09-24 06:17:06 +02:00
margin-top: 5px;
}
2017-06-12 06:31:34 +02:00
p.mentioned {
font-weight: bold;
font-style: italic;
}
2017-06-12 06:31:34 +02:00
p.mentioned span.chatmessage {
color: #ff5252;
}
.chatmessage code {
2017-09-23 19:38:14 +02:00
background-color: rgba(0, 0, 0, 0.1);
color: lightgray;
border-radius: 5px;
padding: 2px;
}
.chatmessage code.blockcode {
width: 100%;
display: inline-block;
white-space: pre-wrap;
line-height: 15px;
padding: 5px;
2017-09-24 06:17:06 +02:00
margin-bottom: 3px;
}
2018-03-04 07:29:16 +01:00
.chatmessage .channellink, .chatmessage .discordmention, .rolemention {
border-radius: 5px;
background-color: rgba(0, 0, 0, 0.2);
color: #82b1ff;
cursor: pointer;
}
2018-03-04 07:29:16 +01:00
.chatmessage .channellink:hover, .chatmessage .discordmention:hover, .rolemention:hover {
background-color: rgba(0, 0, 0, 0.5);
color: white;
2017-11-05 06:59:06 +01:00
}
.embeds {
display: block;
width: 60%;
}
@media(max-width: 600px) {
.embeds {
width: 100%;
}
}
.richembed {
display: flex;
border: solid 1px grey;
background-color: rgba(0, 0, 0, 0.1);
border-radius: 10px;
overflow: hidden;
margin-top: 3px;
}
.richembed .color {
width: 6px;
background-color: #cacbce;
}
.richembed .rich {
margin: 10px;
width: 100%;
2017-11-05 06:59:06 +01:00
}
.richembed img {
border-radius: 5px;
}
.richembed .provider .name {
color: #87909c;
}
.richembed .author .name {
color: white;
}
2017-11-05 06:59:06 +01:00
.richembed .author img, .richembed .footer img {
width: 20px;
border-radius: 100px;
vertical-align: bottom;
}
.richembed .description {
2017-12-08 22:19:07 +01:00
white-space: pre-line;
}
2017-11-05 06:59:06 +01:00
.richembed .content {
display: flex;
}
.richembed .innercontent {
width: 100%;
}
2017-11-05 06:59:06 +01:00
.richembed .thumbnail {
margin-left: 2px;
}
.richembed .thumbnail img {
width: 100%;
max-width: 170px;
}
2018-02-18 22:23:55 +01:00
.richembed .thumbnail img.materialboxed.active {
max-width: none;
}
2017-11-05 06:59:06 +01:00
.richembed .fields {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.richembed .field-name {
font-weight: bold;
}
.richembed .field {
flex: 0;
min-width: 100%;
}
.richembed .field.inline {
flex: 1;
flex-basis: auto;
min-width: 100px;
}
@media(max-width: 600px) {
.richembed .field.inline {
flex: 0;
flex-basis: unset;
min-width: 100%;
}
}
.richembed .image img {
max-width: 300px;
width: 100%;
2017-11-05 07:09:05 +01:00
}
2018-02-18 21:53:32 +01:00
.richembed .image img.materialboxed.active {
max-width: none;
}
.richembed .video {
width: 100%;
max-width: 450px;
}
2017-11-05 07:09:05 +01:00
#chatcontent img.attachment {
width: 100%;
max-width: 300px;
max-height: 300px;
object-fit: contain;
display: block;
2017-08-13 12:14:03 +02:00
}
2018-02-18 21:53:32 +01:00
#chatcontent img.attachment.materialboxed.active {
max-width: none;
max-height: none;
}
#chatcontent .player {
width: 100%;
max-width: 400px;
}
2018-07-27 10:57:54 +02:00
#chatcontent span.reactions {
display: block;
}
#chatcontent span.reactions .reaction {
background-color: rgba(0, 0, 0, 0.1);
font-size: 12pt;
border-radius: 5px;
margin-left: 6px;
margin-top: 6px;
2018-07-27 10:57:54 +02:00
padding-left: 3px;
color: #C3C4C5;
cursor: pointer;
height: 27px;
display: inline-block;
min-width: 50px;
}
#chatcontent span.reactions .reaction:hover {
transform: scale(1.3);
}
#chatcontent span.reactions .reaction:hover:active {
transform: scale(0.9);
}
#chatcontent span.reactions .reaction img {
max-width: 18px;
max-height: 18px;
2018-07-27 10:57:54 +02:00
vertical-align: middle;
}
#chatcontent span.reactions .reaction .count {
float: right;
margin-right: 6px;
}
.wdt-emoji-popup {
2017-08-13 12:14:03 +02:00
position: fixed;
bottom: 5%;
2017-08-13 12:14:03 +02:00
right: 1%;
z-index: 500;
top: auto !important;
left: auto;
2017-08-13 12:14:03 +02:00
}
.wdt-emoji-picker {
bottom: 13px;
right: 10px;
2017-08-13 12:14:03 +02:00
}
#wdt-emoji-search, #wdt-emoji-search:focus {
padding: 2px;
2017-08-13 12:14:03 +02:00
}
@media only screen and (max-width: 320px) {
.wdt-emoji-picker {
display: none;
}
#upload-file-btn {
display: none;
}
2017-08-13 12:14:03 +02:00
}
@media only screen and (min-width: 321px) {
.wdt-emoji-picker {
display: block;
}
#upload-file-btn {
display: block;
}
}
#upload-file-btn {
position: absolute;
bottom: 5px;
right: 38px;
color: gray;
padding: 1px;
transition: .3s ease-out;
}
#upload-file-btn:hover {
color: white;
}
#fileinput {
display: none;
}
@media only screen and (min-width: 500px) {
#filemodal-body {
display: flex;
justify-content: space-evenly;
}
#filemodal-right {
width: 75%;
}
}
#filepreview {
max-width: 100px;
max-height: 100px;
}
#messagebox-filemodal {
background-color: rgba(0, 0, 0, 0.07);
}
#messagebox-filemodal::placeholder {
color: #90a4ae;
}
#mention-picker {
color: black;
position: fixed;
bottom: 40px;
right: 5%;
z-index: 500;
width: 90%;
max-width: 90%;
max-height: 120px;
min-height: 40px;
background-color: #eceff1;
border-radius: 5px;
overflow-y: scroll;
display: none;
}
#mention-picker-content {
overflow: auto;
height: 100%;
padding: 5px;
display: block;
}
#mention-picker .mention-choice {
padding: 5px;
height: 30px;
display: flex;
align-items: center;
justify-content: space-evenly;
cursor: pointer;
}
#mention-picker .mention-choice.selected {
background-color: rgba(0, 0, 0, 0.07);
}
#mention-picker img {
width: 25px;
height: 25px;
}
#mention-picker .displayname {
margin-left: 10px;
}
#mention-picker .realname {
margin-left: auto;
}
@media only screen and (max-width: 320px) {
#mention-picker .realname {
display: none;
}
}
2017-12-07 08:03:11 +01:00
#usercard .avatar {
width: 100%;
2017-12-07 08:10:55 +01:00
max-width: 120px;
2017-12-07 08:03:11 +01:00
}
2017-12-07 07:49:32 +01:00
#usercard .identity {
display: inline;
vertical-align: sub;
}
#usercard .identity .hash, #usercard .identity .discriminator {
font-size: 1.30rem;
}
#usercard .bottag {
background-color: #5DADE2;
padding: 5px;
border-radius: 10px;
font-weight: bold;
margin-left: 7px;
font-size: 10pt;
}
#usercard .role .bubble {
color: #cacbce;
border: 1px solid;
border-color: inherit;
border-radius: 10px;
white-space: nowrap;
2017-12-07 07:49:32 +01:00
}
#usercard .role .text, #usercard .role .color {
margin-left: 5px;
margin-right: 5px;
}
#usercard .role .color {
display: inline-block;
width: 10px;
height: 10px;
background-color: #cacbce;
margin-right: 0;
border-radius: 10px;
}
#usercard .role .text {
color: lightgray;
}
#usercard .game {
font-weight: bold;
}
#usercard .game .text {
font-weight: normal;
}
#usercard .badges .discordbotsorgvoted {
2017-12-07 07:49:32 +01:00
color: yellow;
}
#usercard .badges .supporter {
color: limegreen;
}
#usercard .badges .administrator {
color: hotpink;
}
#usercard .badges .partner {
color: orange;
}
#google-recaptcha {
margin: 0 auto;
width: 302px;
}
2018-01-28 01:43:06 +01:00
#logout_btn, #proceed_nsfw_btn {
2017-11-20 04:54:29 +01:00
background-color: red;
}
2018-01-28 01:43:06 +01:00
#nsfwmodal i {
color: yellow;
}
#message-spinner {
position: fixed;
top: 50%;
left: 50%;
margin-top: -30vh;
margin-left: -5vw;
display: none;
}
#message-spinner > div, #members-spinner > div {
background-color: white;
}
#message-spinner.error > div {
background-color: pink;
}
#members-spinner {
position: absolute;
left: 45%;
}
/* CSS Variables */
:root {
/*--<var>: <value>*/
--modal: #546E7A;
--noroleusers: #ECEFF1;
--main: #455A64;
--placeholder: #636363;
--sidebardivider: #90A4AE;
--leftsidebar: #607D8B;
--rightsidebar: #607D8B;
--header: #263238;
--chatmessage: #C3C4C5;
--discrim: #FFFFFF;
--chatbox: #37474F;
}