Former-commit-id: 2f9851f1d6ea4b55228795bd4ccfd36f1c78cf2c [formerly 2f9851f1d6ea4b55228795bd4ccfd36f1c78cf2c [formerly 2f9851f1d6ea4b55228795bd4ccfd36f1c78cf2c [formerly 2f9851f1d6ea4b55228795bd4ccfd36f1c78cf2c [formerly 1e2be03af8c1e899a0010438a0db5cb3c011983f [formerly 02bdfa97a8aebb601237d75109697ade07948483]]]]] Former-commit-id: b2e7221aa2dcdb20d9cc8a7222b98f5a3427601f Former-commit-id: 51442ed33afe2ca3aa35374e37652cba14f5198b Former-commit-id: 487976119d2dd2db7d5984d5b93be2a0dd42cf5e [formerly fbf72b4760b4416a69630af7a44a3fa43fd2e8a2] Former-commit-id: 03d720bf4827cff0ed406b64ae487025078d4fbd Former-commit-id: bda6b07fe65d3c499216da343c1cdf0db065f294 Former-commit-id: 17be2bd42175165470c943923214bb75b3beef6c Former-commit-id: 0d37132ff578ffa060c2f755664ac9faa24dfd07 Former-commit-id: 883a7c9bc897f6a5047a1d90423257a3d2894f38
44 lines
776 B
SCSS
44 lines
776 B
SCSS
@import '~@/assets/style/unit/color.scss';
|
|
|
|
// 工具类名统一前缀
|
|
$prefix: d2;
|
|
|
|
// 禁止用户选中 鼠标变为手形
|
|
%unable-select {
|
|
user-select: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
// 填满父元素
|
|
// 组要父元素 position: relative | absolute;
|
|
%full {
|
|
position: absolute;
|
|
top: 0px;
|
|
right: 0px;
|
|
bottom: 0px;
|
|
left: 0px;
|
|
}
|
|
|
|
// flex 垂直水平居中
|
|
%flex-center-row {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-direction: row;
|
|
}
|
|
%flex-center-col {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
}
|
|
|
|
// 将元素模拟成卡片外观
|
|
%card {
|
|
border: 1px solid #dddee1;
|
|
border-color: #e9eaec;
|
|
background: #fff;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
position: relative;
|
|
} |