public.scss 添加新样式

Former-commit-id: 31b51512a3affa705fd490a32352fe9d349f5e47 [formerly 31b51512a3affa705fd490a32352fe9d349f5e47 [formerly 31b51512a3affa705fd490a32352fe9d349f5e47 [formerly 31b51512a3affa705fd490a32352fe9d349f5e47 [formerly acc684e8dabd5b9bc08e8707a28fe692f3261fd9 [formerly f14d783d6b7891323aab0cd69eb1768d9c2f8d82]]]]]
Former-commit-id: c893b69a006626167cd585735ac4005181a1a9b9
Former-commit-id: c3aebfd588190037a40dab8f5e09c98bdc3a17b2
Former-commit-id: db95e1fcf4b54d35f4c9942a1c218a4eb4d70f92 [formerly 6b3701f08a3d71536700e051df9382dbc90001b5]
Former-commit-id: 85ad18fe6945401c04eecf710aa2d05b534d8cc2
Former-commit-id: 4a3ed4ab325d96a2675aa563c8176c3bb516765f
Former-commit-id: 1457e73db2da60fc33f31189eba002f31b169a09
Former-commit-id: 5cdb65500a1d76e57c463eed2be7fd6bded57bed
Former-commit-id: 097aed05315caf5e16f8f11a10626621ea92e30b
This commit is contained in:
liyang
2018-07-07 19:39:42 +08:00
parent c172f1e75e
commit 2d9a956b48

View File

@@ -9,6 +9,31 @@ $prefix: d2;
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;