UNPKG

@sanity/default-layout

Version:

The default layout components for Sanity

14 lines (13 loc) 5.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.listStyles = void 0; var _styledComponents = require("styled-components"); var _templateObject; function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); } var listStyles = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n --margin-top: ", "px;\n\n &:not([data-list-type='number']) {\n counter-reset: section;\n }\n\n &[data-list-type='bullet'] {\n --bullet-marker: '\u25CF';\n margin-top: var(--margin-top);\n\n [data-list-type='bullet'] {\n --bullet-marker: '\u25CB';\n margin-top: var(--margin-top);\n\n [data-list-type='bullet'] {\n --bullet-marker: '\u25A0';\n margin-top: var(--margin-top);\n\n [data-list-type='bullet'] {\n --bullet-marker: '\u25CF';\n margin-top: var(--margin-top);\n\n [data-list-type='bullet'] {\n --bullet-marker: '\u25CB';\n margin-top: var(--margin-top);\n\n [data-list-type='bullet'] {\n --bullet-marker: '\u25A0';\n margin-top: var(--margin-top);\n\n [data-list-type='bullet'] {\n --bullet-marker: '\u25CF';\n margin-top: var(--margin-top);\n\n [data-list-type='bullet'] {\n --bullet-marker: '\u25CB';\n margin-top: var(--margin-top);\n\n [data-list-type='bullet'] {\n --bullet-marker: '\u25A0';\n margin-top: var(--margin-top);\n\n [data-list-type='bullet'] {\n --bullet-marker: '\u25CF';\n margin-top: var(--margin-top);\n\n [data-list-type='bullet'] {\n --bullet-marker: '\u25CB';\n margin-top: var(--margin-top);\n\n [data-list-type='bullet'] {\n --bullet-marker: '\u25A0';\n margin-top: var(--margin-top);\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n\n &[data-list-type='number'] {\n --bullet-marker: counter(section, number) '. ';\n counter-reset: section;\n margin-top: var(--margin-top);\n\n [data-list-type='number'] {\n --bullet-marker: counter(section, lower-alpha) '. ';\n counter-reset: section;\n margin-top: var(--margin-top);\n\n [data-list-type='number'] {\n --bullet-marker: counter(section, lower-roman) '. ';\n counter-reset: section;\n margin-top: var(--margin-top);\n\n [data-list-type='number'] {\n --bullet-marker: counter(section, number) '. ';\n counter-reset: section;\n margin-top: var(--margin-top);\n\n [data-list-type='number'] {\n --bullet-marker: counter(section, lower-alpha) '. ';\n counter-reset: section;\n margin-top: var(--margin-top);\n\n [data-list-type='number'] {\n --bullet-marker: counter(section, lower-roman) '. ';\n counter-reset: section;\n margin-top: var(--margin-top);\n\n [data-list-type='number'] {\n --bullet-marker: counter(section, number) '. ';\n counter-reset: section;\n margin-top: var(--margin-top);\n\n [data-list-type='number'] {\n --bullet-marker: counter(section, lower-alpha) '. ';\n counter-reset: section;\n margin-top: var(--margin-top);\n\n [data-list-type='number'] {\n --bullet-marker: counter(section, lower-roman) '. ';\n counter-reset: section;\n margin-top: var(--margin-top);\n\n [data-list-type='number'] {\n --bullet-marker: counter(section, number) '. ';\n counter-reset: section;\n margin-top: var(--margin-top);\n\n [data-list-type='number'] {\n --bullet-marker: counter(section, lower-alpha) '. ';\n counter-reset: section;\n margin-top: var(--margin-top);\n\n [data-list-type='number'] {\n --bullet-marker: counter(section, lower-roman) '. ';\n counter-reset: section;\n margin-top: var(--margin-top);\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n"])), _ref => { var theme = _ref.theme; return theme.sanity.space[1]; }); exports.listStyles = listStyles;