1- <!-- Improved breadcrumb with better category links and styling -->
2- < div class ="simple -breadcrumb ">
3- < a href ="{{ '/' | relative_url }} "> 🏠 Home</ a >
1+ <!-- Fixed breadcrumb component that will definitely display -->
2+ < div class ="flashcard -breadcrumb" style =" display: block !important; visibility: visible !important; ">
3+ < a href ="{{ '/' | relative_url }} " class =" breadcrumb-home " > 🏠 Home</ a >
44 {% if page.category %}
5- < span class ="breadcrumb-sep "> →</ span >
6- < a href ="{{ '/' | relative_url }}#{{ page.category | slugify }} " class ="category-link "
7- onclick ="setTimeout(function(){ document.getElementById('{{ page.category | slugify }}').open = true; }, 100); ">
5+ < span class ="breadcrumb-separator "> →</ span >
6+ < a href ="{{ '/' | relative_url }}#{{ page.category | slugify }} " class ="breadcrumb-category "
7+ onclick ="setTimeout(function(){
8+ const element = document.getElementById('{{ page.category | slugify }}');
9+ if(element) element.open = true;
10+ }, 100); ">
811 {{ page.category }}
912 </ a >
10- < span class ="breadcrumb-sep "> →</ span >
13+ < span class ="breadcrumb-separator "> →</ span >
1114 {% endif %}
12- < span class ="current-page "> {{ page.title }}</ span >
15+ < span class ="breadcrumb-current "> {{ page.title }}</ span >
1316</ div >
1417
1518< style >
16- . simple- breadcrumb {
17- background : linear-gradient ( 135 deg , # f8f9fa , # e9ecef );
18- padding : 14 px 18 px ;
19- border-radius : 8 px ;
20- margin-bottom : 25 px ;
21- font-size : 0.9 em ;
22- border : 1 px solid # e1e8ed ;
23- box-shadow : 0 2 px 4 px rgba ( 0 , 0 , 0 , 0.05 ) ;
24- }
25-
26- . simple-breadcrumb a {
27- color : # 667eea ;
28- text-decoration : none ;
29- font-weight : 500 ;
30- transition : all 0.3 s ease ;
19+ /* Ensure breadcrumb is always visible */
20+ . flashcard-breadcrumb {
21+ background : linear-gradient ( 135 deg , # f8f9fa , # e9ecef ) !important ;
22+ padding : 16 px 20 px !important ;
23+ border-radius : 10 px !important ;
24+ margin-bottom : 30 px !important ;
25+ font-size : 0.95 em !important ;
26+ border : 1 px solid # e1e8ed !important ;
27+ box-shadow : 0 3 px 8 px rgba ( 0 , 0 , 0 , 0.08 ) !important ;
28+ display : flex !important ;
29+ align-items : center !important ;
30+ flex-wrap : wrap !important ;
31+ gap : 8 px !important ;
32+ width : 100 % !important ;
33+ box-sizing : border-box !important ;
3134}
3235
33- .simple-breadcrumb a : hover {
34- color : # 764ba2 ;
35- text-decoration : underline;
36+ .breadcrumb-home ,
37+ .breadcrumb-category {
38+ color : # 667eea !important ;
39+ text-decoration : none !important ;
40+ font-weight : 600 !important ;
41+ padding : 6px 12px !important ;
42+ border-radius : 6px !important ;
43+ transition : all 0.3s ease !important ;
3644}
3745
38- .simple-breadcrumb .category-link {
39- background : rgba (102 , 126 , 234 , 0.1 );
40- padding : 2px 8px ;
41- border-radius : 4px ;
42- border : 1px solid rgba (102 , 126 , 234 , 0.2 );
46+ .breadcrumb-home : hover ,
47+ .breadcrumb-category : hover {
48+ background : rgba (102 , 126 , 234 , 0.1 ) !important ;
49+ color : # 764ba2 !important ;
50+ text-decoration : none !important ;
51+ transform : translateY (-1px ) !important ;
4352}
4453
45- .simple- breadcrumb . category-link : hover {
46- background : rgba (102 , 126 , 234 , 0.15 ) ;
47- transform : translateY ( - 1px ) ;
54+ .breadcrumb-category {
55+ background : rgba (102 , 126 , 234 , 0.08 ) !important ;
56+ border : 1px solid rgba ( 102 , 126 , 234 , 0.2 ) !important ;
4857}
4958
50- .breadcrumb-sep {
51- margin : 0 10 px ;
52- color : # 667eea ;
53- font-weight : bold ;
59+ .breadcrumb-separator {
60+ color : # 667eea !important ;
61+ font-weight : bold !important ;
62+ margin : 0 4 px !important ;
5463}
5564
56- .current-page {
57- color : # 2c3e50 ;
58- font-weight : 600 ;
65+ .breadcrumb-current {
66+ color : # 2c3e50 !important ;
67+ font-weight : 700 !important ;
68+ padding : 6px 0 !important ;
5969}
6070
71+ /* Mobile responsiveness */
6172@media (max-width : 768px ) {
62- .simple -breadcrumb {
63- font-size : 0.8 em ;
64- padding : 12 px 15 px ;
73+ .flashcard -breadcrumb {
74+ padding : 12 px 15 px !important ;
75+ font-size : 0.85 em !important ;
6576 }
66-
67- .breadcrumb-sep {
68- margin : 0 6px ;
77+ }
78+
79+ @media (max-width : 480px ) {
80+ .flashcard-breadcrumb {
81+ font-size : 0.8em !important ;
6982 }
7083}
84+
85+ /* Override any conflicting styles */
86+ .simple-breadcrumb {
87+ display : none !important ;
88+ }
7189</ style >
0 commit comments