Browse Source

pre mirador fix

master
rdrew 1 week ago
parent
commit
0d31ae1c37
  1. 4
      css/components/islandora_mods.css
  2. 2
      css/components/landing_page.css
  3. 6
      css/components/navigation/nav-primary.css
  4. 60
      templates/layout/html--front.html.twig

4
css/components/islandora_mods.css

@ -144,7 +144,9 @@
line-height: 1.8; line-height: 1.8;
} }
.primary-nav__menu-link--level-3 { .primary-nav__menu-link--level-3 {
font-weight: normal; font-weight: normal !important;
font-size: 1em !important;
line-height: 1 !important;
} }
.primary-nav__menu-link--level-3::before { .primary-nav__menu-link--level-3::before {
content: "-"; content: "-";

2
css/components/landing_page.css

@ -1,6 +1,6 @@
figure.logo--olivesvoices { figure.logo--olivesvoices {
background: none; background: none;
width: 24em; width: 23.5em;
margin: 0 auto; margin: 0 auto;
height: 300px; height: 300px;
display: flex; display: flex;

6
css/components/navigation/nav-primary.css

@ -203,7 +203,11 @@ html:not(.js) .primary-nav__menu--level-2 {
[dir="rtl"] .primary-nav__menu-link-inner::after { [dir="rtl"] .primary-nav__menu-link-inner::after {
transform-origin: right; transform-origin: right;
} }
a.primary-nav__menu-link.primary-nav__menu-link--link.primary-nav__menu-link--level-3 {
font-size: 1rem;
line-height: 1;
font-weight: normal;
}
.primary-nav__menu-item--level-1:first-child span:before { .primary-nav__menu-item--level-1:first-child span:before {
/*content: url("../../../images/magnifying-glass.svg");*/ /*content: url("../../../images/magnifying-glass.svg");*/
content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='22' width='22' viewBox='0 0 512 512'%3E%3C!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--%3E%3Cpath fill='%232b353b' d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E"); content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='22' width='22' viewBox='0 0 512 512'%3E%3C!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2023 Fonticons, Inc.--%3E%3Cpath fill='%232b353b' d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E");

60
templates/layout/html--front.html.twig

@ -0,0 +1,60 @@
{#
/**
* @file
* Theme override for the basic structure of a single Drupal page.
*
* Variables:
* - logged_in: A flag indicating if user is logged in.
* - root_path: The root path of the current page (e.g., node, admin, user).
* - node_type: The content type for the current node, if the page is a node.
* - head_title: List of text elements that make up the head_title variable.
* May contain one or more of the following:
* - title: The title of the page.
* - name: The name of the site.
* - slogan: The slogan of the site.
* - page_top: Initial rendered markup. This should be printed before 'page'.
* - page: The rendered page markup.
* - page_bottom: Closing rendered markup. This variable should be printed after
* 'page'.
* - db_offline: A flag indicating if the database is offline.
* - placeholder_token: The token for generating head, css, js and js-bottom
* placeholders.
* - olivesvoices_path: Returns the path to an Olivesvoices theme.
* - noscript_styles: <noscript> content.
*
* @see template_preprocess_html()
*/
#}
{%
set body_classes = [
logged_in ? 'user-logged-in',
not root_path ? 'path-frontpage' : 'path-' ~ root_path|clean_class,
node_type ? 'page-node-type-' ~ node_type|clean_class,
db_offline ? 'db-offline',
]
%}
<!DOCTYPE html>
<html{{ html_attributes }}>
<head>
<head-placeholder token="{{ placeholder_token }}">
<title>{{ head_title|safe_join(' | ') }}</title>
<css-placeholder token="{{ placeholder_token }}">
<js-placeholder token="{{ placeholder_token }}">
{% include '@olivesvoices/includes/preload.twig' with { olivesvoices_path: olivesvoices_path } only %}
{{ noscript_styles }}
<link rel="preload" href="/themes/custom/olivesvoices/images/island_voices_banner.webp" as="image">
</head>
<body{{ attributes.addClass(body_classes) }}>
{#
Keyboard navigation/accessibility link to main content section in
page.html.twig.
#}
<a href="#main-content" class="visually-hidden focusable skip-link">
{{ 'Skip to main content'|t }}
</a>
{{ page_top }}
{{ page }}
{{ page_bottom }}
<js-bottom-placeholder token="{{ placeholder_token }}">
</body>
</html>
Loading…
Cancel
Save