Skip to content

Commit fff6a43

Browse files
authored
Merge pull request #459 from cherylpinto/feature/issue-#426
Fixed Alignment of Search Icon and other minor changes
2 parents 501a009 + f91c8ce commit fff6a43

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

src/pages/blogs/blogs-new.css

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@
635635
background: rgba(255, 255, 255, 0.95);
636636
backdrop-filter: blur(30px);
637637
border: 2px solid transparent;
638-
border-radius: 24px;
638+
border-radius: 12px;
639639
padding:0;
640640
box-shadow:
641641
0 20px 60px rgba(0, 0, 0, 0.08),
@@ -678,17 +678,17 @@
678678
}
679679

680680
.search-icon {
681-
position: absolute;
682-
left: 16px;
683-
top: 50%;
684-
transform: translateY(-50%);
681+
position: relative;
682+
left: auto;
683+
top: auto;
684+
transform: none;
685685
width: 24px;
686686
height: 24px;
687687
color: #6366f1;
688-
margin-right: 18px;
689688
flex-shrink: 0;
690-
transition: all 0.3s ease;
691-
animation: iconPulse 2s ease-in-out infinite;
689+
display: flex;
690+
align-items: center;
691+
justify-content: center;
692692
pointer-events: none;
693693
}
694694

@@ -706,7 +706,7 @@
706706
.search-wrapper:focus-within .search-icon {
707707
color: #4f46e5;
708708
animation-play-state: paused;
709-
transform: scale(1.1);
709+
transform: translateY(-50%) scale(1.1);
710710
}
711711

712712
.search-input {
@@ -752,9 +752,6 @@
752752
padding: 6px;
753753
border-radius: 50%;
754754
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
755-
margin-left: 12px;
756-
flex-shrink: 0;
757-
position: relative;
758755
overflow: hidden;
759756
}
760757

0 commit comments

Comments
 (0)