Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | /*** |
| 2 | Chats |
||
| 3 | ***/ |
||
| 4 | |||
| 5 | .chats { |
||
| 6 | margin: 0; |
||
| 7 | padding: 0; |
||
| 8 | margin-top: -15px; |
||
| 9 | |||
| 10 | li { |
||
| 11 | list-style: none; |
||
| 12 | padding: 5px 0; |
||
| 13 | margin: 10px auto; |
||
| 14 | font-size: 12px; |
||
| 15 | |||
| 16 | .body { |
||
| 17 | display: block; |
||
| 18 | } |
||
| 19 | |||
| 20 | .avatar { |
||
| 21 | height: 45px; |
||
| 22 | width: 45px; |
||
| 23 | -webkit-border-radius: 50% !important; |
||
| 24 | -moz-border-radius: 50% !important; |
||
| 25 | border-radius: 50% !important; |
||
| 26 | } |
||
| 27 | |||
| 28 | &.in .avatar { |
||
| 29 | float: left; |
||
| 30 | margin-right: 10px; |
||
| 31 | } |
||
| 32 | |||
| 33 | &.out .avatar { |
||
| 34 | float: right; |
||
| 35 | margin-left: 10px; |
||
| 36 | } |
||
| 37 | |||
| 38 | .name { |
||
| 39 | color: #3590c1; |
||
| 40 | font-size: 13px; |
||
| 41 | font-weight: 400; |
||
| 42 | } |
||
| 43 | |||
| 44 | .datetime { |
||
| 45 | color: #333; |
||
| 46 | font-size: 13px; |
||
| 47 | font-weight: 400; |
||
| 48 | } |
||
| 49 | |||
| 50 | .message { |
||
| 51 | display: block; |
||
| 52 | padding: 5px; |
||
| 53 | position: relative; |
||
| 54 | } |
||
| 55 | |||
| 56 | &.in .message { |
||
| 57 | text-align: left; |
||
| 58 | border-left: 2px solid #1BBC9B; |
||
| 59 | margin-left: 65px; |
||
| 60 | background: #fafafa; |
||
| 61 | |||
| 62 | .arrow { |
||
| 63 | display: block; |
||
| 64 | position: absolute; |
||
| 65 | top: 5px; |
||
| 66 | left: -8px; |
||
| 67 | width: 0; |
||
| 68 | height: 0; |
||
| 69 | border-top: 8px solid transparent; |
||
| 70 | border-bottom: 8px solid transparent; |
||
| 71 | border-right: 8px solid #1BBC9B; |
||
| 72 | } |
||
| 73 | } |
||
| 74 | |||
| 75 | &.out { |
||
| 76 | .message { |
||
| 77 | border-right: 2px solid #F3565D; |
||
| 78 | margin-right: 65px; |
||
| 79 | background: #fafafa; |
||
| 80 | text-align: right; |
||
| 81 | |||
| 82 | .arrow { |
||
| 83 | display: block; |
||
| 84 | position: absolute; |
||
| 85 | top: 5px; |
||
| 86 | right: -8px; |
||
| 87 | border-top: 8px solid transparent; |
||
| 88 | border-bottom: 8px solid transparent; |
||
| 89 | border-left: 8px solid #F3565D; |
||
| 90 | } |
||
| 91 | } |
||
| 92 | |||
| 93 | .name, |
||
| 94 | .datetime { |
||
| 95 | text-align: right; |
||
| 96 | } |
||
| 97 | } |
||
| 98 | } |
||
| 99 | } |
||
| 100 | |||
| 101 | .chat-form { |
||
| 102 | margin-top: 15px; |
||
| 103 | padding: 10px; |
||
| 104 | background-color: #e9eff3; |
||
| 105 | overflow: hidden; |
||
| 106 | clear: both; |
||
| 107 | |||
| 108 | .input-cont { |
||
| 109 | margin-right: 40px; |
||
| 110 | |||
| 111 | .form-control { |
||
| 112 | border: 1px solid #ddd; |
||
| 113 | width: 100% !important; |
||
| 114 | margin-top: 0; |
||
| 115 | background-color: #fff !important; |
||
| 116 | |||
| 117 | &:focus { |
||
| 118 | border: 1px solid #4b8df9 !important; |
||
| 119 | } |
||
| 120 | } |
||
| 121 | } |
||
| 122 | |||
| 123 | .btn-cont { |
||
| 124 | margin-top: -41px; |
||
| 125 | position: relative; |
||
| 126 | float: right; |
||
| 127 | width: 44px; |
||
| 128 | |||
| 129 | .arrow { |
||
| 130 | position: absolute; |
||
| 131 | top: 17px; |
||
| 132 | right: 43px; |
||
| 133 | border-top: 8px solid transparent; |
||
| 134 | border-bottom: 8px solid transparent; |
||
| 135 | border-right: 8px solid #4d90fe; |
||
| 136 | -webkit-box-sizing: border-box; |
||
| 137 | -moz-box-sizing: border-box; |
||
| 138 | box-sizing: border-box; |
||
| 139 | } |
||
| 140 | |||
| 141 | .btn { |
||
| 142 | margin-top: 7px; |
||
| 143 | } |
||
| 144 | |||
| 145 | &:hover { |
||
| 146 | .arrow { |
||
| 147 | border-right-color: #0362fd; |
||
| 148 | transition: all 0.3s; |
||
| 149 | } |
||
| 150 | |||
| 151 | .btn { |
||
| 152 | background-color: #0362fd; |
||
| 153 | transition: all 0.3s; |
||
| 154 | } |
||
| 155 | } |
||
| 156 | } |
||
| 157 | } |