123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302 |
- /* -------------------------------------------------------------------
- Microtip
- Modern, lightweight css-only tooltips
- Just 1kb minified and gzipped
- @author Ghosh
- @package Microtip
- ----------------------------------------------------------------------
- 1. Base Styles
- 2. Direction Modifiers
- 3. Position Modifiers
- --------------------------------------------------------------------*/
- /* ------------------------------------------------
- [1] Base Styles
- -------------------------------------------------*/
- .uppy-Root [aria-label][role~="tooltip"] {
- /* no important */
- position: relative;
- }
- .uppy-Root [aria-label][role~="tooltip"]::before,
- .uppy-Root [aria-label][role~="tooltip"]::after {
- /* no important */
- transform: translate3d(0, 0, 0);
- -webkit-backface-visibility: hidden;
- backface-visibility: hidden;
- will-change: transform;
- opacity: 0;
- pointer-events: none;
- transition: all var(--microtip-transition-duration, .18s) var(--microtip-transition-easing, ease-in-out) var(--microtip-transition-delay, 0s);
- position: absolute;
- box-sizing: border-box;
- z-index: 10;
- transform-origin: top;
- }
- .uppy-Root [aria-label][role~="tooltip"]::before {
- /* no important */
- background-size: 100% auto !important;
- content: "";
- }
- .uppy-Root [aria-label][role~="tooltip"]::after {
- /* no important */
- background: rgba(17, 17, 17, .9);
- border-radius: 4px;
- color: #ffffff;
- content: attr(aria-label);
- font-size: var(--microtip-font-size, 13px);
- font-weight: var(--microtip-font-weight, normal);
- text-transform: var(--microtip-text-transform, none);
- padding: .5em 1em;
- white-space: nowrap;
- box-sizing: content-box;
- }
- .uppy-Root [aria-label][role~="tooltip"]:hover::before,
- .uppy-Root [aria-label][role~="tooltip"]:hover::after,
- .uppy-Root [aria-label][role~="tooltip"]:focus::before,
- .uppy-Root [aria-label][role~="tooltip"]:focus::after {
- /* no important */
- opacity: 1;
- pointer-events: auto;
- }
- /* ------------------------------------------------
- [2] Position Modifiers
- -------------------------------------------------*/
- .uppy-Root [role~="tooltip"][data-microtip-position|="top"]::before {
- /* no important */
- background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%280%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
- height: 6px;
- width: 18px;
- margin-bottom: 5px;
- }
- .uppy-Root [role~="tooltip"][data-microtip-position|="top"]::after {
- /* no important */
- margin-bottom: 11px;
- }
- .uppy-Root [role~="tooltip"][data-microtip-position|="top"]::before {
- /* no important */
- transform: translate3d(-50%, 0, 0);
- bottom: 100%;
- left: 50%;
- }
- .uppy-Root [role~="tooltip"][data-microtip-position|="top"]:hover::before {
- /* no important */
- transform: translate3d(-50%, -5px, 0);
- }
- .uppy-Root [role~="tooltip"][data-microtip-position|="top"]::after {
- /* no important */
- transform: translate3d(-50%, 0, 0);
- bottom: 100%;
- left: 50%;
- }
- .uppy-Root [role~="tooltip"][data-microtip-position="top"]:hover::after {
- /* no important */
- transform: translate3d(-50%, -5px, 0);
- }
- /* ------------------------------------------------
- [2.1] Top Left
- -------------------------------------------------*/
- .uppy-Root [role~="tooltip"][data-microtip-position="top-left"]::after {
- /* no important */
- transform: translate3d(calc(-100% + 16px), 0, 0);
- bottom: 100%;
- }
- .uppy-Root [role~="tooltip"][data-microtip-position="top-left"]:hover::after {
- /* no important */
- transform: translate3d(calc(-100% + 16px), -5px, 0);
- }
- /* ------------------------------------------------
- [2.2] Top Right
- -------------------------------------------------*/
- .uppy-Root [role~="tooltip"][data-microtip-position="top-right"]::after {
- /* no important */
- transform: translate3d(calc(0% + -16px), 0, 0);
- bottom: 100%;
- }
- .uppy-Root [role~="tooltip"][data-microtip-position="top-right"]:hover::after {
- /* no important */
- transform: translate3d(calc(0% + -16px), -5px, 0);
- }
- /* ------------------------------------------------
- [2.3] Bottom
- -------------------------------------------------*/
- .uppy-Root [role~="tooltip"][data-microtip-position|="bottom"]::before {
- /* no important */
- background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236px%22%20height%3D%2212px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28180%2018%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
- height: 6px;
- width: 18px;
- margin-top: 5px;
- margin-bottom: 0;
- }
- .uppy-Root [role~="tooltip"][data-microtip-position|="bottom"]::after {
- /* no important */
- margin-top: 11px;
- }
- .uppy-Root [role~="tooltip"][data-microtip-position|="bottom"]::before {
- /* no important */
- transform: translate3d(-50%, -10px, 0);
- bottom: auto;
- left: 50%;
- top: 100%;
- }
- .uppy-Root [role~="tooltip"][data-microtip-position|="bottom"]:hover::before {
- /* no important */
- transform: translate3d(-50%, 0, 0);
- }
- .uppy-Root [role~="tooltip"][data-microtip-position|="bottom"]::after {
- /* no important */
- transform: translate3d(-50%, -10px, 0);
- top: 100%;
- left: 50%;
- }
- .uppy-Root [role~="tooltip"][data-microtip-position="bottom"]:hover::after {
- /* no important */
- transform: translate3d(-50%, 0, 0);
- }
- /* ------------------------------------------------
- [2.4] Bottom Left
- -------------------------------------------------*/
- .uppy-Root [role~="tooltip"][data-microtip-position="bottom-left"]::after {
- /* no important */
- transform: translate3d(calc(-100% + 16px), -10px, 0);
- top: 100%;
- }
- .uppy-Root [role~="tooltip"][data-microtip-position="bottom-left"]:hover::after {
- /* no important */
- transform: translate3d(calc(-100% + 16px), 0, 0);
- }
- /* ------------------------------------------------
- [2.5] Bottom Right
- -------------------------------------------------*/
- .uppy-Root [role~="tooltip"][data-microtip-position="bottom-right"]::after {
- /* no important */
- transform: translate3d(calc(0% + -16px), -10px, 0);
- top: 100%;
- }
- .uppy-Root [role~="tooltip"][data-microtip-position="bottom-right"]:hover::after {
- /* no important */
- transform: translate3d(calc(0% + -16px), 0, 0);
- }
- /* ------------------------------------------------
- [2.6] Left
- -------------------------------------------------*/
- .uppy-Root [role~="tooltip"][data-microtip-position="left"]::before,
- .uppy-Root [role~="tooltip"][data-microtip-position="left"]::after {
- /* no important */
- bottom: auto;
- left: auto;
- right: 100%;
- top: 50%;
- transform: translate3d(10px, -50%, 0);
- }
- .uppy-Root [role~="tooltip"][data-microtip-position="left"]::before {
- /* no important */
- background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%28-90%2018%2018%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
- height: 18px;
- width: 6px;
- margin-right: 5px;
- margin-bottom: 0;
- }
- .uppy-Root [role~="tooltip"][data-microtip-position="left"]::after {
- /* no important */
- margin-right: 11px;
- }
- .uppy-Root [role~="tooltip"][data-microtip-position="left"]:hover::before,
- .uppy-Root [role~="tooltip"][data-microtip-position="left"]:hover::after {
- /* no important */
- transform: translate3d(0, -50%, 0);
- }
- /* ------------------------------------------------
- [2.7] Right
- -------------------------------------------------*/
- .uppy-Root [role~="tooltip"][data-microtip-position="right"]::before,
- .uppy-Root [role~="tooltip"][data-microtip-position="right"]::after {
- /* no important */
- bottom: auto;
- left: 100%;
- top: 50%;
- transform: translate3d(-10px, -50%, 0);
- }
- .uppy-Root [role~="tooltip"][data-microtip-position="right"]::before {
- /* no important */
- background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2212px%22%20height%3D%2236px%22%3E%3Cpath%20fill%3D%22rgba%2817,%2017,%2017,%200.9%29%22%20transform%3D%22rotate%2890%206%206%29%22%20d%3D%22M2.658,0.000%20C-13.615,0.000%2050.938,0.000%2034.662,0.000%20C28.662,0.000%2023.035,12.002%2018.660,12.002%20C14.285,12.002%208.594,0.000%202.658,0.000%20Z%22/%3E%3C/svg%3E") no-repeat;
- height: 18px;
- width: 6px;
- margin-bottom: 0;
- margin-left: 5px;
- }
- .uppy-Root [role~="tooltip"][data-microtip-position="right"]::after {
- /* no important */
- margin-left: 11px;
- }
- .uppy-Root [role~="tooltip"][data-microtip-position="right"]:hover::before,
- .uppy-Root [role~="tooltip"][data-microtip-position="right"]:hover::after {
- /* no important */
- transform: translate3d(0, -50%, 0);
- }
- /* ------------------------------------------------
- [3] Size
- -------------------------------------------------*/
- .uppy-Root [role~="tooltip"][data-microtip-size="small"]::after {
- /* no important */
- white-space: initial;
- width: 80px;
- }
- .uppy-Root [role~="tooltip"][data-microtip-size="medium"]::after {
- /* no important */
- white-space: initial;
- width: 150px;
- }
- .uppy-Root [role~="tooltip"][data-microtip-size="large"]::after {
- /* no important */
- white-space: initial;
- width: 260px;
- }
|