Skip to content

Commit d02e26b

Browse files
committed
modified blog search design to show consistenccy with others
1 parent 98b76b1 commit d02e26b

File tree

1 file changed

+11
-46
lines changed

1 file changed

+11
-46
lines changed

blog/index.html

Lines changed: 11 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -98,66 +98,31 @@ <h3>Cloud Native Playground</h3>
9898

9999

100100
<style>
101-
/* Search Container - Enhanced Visibility */
101+
/* Search Container - Consistent with Catalog and Extensions */
102102
.blog-search-container {
103103
margin: 2rem auto;
104104
width: 100%;
105105
max-width: 100%;
106106
}
107107

108108
.sorting-options {
109-
margin: 0 0 1.5rem 0;
109+
margin: 0 20px 0 20px;
110110
display: flex;
111111
align-items: center;
112-
width: 100%;
113-
position: relative;
114-
}
115-
116-
.sorting-options::before {
117-
content: '';
118-
position: absolute;
119-
left: 15px;
120-
top: 50%;
121-
transform: translateY(-50%);
122-
width: 20px;
123-
height: 20px;
124-
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.35-4.35"></path></svg>');
125-
background-size: contain;
126-
background-repeat: no-repeat;
127-
pointer-events: none;
128-
z-index: 1;
129-
color: #888;
112+
@media (max-width: 506px) {
113+
text-align: center;
114+
margin: auto;
115+
}
130116
}
131117

132118
#blog-search-input {
133-
width: 100%;
119+
width: 30%;
134120
flex-grow: 1;
135-
padding: 18px 20px 18px 50px;
136-
font-size: 18px;
137-
border: 2px solid #555;
138-
border-radius: 8px;
139-
background-color: var(--color-primary-dark);
140-
color: var(--color-secondary-dark);
121+
padding: 20px 10px;
122+
border: 1px solid #ddd;
123+
border-radius: 5px;
141124
box-sizing: border-box;
142-
transition: all 0.3s ease;
143-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
144-
}
145-
146-
#blog-search-input::placeholder {
147-
color: #888;
148-
font-size: 16px;
149-
}
150-
151-
#blog-search-input:focus {
152-
outline: none;
153-
border-color: var(--brand-color-secondary);
154-
box-shadow: 0 0 0 3px rgba(0, 211, 169, 0.2), 0 4px 12px rgba(0, 0, 0, 0.4);
155-
background-color: var(--color-primary-medium);
156-
}
157-
158-
#blog-search-input:hover {
159-
border-color: #777;
160-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
125+
top: 0;
161126
}
162127

163128
.search-results-count {

0 commit comments

Comments
 (0)