UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

88 lines (76 loc) 2.1 kB
@layer mantine {@keyframes m_81a374bd { 0% { background-position: 0 0; } 100% { background-position: 40px 0; } } .m_db6d6462 { --progress-radius: var(--mantine-radius-default); --progress-size: var(--progress-size-md); --progress-size-xs: 3px; --progress-size-sm: 5px; --progress-size-md: 8px; --progress-size-lg: 12px; --progress-size-xl: 16px; position: relative; height: var(--progress-size); border-radius: var(--progress-radius); overflow: hidden; display: flex; } :where([data-mantine-color-scheme='light']) .m_db6d6462 { background-color: var(--mantine-color-gray-2); } :where([data-mantine-color-scheme='dark']) .m_db6d6462 { background-color: var(--mantine-color-dark-4); } .m_2242eb65 { background-color: var(--progress-section-color); height: 100%; width: var(--progress-section-width); display: flex; align-items: center; justify-content: center; overflow: hidden; background-size: 20px 20px; transition: width var(--progress-transition-duration, 100ms) ease; } .m_2242eb65:where([data-striped]) { background-image: linear-gradient( 45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent ); } .m_2242eb65:where([data-animated]) { animation: m_81a374bd 1s linear infinite; } .m_2242eb65:where(:last-of-type) { border-radius: 0; border-start-end-radius: var(--progress-radius); border-end-end-radius: var(--progress-radius); } .m_2242eb65:where(:first-of-type) { border-radius: 0; border-start-start-radius: var(--progress-radius); border-end-start-radius: var(--progress-radius); } .m_91e40b74 { color: var(--progress-label-color, var(--mantine-color-white)); font-weight: bold; user-select: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: min(calc(var(--progress-size) * 0.65), calc(1.125rem * var(--mantine-scale))); line-height: 1; padding-inline: 4px; } }