xtreme-ui
Version:
Collection of reusable components that can be used in web projects
2 lines (1 loc) • 3.44 kB
CSS
.xtrColorButton i{color:var(--iconColor);--iconSize: 15px }.xtrColorInput{box-shadow:0 0 0 0 transparent;transition:box-shadow 0s,background var(--animDurDefault)}.xtrColorInput:before{background:hsl(var(--colorBrandPrimary));opacity:1;transition:all var(--animDurDefault) var(--cubicBezierPrimary),background 0s}.xtrColorInput i{color:var(--iconColor)}.xtrColorInput input{cursor:pointer;text-transform:uppercase}.xtrColorPopper{min-width:200px;box-shadow:0 0 0 2px hsl(var(--colorBrandPrimary)/50%);border-radius:24px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px;gap:24px;background:var(--colorBackgroundPrimary);z-index:9999;transition:all var(--animDurDefault) var(--cubicBezierPrimary);overflow:hidden}.xtrColorPopper .themeScheme{width:100%}.xtrColorPopper .themeScheme .schemeSelector{display:flex;justify-content:center;padding-top:16px}.xtrColorPopper .themeScheme .schemeSelector button{flex-grow:1;border-radius:0;padding:0 8px;filter:unset}.xtrColorPopper .themeScheme .schemeSelector button:first-child{border-top-left-radius:24px;border-bottom-left-radius:24px}.xtrColorPopper .themeScheme .schemeSelector button:last-child{border-top-right-radius:24px;border-bottom-right-radius:24px}.xtrColorPopper .themeScheme .schemeSelector button i{height:38px}.xtrColorPopper .header{width:100%;display:flex;justify-content:space-between;align-items:center}.xtrColorPopper .header .heading{position:relative;width:100%;max-width:172px;padding-right:16px;display:flex;align-items:flex-start;height:32px}.xtrColorPopper .header .heading h1{position:absolute;width:100%;height:100%;font-size:14px;text-transform:uppercase;line-height:32px;-webkit-user-select:none;user-select:none;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-variation-settings:"wdth" 75,"wght" 600;background:var(--colorBackgroundPrimary);animation:slideOutRight .4s ease 1s forwards}.xtrColorPopper .header .heading div{position:absolute;width:100%;height:100%;display:flex;flex-direction:column;animation:slideInLeft .4s ease 1s forwards}.xtrColorPopper .header .heading div h1{position:relative;animation:none}.xtrColorPopper .header .heading div .popperInput{width:100%;outline:none;border:none;background:none;letter-spacing:.8px;text-transform:uppercase;color:hsl(var(--colorBrandPrimary));font-size:14px;padding:0;margin-top:-4px;z-index:2;animation:slideInLeft .4s ease 1s forwards}.xtrColorPopper .header .heading div .popperInput:focus-within{color:hsl(var(--colorBrandPrimary));font-variation-settings:"wdth" 75,"wght" 800}.xtrColorPopper .header.withInput .heading{height:44px}.xtrColorPopper .header i{font-size:small;opacity:0;animation:fadeIn .4s ease 1.1s forwards}.xtrColorPopper hr{width:20%;height:4px;background:var(--colorContentPrimary);border:none;margin:0;opacity:.2;border-radius:9999px}.xtrColorPopper .swatch{width:100%;display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(2,1fr);gap:8px 12px}.xtrColorPopper .swatch .swatchItem{aspect-ratio:1;border-radius:9999px;cursor:pointer}@keyframes slideInLeft{0%{opacity:0;z-index:1;transform:translate(50px)}to{opacity:1;z-index:2;transform:translate(0)}}@keyframes slideOutRight{0%{opacity:1;z-index:2;transform:translate(0)}to{opacity:0;z-index:1;transform:translate(-50px)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}