feat: 优化界面显示,对deck添加编辑功能
This commit is contained in:
25
plugins/flex.js
Normal file
25
plugins/flex.js
Normal file
@@ -0,0 +1,25 @@
|
||||
const plugin = require('tailwindcss/plugin');
|
||||
|
||||
const flexCenterBaseStyles = {
|
||||
display: 'flex',
|
||||
'justify-content': 'center',
|
||||
'align-items': 'center',
|
||||
};
|
||||
|
||||
/** flex 居中 */
|
||||
const flexCenter = plugin(function ({ addUtilities }) {
|
||||
addUtilities({
|
||||
/** flex 居中 */
|
||||
'.flex-row-center': flexCenterBaseStyles,
|
||||
'.flex-col-center': { ...flexCenterBaseStyles, 'flex-direction': 'column' },
|
||||
'.layout-menu': {},
|
||||
'.scrollbar': {},
|
||||
'.card': {},
|
||||
'.card-title': {},
|
||||
'.card-subtitle': {},
|
||||
'.card-body': {},
|
||||
'.card-footer': {},
|
||||
});
|
||||
});
|
||||
|
||||
module.exports = flexCenter;
|
||||
Reference in New Issue
Block a user