uni-ui.scss 1.8 KB
Newer Older
芊里 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118

.uni-flex {
	display: flex;
}

.uni-flex-row {
	@extend .uni-flex;
	flex-direction: row;
	box-sizing: border-box;
}

.uni-flex-column {
	@extend .uni-flex;
	flex-direction: column;
}

.uni-color-gary {
	color: #3b4144;
}

/* 标题 */
.uni-title {
	display: flex;
	margin-bottom: $uni-spacing-col-base;
	font-size: $uni-font-size-lg;
	font-weight: bold;
	color: #3b4144;
}

.uni-title-sub {
	display: flex;
	font-size: $uni-font-size-base;
	font-weight: 500;
	color: #3b4144;
}

/* 描述 额外文本 */
.uni-note {
	margin-top: 10px;
	color: #999;
	font-size: $uni-font-size-sm;
}

/* 列表内容 */
.uni-list-box {
	@extend .uni-flex-row;
	flex: 1;
	margin-top: 10px;
}

/* 略缩图 */
.uni-thumb {
	flex-shrink: 0;
	margin-right: $uni-spacing-row-base;
	width: 125px;
	height: 75px;
	border-radius: $uni-border-radius-lg;
	overflow: hidden;
	border: 1px #f5f5f5 solid;
	image {
		width: 100%;
		height: 100%;
	}
}

.uni-media-box {
	@extend .uni-flex-row;
	border-radius: $uni-border-radius-lg;
	overflow: hidden;
	.uni-thumb {
		margin: 0;
		margin-left: 4px;
		flex-shrink: 1;
		width: 33%;
		border-radius:0;
		&:first-child {
			margin: 0;
		}
	}
}

/* 内容 */
.uni-content {
	@extend .uni-flex-column;
	justify-content: space-between;
}

/* 列表footer */
.uni-footer {
	@extend .uni-flex-row;
	justify-content: space-between;
	margin-top: $uni-spacing-col-lg;
}
.uni-footer-text {
	font-size: $uni-font-size-sm;
	color: $uni-text-color-grey;
	margin-left: 5px;
}

/* 标签 */

.uni-tag {
	flex-shrink: 0;
	padding: 0 5px;
	border: 1px $uni-border-color solid;
	margin-right: $uni-spacing-row-sm;
	border-radius: $uni-border-radius-base;
	background: $uni-bg-color-grey;
	color: $uni-text-color;
	font-size: $uni-font-size-sm;
}

/* 链接 */
.uni-link {
	margin-left: 10px;
	color: $uni-text-color;
	text-decoration: underline;
}