|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
331 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 | const { list } = require('postcss');
|
|---|
| 3 | /** @type {(v: string | string[]) => [string, string, string, string]} */
|
|---|
| 4 | module.exports = (v) => {
|
|---|
| 5 | const s = typeof v === 'string' ? list.space(v) : v;
|
|---|
| 6 | return [
|
|---|
| 7 | s[0], // top
|
|---|
| 8 | s[1] || s[0], // right
|
|---|
| 9 | s[2] || s[0], // bottom
|
|---|
| 10 | s[3] || s[1] || s[0], // left
|
|---|
| 11 | ];
|
|---|
| 12 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.