Fixed mention color and cleaned up css

This commit is contained in:
Jeremy Zhang 2017-06-12 04:31:34 +00:00
parent 289fdc0eb5
commit 926d4d14a9
3 changed files with 225 additions and 208 deletions

View File

@ -1,6 +1,35 @@
@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;
color: white;
font-family: Whitney, Helvetica Neue, Helvetica, Arial, sans-serif;
}
main {
@ -27,6 +56,26 @@ nav .brand-logo {
font-size: 1.5rem;
}
@media only screen and (min-width: 601px) {
nav a.button-collapse {
display: block;
}
}
body > div.navbar-fixed > nav > div {
background: #263238 background: -webkit-linear-gradient(#263238, #37474f, #455a64);
/* For Safari 5.1 to 6.0 */
background: -o-linear-gradient(#263238, #37474f, #455a64);
/* For Opera 11.1 to 12.0 */
background: -moz-linear-gradient(#263238, #37474f, #455a64);
/* For Firefox 3.6 to 15 */
background: linear-gradient(#263238, #37474f, #455a64);
/* Standard syntax */
}
@media only screen and (min-width: 993px) {
.container {
width: 85%;
@ -51,16 +100,29 @@ color: #cfd8dc;
font-variant: small-caps;
}
.side-nav div.divider {
background-color: #90a4ae;
margin-left: 10px;
margin-right: 10px;
}
#members-btn > i {
visibility: hidden;
}
#members-btn {
visibility: visible;
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNiIgaGVpZ2h0PSIyNiI+CiAgPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxwYXRoIGQ9Ik0xIDFoMjR2MjRIMVYxeiIvPgogICAgPHBhdGggZmlsbD0iI0ZGRiIgZD0iTTE2Ljc3MjA3NTQgMTQuNjc5MTc3OGMtLjIyNDkwOTctLjIyNTY4ODYtLjQ3NDE1NzMtLjQzNTE2ODEtLjc0MjA3NTQtLjYyOTE3NzguMzUtLjAzLjY4LS4wNS45Ny0uMDUgMi4zMyAwIDcgMS4xNyA3IDMuNVYyMGgtNHYtMWMwLTEuODgxNjkxNC0xLjQwNzcwNTYtMy4zMjMwMTQzLTMuMjI3OTI0Ni00LjMyMDgyMjJ6bS0xLjQzODU3MzUtOC4xNzU4NTM0QzE1LjgwOTgwODIgNi4xODUyNTE3MyAxNi4zODI3ODQ1IDYgMTcgNmMxLjY2IDAgMi45OSAxLjM0IDIuOTkgM3MtMS4zMyAzLTIuOTkgM2MtLjYxNzE5MTQgMC0xLjE5MDE0NzEtLjE4NTIzNzMtMS42NjY0NDIzLS41MDMyODcyQzE1Ljc1NzQ4MzIgMTAuNzYyMTQwOTUgMTYgOS45MDk1NTYgMTYgOS4wMDAwNjY5M2MwLS45MDk1Mjg5Ni0uMjQyNTM4MS0xLjc2MjE0ODgtLjY2NjQ5ODEtMi40OTY3NDI1M3pNMTAgMTNjMi4yMSAwIDQtMS43OSA0LTRzLTEuNzktNC00LTQtNCAxLjc5LTQgNCAxLjc5IDQgNCA0em0wIDJjLTIuNjcgMC04IDEuMzQtOCA0djJoMTZ2LTJjMC0yLjY2LTUuMzMtNC04LTR6Ii8+CiAgPC9nPgo8L3N2Zz4=);
background-repeat: no-repeat;
margin-top: 18px
}
.role-title {
margin-bottom: -15px !important;
font-variant: normal !important;
font-size: 80% !important;
}
.divider {
background-color: #90a4ae;
}
.channel-hash {
font-size: 95%;
color: #b0bec5;
@ -76,7 +138,7 @@ position: absolute;
padding-left: 10px;
}
.chatcontent {
#chatcontent {
padding-left: 1%;
padding-top: 1%;
padding-bottom: 40px;
@ -99,10 +161,56 @@ word-break: break-word;
hyphens: auto;
}
@media only screen and (min-width: 601px) {
nav a.button-collapse {
#curuser_discrim,
#curuser_name {
display: block;
}
#chatcontent > p {
display: table;
}
#chatcontent > p > span {
display: table-row
}
::-webkit-input-placeholder {
color: rgb(99, 99, 99);
}
:-moz-placeholder {
color: rgb(99, 99, 99);
}
::-moz-placeholder {
color: rgb(99, 99, 99);
}
:-ms-input-placeholder {
color: rgb(99, 99, 99);
}
::-ms-input-placeholder {
color: rgb(99, 99, 99);
}
#discord-members > li > a.subheader,
#members-nav > li:nth-child(1) > a,
#discord-members-count,
#embed-discord-members-count,
#members-nav > li:nth-child(4) > a,
#guest-members-count,
#members-nav > li:nth-child(6) > a {
text-transform: uppercase;
}
.circle:hover {
border-radius: 20px;
background: linear-gradient(to right, #f9f9f9 90%, #fff);
}
#channels-list > li:hover {
-webkit-filter: brightness(150%);
}
.chatusername {
@ -122,6 +230,10 @@ 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 {
@ -148,6 +260,20 @@ top: 7px;
left: 5px;
}
#curuser_discrim {
font-size: 50%;
}
#curuser_discrim,
#curuser_name {
margin-top: -2px;
}
#currentuserimage {
margin-top: 4px;
margin-right: 4px;
}
.input-field {
position: relative;
top: -19px;
@ -232,6 +358,8 @@ a {
#nameplate {
cursor: pointer;
background: transparent;
margin-left: 10px;
}
#visitor_mode_message {
@ -254,130 +382,20 @@ a {
height: 30px;
}
@font-face {
font-family: Whitney;
font-style: light;
font-weight: 300;
src: url("../fonts/whitney_light.woff") format("woff")
.chatusername {
display: table-header-group;
}
@font-face {
font-family: Whitney;
font-style: normal;
font-weight: 500;
src: url("../fonts/whitney_normal.woff") format("woff")
}
@font-face {
font-family: Whitney;
font-style: medium;
font-weight: 600;
src: url("../fonts/whitney_medium.woff") format("woff")
}
@font-face {
font-family: Whitney;
font-style: bold;
font-weight: 700;
src: url("../fonts/whitney_bold.woff") format("woff")
}
* {
font-family: Whitney, Helvetica Neue, Helvetica, Arial, sans-serif;
}
#footercontainer {
border-radius: 20px;
border: 1px solid rgb(99, 99, 99);
margin-left: -0px!important;
padding-left: -4px!important;
}
#nameplate {
background: transparent!important;
margin-left: 10px
}
#chatcontent > p > span.chatusername,
#curuser_discrim,
#curuser_name {
display: block
}
#curuser_discrim {
font-size: 50%;
}
#curuser_discrim,
#curuser_name {
margin-top: -2px
}
#currentuserimage {
margin-top: 4px;
margin-right: 4px
}
#chatcontent > p {
display: table;
}
#chatcontent > p > span {
display: table-row
}
#chatcontent > p > span.chatusername {
display: table-header-group
}
#chatcontent > p > span.chatmessage {
.chatmessage {
display: table-footer-group;
display: inline-block!important;
color: rgb(195, 196, 197)
display: inline-block;
color: rgb(195, 196, 197);
}
::-webkit-input-placeholder {
color: rgb(99, 99, 99)
}
:-moz-placeholder {
color: rgb(99, 99, 99)
}
::-moz-placeholder {
color: rgb(99, 99, 99)
}
:-ms-input-placeholder {
color: rgb(99, 99, 99)
}
::-ms-input-placeholder {
color: rgb(99, 99, 99)
}
body > div.navbar-fixed > nav > div {
background: #263238 background: -webkit-linear-gradient(#263238, #37474f, #455a64);
/* For Safari 5.1 to 6.0 */
background: -o-linear-gradient(#263238, #37474f, #455a64);
/* For Opera 11.1 to 12.0 */
p.mentioned {
font-weight: bold;
font-style: italic;
}
background: -moz-linear-gradient(#263238, #37474f, #455a64);
/* For Firefox 3.6 to 15 */
background: linear-gradient(#263238, #37474f, #455a64);
/* Standard syntax */
}
div.divider {
margin-left: 10px;
margin-right: 10px;
}
#discord-members > li > a.subheader,
#members-nav > li:nth-child(1) > a,
#discord-members-count,
#embed-discord-members-count,
#members-nav > li:nth-child(4) > a,
#guest-members-count,
#members-nav > li:nth-child(6) > a {
text-transform: uppercase;
}
#members-btn > i {
visibility: hidden
}
#members-btn {
visibility: visible;
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNiIgaGVpZ2h0PSIyNiI+CiAgPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxwYXRoIGQ9Ik0xIDFoMjR2MjRIMVYxeiIvPgogICAgPHBhdGggZmlsbD0iI0ZGRiIgZD0iTTE2Ljc3MjA3NTQgMTQuNjc5MTc3OGMtLjIyNDkwOTctLjIyNTY4ODYtLjQ3NDE1NzMtLjQzNTE2ODEtLjc0MjA3NTQtLjYyOTE3NzguMzUtLjAzLjY4LS4wNS45Ny0uMDUgMi4zMyAwIDcgMS4xNyA3IDMuNVYyMGgtNHYtMWMwLTEuODgxNjkxNC0xLjQwNzcwNTYtMy4zMjMwMTQzLTMuMjI3OTI0Ni00LjMyMDgyMjJ6bS0xLjQzODU3MzUtOC4xNzU4NTM0QzE1LjgwOTgwODIgNi4xODUyNTE3MyAxNi4zODI3ODQ1IDYgMTcgNmMxLjY2IDAgMi45OSAxLjM0IDIuOTkgM3MtMS4zMyAzLTIuOTkgM2MtLjYxNzE5MTQgMC0xLjE5MDE0NzEtLjE4NTIzNzMtMS42NjY0NDIzLS41MDMyODcyQzE1Ljc1NzQ4MzIgMTAuNzYyMTQwOTUgMTYgOS45MDk1NTYgMTYgOS4wMDAwNjY5M2MwLS45MDk1Mjg5Ni0uMjQyNTM4MS0xLjc2MjE0ODgtLjY2NjQ5ODEtMi40OTY3NDI1M3pNMTAgMTNjMi4yMSAwIDQtMS43OSA0LTRzLTEuNzktNC00LTQtNCAxLjc5LTQgNCAxLjc5IDQgNCA0em0wIDJjLTIuNjcgMC04IDEuMzQtOCA0djJoMTZ2LTJjMC0yLjY2LTUuMzMtNC04LTR6Ii8+CiAgPC9nPgo8L3N2Zz4=);
background-repeat: no-repeat;
margin-top: 18px
}
.circle:hover {
border-radius: 20px;
background: linear-gradient(to right, #f9f9f9 90%, #fff);
}
#channels-list > li:hover {
-webkit-filter: brightness(150%);
p.mentioned span.chatmessage {
color: #ff5252;
}

View File

@ -501,9 +501,8 @@
var lastmsg = $("#chatcontent p:last-child");
var content = lastmsg.text().toLowerCase();
var username_discrim = current_username_discrim.toLowerCase();
if (content.includes("@everyone") || content.includes("@" + username_discrim)) {
lastmsg.css( "color", "#ff5252" );
lastmsg.css( "font-weight", "bold" );
if (content.includes("@everyone") || content.includes("@here") || content.includes("@" + username_discrim)) {
lastmsg.addClass( "mentioned" );
}
}

View File

@ -180,7 +180,7 @@
</script>
<script id="mustache_usermessage" type="text/template">
<p><span id="discordmessage_{{id}}" title="{{full_timestamp}}" class="chattimestamp">{{time}}</span> <span class="chatusername">{{username}}#{{discriminator}}</span> <span class="chatmessage">{{{content}}}</span></p>
<p><span class="chatusername">{{username}}#{{discriminator}}</span> <span id="discordmessage_{{id}}" title="{{full_timestamp}}" class="chattimestamp">{{time}}</span> <span class="chatmessage">{{{content}}}</span></p>
</script>
<script id="mustache_memberrole" type="text/template">