Skip to content

Commit b85b477

Browse files
authored
Merge pull request #2 from KaivalyaMDabhadkar/main
fixed styling issues
2 parents f565315 + 5e533b7 commit b85b477

File tree

2 files changed

+106
-46
lines changed

2 files changed

+106
-46
lines changed

_quarto.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ format:
5959
page-layout: article
6060
grid:
6161
sidebar-width: 250px
62-
body-width: 900px
63-
margin-width: 250px
64-
gutter-width: 1.5rem
62+
body-width: 850px
63+
margin-width: 300px
64+
gutter-width: 3rem
6565
fontsize: 1rem
6666
linestretch: 1.7
6767
mainfont: "Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif"

styles.css

Lines changed: 103 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -416,51 +416,104 @@ main > * {
416416
margin-right: 0.25rem;
417417
}
418418

419-
/* Category Badges - Vibrant and Interactive */
419+
/* ============================================================================
420+
Category Badges - Refined Modern Style
421+
============================================================================ */
420422
.quarto-category,
421423
.category {
422424
display: inline-block;
423-
padding: 0.4rem 1.1rem;
424-
background: var(--gradient-primary);
425-
color: white !important;
426-
border-radius: 50px;
427-
font-size: 0.95rem;
425+
padding: 0.35rem 0.9rem;
426+
background: rgba(94, 114, 228, 0.08);
427+
color: var(--primary) !important;
428+
border: 1px solid rgba(94, 114, 228, 0.15);
429+
border-radius: 8px;
430+
font-size: 0.85rem;
428431
font-weight: 600;
429-
margin: 0.2rem 0.25rem; /* Added vertical margin for spacing */
430-
transition: var(--transition-base);
431-
box-shadow: var(--shadow-sm);
432+
margin: 0.2rem 0.25rem;
433+
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
434+
box-shadow: none;
435+
text-decoration: none !important;
432436
position: relative;
433437
overflow: hidden;
434438
text-align: center;
435439
vertical-align: middle;
436440
}
437441

438-
.quarto-category::before,
439-
.category::before {
440-
content: '';
441-
position: absolute;
442-
top: 50%;
443-
left: 50%;
444-
width: 0;
445-
height: 0;
446-
background: rgba(255, 255, 255, 0.3);
447-
border-radius: 50%;
448-
transform: translate(-50%, -50%);
449-
transition: width 0.3s ease, height 0.3s ease;
450-
}
451-
452442
.quarto-category:hover,
453443
.category:hover {
454-
transform: translateY(-3px) scale(1.05);
455-
box-shadow: var(--shadow-colored);
456-
text-decoration: none;
444+
background: var(--primary);
457445
color: white !important;
446+
transform: translateY(-2px);
447+
box-shadow: var(--shadow-colored);
448+
border-color: var(--primary);
449+
}
450+
451+
/* Sidebar Specific Category Redesign */
452+
.quarto-listing-category-title {
453+
font-family: 'Poppins', sans-serif;
454+
font-size: 0.75rem;
455+
font-weight: 700;
456+
text-transform: uppercase;
457+
letter-spacing: 0.15em;
458+
color: var(--text-muted);
459+
margin-top: 2rem;
460+
margin-bottom: 1.25rem;
461+
padding-bottom: 0.5rem;
462+
border-bottom: 2px solid var(--border-color);
463+
display: block;
464+
}
465+
466+
.quarto-listing-categories {
467+
display: flex;
468+
flex-direction: column;
469+
gap: 0.25rem;
470+
padding-left: 0;
471+
}
472+
473+
.quarto-listing-categories .quarto-listing-category {
474+
margin: 0 !important;
475+
list-style: none;
458476
}
459477

