UNPKG

@dschen/slidy

Version:

Slidy is a simple npm package that allows you to create customizable sliders for your web projects.

266 lines (241 loc) 3.32 kB
/* RESET */ body, form { height: 100%; } html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; vertical-align: baseline; } /* HTML5 display-role reset for older browsers */ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } body { line-height: 1; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: ""; content: none; } table { border-collapse: collapse; border-spacing: 0; } a img { border: 0; } a:hover, a:focus { text-decoration: none; color: inherit; } textarea { resize: none; } *:focus, .btn:focus, input:focus, textarea:focus, select:focus { outline-offset: 0; outline: 0; box-shadow: none; } .form-control:focus { box-shadow: none; } .no-js #loader { display: none; } .js #loader { display: block; position: absolute; left: 100px; top: 0; } :before, :after, html *, html:before, html:after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } input[type=checkbox], input[type=radio], input[type=file] { height: 0; width: 0; opacity: 0; position: absolute; } input[type=checkbox]:disabled, input[type=checkbox]:disabled + label, input[type=radio]:disabled, input[type=radio]:disabled + label input[type=file]:disabled, input[type=file]:disabled + label { opacity: 0.3; cursor: not-allowed; } input[type=number] { -moz-appearance: textfield; } input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; } input { -webkit-appearance: none; -moz-appearance: none; appearance: none; } .preload * { -webkit-transition: none; -moz-transition: none; -ms-transition: none; -o-transition: none; transition: none; } button { cursor: pointer; border: none; } .slidy .slidy-stage { overflow: scroll; display: flex; scroll-behavior: smooth; scroll-snap-type: inline mandatory; -ms-overflow-style: none; scrollbar-width: none; } .slidy .slidy-stage::-webkit-scrollbar { display: none; } .slidy .slidy-indicators { gap: 0.25rem; width: 100%; display: flex; justify-content: center; } .slidy .slidy-item { scroll-snap-align: start; flex: 0 0 auto; width: 100%; } .slidy .btn.btn-indicator { padding: 0; height: 12px; border-radius: 6px; aspect-ratio: 1.17; background-color: #DEE2E6; transition: all 0.2s; } .slidy .btn.btn-indicator.active { background-color: #FFC40C; aspect-ratio: 2.7; } /*# sourceMappingURL=styles.css.map */