Skip to content
Snippets Groups Projects
Commit 3e21f6bb authored by Claas Kazzer's avatar Claas Kazzer
Browse files

refs #21619 finc:vf6 slightly improves myaccount menu item look

parent 7ba366ec
Branches
Tags
No related merge requests found
...@@ -62,6 +62,7 @@ $textdecoration-anchor: none !default; ...@@ -62,6 +62,7 @@ $textdecoration-anchor: none !default;
// needs to be overriden in catalogues if visited color does not fit - AP // needs to be overriden in catalogues if visited color does not fit - AP
$a-visited-color: $steel !default; $a-visited-color: $steel !default;
$a-visited-color-alerts: $jet !default; $a-visited-color-alerts: $jet !default;
$a-visited-color-active-facets: $a-visited-color-alerts !default;
//// FORM FEEDBACK states colors and, by default, alerts colors (i.e. alerts are //// FORM FEEDBACK states colors and, by default, alerts colors (i.e. alerts are
//// defined like so '$alert-success-bg: $state-success-bg;') //// defined like so '$alert-success-bg: $state-success-bg;')
...@@ -213,6 +214,9 @@ $breadcrumb-color: $btn-primary-color !default; ...@@ -213,6 +214,9 @@ $breadcrumb-color: $btn-primary-color !default;
//// Link color for breadcrumb .active //// Link color for breadcrumb .active
$breadcrumb-active-color: $btn-primary-color !default; $breadcrumb-active-color: $btn-primary-color !default;
$sidebar-facet-active-hover-color: $btn-primary-color !default;
$sidebar-facet-active-color: $black !default;
//// Sidebar item hover effect (doesn't exist in VF out-of-the-box); active is for selected facets //// Sidebar item hover effect (doesn't exist in VF out-of-the-box); active is for selected facets
$sidebar-item-hover-bg: transparentize($brand-secondary, .9) !default; $sidebar-item-hover-bg: transparentize($brand-secondary, .9) !default;
$sidebar-item-active-hover-bg: transparentize($brand-primary, .1) !default; $sidebar-item-active-hover-bg: transparentize($brand-primary, .1) !default;
......
...@@ -665,6 +665,17 @@ a:not(.btn):not(.text) { ...@@ -665,6 +665,17 @@ a:not(.btn):not(.text) {
color: $a-visited-color-alerts; color: $a-visited-color-alerts;
} }
} }
&.active {
.facet & {
color: $a-visited-color-active-facets;
&:focus,
&:hover {
color: $sidebar-facet-active-hover-color;
}
}
}
} }
} }
...@@ -2996,13 +3007,28 @@ body:not(.offcanvas) .sidebar { ...@@ -2996,13 +3007,28 @@ body:not(.offcanvas) .sidebar {
&.ok, &.ok,
&.overdue { &.overdue {
.myresearch-menu & { .myresearch-menu & {
color: $white; color: $sidebar-facet-active-hover-color;
display: inline-table;
font-size: 90%;
// unset height attribute from .facet .badge {} definition for better looks // unset height attribute from .facet .badge {} definition for better looks
max-height: unset; max-height: unset;
padding: 3px 7px; padding: 3px 7px;
} }
} }
&.ok {
.myresearch-menu .active .status & {
background-color: $brand-success;
}
}
&.overdue {
.myresearch-menu .active .status & {
background-color: $brand-danger;
}
}
////// light color on dark, when active (Facets + My Account) - we need the parent for specificity ////// light color on dark, when active (Facets + My Account) - we need the parent for specificity
.facet.active > &, .facet.active > &,
.sidebar a.active > & { .sidebar a.active > & {
......
...@@ -155,17 +155,17 @@ ...@@ -155,17 +155,17 @@
<?php endif; ?> <?php endif; ?>
<br /> <br />
<?php /* finc uses <p> and role for alerts */ ?> <?php /* finc uses <p> and aria for alerts */ ?>
<?php if (isset($this->cancelResults['items'])): ?> <?php if (isset($this->cancelResults['items'])): ?>
<?php foreach ($this->cancelResults['items'] as $itemId => $cancelResult): ?> <?php foreach ($this->cancelResults['items'] as $itemId => $cancelResult): ?>
<?php if ($itemId == $ilsDetails['item_id'] && $cancelResult['success'] == false): ?> <?php if ($itemId == $ilsDetails['item_id'] && $cancelResult['success'] == false): ?>
<p class="alert alert-danger" role="alert"><?=$this->transEsc($cancelResult['status']) ?><?php if ($cancelResult['sysMessage']) echo ' : ' . $this->transEsc($cancelResult['sysMessage']); ?></p> <p class="alert alert-danger" aria-live="polite"><?=$this->transEsc($cancelResult['status']) ?><?php if ($cancelResult['sysMessage']) echo ' : ' . $this->transEsc($cancelResult['sysMessage']); ?></p>
<?php endif; ?> <?php endif; ?>
<?php endforeach; ?> <?php endforeach; ?>
<?php endif; ?> <?php endif; ?>
<?php if (isset($ilsDetails['available']) && $ilsDetails['available'] == true): ?> <?php if (isset($ilsDetails['available']) && $ilsDetails['available'] == true): ?>
<p class="text-success"> <p class="text-success" aria-live="polite">
<?php if (!empty($ilsDetails['last_pickup_date'])): ?> <?php if (!empty($ilsDetails['last_pickup_date'])): ?>
<?=$this->transEsc('hold_available_until', ['%%date%%' => $ilsDetails['last_pickup_date']]) ?> <?=$this->transEsc('hold_available_until', ['%%date%%' => $ilsDetails['last_pickup_date']]) ?>
<?php else: ?> <?php else: ?>
...@@ -173,7 +173,7 @@ ...@@ -173,7 +173,7 @@
<?php endif; ?> <?php endif; ?>
</p> </p>
<?php elseif (isset($ilsDetails['in_transit']) && $ilsDetails['in_transit']): ?> <?php elseif (isset($ilsDetails['in_transit']) && $ilsDetails['in_transit']): ?>
<p class="text-success"><?=$this->transEsc('request_in_transit') . (is_string($ilsDetails['in_transit']) ? ': ' . $this->transEsc('institution_' . $ilsDetails['in_transit'], [], $ilsDetails['in_transit']) : '') ?></p> <p class="text-success" aria-live="polite"><?=$this->transEsc('request_in_transit') . (is_string($ilsDetails['in_transit']) ? ': ' . $this->transEsc('institution_' . $ilsDetails['in_transit'], [], $ilsDetails['in_transit']) : '') ?></p>
<?php elseif (isset($ilsDetails['position'])): ?> <?php elseif (isset($ilsDetails['position'])): ?>
<p><strong><?=$this->transEsc("hold_queue_position") ?>:</strong> <?=$this->escapeHtml($ilsDetails['position']) ?></p> <p><strong><?=$this->transEsc("hold_queue_position") ?>:</strong> <?=$this->escapeHtml($ilsDetails['position']) ?></p>
<?php endif; ?> <?php endif; ?>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment