.css
CSS
(text/css)
/**
* Fonts.
**/
@import 'fonts.css';
@import 'fa.css';
@import 'helpers.css';

/**
* HTML reset.
**/
* {
  box-sizing: border-box;
  font-family: Aller;
}
*:focus, *:active {
  outline: none;
}
html, body {
  height: 100vh;
  margin: 0;
  padding: 0;

  display: flex;
  flex: 1;
}

/**
* Left sidebar.
* Usage: Contacts list.
**/
aside {
  display: flex;
  flex: 0 0 250px;
  flex-direction: column;

  background-color: #171717;
  color: #fff;
}

/* 1. User profile */
#user-profile {
  height: 68px;
  padding: 10px;

  display: flex;
  flex-direction: row;
}
#user-profile #user-avatar {
  flex: 0 0 48px;
  height: 48px;
  width: 36px;

  /*background-color: #fff;*/
  border-radius: 5px;
}
#user-profile #user-infos {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-self: center;
  padding: 0 5px;
}
#user-profile #user-infos span {
  padding: 3px 6px;
  border-radius: 5px;
  cursor: pointer;
}
#user-profile #user-infos span:active,
#user-profile #user-infos span:focus,
#user-profile #user-infos span:hover {
  background-color: #333333;
  opacity: 1;
}
#user-profile #user-infos #user-name {
  font-weight: bold;
  text-overflow: ellipsis;
}
#user-profile #user-infos #user-mood {
  font-weight: lighter;
  font-size: 12px;
  text-overflow: ellipsis;
}
#user-profile #user-presence {
  flex: 0 0 24px;

  background: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
#user-profile #user-presence:hover {
  background-color: #333333 !important;
}
#user-profile #user-presence:active {
  background-color: #555555 !important;
}
#user-profile #user-presence img {
  height: 12px;
  width: 12px;
}

/* 2. Contacts list filters */
#contacts-list-filters {
  display: flex;
  padding: 10px;

  background-color: #333;
}
#contacts-list-filters label {
  height: 26px;
  width: 26px;
  
  /*display: flex;
  align-self: center;*/
  padding: 5px 8px;
  padding-right: 0;

  background-color: #171717;
  border: none;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  color: #555555;
  font-size: 14px;
}
#contacts-list-filters label.active { color: #fff; }
#contacts-list-filters #contacts-list-search::-webkit-input-placeholder {
  color: #555555;
  font-style: italic;
}
#contacts-list-filters #contacts-list-search {
  height: 26px;
  width: 70%;
  padding: 5px;
  margin-right: 10px;

  background-color: #171717;
  border: none;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
  color: #fff;
}
#contacts-list-filters #contacts-list-filter {
  height: 26px;
  width: 30%;
  display: flex;
  flex-direction: row;
  justify-content: center;

  background-color: #6BC260;
  border: none;
  border-radius: 5px;
  color: #fff;
}
#contacts-list-filters #contacts-list-filter::after {
  content: url("../images/icons/arrow-white.svg");
  padding: 0 0 0 5px;
}

/* 3. Contacts list */
#contacts-list {
  flex: 1;
  width: 100%;
  overflow-y: auto;

  background: #333333;
}
#contacts-list::-webkit-scrollbar {
  width: 8px;
}
#contacts-list::-webkit-scrollbar-button {
  width: 0px;
  height: 0px;
}
#contacts-list::-webkit-scrollbar-track {
  border-radius: 10px;
}
#contacts-list::-webkit-scrollbar-thumb {
  background: #666;
  border-radius: 10px;
}
#contacts-list::-webkit-scrollbar-thumb:hover {
  background: #cccccc;
}
.contact {
  display: flex;

  max-height: 68px;
  max-width: 250px;
  padding: 10px;
  white-space: nowrap;
}
.contact.active {
  background-color: #171717;
  color: #fff;
}
.contact:not(.active):hover {
  background-color: #222222;
  color: #fff;
}
.contact .contact-avatar {
  width: 48px;
  height: 48px;
  border-radius: 5px;
}
.contact .contact-infos {
  width: 70%;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-self: center;
  padding: 10px;
}
.contact .contact-name {
  width: 100%;
  font-weight: bold;
}
.contact .contact-mood {
  width: 100%;
  font-weight: lighter;
  font-size: 12px;
}
.contact-presence {
  flex: 0 0 5%;
  display: flex;
  align-self: center;
  justify-content: center;

  width: 16px;
  height: 16px;
}
.contact-presence span {
  width: 16px;
  height: 16px;
}
.contact-presence .online {
  background: url("../images/status/online.png") no-repeat center center;
}
.contact-presence .online-notify {
  background: url("../images/status/online-notify.png") no-repeat center center;
}
.contact-presence .away {
  background: url("../images/status/away.png") no-repeat center center;
}
.contact-presence .away-notify {
  background: url("../images/status/away-notify.png") no-repeat center center;
}
.contact-presence .busy {
  background: url("../images/status/busy.png") no-repeat center center;
}
.contact-presence .busy-notify {
  background: url("../images/status/busy-notify.png") no-repeat center center;
}
.contact-presence .offline {
  background: url("../images/status/offline.png") no-repeat center center;
}
.contact-presence .offline-notify {
  background: url("../images/status/offline-notify.png") no-repeat center center;
}

/* 3-bis. Contact list .compact (variant) */
#contacts-list.compact .contact {
  height: 34px;
  padding: 5px 10px;
}
#contacts-list.compact .contact .contact-avatar {
  height: 24px;
  width: 24px;
}
#contacts-list.compact .contact .contact-infos {
  flex-direction: row;
  align-items: center;
  width: 80%;
}
#contacts-list.compact .contact .contact-infos span:first-child {
  margin-right: 5px;
}
#contacts-list.compact .contact .contact-infos span {
  width: 100%;
  flex: 0 0 50%;
}

/* 4. Tox menu */
#tox-menu {
  display: flex;
  /*flex: 0 0 25px;*/
  flex-direction: row;
}
#tox-menu button {
  height: 36px;
  width: 25%;

  display: flex;
  justify-content: center;
  align-items: center;

  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}
#tox-menu button:hover {
  background-color: /*#333333*/ #6BC260 !important;
  opacity: 1;
}
#tox-menu #add-contact {
  background: url("../images/icons/add.svg") no-repeat center center;
  background-size: 16px 16px;
}
#tox-menu #new-group {
  background: url("../images/icons/group.svg") no-repeat center center;
  background-size: 16px 16px;
}
#tox-menu #show-transfers {
  background: url("../images/icons/transfers.svg") no-repeat center center;
  background-size: 16px 16px;
}
#tox-menu #show-settings {
  background: url("../images/icons/settings.svg") no-repeat center center;
  background-size: 16px 16px;
}

/**
* App content.
* Usage: Messages, settings, whatever.
**/
main {
  display: flex;
  flex: 1;
  flex-direction: column;

  /*padding: 10px;*/
}

/* 1. Chatview Header */
header#chatview-header {
  display: flex;
  flex: 0 0 68px;
  flex-direction: row;
  padding: 10px;
}
#chatview-header #contact-avatar {
  width: 48px;
  height: 48px;

  border-radius: 5px;
}
#chatview-header div {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-self: center;
  margin: 10px;
}
#chatview-header div .contact-name {
  font-weight: bold;
  text-overflow: ellipsis;
}
#chatview-header div .contact-mood {
  font-weight: lighter;
  font-size: 12px;
  text-overflow: ellipsis;
}
#chatview-header-actions {
  display: flex;
  flex-direction: row;
}
#chatview-header-actions button {
  display: flex;
  flex: 0 0 48px;
  height: 48px;
  width: 48px;

  background-color: #6BC260;
  border: none;
  border-radius: 5px;
  color: #fff;
}
#chatview-header-actions button:first-child {
  margin-right: 10px;
}
#chatview-header-actions #call-audio {
  width: 48px;
  height: 48px;

  background: #6BC260 url("../images/icons/phone.svg") no-repeat center center;
  background-size: 35px 35px;
}
#chatview-header-actions #call-video {
  width: 48px;
  height: 48px;

  background: #6BC260 url("../images/icons/video.svg") no-repeat center center;
  background-size: 35px 35px;
}

/* 2. Chatview Content */
section#chatview-content {
  flex: 1;
  /*padding: 10px;*/
  overflow-y: auto;

  border-top: 1px solid rgb(198, 209, 198);
}
#chatview-content::-webkit-scrollbar {
  width: 8px;
  margin: 0 2px;
}
#chatview-content::-webkit-scrollbar-button {
  width: 0px;
  height: 0px;
}
#chatview-content::-webkit-scrollbar-track {
  border-radius: 10px;
}
#chatview-content::-webkit-scrollbar-thumb {
  background: #eeeeee;
  border-radius: 10px;
}
#chatview-content::-webkit-scrollbar-thumb:hover {
  background: #ccc;
}
#chatview-content .info-message {
  display: flex;
  flex-direction: row;
  align-self: center;

  padding: 5px 55px;
}
#chatview-content .info-message .fa {
  margin-right: 10px;
  
  color: #6BC260;
  font-size: 18px;
}
#chatview-content .info-message .info-message-content {
  font-size: 14px;
  font-weight: lighter;
}

