123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- #chat-wrapper {
- position: absolute;
- width: 270px;
- right: 10px;
- top: 99px;
- border: 4px solid #fff;
- background: lighten($grey, 5%);
- h4 {
- font-family: 'Cherry Swash';
- font-size: 1.225rem;
- height: 3em;
- line-height: 3em;
- margin: 5px 5%;
- text-align: center;
- color: $dark-purple;
- }
- a.close {
- position: absolute;
- top: 0;
- right: 0;
- background: $dark-purple;
- color: #fff;
- font-size: 1.125rem;
- padding: 0 7px;
- text-decoration: none;
- font-weight: 600;
- margin: 1em 5%;
- cursor: pointer;
- &:hover {
- text-decoration: none;
- background: lighten($dark-purple, 5%);
- }
- }
- > span {
- font-size: .9rem;
- margin: 5px 5%;
- display: block;
- }
- }
- #chat-list {
- position: relative;
- top: 0;
- max-height: 300px;
- width: 100%;
- overflow-y: scroll;
- list-style-type: none;
- li {
- font-size: .9rem;
- padding: 10px;
- margin: 5px auto;
- width: 90%;
- border-radius: 5px;
- position: relative;
- &::before {
- position: absolute;
- content: '';
- top: 10px;
- }
- &.black {
- background: #424242;
- color: #fff;
- }
- &.white {
- background: #fff;
- color: #444;
- }
- &.left::before {
- left: 0;
- margin-left: -7px;
- border-bottom: 7px solid transparent;
- border-top: 7px solid transparent;
- }
- &.black.left::before {
- border-right: 7px solid #424242;
- }
- &.white.left::before {
- border-right: 7px solid #fff;
- }
- &.right::before {
- right: 0;
- margin-right: -7px;
- border-bottom: 7px solid transparent;
- border-top: 7px solid transparent;
- }
- &.black.right::before {
- border-left: 7px solid #424242;
- }
- &.white.right::before {
- border-left: 7px solid #fff;
- }
- }
- }
- #chat-form {
- input {
- width: 100%;
- padding: 15px 10px;
- border: none;
- outline: none;
- font-size: .9rem;
- border: 4px solid lighten($grey, 5%);
-
- &.black {
- background: #444;
- color: #fff;
- }
- &.white {
- background: #fff;
- color: #444;
- }
- }
- }
- #chat-icon {
- text-decoration: none;
- color: darken($blue, 10%);
- margin-right: 1em;
- line-height: 50px;
- height: 50px;
- float: right !important;
- cursor: pointer;
- font-weight: 600;
- &:hover {
- color: darken($blue, 5%);
- }
- img {
- vertical-align: middle;
- }
- }
- #chat-counter {
- position: absolute;
- margin-left: -.5em;
- margin-top: -.5em;
- border-radius: 50%;
- background: $red;
- width: 2em;
- height: 2em;
- text-align: center;
- line-height: 2em;
- color: #fff;
- }
|