create public search
This commit is contained in:
149
resources/scss/pages/public-search/index.scss
Normal file
149
resources/scss/pages/public-search/index.scss
Normal file
@@ -0,0 +1,149 @@
|
||||
.qs-wrapper {
|
||||
width: 100%;
|
||||
margin: 0 auto;
|
||||
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
||||
color: #2c3e50;
|
||||
}
|
||||
|
||||
.qs-toolbar {
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
.qs-search-form {
|
||||
width: 100%;
|
||||
max-width: 1000px; // biar kotak ga terlalu panjang di layar besar
|
||||
margin: 0 auto; // center
|
||||
|
||||
position: relative;
|
||||
|
||||
.gsp-input {
|
||||
width: 100%;
|
||||
height: 48px;
|
||||
font-size: 16px;
|
||||
padding: 0 48px 0 48px; // kasih space kiri buat icon
|
||||
border-radius: 999px; // pill shape
|
||||
border: 1px solid #dfe1e5;
|
||||
background-color: #fff;
|
||||
box-shadow: none;
|
||||
transition: box-shadow 0.2s ease-in-out, border-color 0.2s;
|
||||
|
||||
&:focus {
|
||||
border-color: transparent;
|
||||
box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
|
||||
outline: none;
|
||||
}
|
||||
}
|
||||
|
||||
// ikon search di kiri input
|
||||
&::before {
|
||||
content: "🔍";
|
||||
position: absolute;
|
||||
left: 18px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
font-size: 18px;
|
||||
color: #5f6368;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.gsp-btn {
|
||||
margin-left: 12px;
|
||||
height: 44px;
|
||||
padding: 0 24px;
|
||||
font-size: 14px;
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
background-color: #007c61;
|
||||
color: #ffffff;
|
||||
cursor: pointer;
|
||||
transition: background-color 0.2s ease-in-out;
|
||||
|
||||
&:hover {
|
||||
background-color: #36a852;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.qs-header {
|
||||
margin-bottom: 30px;
|
||||
text-align: center;
|
||||
|
||||
h2 {
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
color: #1a237e;
|
||||
|
||||
em {
|
||||
font-style: normal;
|
||||
color: #0d47a1;
|
||||
}
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 16px;
|
||||
color: #555;
|
||||
}
|
||||
}
|
||||
|
||||
.qs-table-wrapper {
|
||||
background-color: #fff;
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
||||
overflow-x: auto; // allow horizontal scroll on small screens
|
||||
padding: 30px 20px; // 🔑 kasih jarak kanan, kiri, atas, bawah
|
||||
}
|
||||
|
||||
/* Grid.js overrides */
|
||||
.qs-table-wrapper .gridjs {
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.qs-table-wrapper .gridjs-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
.qs-table-wrapper .gridjs-th,
|
||||
.qs-table-wrapper .gridjs-td {
|
||||
padding: 12px 16px;
|
||||
border: 1px solid #e0e0e0;
|
||||
text-align: left;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.qs-table-wrapper .gridjs-th {
|
||||
background-color: #f5f5f5;
|
||||
font-weight: 600;
|
||||
color: #1b1b1b;
|
||||
}
|
||||
|
||||
.qs-table-wrapper .gridjs-tr:hover {
|
||||
background-color: #f9f9f9;
|
||||
}
|
||||
|
||||
.qs-table-wrapper .gridjs-pagination {
|
||||
margin-top: 16px;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.qs-header h2 {
|
||||
font-size: 20px;
|
||||
}
|
||||
|
||||
.qs-wrapper {
|
||||
padding: 20px 10px;
|
||||
}
|
||||
|
||||
.qs-table-wrapper {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.qs-table-wrapper .gridjs-th,
|
||||
.qs-table-wrapper .gridjs-td {
|
||||
padding: 10px 12px;
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user