mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-05 17:39:30 +08:00
12 lines
331 B
Text
12 lines
331 B
Text
'use strict';
|
|
const { list } = require('postcss');
|
|
/** @type {(v: string | string[]) => [string, string, string, string]} */
|
|
module.exports = (v) => {
|
|
const s = typeof v === 'string' ? list.space(v) : v;
|
|
return [
|
|
s[0], // top
|
|
s[1] || s[0], // right
|
|
s[2] || s[0], // bottom
|
|
s[3] || s[1] || s[0], // left
|
|
];
|
|
};
|