Adjust European short trip heuristic from >3 days to >1 day to correctly detect when user has returned home from European trips. This fixes the April 29-30, 2023 case where the location incorrectly showed "Sankt Georg, Hamburg" instead of "Bristol" when the user was free (no events scheduled) after the foss-north trip ended on April 27. The previous logic required more than 3 days to pass before assuming return home from European countries, but for short European trips by rail/ferry, users typically return within 1-2 days. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
41 lines
1.7 KiB
SCSS
41 lines
1.7 KiB
SCSS
.breadcrumb {
|
|
// scss-docs-start breadcrumb-css-vars
|
|
--#{$prefix}breadcrumb-padding-x: #{$breadcrumb-padding-x};
|
|
--#{$prefix}breadcrumb-padding-y: #{$breadcrumb-padding-y};
|
|
--#{$prefix}breadcrumb-margin-bottom: #{$breadcrumb-margin-bottom};
|
|
@include rfs($breadcrumb-font-size, --#{$prefix}breadcrumb-font-size);
|
|
--#{$prefix}breadcrumb-bg: #{$breadcrumb-bg};
|
|
--#{$prefix}breadcrumb-border-radius: #{$breadcrumb-border-radius};
|
|
--#{$prefix}breadcrumb-divider-color: #{$breadcrumb-divider-color};
|
|
--#{$prefix}breadcrumb-item-padding-x: #{$breadcrumb-item-padding-x};
|
|
--#{$prefix}breadcrumb-item-active-color: #{$breadcrumb-active-color};
|
|
// scss-docs-end breadcrumb-css-vars
|
|
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
padding: var(--#{$prefix}breadcrumb-padding-y) var(--#{$prefix}breadcrumb-padding-x);
|
|
margin-bottom: var(--#{$prefix}breadcrumb-margin-bottom);
|
|
@include font-size(var(--#{$prefix}breadcrumb-font-size));
|
|
list-style: none;
|
|
background-color: var(--#{$prefix}breadcrumb-bg);
|
|
@include border-radius(var(--#{$prefix}breadcrumb-border-radius));
|
|
}
|
|
|
|
.breadcrumb-item {
|
|
// The separator between breadcrumbs (by default, a forward-slash: "/")
|
|
+ .breadcrumb-item {
|
|
padding-left: var(--#{$prefix}breadcrumb-item-padding-x);
|
|
|
|
&::before {
|
|
float: left; // Suppress inline spacings and underlining of the separator
|
|
padding-right: var(--#{$prefix}breadcrumb-item-padding-x);
|
|
color: var(--#{$prefix}breadcrumb-divider-color);
|
|
content: var(--#{$prefix}breadcrumb-divider, escape-svg($breadcrumb-divider)) #{"/* rtl:"} var(--#{$prefix}breadcrumb-divider, escape-svg($breadcrumb-divider-flipped)) #{"*/"};
|
|
}
|
|
}
|
|
|
|
&.active {
|
|
color: var(--#{$prefix}breadcrumb-item-active-color);
|
|
}
|
|
}
|