Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

416
LINES

< > BotCompany Repo | #1025978 // CSS for MMO bot

Document

@import "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css";
/* glyphicons don't work with this version of bootstrap: @import "https://botcompany.de/1014036/raw/1025977?contentType=text/css"; */

@import url(https://fonts.googleapis.com/css?family=Oswald:400,300);
@import url(https://fonts.googleapis.com/css?family=Open+Sans);

.chat-opener {
    position: fixed;
    right: 70px;
    bottom: 30px;
    /*width: 300px;*/
    font-family: 'Open Sans', sans-serif;
    z-index: 96;
}

.opener-box {
    background-color: #ffffff;
    border: 1px solid #b0b0b0;
    bottom: 0;
    position: fixed;
    right: 35px;
    height: 45px; /* opener height */
    width: 175px; /* opener width */
    font-family: 'Open Sans', sans-serif;
    z-index: 10000000;
}

.opener-box .opener-head {
    background-color: #fff;
    clear: both;
    color: #7b7b7b;
    display: inline-table;
    font-size: 21px;
    padding: 3px 10px; /* top/bottom, l/r padding */
    width: 100%;
    font-family: Oswald;
}

.opener-head button {
  margin-top: 3px;
}

.opener-head > .popup-head-left {
  margin-top: 2px;
  padding-left: 5px;
}

.opener-head > .popup-head-left img {
  width: 34px;
  margin-right: 17px; /* space between opener icon and text */
  vertical-align: top;
}

.chatOpenAction, .popup-messages-send {
  cursor: pointer;
}

.popup-box {
    background-color: #ffffff;
    border: 1px solid #b0b0b0;
    bottom: 0;
    display: none; /* initial hide */
    position: fixed;
    right: 35px;
    height: 320px; /* chat height - see below */
    /*max-height: 500px;*/ /* chat height, responsive, abandoned */
    /*max-width: 550px;*/ /* chat width, responsive, abandoned (jumps around too much) */
    /*margin: auto;*/
    font-family: 'Open Sans', sans-serif;
    z-index: 10000001;
}

.popup-box {
    width: 400px; /* normal chat width */
}

.round.hollow {
    margin: 40px 0 0;
}
.round.hollow a {
    border: 2px solid #ff6701;
    border-radius: 35px;
    color: red;
    color: #ff6701;
    font-size: 23px;
    padding: 10px 21px;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
}
.round.hollow a:hover {
    border: 2px solid #000;
    border-radius: 35px;
    color: red;
    color: #000;
    font-size: 23px;
    padding: 10px 21px;
    text-decoration: none;
}
.popup-box-on {
    display: block !important;
}
.popup-box .popup-head {
    background-color: #fff;
    clear: both;
    color: #7b7b7b;
    display: inline-table;
    font-size: 21px;
    padding: 7px 10px;
    width: 100%;
    font-family: Oswald;
}
.bg_none i {
    border: 1px solid #ff6701;
    border-radius: 25px;
    color: #ff6701;
    font-size: 17px;
    height: 33px;
    line-height: 30px;
    width: 33px;
}
.bg_none:hover i {
    border: 1px solid #000;
    border-radius: 25px;
    color: #000;
    font-size: 17px;
    height: 33px;
    line-height: 30px;
    width: 33px;
}
.bg_none {
    /*background: rgba(0, 0, 0, 0) none repeat scroll 0 0;*/
    background: #FADC00 none repeat scroll 0 0;
    border: medium none;
}
.popup-box .popup-head .popup-head-right {
  /* margin for buttons in head */
  /*margin: 11px 7px 0;*/
  margin: 6px 7px 5px; /* top lr bottom */
}
.popup-box .popup-messages {
}
.popup-head-left img {
    border: 1px solid #7b7b7b;
    border-radius: 50%;
    width: 44px;
}
.popup-messages-footer > textarea {
    border-bottom: 1px solid #b2b2b2 !important;
    height: 34px !important;
    margin: 7px;
    padding: 5px !important;
    border: medium none;
    /*width: 97% !important;*/ /* width without send icon */
    width: 90% !important; /* width with send icon */
}

@media screen and (max-width: 590px) {
  .popup-box {
    width: 320px; /* chat width for small screens */
  }
  .popup-messages-footer > textarea {
    width: 88% !important;
  }
}


.popup-messages-send {
  float: right;
  margin-top: 7px;
  height: 34px !important;
  vertical-align: middle;
  /*padding-right: 5px;*/
}

.popup-messages-send svg {
  margin-top: 7px;
  margin-right: 5px;
  display: block;
}

.popup-messages-footer {
    background: #fff none repeat scroll 0 0;
    bottom: 0;
    position: absolute;
    width: 100%;
}
.popup-messages-footer .btn-footer {
    overflow: hidden;
    /*padding: 2px 5px 10px 6px;*/
    width: 100%;
}
.simple_round {
    background: #d1d1d1 none repeat scroll 0 0;
    border-radius: 50%;
    color: #4b4b4b !important;
    height: 21px;
    padding: 0 0 0 1px;
    width: 21px;
}

.popup-box .popup-messages {
    background-color: #F5F5F5; /* general chat box background */
    height: 206px; /* chat height minus 114 */
    overflow: auto;
}
.direct-chat-messages {
    overflow: auto;
    padding: 10px;
    transform: translate(0px, 0px);
    
}
.popup-messages .chat-box-single-line {
    border-bottom: 1px solid #a4c6b5;
    height: 12px;
    margin: 7px 0 20px;
    position: relative;
    text-align: center;
}
.popup-messages abbr.timestamp {
    background: #FADC00 none repeat scroll 0 0;
    color: #fff;
    padding: 0 11px;
}

.popup-head-right .btn-group {
  display: inline-flex;
  margin: 0 8px 0 0;
  /*margin: 0 8px 24px 0;*/ /* top right bottom left - not working */
  vertical-align: top !important;
}
.chat-header-button {
    background: transparent none repeat scroll 0 0;
    border: 1px solid #636364;
    border-radius: 50%;
    font-size: 14px;
    height: 30px;
    width: 30px;
}
.popup-head-right .btn-group .dropdown-menu {
    border: medium none;
    min-width: 122px;
  padding: 0;
}
.popup-head-right .btn-group .dropdown-menu li a {
    font-size: 12px;
    padding: 3px 10px;
  color: #303030;
}

.popup-messages abbr.timestamp {
    background: #FADC00 none repeat scroll 0 0;
    color: #fff;
    padding: 0 11px;
}
.popup-messages .chat-box-single-line {
    border-bottom: 1px solid #a4c6b5;
    height: 12px;
    margin: 7px 0 20px;
    position: relative;
    text-align: center;
}
.popup-messages .direct-chat-messages {
    height: auto;
}
.popup-messages .direct-chat-text {
    background: #dfece7 none repeat scroll 0 0;
    border: 1px solid #dfece7;
    border-radius: 2px;
    color: #1f2121;
    /*clear: both;*/ /* XXX */
}

.popup-messages .direct-chat-buttons {
  text-align: center;
    background: #dfece7 none repeat scroll 0 0;
    border: 1px solid #dfece7;
    border-radius: 2px;
    color: #1f2121;
}

.direct-chat-timestamp {
    color: black;
    opacity: 0.6;
}

.popup-messages .direct-chat-name {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 0 49px !important;
  color: #000; /* bot / user name */
  opacity: 0.9;
}
.popup-messages .direct-chat-info {
    display: block;
    font-size: 12px;
    margin-bottom: 0;
    clear: both; /* XXX */
}
.popup-messages  .big-round {
    margin: -9px 0 0 !important;
}
.popup-messages  .direct-chat-img {
    border: 1px solid #fff;
    background: #FADC00 none repeat scroll 0 0;
    border-radius: 50%;
    height: 40px;
    /*margin: -21px 0 0;*/
    /*margin: -21px 0 20px;*/
    margin: 0;
    width: 40px;
    /*float: left;*/
    position: absolute;
}
.direct-chat-reply-name {
    color: #fff;
    font-size: 15px;
    margin: 0 0 0 10px;
    opacity: 0.9;
}

.direct-chat-img-reply-small
{
    border: 1px solid #fff;
    border-radius: 50%;
    float: left;
    height: 20px;
    margin: 0 8px;
    width: 20px;
    background: #FADC00;
}

.popup-messages .direct-chat-msg {
    margin-bottom: 10px;
    position: relative;
}

.popup-messages .doted-border::after {
  background: transparent none repeat scroll 0 0 !important;
    border-right: 2px dotted #fff !important;
  bottom: 0;
    content: "";
    left: 17px;
    margin: 0;
    position: absolute;
    top: 0;
    width: 2px;
   display: inline;
    z-index: -2;
}

.popup-messages .direct-chat-msg::after {
    background: #fff none repeat scroll 0 0;
    border-right: medium none;
    bottom: 0;
    content: "";
    left: 17px;
    margin: 0;
    position: absolute;
    top: 0;
    width: 2px;
   display: inline;
    z-index: -2;
}

.direct-chat-text::after, .direct-chat-text::before, .direct-chat-buttons::after, .direct-chat-buttons::before {
    border-color: transparent #dfece7 transparent transparent;
    
    -moz-border-bottom-colors: none;
    -moz-border-left-colors: none;
    -moz-border-right-colors: none;
    -moz-border-top-colors: none;
    border-color: transparent #d2d6de transparent transparent;
    border-image: none;
    border-style: solid;
    border-width: medium;
    content: " ";
    height: 0;
    pointer-events: none;
    position: absolute;
    right: 100%;
    top: 15px;
    width: 0;
}
.direct-chat-text::after, .direct-chat-buttons::after {
    border-width: 5px;
    margin-top: -5px;
}
.popup-messages .direct-chat-text, .popup-messages .direct-chat-buttons {
    background: #dfece7 none repeat scroll 0 0;
    border: 1px solid #dfece7;
    border-radius: 2px;
    color: #1f2121;
}
.direct-chat-text, .direct-chat-buttons {
    background: #d2d6de none repeat scroll 0 0;
    border: 1px solid #d2d6de;
    border-radius: 5px;
    color: #444;
    margin: 5px 0 0 50px; /* 50px = margin of text on the left */
    /*margin: 5px 0 0 5px;*/
    padding: 5px 10px;
    position: relative;
}

#actionMsg {
    position: absolute;
    z-index: 9999;
    left: 0;
    bottom: 0;
    height: 20px;
    /*width: 300px;*/
    width: auto;
    
    background-color: white;
    display: none;
}

Author comment

Began life as a copy of #1025925

download  show line numbers   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025978
Snippet name: CSS for MMO bot
Eternal ID of this version: #1025978/96
Text MD5: fd59e88b02ba113488798f01c0760177
Author: stefan
Category: javax / web chat bots
Type: Document
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-24 16:40:51
Source code size: 9825 bytes / 416 lines
Pitched / IR pitched: No / No
Views / Downloads: 216 / 1519
Version history: 95 change(s)
Referenced in: [show references]