applist.css 9.92 KB
* { 
	margin: 0; 
	padding: 0; 
	box-sizing: border-box;
	font:12px/1 Microsoft YaHei,Tahoma,Helvetica,Arial,"\5b8b\4f53",sans-serif;
}

ul, li { list-style: none; }
html, body { overflow: hidden; height: 100%; width: 100%; }

.btn {
    text-align: center;
    overflow: hidden;
    z-index: 10;
}

.m-content .status {     
	color: #7f7f7f;
    padding: 6px 0; }
.m-content .status li {
	display: inline-block;
	border-right: 1px solid #7f7f7f;
	padding: 0 10px 2px 5px;
	position: relative;
    cursor: pointer;}
.m-content .status li:hover {color: #9f9f9f;}
.m-content .status li:first-child {padding: 0 10px 2px 0;}
.m-content .status li:last-child {border: none;}
.m-content .status li.active:after, .m-content .status li.active:before {
    content: " ";
    position: absolute;
    border-color: transparent transparent #888;
    border-width: 6px;
    display: block;
    border-style: solid;
    bottom: -13px;
    left: calc(50% - 12px);}
.m-content .status li.active:after {
    border-color: transparent transparent #fff;
    bottom: -14px;}

/* app菜单公共样式 */
.m-container {padding: 15px 0 0px 20px;min-width: 700px;height: 100%;}
    .m-container .m-header {margin: 0 20px 12px 0; position: relative;}
	.m-container .m-content{padding-bottom: 7px;border-bottom: 1px solid #bfbfbf;}
		.m-container .m-content img {width: 60px;height: 60px; margin-right: 10px;}
		.m-container .m-content h3 {font-size: 22px;padding: 6px 0;font-weight: normal;}
		.m-container .m-content .count {color: #7f7f7f;padding: 6px 0;}
		.m-container .m-options {position: absolute;right: 0;top: 31px;font-size: 15px;height: 2.2em;}
			.m-options .btn { border-radius: 0;}
			.m-options .search {position: relative;width: 200px;border: 1px solid #666;}
			.m-options .search input {width: 140px;height: 100%;border: none;outline: none;padding-left: .5em;}
			.m-options .search i { font-size: 22px; }
			.m-options .del, .m-options .search-icon {position: absolute;right: .5em;top: 5px;color: #aaa;}
			.m-options .del {right: 32px;top: 0;line-height: 32px;visibility: hidden;}
			.m-options .del.visible { visibility: visible; }
			.m-options .del:hover i { color: #666; }
            .m-options .del i { font-size: 14px; }
.layui-layer-iframe iframe {
    background: #fff;
}
.m-options {
    position: absolute;
    right: 0;
    top: 31px;
    font-size: 15px;
    height: 2.2em;}
.m-options .btn {
    padding: 0;
    height: 2.2em;
    width: 4.5em;
    font-size: 15px;
    line-height: 2.2;
    border: none;
    border-radius: 0;}
.m-options .btn:nth-child(2) { margin: 0 5px; }
.m-options .btn.create { width: 5.5em; margin-right: 10px; }
.m-options .btn.create:before {
    content: "\e729";
    position: relative;
    font-family: iconfont;
    font-size: 12px;
    margin-right: 4px;}
.m-options .search {
    border: 1px solid #bfbfbf;
    margin-right: 2px;
}
.m-sort { 
    position: absolute;
    right: 0;
    bottom: -4px;}
.m-sort .default:before,
.m-sort .desc:before,
.m-sort .asc:before {
    font-family: iconfont;
    padding-right: 3px;}
.m-sort .default:before {
    content: "\e66d";}
.m-sort .desc:before {
    content: "\e67b";}
.m-sort .asc:before {
    content: "\e67a";}
.app-lists {
    height: calc(100% - 120px);
    position: relative;
}

.classifies { margin: 10px 0; }

.classifies li {
    margin: 0 2px;
    padding: 5px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}

.classifies li.active {
	background: #108ee9;
	color: #fff;
}

.applications {height: 100%; position: relative; }

.applications > ul {
    height: 100%;
    display: block;
    position: relative;
    padding-left: 10px;
    margin-left: -10px;
}

.app {
    display: inline-block;
    position: relative;
    width: 280px;
    height: 200px;
    margin: 0px 15px 15px 0;
    padding: 15px;
    overflow: hidden;
    border: 1px solid rgba(39,54,78,0.1);
    box-shadow: 0px 1px 2px 0px rgba(151,156,162,0.15);
}
.app.highlight {
    animation: highlight 1s 3;
    animation-fill-mode: forwards;
    box-shadow: 0px 6px 20px 0px rgba(0,0,0,.2);
}
@keyframes highlight {
    0% {opacity: 1;}
    50% { opacity: .5;}
    100% { opacity: 1;}
}
.actions{
	height: 72px;
}
.app.classify,
.app.status,
.app.text { display: none;}
.app .published {
    position: absolute;
    right: 15px;
    bottom: 15px;}
.app .published i { color: #aaa; }
.app:hover {box-shadow: 0px 6px 20px 0px rgba(0,0,0,.2); transition: .2s all}
.app:hover .overlay { display: block;}
.app .overlay .name {
    padding: 0 35px;
    line-height: 3;
    width: 100%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 8px 0px 0px 0px;}
.app .overlay .qrcode {
    position: absolute;
    width: 100%;
    height: 100%;
    top: -100%;
    z-index: 13;
    background: #fff;
    transition: top .2s cubic-bezier(0, 0, 0, 1);}
.app .overlay .qrcode.active { 
    top: 0; 
    transition: top .2s cubic-bezier(0, 0, 0, 1);}
.app .overlay .qrcode .content {
    margin: 6% auto;
    width: 100px;
    height: 100px;}
.app .overlay .qrcode canvas {
    width: 100%;
    height: 100%;}
.app .overlay .qrcode img { 
    display: block;
    margin: 0 auto;
    width: 100px;}
.app .overlay .qrcode .tip {
    text-align: center;
    margin: 5% auto;
    padding: 0 45px;
    color: #666;}
.app .overlay .qr-icon {
    position: absolute;
    display: block;
    top: 10px;
    right: 15px;
    width: 20px;
    height: 20px;
    cursor: pointer;}

.app .overlay .icons {
    position: absolute;
    padding: 9px 26px;
    width: 100%;
    text-align: center;
    bottom: 0;}
.app .overlay .icons a { display: inline-block; margin: 12px 10px;}
.app .overlay .icons a.disabled { 
    cursor: default;
    pointer-events: none;}
.app .overlay .icons i { font-size: 22px; color: #969ca2;}
.app .overlay .icons a.disabled i { color: #ccc;}
.app .overlay .icons a:hover i { color: #5B9BD5; }

.app .thum {
    background-position: 100% 90%;
    background-size: contain;
    width: 92px;
    min-width: 92px;
    height: 92px;
    overflow: hidden;}
.app .thum img {
    width: 100%;
    height: 100%;
    /*border: 1px solid #eee;
    border-radius: 3px;*/
	border-radius: 5px;}
.app .thum.default img {
    border: none;
    height: auto;
    border-radius: 0}
.app .basic { margin-left: 10px; }
.app .name { 
    font-size: 18px;
    max-height: 3em;
    overflow: hidden;}
.app .classify { font-size: 12px; line-height: 3; }
.app .desc { 
    margin: 20px 0;
    text-indent: 2px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;}
.app .updated-time {
    position: absolute;
    bottom: 10px;
    font-size: 12px;
    color: #afafaf;
    line-height: 26px;
    font-weight: bold;}
.app .updated-time:before {
    content: "\e666";
    font-size: 18px;
    padding-right: 5px;
    font-weight: normal;
    vertical-align: bottom;}
.app .updated-time.none:before {
    content: "";
}

.app.no-p-e .overlay .icons {
    display: none;
}
.app.no-p-e .actions > div:nth-child(1) {
    display: none;
}
.app.no-p-e .actions > div:nth-child(2) {
    top: 22px;
    bottom: inherit;
}
/* app edit */
.edit-content {
    position: relative;
    padding: 0 20%;
    height: 100%;
    padding-top: 20px;
}
.edit-content .row {
    margin-bottom: 16px;
}
.edit-content .row.hide {
    display: none;
}
.edit-content .row.error .field-error {
    display: block;
}
.edit-content .field-error {
    position: absolute;
    display: none;
    text-align: center;
    line-height: 16px;
    color: red;
    font-size: 13px;
    width: 82.333%;
}
.edit-content .save {
    position: absolute;
    bottom: 20px;
    width: 100px;
    padding: 0;
    height: 28px;
    line-height: 26px;
    left: 50%;
    transform: translateX(-50%);
}
.upload-img-wrap {
    width: 92px;
    height: 92px;
    border: 1px dashed #d9d9d9;
    background-color: #fbfbfb;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    text-align: center;
}
.upload-img-wrap:before {
    content: "\ee58";
    font-family: iconfont;
    font-size: 30px;
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    color: #666;
}
.upload-img-wrap:after {
    content: 'Upload';
    position: absolute;
    top: 54px;
    color: #333;
    margin: 0 auto;
    display: block;
    left: 0;
    right: 0;
}
.upload-img-wrap.show-img {
    border: 1px solid transparent;
}
.upload-img-wrap.show-img img {
    display: block;
}
.upload-img-wrap img {
    position: relative;
    display: none;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    z-index: 98;
}
.upload-img-wrap img.show {
    display: inline;
}
.upload-img-wrap input[type='file'] {
    position: absolute;
    font-size: 20px;
    width: 92px;
    height: 92px;
    bottom: 0px;
    left: 0px;
    filter: alpha(opacity=0);
    opacity: 0;
    cursor: pointer;
    z-index: 99;
}
.u-list {
    position: absolute;
    width: 82.3333%;
    z-index: 100;
}
.switch {position: static;margin-left: 0;visibility: visible;}
/* 开关按钮 */
.toggle { position: absolute; margin-left: -9999px; visibility: hidden; }
    .toggle + label { display: block; position: relative; cursor: pointer; outline: none; user-select: none; }
    input.toggle-round + label { padding: 2px; font-size: 1em; width: 4em; height: 2em; background-color: #dddddd; border-radius: 2em; transition: background 0.4s; box-sizing: content-box; }
    input.toggle-round + label:before,
    input.toggle-round + label:after { display: block; position: absolute; top: 1px; left: 1px; bottom: 1px; content: ""; }
    input.toggle-round + label:before { right: 1px; background-color: #f1f1f1; border-radius: 60px; transition: background 0.4s; }
    input.toggle-round + label:after { width: 2.1em; height: 2.1em; background-color: #fff; border-radius: 50%; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); transition: margin 0.4s; }
    input.toggle-round:checked + label:before { background-color: #8ce196; }
    input.toggle-round:checked + label:after { margin-left: 2.1em; }