@groww-tech/base-css
Version:
Base CSS classes used by all Groww Web Projects
118 lines (96 loc) • 1.71 kB
CSS
/* Shimmering Loader CSS starts here */
.ph-item {
position: relative;
display: flex;
flex-wrap: wrap;
overflow: hidden;
background-color: var(--primaryBg);
}
.ph-item,
.ph-item *,
.ph-item ::after,
.ph-item ::before {
box-sizing: border-box;
}
.ph-item::before {
content: " ";
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 50%;
z-index: 1;
width: 500%;
margin-left: -250%;
animation: phAnimation 0.8s linear infinite;
background: linear-gradient(to right, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 54%) 50% 50%;
}
.ph-item > * {
flex: 1 1 auto;
display: flex;
flex-flow: column;
}
.ph-row {
display: flex;
flex-wrap: wrap;
}
.ph-row div {
height: 10px;
margin-bottom: 7.5px;
background-color: #CED4DA3B;
}
.ph-row .big,
.ph-row.big div {
height: 20px;
margin-bottom: 15px;
}
.ph-row .empty {
background-color: rgba(255, 255, 255, 0);
}
.ph-col-2 {
flex: 0 0 16.6666666667%;
}
.ph-col-4 {
flex: 0 0 33.3333333333%;
}
.ph-col-6 {
flex: 0 0 50%;
}
.ph-col-8 {
flex: 0 0 66.6666666667%;
}
.ph-col-10 {
flex: 0 0 83.3333333333%;
}
.ph-col-12 {
flex: 0 0 100%;
}
.ph-avatar {
position: relative;
width: 100%;
min-width: 60px;
background-color: #CED4DA3B;
margin-bottom: 15px;
border-radius: 50%;
overflow: hidden;
}
.ph-avatar::before {
content: " ";
display: block;
padding-top: 100%;
}
.ph-picture {
width: 100%;
height: 120px;
background-color: #CED4DA3B;
margin-bottom: 15px;
}
@keyframes phAnimation {
0% {
transform: translate3d(-30%, 0, 0);
}
100% {
transform: translate3d(30%, 0, 0);
}
}
/* Shimmering Loader CSS ends here */