UNPKG

twindy

Version:

CSS Framework written in Stylus inspired by Tailwind and NIB

75 lines (62 loc) 1.19 kB
@require "../mixins/colors.styl"; @require "../mixins/base.styl"; tw-reset-border() { *, ::before, ::after { border-width: 0; border-style: solid; border-color: #e5e7eb; } hr { border-top-width: 1px; } img { border-style: solid; } table { border-collapse: collapse; } } tw-reset-form() { textarea { resize: vertical; } input::placeholder, textarea::placeholder { color: #9ca3af; } input[type="checkbox"] { appearance: checkbox !important; -webkit-appearance: checkbox !important; } button, [role="button"] { cursor: pointer; } button, input, optgroup, select, textarea { padding: 0; line-height: inherit; color: inherit; } } tw-reset-monospace() { pre, code, kbd, samp { font-family: var(--code-font-family, -font-mono); font-size: sm; } } tw-reset-media() { img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; } img, video { height: auto; max-width: 100%; } } tw-tailwind() { if __tw_once("tailwind") { tw-reset-border(); tw-reset-form(); tw-reset-media(); tw-reset-monospace(); } }