UNPKG

rsuite

Version:

A suite of react components

145 lines (138 loc) 3.18 kB
*[class*=rs-],*[class*=rs-]::before, *[class*=rs-]::after{ box-sizing:border-box; } html{ -webkit-tap-highlight-color:transparent; font-size:16px; } body{ font-family:var(--rs-font-family-base); font-size:var(--rs-font-size-sm); line-height:var(--rs-line-height-md); color:var(--rs-text-primary); background-color:var(--rs-body); } :root{ --rs-gray-0:#fff; --rs-gray-50:#f7f7fa; --rs-gray-100:#f2f2f5; --rs-gray-200:#e5e5ea; --rs-gray-600:#717273; --rs-gray-800:#343434; --rs-gray-900:#121212; --rs-body:var(--rs-gray-0); --rs-text-primary:var(--rs-gray-800); --rs-border-primary:var(--rs-gray-200); } [data-theme=dark], .rs-theme-dark{ --rs-gray-0:#fff; --rs-gray-50:#e9ebf0; --rs-gray-100:#cbced4; --rs-gray-200:#a4a9b3; --rs-gray-600:#3c3f43; --rs-gray-800:#1a1d24; --rs-gray-900:#0f131a; --rs-body:var(--rs-gray-900); --rs-text-primary:var(--rs-gray-50); --rs-border-primary:var(--rs-gray-600); } [data-theme=high-contrast], .rs-theme-high-contrast{ --rs-gray-0:#fff; --rs-gray-50:#e9ebf0; --rs-gray-100:#cbced4; --rs-gray-200:#a4a9b3; --rs-gray-600:#3c3f43; --rs-gray-800:#1a1d24; --rs-gray-900:#0f131a; --rs-body:var(--rs-gray-900); --rs-text-primary:var(--rs-gray-50); --rs-border-primary:var(--rs-gray-100); } :root{ --rs-font-family-base:-apple-system, BlinkMacSystemFont, Arial, Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", STXihei, sans-serif; --rs-font-size-sm:0.875rem; --rs-line-height-md:calc(20 / 14); --rs-radius-md:0.375rem; --rs-radius-full:62.5rem; } @media (max-width: calc(576px - 1px)){ [data-visible-from=xs]{ display:none !important; } } @media (min-width: 576px){ [data-hidden-from=xs]{ display:none !important; } } @media (max-width: calc(768px - 1px)){ [data-visible-from=sm]{ display:none !important; } } @media (min-width: 768px){ [data-hidden-from=sm]{ display:none !important; } } @media (max-width: calc(992px - 1px)){ [data-visible-from=md]{ display:none !important; } } @media (min-width: 992px){ [data-hidden-from=md]{ display:none !important; } } @media (max-width: calc(1200px - 1px)){ [data-visible-from=lg]{ display:none !important; } } @media (min-width: 1200px){ [data-hidden-from=lg]{ display:none !important; } } @media (max-width: calc(1400px - 1px)){ [data-visible-from=xl]{ display:none !important; } } @media (min-width: 1400px){ [data-hidden-from=xl]{ display:none !important; } } .rs-image{ --rs-object-fit:cover; --rs-object-position:initial; -o-object-fit:var(--rs-object-fit); object-fit:var(--rs-object-fit); -o-object-position:var(--rs-object-position); object-position:var(--rs-object-position); max-width:100%; } .rs-image-rounded{ border-radius:var(--rs-radius-md); } .rs-image-circle{ border-radius:var(--rs-radius-full); } .rs-image-bordered{ border:1px solid var(--rs-border-primary); } .rs-image-zoomed{ transition:transform 0.3s ease-in-out; cursor:pointer; } .rs-image-zoomed:hover{ transform:matrix(1.25, 0, 0, 1.25, 0, 0); } .rs-image-wrapper{ position:relative; overflow:hidden; }