460-
.quarto-category:hover::before,
461-
.category:hover::before {
478+
.quarto-listing-categories .category {
479+
display: flex !important;
480+
justify-content: space-between;
481+
align-items: center;
462482
width: 100%;
463-
height: 100%;
483+
padding: 0.7rem 1rem !important;
484+
background: transparent !important;
485+
border: 1px solid transparent !important;
486+
color: var(--text-secondary) !important;
487+
border-radius: 12px !important;
488+
font-size: 0.95rem !important;
489+
margin: 0 !important;
490+
box-shadow: none !important;
491+
transition: all 0.2s ease;
492+
text-align: left !important;
493+
}
494+
495+
.quarto-listing-categories .category:hover {
496+
background: rgba(94, 114, 228, 0.06) !important;
497+
color: var(--primary) !important;
498+
transform: translateX(6px) !important;
499+
}
500+
501+
/* Style the count if it's in a span (standard Quarto) */
502+
.quarto-category-count,
503+
.category-count {
504+
font-size: 0.8rem;
505+
background: rgba(94, 114, 228, 0.1);
506+
color: var(--primary);
507+
padding: 0.1rem 0.5rem;
508+
border-radius: 20px;
509+
font-weight: 600;
510+
margin-left: 0.5rem;
511+
}
512+
513+
.category:hover .quarto-category-count,
514+
.category:hover .category-count {
515+
background: rgba(255, 255, 255, 0.2);
516+
color: white;
464517
}
465518

466519
/* Category container in posts - mobile-optimized */
@@ -849,13 +902,14 @@ td {
849902
max-height: calc(100vh - 4rem);
850903
overflow-y: auto;
851904
overflow-x: hidden;
852-
padding: 1.5rem;
853-
background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
854-
backdrop-filter: blur(10px);
855-
-webkit-backdrop-filter: blur(10px);
856-
border-radius: 12px;
857-
border: 1px solid rgba(229, 231, 235, 0.4);
858-
box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.08), 0 2px 8px -2px rgba(0, 0, 0, 0.04);
905+
padding: 0.5rem 0 0.5rem 1rem;
906+
background: transparent;
907+
backdrop-filter: none;
908+
-webkit-backdrop-filter: none;
909+
border-radius: 0;
910+
border: none;
911+
border-left: 1px solid var(--border-color);
912+
box-shadow: none;
859913
margin-bottom: 2rem;
860914
}
861915

@@ -1154,16 +1208,22 @@ img:hover {
11541208
height: 16px !important;
11551209
}
11561210

1157-
/* Math display - prevent overflow */
1211+
/* Math display - prevent overflow and ensure readability */
11581212
.math.display {
11591213
overflow-x: auto;
1160-
font-size: 0.9em;
1214+
font-size: 1.15em;
1215+
scrollbar-width: none; /* Hide scrollbar for Firefox */
1216+
-ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
1217+
}
1218+
1219+
.math.display::-webkit-scrollbar {
1220+
display: none; /* Hide scrollbar for Chrome/Safari */
11611221
}
11621222

11631223
/* MathJax on mobile */
11641224
mjx-container[display="true"] {
11651225
padding: 1rem !important;
1166-
font-size: 0.85em !important;
1226+
font-size: 1.1em !important;
11671227
}
11681228

11691229
/* Only display math should scroll horizontally on mobile */
@@ -1178,6 +1238,7 @@ img:hover {
11781238
mjx-container[display="true"] mjx-math::-webkit-scrollbar {
11791239
width: 0 !important;
11801240
height: 0 !important;
1241+
display: none !important;
11811242
}
11821243

11831244
/* Inline math must never create a scrollable box */
@@ -1433,13 +1494,12 @@ input, textarea, select {
14331494

14341495
/* Custom Scrollbars */
14351496
::-webkit-scrollbar {
1436-
width: 10px;
1437-
height: 10px;
1497+
width: 4px;
1498+
height: 4px;
14381499
}
14391500

14401501
::-webkit-scrollbar-track {
1441-
background: var(--bg-secondary);
1442-
border-radius: 5px;
1502+
background: transparent;
14431503
}
14441504

14451505
::-webkit-scrollbar-thumb {

0 commit comments

Comments
 (0)