#chatview-content .message {
  display: flex;
  flex-direction: row;
  align-self: center;

  padding: 2px 10px;
}
#chatview-content .message.message-outgoing .message-author {
  font-weight: bold;
}
#chatview-content .message .message-author {
  flex: 0 0 60px;
  padding: 2px 0 0 0;
  
  font-size: 14px;
}
#chatview-content .message .message-content {
  flex: 1;
  padding: 0 10px;
}
#chatview-content .message .message-content.quote {
  font-weight: bold;
  color: #27ae60;
}
/**
* Fix for the word-break not working within anonymous flex content.
* @see https://bugzilla.mozilla.org/show_bug.cgi?id=1136818
**/
#chatview-content .message .message-content div {
  min-width: 0;
  word-break: break-word; /* doesn't work in firefox */
  word-wrap: break-word;
  
  font-family: Aller light;
  font-size: 14px;
}
#chatview-content .message .message-timestamp {
  display: flex;
  flex: 0 0 30px;
  align-self: flex-start;
  justify-content: flex-end;

  padding: 2px 0 0 0;
  font-size: 10px;
}
#chatview-content .message:hover {
  background-color: #eeeeee;
}

#chatview-content .message .transfer-content {
  display: flex;
  align-self: center;
  align-items: center;
  flex-direction: row;
  flex: 1;

  margin: 0 10px;
  padding: 5px;

  background-color: #eeeeee;
  border-radius: 5px;
  color: #000;
  font-size: 12px;
}
#chatview-content .message .transfer-content .transfer-icon {
  width: 16px;
  height: 16px;
  
  background: transparent url("../images/icons/file.svg") no-repeat center center;
  background-size: 16px 16px;
}
#chatview-content .message .transfer-content .transfer-name {
  flex: 1;
  padding: 0 10px;
}
#chatview-content .message .transfer-content .transfer-size {
  padding: 0 10px;
}
#chatview-content .message .transfer-content .transfer-actions {
  display: flex;
  align-self: center;
}
#chatview-content .message .transfer-content .transfer-actions button {
  width: 20px;
  height: 20px;

  background-color: #6BC260;
  border: none;
  border-radius: 3px;
  color: #fff;
}
#chatview-content .message .transfer-content .transfer-actions button:first-child {
  margin-right: 5px;
}
#chatview-content .message .transfer-content .transfer-actions .transfer-accept {
  background: #6BC260 url("../images/icons/accept.svg") no-repeat center center;
  background-size: 12px 12px;
}
#chatview-content .message .transfer-content .transfer-actions .transfer-reject {
  background: #e74c3c url("../images/icons/reject.svg") no-repeat center center;
  background-size: 10px 10px;
}
#chatview-content .message .transfer-content .transfer-actions .transfer-reject:hover {
  background-color: #f38175 !important;
}
#chatview-content .message .transfer-content .transfer-actions .transfer-reject:active {
  background-color: #ef2929 !important;
}

/* 3. Chatview is-typing */
#chatview-is-typing {
  display: flex;
  align-items: center;
  padding: 5px 10px;

  border-top: 1px solid rgb(198, 209, 198);
  color: #171717;
  font-size: 11px;
  opacity: .7;
}
#chatview-is-typing .typing-loader {
  width: 37px;
  height: 12px;
  
  background: transparent url("../images/icons/typing.gif") no-repeat center center;
  background-size: 37px 12px;
}
#chatview-is-typing .typing-content {
  padding: 0 10px;
}

/* 4. Chatview Footer */
footer#chatview-footer {
  display: flex;
  flex-direction: row;
  padding: 10px;

  border-top: 1px solid rgb(198, 209, 198);
}
#chatview-entry {
  height: 50px;
  flex: 1;
  padding: 6px;

  border: 1px solid rgb(198, 209, 198);
  border-right: none;
  resize: none;
}
#chatview-footer-actions {
  display: flex;
  flex-direction: column;

  margin-right: 10px;
}
#chatview-footer-actions button {
  flex: 0 0 25px;
  width: 25px;

  background-color: #6BC260;
  border: none;
  color: #fff;
  font-weight: bold;
}
#chatview-footer-actions button:first-child {
  border-top-right-radius: 5px;
  border-bottom: 1px solid #fff;
}
#chatview-footer-actions button:last-child {
  border-bottom-right-radius: 5px;
}
#chatview-footer-actions #chatview-send-file,
#chatview-footer-actions #chatview-emojis {
  width: 25px;
  height: 25px;
}
#chatview-footer-actions #chatview-send-file {
  background: #6BC260 url("../images/icons/attachment.svg") no-repeat center center;
  background-size: 15px 15px;
}
#chatview-footer-actions #chatview-emojis {
  background: #6BC260 url("../images/icons/emojis.svg") no-repeat center center;
  background-size: 15px 15px;
}
#chatview-send-message {
  display: flex;
  justify-content: center;
  width: 50px;

  background: #6BC260 url("../images/icons/send-message.svg") no-repeat center center;
  background-size: 35px 35px;
  border: none;
  border-radius: 5px;
  color: #fff;
}

