Skip to content

Commit 29ef815

Browse files
committed
tailwind for sort and filter buttons and dropdowns
1 parent ca619e7 commit 29ef815

File tree

1 file changed

+107
-1
lines changed

1 file changed

+107
-1
lines changed

frontend/src/assets/css/tailwind.css

Lines changed: 107 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,113 @@
375375
@apply overflow-scroll;
376376
}
377377

378-
.slider-container {
378+
.sort-button {
379+
@apply border-gray-300;
380+
@apply rounded-md;
381+
@apply border;
382+
@apply px-2;
383+
@apply py-2;
384+
@apply cursor-pointer;
385+
@apply text-sm;
386+
@apply text-center;
387+
}
388+
389+
@screen sm {
390+
.sort-button {
391+
@apply px-4;
392+
@apply w-auto;
393+
@apply rounded-xl;
394+
}
395+
}
396+
397+
.sort-button:focus {
398+
@apply outline-none;
399+
}
400+
401+
.sort-dropdown {
402+
@apply w-56;
403+
@apply h-56;
404+
@apply mt-4;
405+
@apply overflow-scroll;
406+
@apply rounded-md;
407+
@apply shadow-2xl;
408+
@apply absolute;
409+
@apply rounded-md;
410+
@apply bg-white;
411+
}
412+
413+
.sort-dropdown-option {
414+
@apply cursor-pointer;
415+
@apply block;
416+
@apply pl-4;
417+
@apply py-4;
418+
@apply text-sm;
419+
@apply leading-5;
420+
@apply text-gray-700;
421+
@apply border-gray-300;
422+
}
423+
424+
.sort-dropdown-option:hover, .sort-dropdown-option:focus {
425+
@apply bg-gray-100;
426+
@apply text-gray-900;
427+
@apply outline-none;
428+
}
429+
430+
.filter-button {
431+
@apply border-gray-300;
432+
@apply rounded-md;
433+
@apply border;
434+
@apply px-2;
435+
@apply py-2;
436+
@apply cursor-pointer;
437+
@apply text-sm;
438+
@apply text-center;
439+
}
440+
441+
@screen sm {
442+
.filter-button {
443+
@apply px-8;
444+
@apply w-auto;
445+
@apply rounded-xl;
446+
}
447+
}
448+
449+
@screen md {
450+
.filter-button {
451+
@apply px-8;
452+
}
453+
}
454+
455+
.filter-button:focus {
456+
@apply outline-none;
457+
}
458+
459+
.slider-dropdown {
460+
@apply h-24;
461+
@apply w-full;
462+
@apply mt-4;
463+
@apply flex;
464+
@apply flex-col;
465+
@apply items-center;
466+
@apply justify-center;
467+
@apply rounded-md;
468+
@apply shadow-2xl;
469+
@apply absolute;
470+
@apply left-0;
471+
@apply rounded-md;
472+
@apply bg-white;
473+
@apply outline-none;
474+
}
475+
476+
@screen md {
477+
.slider-dropdown {
478+
@apply max-w-xs;
479+
@apply left-auto;
480+
}
481+
}
482+
483+
.slider-dropdown:focus {
484+
outline:none;
379485
}
380486
}
381487

0 commit comments

Comments
 (0)