ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
					/* attachments */
.attachments li {
	float: left;
	width: 64px;
	height: 64px;
	margin-right: 5px;
	margin-bottom: 5px;
	transition: padding .5s;
}
.attachments li.item {
	position: relative; /* for :before & button */
	border: 1px solid #eee;
	cursor: pointer;
}
.attachments li.item .name {
	background: #fafafa;
	height: 100%;
    width: 100%;
    padding: 10px;
    color: #999;
    font-size: 10px;
    word-break: break-all;
}
.attachments li.item img {
	width: 64px;
	height: 64px;
}
.attachments li.item button {
	position: absolute;
	top: 0;
	right: 5px;
	color: #fff;
	text-shadow: 0 1px 0 #000;
	filter: alpha(opacity=40);
	opacity: 0.4;
	display: none;
}
.attachments li.item.deletable:before {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.6);
	width: 64px;
	height: 64px;
	content: "";
	display: none;
}
.attachments li.item.deletable:hover:before {
	display: block;
}
.attachments li.item.deletable:hover button {
	display: block;
}
.attachments li.item.deletable button:hover {
	filter: alpha(opacity=80);
	opacity: 0.8;
}
.attachments li.loading {
	padding-top: 22px; /* 64px-20px(loader) / 2 */
	background: #f3f3f3;
	border: 1px solid #eee;
	display: none;
}
.attachments li.add {
    position: relative;
    overflow: hidden;
    padding: 20px 0 0 25px;
    color: #ddd;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    border: 2px dashed #cecece;
}
@media (min-width: 768px) {
    .attachments li {
        width: 96px;
        height: 96px;
    }
		.attachments li.item img {
        width: 94px;
        height: 94px;
    }
		.attachments li.item.deletable:before {
        width: 94px;
        height: 94px;
    }
		.attachments li.loading {
        padding-top: 45px; /* 96px-5px(loader) / 2 */
    }
		.attachments li.add {
			padding: 30px 0 0 35px;
			font-size: 24px;
		}
}

/* x-uploader */
.x-uploader {
	overflow: hidden;
}
.x-uploader input[type=file] {
	position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    opacity: 0;
    outline: none;
    background: white;
    cursor: pointer;
    display: block;
}
.x-uploader .fa {
	cursor: pointer;
}

/* x-image */
.x-image {
	position: relative;
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	background-color: #eee;
	width: 96px;
	height: 96px;
	overflow: hidden;
	display: block;
	border-radius: 2px;
}
body.night-mode .x-image {
	background-color: #333;
}
.x-image.full {
	width: 100%;
}
.x-image.sm {
	width: 48px;
	height: 48px;
}
.x-image:before {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background: #000;
	content: '';
	opacity: 0;
}
.x-image:hover.x-image:before {
	opacity: 0.2;
}
.x-image-success {
	display: none;
	position: absolute;
    top: 0;
    left: 0;
    opacity: 0.5;
    background: #000;
    width: 100%;
    height: 100%;
    padding-top: 30%;
    text-align: center;
    color: #fff;
    font-size: 12px;
    transition: all .5s;
}
.x-image-loader {
	display: none;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.5;
    background: #000;
    width: 100%;
    height: 100%;
    padding-top: 50%;
    transition: all .5s;
}
.x-image.full .x-image-loader {
	padding-top: 20%;
}
.x-image .x-uploader {
	position: absolute;
	bottom: 5px;
	right: 5px;
}
.x-image  button {
	position: absolute;
	top: 0;
	right: 5px;
}
/* -- */


/* x-progress (uploading progress) */
.x-progress {
    height: 5px;
    margin: 0 1.5rem;
    border-radius: 25px;
}
/* -- */


/* tbl-image */
.tbl-image {
	width: 24px;
	height: 24px;
    float: left;
    margin-right: 5px;
    border-radius: 50%;
}
.tbl-image.app-icon {
    width: 34px;
    height: 34px;
    border-radius: 4px;
}
/* -- */