#overlay.show {  
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  
  background-color: #000000;
  opacity: .5;
}

#dialog-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
dialog.hide { display: none !important; }
dialog::backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  
  background-color: #000000;
  opacity: .5;
  cursor: pointer;
}
dialog {
  min-height: 200px;
  height: auto;
  width: 400px;
  padding: 0;
  
  position: absolute;
  top: 0;

  display: flex;
  flex-direction: column;
  align-self: center;
  flex: 1;
  
  background-color: #222222;
  border: 1px solid #171717;
  border-top: none;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  color: #fff;
}
dialog .dialog-header {
  display: flex;
  flex: 0 0 40px;
  justify-content: center;
  align-items: center;

  margin: 0;
  padding: 0;
  
  background-color: #333333;
  color: #fff;
  font-size: 18px;
}
dialog .dialog-header .fa {
  margin-right: 10px;
  font-size: 16px;
}
dialog .dialog-content {
  padding: 10px;
}
dialog .dialog-content label {
  margin: 5px 0;
  font-size: 14px;
  font-weight: bold;
}
dialog .dialog-content input,
dialog .dialog-content textarea {
  min-height: 26px;
  width: 100%;
  padding: 5px 10px;
  background-color: #171717;
  border: none;
  border-radius: 5px;
  color: #fff;
}
dialog .dialog-content textarea {
  height: 60px;
  resize: none;
}
dialog .dialog-footer {
  display: flex;
  justify-content: flex-end;
  align-content: center;

  padding: 10px;
  
  background-color: #333333;
  color: #fff;
}
dialog .dialog-footer .dialog-close-tip {
  display: flex;
  align-self: center;
  flex: 1;
  
  font-size: 12px;
  font-style: italic;
}
dialog .dialog-footer button:first-child {
  margin-right: 10px;
}
dialog .dialog-footer button {
  padding: 5px 10px;
  border-radius: 5px;
}

/* AutoComplete styles for Emoji One */
.dropdown-menu {
  list-style: none;
  padding: 5px 0;
  margin: 0;
  top: -10px;
  border: 1px solid #ccc;
  background-color: white;
  border-radius: 5px;
  overflow: hidden;
  font-size: inherit;
  letter-spacing: .025em;
}
.dropdown-menu a:hover {
  cursor: pointer;
}
.dropdown-menu li {
  letter-spacing: 0;
  display: block;
  float: none;
  margin: 0;
  padding: 0;
  border:none;
}
.dropdown-menu li:before {
  display: none;
}
.dropdown-menu li .emojione {
  vertical-align: middle;
  font-size: 1.23em;
  width: 1em;
  height: 1em;
  top: -1px;
  margin: 0 .3em 0 0;
}
.dropdown-menu li a {
  display: block;
  height: 100%;
  line-height: 1.8em;
  padding: 0 1.54em 0 .615em;
  color: #4f4f4f;
}
.dropdown-menu .active,
.dropdown-menu li:hover {
  background: #222222;
  color: white;
}
.dropdown-menu .active a,
.dropdown-menu li:hover a {
  color: inherit;
}
/*
.textcomplete-dropdown {
    border: 1px solid #ddd;
    background-color: white;
}

.textcomplete-dropdown li {
    border-top: 1px solid #ddd;
    padding: 2px 5px;
}

.textcomplete-dropdown li:first-child {
    border-top: none;
}

.textcomplete-dropdown li:hover,
.textcomplete-dropdown .active {
    background-color: rgb(110, 183, 219);
}

.textcomplete-dropdown {
    list-style: none;
    padding: 0;
    margin: 0;
}

.textcomplete-dropdown a:hover {
    cursor: pointer;
}*/



GitFOSS • v0.2.0 (#7b50ebe) • MIT License

Tox Client | a89019df77f89a8856ab89b3de835a993aa7038e | app/assets/styles/tox.css ∙ GitFOSS