Browse Source

mirador

master
rdrew 1 month ago
parent
commit
0fd1a690e6
  1. 25
      css/components/unsorted.css
  2. 28
      olivesimagined.theme

25
css/components/unsorted.css

@ -1,7 +1,7 @@
.leaflet-popup-content {
& .node--view-mode-teaser .field {
margin-block-end: 0;
}
margin-block-end: 0;
}
& .node__title {
font-size: 1.4rem;
}
@ -12,17 +12,16 @@
padding-bottom: 0;
font-size: 0.9rem;
& .field__label,
.field__items{
.field__items {
font-size: 0.9rem;
font-weight: normal;;
font-weight: normal;
}
}
}
.view-alphabetical-title-list {
& .node--view-mode-teaser .field {
margin-block-end: 0;
}
margin-block-end: 0;
}
& .node__title {
/*font-size: 1.4rem;*/
}
@ -33,10 +32,18 @@
/*padding-bottom: 0;*/
/*font-size: 0.9rem;*/
& .field__label,
.field__items{
.field__items {
/*font-size: 0.9rem;*/
font-weight: normal;
}
}
}
.node--type-book {
figure {
border: 1px solid #ccc;
border-bottom: 0;
}
figcaption {
border: 1px solid #ccc;
}
}

28
olivesimagined.theme

@ -698,3 +698,31 @@ function _olivesimagined_hex_to_hsl(string $hex_string) {
return [$h, $s, $l];
}
function olivesimagined_preprocess_mirador(&$variables) {
$block = \Drupal::service('plugin.manager.block')->createInstance($viewer . '_block', [
'iiif_manifest_url' => "/node/$manifest_nid/manifest-single",
'thumbnail_navigation_position' => 'hidden',
'window_config' => [
'allowClose' => FALSE,
'allowMaximize' => FALSE,
'allowTopMenuButton' => FALSE,
'allowWindowSideBar' => FALSE,
'hideWindowTitle' => TRUE,
'panels' => [
'info' => FALSE,
'attribution' => FALSE,
' canvas' => FALSE,
'annotations' => FALSE,
'search' => FALSE,
],
],
'workspace_config' => [
'allowNewWindows' => FALSE,
'isWorkspaceAddVisible' => FALSE,
'workspaceControlPanel' => [
'enable' => FALSE,
],
],
]);
}

Loading…
Cancel
Save