src/ztfy/myams/resources/less/apps/chat.less
changeset 0 8a19e25e39e4
child 171 d1a43750fea2
equal deleted inserted replaced
-1:000000000000 0:8a19e25e39e4
       
     1 /*
       
     2  * Chat application
       
     3  */
       
     4 
       
     5 #chat-container {
       
     6 	position: absolute;
       
     7 	width: 250px;
       
     8 	height: 270px;
       
     9 	z-index: 2;
       
    10 	border-left: 1px solid #CDCECF;
       
    11 	right: -251px;
       
    12 	top: 0;
       
    13 	background: #fff;
       
    14 	transition-duration: .25s;
       
    15 	-webkit-transition-duration: .25s;
       
    16 
       
    17 	&:hover,
       
    18 	&:hover .chat-list-open-close {
       
    19 		border-color: #A7A7A7;
       
    20 	}
       
    21 	*,
       
    22 	:after,
       
    23 	:before {
       
    24 		box-sizing: content-box;
       
    25 		-moz-box-sizing: content-box;
       
    26 		-webkit-box-sizing: content-box;
       
    27 	}
       
    28 	input[type=text] {
       
    29 		box-sizing: border-box;
       
    30 		-moz-box-sizing: border-box;
       
    31 		-webkit-box-sizing: border-box;
       
    32 	}
       
    33 	&.open {
       
    34 		right: 0;
       
    35 		top: 0;
       
    36 
       
    37 		.chat-list-open-close i:before {
       
    38 			content: "\f00d"!important;
       
    39 		}
       
    40 		.chat-list-open-close b {
       
    41 			display: none;
       
    42 		}
       
    43 	}
       
    44 	.chat-list-open-close {
       
    45 		display: block;
       
    46 		width: 25px;
       
    47 		height: 25px;
       
    48 		border: 1px solid #CDCECF;
       
    49 		border-right: 1px solid #f2f4f8!important;
       
    50 		position: absolute;
       
    51 		left: -32px;
       
    52 		top: 7%;
       
    53 		border-radius: 50% 0 0 50%;
       
    54 		padding: 3px 1px 3px 5px;
       
    55 		font-size: 21px;
       
    56 		line-height: 22px;
       
    57 		cursor: pointer;
       
    58 		color: #868686;
       
    59 		-webkit-box-shadow: inset 0 .2em 0 rgba(0, 0, 0, .05);
       
    60 		box-shadow: inset 0 .2em 0 rgba(0, 0, 0, .05);
       
    61 		background: #f2f4f8;
       
    62 		text-align: center;
       
    63 
       
    64 		b {
       
    65 			position: absolute;
       
    66 			right: 0;
       
    67 			background: #ed1c24;
       
    68 			line-height: 9px;
       
    69 			height: 10px;
       
    70 			width: 10px;
       
    71 			top: 3px;
       
    72 			border: 1px solid #FFF;
       
    73 			border-radius: 3px;
       
    74 			font-size: 9px;
       
    75 			text-align: center;
       
    76 			vertical-align: middle;
       
    77 			color: #fff;
       
    78 			font-weight: 400;
       
    79 		}
       
    80 	}
       
    81 	.chat-list-body {
       
    82 		height: 217px;
       
    83 		overflow-y: scroll;
       
    84 		overflow-x: hidden;
       
    85 		display: block;
       
    86 		padding: 0;
       
    87 		box-sizing: border-box;
       
    88 		-webkit-box-sizing: border-box;
       
    89 		-moz-box-sizing: border-box;
       
    90 		background: #f2f4f8;
       
    91 	}
       
    92 	#chat-users {
       
    93 		list-style: none;
       
    94 		margin: 10px 0;
       
    95 		padding: 0;
       
    96 
       
    97 		li {
       
    98 			margin-bottom: 3px;
       
    99 			margin-left: 5px;
       
   100 
       
   101 			a {
       
   102 				display: block;
       
   103 				font-size: 13px;
       
   104 				color: #3d3d3d;
       
   105 				text-decoration: none!important;
       
   106 				box-sizing: border-box;
       
   107 				-webkit-box-sizing: border-box;
       
   108 				-moz-box-sizing: border-box;
       
   109 				padding: 3px 8px 3px 3px;
       
   110 				line-height: 33px;
       
   111 				vertical-align: middle;
       
   112 
       
   113 				&:hover {
       
   114 					background: #e0e4ee;
       
   115 				}
       
   116 				img {
       
   117 					width: 33px;
       
   118 					height: auto;
       
   119 					margin-right: 10px;
       
   120 				}
       
   121 				i {
       
   122 					color: #ACACAC;
       
   123 					font-size: 8px;
       
   124 					line-height: 34px;
       
   125 					font-style: normal;
       
   126 
       
   127 					&.last-online {
       
   128 						font-size: 12px;
       
   129 						letter-spacing: -1px;
       
   130 					}
       
   131 				}
       
   132 			}
       
   133 		}
       
   134 	}
       
   135 	.chat-list-footer {
       
   136 		overflow: hidden;
       
   137 		border-top: 1px solid #CCC;
       
   138 		padding: 10px;
       
   139 		box-sizing: border-box;
       
   140 		-webkit-box-sizing: border-box;
       
   141 		-moz-box-sizing: border-box;
       
   142 
       
   143 		input[type=text] {
       
   144 			border: 1px solid #bababa!important;
       
   145 		}
       
   146 	}
       
   147 	.control-group {
       
   148 		padding: 0;
       
   149 	}
       
   150 }
       
   151 
       
   152 .chat-body {
       
   153 	background: #FAFAFA;
       
   154 	background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJod…EiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+);
       
   155 	background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fafafa), color-stop(100%, #fff));
       
   156 	background: -webkit-linear-gradient(top, #fafafa 0, #fff 100%);
       
   157 	background: -webkit-gradient(linear, top left, bottom left, from(#f5fcff), to(#fff));
       
   158 	background: -webkit-linear-gradient(top, #f5fcff 0, #fff 100%);
       
   159 	background: linear-gradient(to bottom, #f5fcff 0, #fff 100%);
       
   160 	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fafafa',  endColorstr='#ffffff',  GradientType=0);
       
   161 	-webkit-box-shadow: inset 2px 2px 5px rgba(0, 0, 0, .04);
       
   162 	box-shadow: inset 2px 2px 5px rgba(0, 0, 0, .04);
       
   163 	display: block;
       
   164 	height: 270px;
       
   165 	overflow-y: scroll;
       
   166 	overflow-x: hidden;
       
   167 	padding: 10px;
       
   168 	box-sizing: border-box;
       
   169 	-webkit-box-sizing: border-box;
       
   170 	-moz-box-sizing: border-box;
       
   171 	border: 1px solid #fff;
       
   172 	border-top: 0;
       
   173 
       
   174 	ul {
       
   175 		margin: 0;
       
   176 		padding: 0;
       
   177 	}
       
   178 	li {
       
   179 		&:first-child {
       
   180 			margin-top: 10px;
       
   181 		}
       
   182 		&.message {
       
   183 			display: block;
       
   184 			position: relative;
       
   185 			margin: 20px 20px 0;
       
   186 
       
   187 			img {
       
   188 				display: inline-block;
       
   189 				border-left: 4px solid #fff;
       
   190 				position: absolute;
       
   191 
       
   192 				&.online {
       
   193 					border-left-color: #00a300;
       
   194 				}
       
   195 				&.offline {
       
   196 					border-left-color: #ddd;
       
   197 				}
       
   198 				&.busy {
       
   199 					border-left-color: #A90329;
       
   200 				}
       
   201 				&.away {
       
   202 					border-left-color: #ffc40d;
       
   203 				}
       
   204 			}
       
   205 			.message-text {
       
   206 				display: inline-block;
       
   207 				vertical-align: top;
       
   208 				box-sizing: border-box;
       
   209 				-webkit-box-sizing: border-box;
       
   210 				-moz-box-sizing: border-box;
       
   211 				padding: 0;
       
   212 				margin-left: 65px;
       
   213 				line-height: normal;
       
   214 
       
   215 				time {
       
   216 					position: absolute;
       
   217 					top: 1px;
       
   218 					right: 0;
       
   219 					font-size: 10px;
       
   220 					line-height: 10px;
       
   221 					color: #AFAFAF;
       
   222 				}
       
   223 				.chat-file {
       
   224 					display: block;
       
   225 					margin: 3px 0;
       
   226 					padding: 4px;
       
   227 					border: 1px dotted #ddd;
       
   228 					background: rgba(0, 0, 0, .05);
       
   229 					border-radius: 4px;
       
   230 					text-align: right;
       
   231 					box-sizing: border-box;
       
   232 					-webkit-box-sizing: border-box;
       
   233 					-moz-box-sizing: border-box;
       
   234 
       
   235 					&:nth-child(3) {
       
   236 						margin-top: 15px;
       
   237 					}
       
   238 					&.row-fluid [class*=span] {
       
   239 						min-height: 10px!important;
       
   240 					}
       
   241 					b {
       
   242 						font-style: italic;
       
   243 						white-space: nowrap;
       
   244 						width: 250px;
       
   245 						overflow: hidden;
       
   246 						text-overflow: ellipsis;
       
   247 						text-align: left;
       
   248 
       
   249 						@media (min-width:768px) and (max-width:880px) {
       
   250 							width: 150px;
       
   251 						}
       
   252 						@media only screen and (min-width:320px) and (max-width:479px) {
       
   253 							width: 150px;
       
   254 						}
       
   255 						@media (max-width:480px) {
       
   256 							width: 150px;
       
   257 						}
       
   258 					}
       
   259 				}
       
   260 				a.username {
       
   261 					display: block;
       
   262 					font-weight: 700;
       
   263 					margin-bottom: 4px;
       
   264 					vertical-align: top;
       
   265 					line-height: 14px;
       
   266 					font-size: 14px;
       
   267 					letter-spacing: -1px;
       
   268 					text-decoration: none!important;
       
   269 				}
       
   270 			}
       
   271 		}
       
   272 	}
       
   273 }
       
   274 
       
   275 .chat-footer {
       
   276 	border-top: 1px solid rgba(0, 0, 0, .1);
       
   277 	background: rgba(248, 248, 248, .9);
       
   278 	padding: 0 10px 15px;
       
   279 	position: relative;
       
   280 	box-sizing: border-box;
       
   281 	-webkit-box-sizing: border-box;
       
   282 	-moz-box-sizing: border-box;
       
   283 }
       
   284 
       
   285 .profile-message {
       
   286 	background: none!important;
       
   287 	height: auto!important;
       
   288 	box-shadow: none!important;
       
   289 	-webkit-box-shadow: none!important;
       
   290 	overflow: hidden;
       
   291 
       
   292 	li.message.message-reply {
       
   293 		margin-left: 85px!important;
       
   294 		background: #F7F7F7;
       
   295 		padding: 10px;
       
   296 		margin: 3px 0 0 20px;
       
   297 
       
   298 		img {
       
   299 			width: 35px!important;
       
   300 		}
       
   301 		.message-text {
       
   302 			margin-left: 45px!important;
       
   303 		}
       
   304 	}
       
   305 	.wall-comment-reply {
       
   306 		margin-left: 85px;
       
   307 		margin-bottom: 20px;
       
   308 	}
       
   309 }
       
   310 
       
   311 .cajita img {
       
   312 	width: 23px;
       
   313 	height: 23px;
       
   314 	padding-left: 3px;
       
   315 	padding-top: 3px;
       
   316 }
       
   317 
       
   318 #pageslide {
       
   319 	display: none;
       
   320 	position: absolute;
       
   321 	position: fixed;
       
   322 	top: 0;
       
   323 	height: 100%;
       
   324 	z-index: 999999;
       
   325 	width: 305px;
       
   326 	padding: 20px;
       
   327 	background-color: #004d60;
       
   328 	color: #FFF;
       
   329 	-webkit-box-shadow: inset 0 0 5px 5px #222;
       
   330 	-moz-shadow: inset 0 0 0 0 #222;
       
   331 	box-shadow: inset 0 0 0 0 #222;
       
   332 }
       
   333 
       
   334 .purehtml {
       
   335 	color: #fff;
       
   336 	font-size: 16px;
       
   337 }