Browse Source

mobile tweaks

master
rdrew 2 weeks ago
parent
commit
3f49d83d7f
  1. 22
      css/base/base.css
  2. 458
      css/components/islandora_mods.css
  3. 402
      css/components/islandora_mods_bk.css
  4. 270
      css/components/landing_page.css
  5. 283
      css/components/landing_page_bk.css

22
css/base/base.css

@ -1,14 +1,6 @@
/*
* DO NOT EDIT THIS FILE.
* See the following change record for more information,
* https://www.drupal.org/node/3084859
* @preserve
*/
/**
* @file
* Generic base elements.
*/
*, *,
*::before, *::before,
@ -28,9 +20,9 @@ body {
margin: 0; margin: 0;
color: var(--color-text-neutral-medium); color: var(--color-text-neutral-medium);
background-color: var(--color--gray-100); background-color: var(--color--gray-100);
/*background-color: #ece8e3;*/
/*background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='50' height='84' viewBox='0 0 50 84'%3e %3cpath opacity='0.05' fill='%230e6ba6' d='M25,61.7C25,68.5,19.4,74,12.5,74S0,68.5,0,61.7c0-5.7,3.9-9.6,7.4-12.9c2.3-2.2,4.5-4.4,5.1-6.8c0.7,2.4,2.8,4.6,5.1,6.8C21.1,52.2,25,56,25,61.7z M42.6,6.8c-2.3-2.2-4.5-4.4-5.1-6.8c-0.7,2.4-2.9,4.6-5.1,6.8C28.9,10.2,25,14,25,19.7C25,26.5,30.6,32,37.5,32S50,26.5,50,19.7C50,14,46.1,10.2,42.6,6.8z'/%3e%3c/svg%3e");*/
/*background-position: top left; [> LTR <]*/
} }
body.is-fixed { body.is-fixed {
@ -93,7 +85,7 @@ h2 {
@media (min-width: 43.75rem) { @media (min-width: 43.75rem) {
h2 { h2 {
/*font-size: 2.25rem;*/
font-size: 2rem; font-size: 2rem;
line-height: var(--sp3); line-height: var(--sp3);
} }

458
css/components/islandora_mods.css

@ -1,36 +1,37 @@
.page-node-type-book { .page-node-type-book #toggle-facets {
#toggle-facets { display: none;
display:none;
}
} }
div#block-olivesbdh-solrsearchcontentsearchresultspagerforpage { div#block-olivesbdh-solrsearchcontentsearchresultspagerforpage {
margin: 0; margin: 0;
} }
.view-filters { .view-filters {
margin: 0; margin: 0;
} }
.collection-view .view-filters { .collection-view .view-filters {
display: none; display: none;
} }
#toggle-facets { #toggle-facets {
box-shadow: 0px 5px 11px -2px rgb(0 0 0 / 39%); box-shadow: 0px 5px 11px -2px rgb(0 0 0 / 39%);
} }
#toggle-facets:hover { #toggle-facets:hover {
filter: none; filter: none;
} }
/*tables*/
/* tables */
.view-people .view-content, .view-people .view-content,
.view-tunes .view-content { .view-tunes .view-content {
overflow-x: auto; overflow-x: auto;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
} }
/*tooltips*/ /* tooltips */
.audio-tooltip { .audio-tooltip {
position: absolute; position: absolute;
background: #2d2d2d;
background: #9a5152; background: #9a5152;
color: white; color: white;
padding: 8px 12px; padding: 8px 12px;
@ -44,7 +45,6 @@ div#block-olivesbdh-solrsearchcontentsearchresultspagerforpage {
} }
.audio-tooltip-link { .audio-tooltip-link {
color: #a5d8ff;
color: white; color: white;
text-decoration: none; text-decoration: none;
font-weight: 500; font-weight: 500;
@ -54,6 +54,7 @@ div#block-olivesbdh-solrsearchcontentsearchresultspagerforpage {
text-decoration: underline; text-decoration: underline;
color: white; color: white;
} }
a.js-play-audio-from-node::after { a.js-play-audio-from-node::after {
content: ""; content: "";
display: inline-block; display: inline-block;
@ -65,10 +66,12 @@ a.js-play-audio-from-node::after {
background-size: contain; background-size: contain;
background-position: center; background-position: center;
} }
/*audio player*/
/* audio player */
div#global-audio-wrapper.is-hidden { div#global-audio-wrapper.is-hidden {
display: none; display: none;
} }
#global-audio-wrapper { #global-audio-wrapper {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
@ -84,172 +87,177 @@ div#global-audio-wrapper.is-hidden {
font-weight: bold; font-weight: bold;
margin-bottom: 0.3em; margin-bottom: 0.3em;
} }
div#block-olivesbdh-audioplayer { div#block-olivesbdh-audioplayer {
border: none; border: none;
background: none; background: none;
} }
audio#global-able-player { audio#global-able-player {
width: 100%; width: 100%;
} }
/*end audio player code*/
/* media */
iframe.pdf { iframe.pdf {
height: 1380px; height: 1380px;
} }
.node__content video { .node__content video {
width: 100%; width: 100%;
} }
@media (min-width: 1100px) { @media (min-width: 1100px) {
.view.view-tunes th { .view.view-tunes th {
min-width: 9em; min-width: 9em;
} }
th#view-name-2-table-column {
width: 18em;
}
} }
/*facets*/
/* facets */
.facet-item__status, .facet-item__status,
.facet-item__count { .facet-item__count {
color: #333; color: #333;
} }
.facet-wrapper ul { .facet-wrapper ul {
list-style-type: none; list-style-type: none;
margin: 0; /*margin: 0;*/
a { }
text-decoration: none;
font-size: 1em; .facet-wrapper ul a {
} text-decoration: none;
font-size: 1em;
} }
/*tune variants*/
/* tune variants */
.view-bdh-audio-views caption { .view-bdh-audio-views caption {
margin-top: 1rem; margin-top: 1rem;
}
a { .view-bdh-audio-views caption a {
font-size: 1.5rem; font-size: 1.5rem;
text-decoration: none; text-decoration: none;
font-variant: unset; font-variant: unset;
font-style: normal; font-style: normal;
padding-top: 1em; padding-top: 1em;
display: flex; display: flex;
} }
a:after {
content: " :"; .view-bdh-audio-views caption a:after {
} content: " :";
} }
/*video*/
/* able player */
.able { .able {
box-shadow: none; box-shadow: none;
} }
.able-player { .able-player {
font-family: Arial, Helvetica, sans-serif; font-family: Arial, Helvetica, sans-serif;
/*background-color: var(--color--bdh-red);*/
}
.bdh--video {
/*.views-row {*/
/*[>background: var(--color--bdh-red);<]*/
/*border:1px solid #ccc;*/
/*padding:1rem;*/
/*margin-bottom: 1rem;*/
/*}*/
} }
.view-bdh-audio-views .views-table { .view-bdh-audio-views .views-table {
width: 100%; width: 100%;
} }
/*people pges*/
/* people pages */
@media (min-width: 1000px) { @media (min-width: 1000px) {
.person--layout { .person--layout {
display: flex; display: flex;
} }
} }
.person--layout {
/*display: flex;*/
.field--name-field-representative-image img {
border: 1px solid #ccc;
padding: 4px;
margin-right: 1em;
width: 100%;
}
.field--name-description {
margin-left: 1rem;
line-height: 1.7; .person--layout .field--name-field-representative-image img {
} border: 1px solid #ccc;
.person--details { padding: 4px;
background: var(--color--bdh-red); margin-right: 1em;
color: #fff; width: 100%;
padding: 1rem;
a {
color: #d2966e;
/*text-decoration: none;*/
color: #fff;
}
a:hover {
color: #fff;
text-decoration: underline;
}
.field {
border-bottom: 1px solid #d2966e;
padding-bottom: 1em;
}
.field__label {
width: 14em;
/*font-weight: normal;*/
color: #d2966e;
color: #fff;
font-family: var(--font-serif);
}
}
} }
.views-field.views-field-field-abstract {
.label { .person--layout .field--name-description {
display: none; margin-left: 1rem;
} line-height: 1.7;
li { }
list-style-type: none;
} .person--layout .person--details {
background: var(--color--bdh-red);
color: #fff;
padding: 1rem;
}
.person--layout .person--details a {
color: #fff;
}
.person--layout .person--details a:hover {
color: #fff;
text-decoration: underline;
}
.person--layout .person--details .field {
border-bottom: 1px solid #d2966e;
padding-bottom: 1em;
}
.person--layout .person--details .field__label {
width: 14em;
color: #fff;
font-family: var(--font-serif);
}
.views-field.views-field-field-abstract .label {
display: none;
}
.views-field.views-field-field-abstract li {
list-style-type: none;
} }
/* islandora object */
.node--type-islandora-object .node__content { .node--type-islandora-object .node__content {
background: #995051; background: #995051;
padding: 1rem; padding: 1rem;
color: #fff; color: #fff;
font-weight: normal; }
a {
color: #d2966e;
color: #fff;
/*text-decoration: none;*/
}
a:hover {
color: #fff;
text-decoration: underline; .node--type-islandora-object .node__content a {
} color: #fff;
.field__label {
width: 14em;
font-weight: bold;
color: #d2966e;
color: #fff;
font-family: var(--font-serif);
}
.field {
border-bottom: 1px solid #fff;
padding-bottom: 1em;
color: #fff;
}
} }
.book-navigation__menu {
.book-navigation__item { .node--type-islandora-object .node__content a:hover {
/*text-decoration: none;*/ color: #fff;
/*border-bottom: 1px solid #ccc;*/ text-decoration: underline;
}
a {
width: 100%;
}
.menu__item--active-trail:before {
content: ">";
font-weight: bold;
}
} }
.node--type-islandora-object .node__content .field__label {
width: 14em;
font-weight: bold;
color: #fff;
font-family: var(--font-serif);
}
.node--type-islandora-object .node__content .field {
border-bottom: 1px solid #fff;
padding-bottom: 1em;
}
.book-navigation__menu a {
width: 100%;
}
.book-navigation__menu .menu__item--active-trail,
.menu__item--active-trail {
/*text-decoration: underline;*/
}
.book-navigation__menu .menu__item--active-trail:before,
.menu__item--active-trail:before { .menu__item--active-trail:before {
content: ">"; content: ">";
content: "\266B";
font-weight: bold; font-weight: bold;
} }
.node--type-islandora-object .field__label { .node--type-islandora-object .field__label {
width: 14em; width: 14em;
} }
@ -258,143 +266,134 @@ iframe.pdf {
flex: 1; flex: 1;
} }
/* ================= SEARCH RESULT ================= */
.search-result { .search-result {
/*=======================*/
/*search result variables*/
/*=======================*/
--image-width: 100%; --image-width: 100%;
--image-height: 250px; --image-height: 250px;
--border-width: 1px; --border-width: 1px;
--line-height: 1.4; --line-height: 1.4;
/*--main-bg-color: var(--color--bdh-red);*/
--main-bg-color: #fff; --main-bg-color: #fff;
--border-color: #ccc; --border-color: #ccc;
--field-bg: #fff; --field-bg: #fff;
/*=======================*/
/*=======================*/
.views-field-did-image {
img {
width: var(--image-width);
/*padding: var(--border-width);*/
border: 1px solid #ccc;
}
/*height: var(--image-height);*/
overflow: hidden;
}
.search-result_inner-wrapper {
/*display: none;*/
padding: 8px;
border: var(--border-width) solid var(--border-color);
background: var(--main-bg-color);
border-radius: 4px;
transition: box-shadow 0.2s;
box-shadow: 0px 5px 11px -2px rgb(0 0 0 / 39%);
/*&:hover {*/
/*box-shadow: 0px 4px 11px 1px rgba(0, 0, 0, 0.44);*/
/*}*/
}
/*title*/
.views-field-title {
background: var(--field-bg);
/*border: var(--border-width) solid var(--border-color);*/
padding: var(--border-width) var(--border-width);
h4 {
margin: 0;
font-weight: bold;
line-height: var(--line-height);
font-size: 1em;
a {
text-decoration: none;
}
}
}
.views-field:not(
.views-field-field-representative-image,
.views-field-did-image
) {
background: var(--field-bg);
/*border: var(--border-width) solid var(--color--bdh-red);*/
border-bottom: var(--border-width) dotted var(--color--bdh-red);
border-top: 0;
/*border-bottom-right-radius: var(--border-width);*/
/*border-bottom-left-radius: var(--border-width);*/
padding: var(--border-width);
line-height: var(--line-height);
a {
text-decoration: none;
}
}
span.views-label {
font-weight: bold;
font-family: var(--font-serif);
/*display: block;*/
font-size: 0.85rem;
}
.views-field:not(.views-field-title) {
font-size: 0.85rem;
}
} }
.search-result .views-field-did-image img {
width: var(--image-width);
border: 1px solid #ccc;
}
.search-result .views-field-did-image {
overflow: hidden;
}
.search-result .search-result_inner-wrapper {
padding: 8px;
border: var(--border-width) solid var(--border-color);
background: var(--main-bg-color);
border-radius: 4px;
transition: box-shadow 0.2s;
box-shadow: 0px 5px 11px -2px rgb(0 0 0 / 39%);
}
.search-result .views-field-title {
background: var(--field-bg);
padding: var(--border-width);
}
.search-result .views-field-title h4 {
margin: 0;
font-weight: bold;
line-height: var(--line-height);
font-size: 1em;
}
.search-result .views-field-title h4 a {
text-decoration: none;
}
.search-result
.views-field:not(.views-field-field-representative-image):not(
.views-field-did-image
) {
background: var(--field-bg);
border-bottom: var(--border-width) dotted var(--color--bdh-red);
padding: var(--border-width);
line-height: var(--line-height);
}
.search-result
.views-field:not(.views-field-field-representative-image):not(
.views-field-did-image
)
a {
text-decoration: none;
}
.search-result span.views-label {
font-weight: bold;
font-family: var(--font-serif);
font-size: 0.85rem;
}
.search-result .views-field:not(.views-field-title) {
font-size: 0.85rem;
}
/* pager */
div#block-olivesbdh-solrsearchcontentsearchresultspagerforblock { div#block-olivesbdh-solrsearchcontentsearchresultspagerforblock {
margin: 0; margin: 0;
} }
.advanced_search_result_pager .pager__group { .advanced_search_result_pager .pager__group {
background: #f6f8f8; background: #f6f8f8;
padding: 1em; padding: 1em;
border-radius: 4px; border-radius: 4px;
.pager__link--is-active {
border: solid 2px var(--color--bdh-red);
font-weight: bold;
text-decoration: none !important;
a {
}
}
} }
.advanced_search_result_pager .pager__link--is-active {
border: solid 2px var(--color--bdh-red);
font-weight: bold;
text-decoration: none !important;
}
#block-views-block-media-display-blocks-source:has(div.view-empty) { #block-views-block-media-display-blocks-source:has(div.view-empty) {
display: none; display: none;
} }
/*tables*/
.node__content video {
width: 100%;
}
.view-tunes,
.view-people {
td {
/* outline: 1px solid; */
}
th, /* tables */
td { .view-tunes th,
text-align: center !important; .view-tunes td,
} .view-people th,
.view-people td {
text-align: center !important;
} }
/* islandora abstract */
.node--type-islandora-object .field--name-field-abstract { .node--type-islandora-object .field--name-field-abstract {
display: flex; display: flex;
.field__item {
line-height: 1.5;
}
.field__label {
/*margin-right: 2em;*/
}
} }
.node--type-islandora-object .field--name-field-abstract .field__item {
line-height: 1.5;
}
/* image grid */
.view-bdh-image-view .views-view-responsive-grid__item { .view-bdh-image-view .views-view-responsive-grid__item {
border: 1px solid #ccc; border: 1px solid #ccc;
padding: 4px; padding: 4px;
.views-field-title a {
font-weight: bold;
}
} }
.view-bdh-image-view .views-field-title a {
font-weight: bold;
}
/* PDF download */
span.file.file--mime-application-pdf.file--application-pdf a { span.file.file--mime-application-pdf.file--application-pdf a {
display: inline-block; display: inline-flex;
height: var(--sp2); align-items: center;
margin-block: var(--sp1);
margin-inline-start: 0;
margin-inline-end: var(--sp1);
padding-block: calc((var(--sp3) - var(--line-height-s)) / 2);
padding-inline: var(--sp1-5);
cursor: pointer; cursor: pointer;
text-align: center; text-align: center;
-webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
color: var(--color-text-primary-medium); color: var(--color-text-primary-medium);
border: solid 2px currentColor; border: solid 2px currentColor;
@ -403,15 +402,10 @@ span.file.file--mime-application-pdf.file--application-pdf a {
font-family: var(--font-sans); font-family: var(--font-sans);
font-size: var(--font-size-l); font-size: var(--font-size-l);
font-weight: 700; font-weight: 700;
-webkit-appearance: none;
appearance: none;
-webkit-font-smoothing: antialiased;
display: inline-flex;
align-items: center;
padding-block: 1px 0;
padding-inline: var(--sp1-5);
line-height: var(--line-height-s); line-height: var(--line-height-s);
padding: 1px var(--sp1-5);
} }
span.file.file--mime-application-pdf.file--application-pdf:before { span.file.file--mime-application-pdf.file--application-pdf:before {
content: "Download PDF: "; content: "Download PDF: ";
font-size: 1.3em; font-size: 1.3em;

402
css/components/islandora_mods_bk.css

@ -0,0 +1,402 @@
.page-node-type-book {
#toggle-facets {
display: none;
}
}
div#block-olivesbdh-solrsearchcontentsearchresultspagerforpage {
margin: 0;
}
.view-filters {
margin: 0;
}
.collection-view .view-filters {
display: none;
}
#toggle-facets {
box-shadow: 0px 5px 11px -2px rgb(0 0 0 / 39%);
}
#toggle-facets:hover {
filter: none;
}
/*tables*/
.view-people .view-content,
.view-tunes .view-content {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
/*tooltips*/
.audio-tooltip {
position: absolute;
background: #9a5152;
color: white;
padding: 8px 12px;
border-radius: 6px;
font-size: 0.95rem;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
pointer-events: auto;
z-index: 1500;
display: none;
white-space: nowrap;
}
.audio-tooltip-link {
color: white;
text-decoration: none;
font-weight: 500;
}
.audio-tooltip-link:hover {
text-decoration: underline;
color: white;
}
a.js-play-audio-from-node::after {
content: "";
display: inline-block;
width: 1.1em;
height: 0.9em;
margin-left: 4px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath d='M533.6 32.5c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C557.5 113.8 592 180.8 592 256s-34.5 142.2-88.7 186.3c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5C598.5 426.7 640 346.2 640 256S598.5 85.2 533.6 32.5zM473.1 107c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C475.3 170.7 496 210.9 496 256s-20.7 85.3-53.2 111.8c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5c43.2-35.2 70.9-88.9 70.9-149s-27.7-113.8-70.9-149zm-60.5 74.5c-10.3-8.4-25.4-6.8-33.8 3.5s-6.8 25.4 3.5 33.8C393.1 227.6 400 241 400 256s-6.9 28.4-17.7 37.3c-10.3 8.4-11.8 23.5-3.5 33.8s23.5 11.8 33.8 3.5C434.1 312.9 448 286.1 448 256s-13.9-56.9-35.4-74.5zM80 352l48 0 134.1 119.2c6.4 5.7 14.6 8.8 23.1 8.8 19.2 0 34.8-15.6 34.8-34.8l0-378.4c0-19.2-15.6-34.8-34.8-34.8-8.5 0-16.7 3.1-23.1 8.8L128 160 80 160c-26.5 0-48 21.5-48 48l0 96c0 26.5 21.5 48 48 48z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-size: contain;
background-position: center;
}
/*audio player*/
div#global-audio-wrapper.is-hidden {
display: none;
}
#global-audio-wrapper {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: #9a5152;
color: #fff;
padding: 0.5em 1em;
z-index: 9999;
}
#global-audio-title {
font-weight: bold;
margin-bottom: 0.3em;
}
div#block-olivesbdh-audioplayer {
border: none;
background: none;
}
audio#global-able-player {
width: 100%;
}
/*end audio player code*/
iframe.pdf {
height: 1380px;
}
.node__content video {
width: 100%;
}
@media (min-width: 1100px) {
.view.view-tunes th {
min-width: 9em;
}
}
/*facets*/
.facet-item__status,
.facet-item__count {
color: #333;
}
.facet-wrapper ul {
list-style-type: none;
margin: 0;
a {
text-decoration: none;
font-size: 1em;
}
}
/*tune variants*/
.view-bdh-audio-views caption {
margin-top: 1rem;
a {
font-size: 1.5rem;
text-decoration: none;
font-variant: unset;
font-style: normal;
padding-top: 1em;
display: flex;
}
a:after {
content: " :";
}
}
/*video*/
.able {
box-shadow: none;
}
.able-player {
font-family: Arial, Helvetica, sans-serif;
}
.view-bdh-audio-views .views-table {
width: 100%;
}
/*people pges*/
@media (min-width: 1000px) {
.person--layout {
display: flex;
}
}
.person--layout {
.field--name-field-representative-image img {
border: 1px solid #ccc;
padding: 4px;
margin-right: 1em;
width: 100%;
}
.field--name-description {
margin-left: 1rem;
line-height: 1.7;
}
.person--details {
background: var(--color--bdh-red);
color: #fff;
padding: 1rem;
a {
color: #d2966e;
/*text-decoration: none;*/
color: #fff;
}
a:hover {
color: #fff;
text-decoration: underline;
}
.field {
border-bottom: 1px solid #d2966e;
padding-bottom: 1em;
}
.field__label {
width: 14em;
/*font-weight: normal;*/
color: #d2966e;
color: #fff;
font-family: var(--font-serif);
}
}
}
.views-field.views-field-field-abstract {
.label {
display: none;
}
li {
list-style-type: none;
}
}
.node--type-islandora-object .node__content {
background: #995051;
padding: 1rem;
color: #fff;
font-weight: normal;
a {
color: #d2966e;
color: #fff;
/*text-decoration: none;*/
}
a:hover {
color: #fff;
text-decoration: underline;
}
.field__label {
width: 14em;
font-weight: bold;
color: #d2966e;
color: #fff;
font-family: var(--font-serif);
}
.field {
border-bottom: 1px solid #fff;
padding-bottom: 1em;
color: #fff;
}
}
.book-navigation__menu {
.book-navigation__item {
}
a {
width: 100%;
}
.menu__item--active-trail:before {
content: ">";
font-weight: bold;
}
}
.menu__item--active-trail:before {
content: ">";
font-weight: bold;
}
.node--type-islandora-object .field__label {
width: 14em;
}
.person--layout > div {
flex: 1;
}
.search-result {
/*=======================*/
/*search result variables*/
/*=======================*/
--image-width: 100%;
--image-height: 250px;
--border-width: 1px;
--line-height: 1.4;
/*--main-bg-color: var(--color--bdh-red);*/
--main-bg-color: #fff;
--border-color: #ccc;
--field-bg: #fff;
/*=======================*/
/*=======================*/
.views-field-did-image {
img {
width: var(--image-width);
/*padding: var(--border-width);*/
border: 1px solid #ccc;
}
/*height: var(--image-height);*/
overflow: hidden;
}
.search-result_inner-wrapper {
/*display: none;*/
padding: 8px;
border: var(--border-width) solid var(--border-color);
background: var(--main-bg-color);
border-radius: 4px;
transition: box-shadow 0.2s;
box-shadow: 0px 5px 11px -2px rgb(0 0 0 / 39%);
/*&:hover {*/
/*box-shadow: 0px 4px 11px 1px rgba(0, 0, 0, 0.44);*/
/*}*/
}
/*title*/
.views-field-title {
background: var(--field-bg);
/*border: var(--border-width) solid var(--border-color);*/
padding: var(--border-width) var(--border-width);
h4 {
margin: 0;
font-weight: bold;
line-height: var(--line-height);
font-size: 1em;
a {
text-decoration: none;
}
}
}
.views-field:not(
.views-field-field-representative-image,
.views-field-did-image
) {
background: var(--field-bg);
/*border: var(--border-width) solid var(--color--bdh-red);*/
border-bottom: var(--border-width) dotted var(--color--bdh-red);
border-top: 0;
/*border-bottom-right-radius: var(--border-width);*/
/*border-bottom-left-radius: var(--border-width);*/
padding: var(--border-width);
line-height: var(--line-height);
a {
text-decoration: none;
}
}
span.views-label {
font-weight: bold;
font-family: var(--font-serif);
/*display: block;*/
font-size: 0.85rem;
}
.views-field:not(.views-field-title) {
font-size: 0.85rem;
}
}
div#block-olivesbdh-solrsearchcontentsearchresultspagerforblock {
margin: 0;
}
.advanced_search_result_pager .pager__group {
background: #f6f8f8;
padding: 1em;
border-radius: 4px;
.pager__link--is-active {
border: solid 2px var(--color--bdh-red);
font-weight: bold;
text-decoration: none !important;
a {
}
}
}
#block-views-block-media-display-blocks-source:has(div.view-empty) {
display: none;
}
/*tables*/
.node__content video {
width: 100%;
}
.view-tunes,
.view-people {
td {
/* outline: 1px solid; */
}
th,
td {
text-align: center !important;
}
}
.node--type-islandora-object .field--name-field-abstract {
display: flex;
.field__item {
line-height: 1.5;
}
.field__label {
/*margin-right: 2em;*/
}
}
.view-bdh-image-view .views-view-responsive-grid__item {
border: 1px solid #ccc;
padding: 4px;
.views-field-title a {
font-weight: bold;
}
}
span.file.file--mime-application-pdf.file--application-pdf a {
display: inline-block;
height: var(--sp2);
margin-block: var(--sp1);
margin-inline-start: 0;
margin-inline-end: var(--sp1);
padding-block: calc((var(--sp3) - var(--line-height-s)) / 2);
padding-inline: var(--sp1-5);
cursor: pointer;
text-align: center;
-webkit-text-decoration: none;
text-decoration: none;
color: var(--color-text-primary-medium);
border: solid 2px currentColor;
border-radius: var(--border-radius);
background-color: var(--color--white);
font-family: var(--font-sans);
font-size: var(--font-size-l);
font-weight: 700;
-webkit-appearance: none;
appearance: none;
-webkit-font-smoothing: antialiased;
display: inline-flex;
align-items: center;
padding-block: 1px 0;
padding-inline: var(--sp1-5);
line-height: var(--line-height-s);
}
span.file.file--mime-application-pdf.file--application-pdf:before {
content: "Download PDF: ";
font-size: 1.3em;
}

270
css/components/landing_page.css

@ -1,86 +1,76 @@
/*Landing page menu*/ /* Landing page menu */
nav#block-olivesbdh-landingpagemenu { nav#block-olivesbdh-landingpagemenu {
margin-block-end: var(--sp2); margin-block-end: var(--sp2);
.menu {
list-style-type: none;
margin: 0;
display: flex;
justify-content: center;
/*margin-block-end: var(--sp3);*/
.menu__link {
background: #995051;
display: flex;
flex-direction: column;
text-decoration: none;
color: #fff;
transition: all 0.2s linear;
}
.menu__link:hover {
background: #d2966e;
}
i {
display: flex;
justify-content: center;
font-size: 1.3em;
}
}
} }
nav#block-olivesbdh-landingpagemenu .menu {
list-style-type: none;
margin: 0;
display: flex;
justify-content: center;
}
nav#block-olivesbdh-landingpagemenu .menu .menu__link {
background: #995051;
display: flex;
flex-direction: column;
text-decoration: none;
color: #fff;
transition: all 0.2s linear;
}
nav#block-olivesbdh-landingpagemenu .menu .menu__link:hover {
background: #d2966e;
}
nav#block-olivesbdh-landingpagemenu .menu i {
display: flex;
justify-content: center;
font-size: 1.3em;
}
nav#block-olivesbdh-landingpagemenu .menu__link { nav#block-olivesbdh-landingpagemenu .menu__link {
padding: 1.2em 1.2em 0.6em 1.2em; padding: 1.2em 1.2em 0.6em 1.2em;
} }
@media (max-width: 800px) { @media (max-width: 800px) {
nav#block-olivesbdh-landingpagemenu .menu__link { nav#block-olivesbdh-landingpagemenu .menu__link {
padding: 12px 10px 6px 10px; padding: 12px 10px 6px 10px;
} }
} }
/* end of Landing page menu*/ /* end of Landing page menu */
figure.logo--ilivesbdh {
h1 {
/*font-size: 4em;*/
/*font-weight:bold;*/
}
h2 {
/*font-size: 2.2em;*/
/*font-weight:bold;*/
}
}
.logo--ilivesbdh { .logo--ilivesbdh {
/* Default/fallback for very old browsers */
--h1-size: 4em; --h1-size: 4em;
--h2-size: 2.2em; --h2-size: 2.2em;
background: none; background: none;
/* width: 24em; */
margin: 0 auto; margin: 0 auto;
height: 280px; height: 280px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
text-align: center; text-align: center;
}
h1, .logo--ilivesbdh h1,
h2 { .logo--ilivesbdh h2 {
margin: 0; margin: 0;
text-shadow: 2px 2px black; text-shadow: 2px 2px black;
color: #fff; color: #fff;
}
h1 {
font-size: var(--h1-size);
border-bottom: 4px double;
}
h2 {
font-size: var(--h2-size);
}
} }
/* ── Only below 800px: start fluid scaling down ── */
.logo--ilivesbdh h1 {
font-size: var(--h1-size);
border-bottom: 4px double;
}
.logo--ilivesbdh h2 {
font-size: var(--h2-size);
}
@media (max-width: 800px) { @media (max-width: 800px) {
.logo--ilivesbdh h1 { .logo--ilivesbdh h1 {
/*
- Never smaller than ~2.22.5em (readable on mobile)
- Scales smoothly with viewport
- Caps at your original 4em (won't grow above desktop size)
*/
font-size: clamp(2.5em, 9.5vw, 4em); font-size: clamp(2.5em, 9.5vw, 4em);
} }
@ -88,19 +78,22 @@ figure.logo--ilivesbdh {
font-size: clamp(1.8em, 5.2vw, 2.2em); font-size: clamp(1.8em, 5.2vw, 2.2em);
} }
} }
.page-node-type-landing-page #block-views-block-media-display-blocks-source { .page-node-type-landing-page #block-views-block-media-display-blocks-source {
display: none; display: none;
} }
article.node.node--type-landing-page h2 { article.node.node--type-landing-page h2 {
margin: 0; margin: 0;
text-align: center; text-align: center;
} }
.hero-section { .hero-section {
border: 10px solid #d0bca4; border: 10px solid #d0bca4;
height: 300px; height: 300px;
background-size: cover !important; background-size: cover !important;
} }
.hero--wrapper { .hero--wrapper {
background: #e1dbbf; background: #e1dbbf;
} }
@ -110,174 +103,23 @@ article.node.node--type-landing-page h2 {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.path-frontpage .region--content { .path-frontpage .region--content {
margin-bottom: 0; margin-bottom: 0;
} }
#block-olivesbdh-views-block-front-page-featured-books-block-2 .view-content,
#block-olivesbdh-views-block-front-page-featured-books-block-1 .view-content {
/*display: none;*/
.node__title {
font-size: 1.1rem;
font-weight: bold;
border-bottom: 1px solid #6e563a;
/*margin: 0;*/
a {
color: #6e563a;
}
}
.node__content {
img {
min-width: 100%;
border: 1px solid #ccc;
background: #fff;
padding: 1rem;
}
}
.views-field-did-image {
float: none;
max-width: 100%;
margin: 0;
height: 100%;
}
.views-row {
padding: 15px;
background: #ece8e3;
border: 1px solid #ccc;
display: flex;
flex-direction: column;
.views-field-title h4 {
margin: 0;
/*margin-bottom: 1rem;*/
a {
text-decoration: none;
}
}
.views-field img {
width: 100%;
}
}
.node__title a {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
}
}
/*clean up titles on lp figure block*/
div#block-olivesbdh-views-block-front-page-featured-books-block-2 .node__title {
margin: 0;
}
div#block-olivesbdh-views-block-front-page-featured-books-block-2
.node__title
a {
line-height: 1.4;
}
div#block-olivesbdh-views-block-front-page-featured-books-block-2
.view-eva
.views-row {
padding: 0 !important;
margin-top: 1em;
}
@media (min-width: 43.75rem) {
#block-olivesbdh-views-block-front-page-featured-books-block-1 .view-content {
.views-field.views-field-title {
height: 7em;
}
display: flex;
justify-content: space-between;
.views-row {
width: 32%;
/*justify-content: space-around;*/
}
}
}
@media (min-width: 43.75rem) {
.region--content-below {
display: flex;
flex-wrap: wrap;
}
.region--content-below /* Featured books blocks */
#block-olivesbdh-views-block-front-page-featured-books-block-1 {
flex-basis: calc(72% - (var(--grid-gap) / 2));
flex-grow: 1;
flex-shrink: 0;
margin-inline-end: var(--grid-gap);
}
.region--content-below
#block-olivesbdh-views-block-front-page-featured-books-block-2 {
flex-basis: calc(25% - (var(--grid-gap) / 2));
flex-grow: 1;
flex-shrink: 0;
margin-inline-end: var(--grid-gap);
}
.region--content-below > *:nth-child(2n), .card-section a {
.region--content-below > *:last-child { text-decoration: none !important;
margin-inline-end: 0; font-size: 1.1rem;
}
}
#block-olivesbdh-maparchiveslpblock,
#block-olivesbdh-learnmorelpblock {
.block__content {
border: 1px solid #ccc;
img {
width: 100%;
}
}
}
.card-section {
background: #f6f8f8;
padding: 1rem;
img {
width: 100%;
}
display: flex;
.left {
margin-right: 3rem;
}
h4 {
margin: 0;
margin-top: 1rem;
font-size: 1.4rem;
}
ul {
margin: 0;
list-style-type: none;
margin-left: 0.5rem;
}
a {
text-decoration: none !important;
font-size: 1.1rem;
}
} }
.page-node-type-landing-page .node__content { .page-node-type-landing-page .node__content {
padding: 0; padding: 0;
} }
.page-node-type-landing-page .main-content__container { .page-node-type-landing-page .main-content__container {
padding-top: 1rem; padding-top: 1rem;
} }
/*icons*/
#block-olivesbdh-learnmorelpblock .block__title,
#block-olivesbdh-maparchiveslpblock .block__title {
position: relative; /* Optional: for positioning adjustments */
font-size: 1.8rem;
svg {
/*width: 30px;*/
}
&::before {
display: inline-block;
width: 40px; /* Adjust the size as needed */
height: 40px; /* Adjust the size as needed */
margin-right: 8px; /* Space between icon and text */
vertical-align: middle; /* Aligns icon with text */
}
}
#block-olivesbdh-learnmorelpblock .block__title::before {
content: url("../../images/telescope.svg"); /* Path to your SVG file */
}
#block-olivesbdh-maparchiveslpblock .block__title::before {
content: url("../../images/sextant.svg"); /* Path to your SVG file */
}

283
css/components/landing_page_bk.css

@ -0,0 +1,283 @@
/*Landing page menu*/
nav#block-olivesbdh-landingpagemenu {
margin-block-end: var(--sp2);
.menu {
list-style-type: none;
margin: 0;
display: flex;
justify-content: center;
/*margin-block-end: var(--sp3);*/
.menu__link {
background: #995051;
display: flex;
flex-direction: column;
text-decoration: none;
color: #fff;
transition: all 0.2s linear;
}
.menu__link:hover {
background: #d2966e;
}
i {
display: flex;
justify-content: center;
font-size: 1.3em;
}
}
}
nav#block-olivesbdh-landingpagemenu .menu__link {
padding: 1.2em 1.2em 0.6em 1.2em;
}
@media (max-width: 800px) {
nav#block-olivesbdh-landingpagemenu .menu__link {
padding: 12px 10px 6px 10px;
}
}
/* end of Landing page menu*/
figure.logo--ilivesbdh {
h1 {
/*font-size: 4em;*/
/*font-weight:bold;*/
}
h2 {
/*font-size: 2.2em;*/
/*font-weight:bold;*/
}
}
.logo--ilivesbdh {
/* Default/fallback for very old browsers */
--h1-size: 4em;
--h2-size: 2.2em;
background: none;
/* width: 24em; */
margin: 0 auto;
height: 280px;
display: flex;
flex-direction: column;
justify-content: center;
text-align: center;
h1,
h2 {
margin: 0;
text-shadow: 2px 2px black;
color: #fff;
}
h1 {
font-size: var(--h1-size);
border-bottom: 4px double;
}
h2 {
font-size: var(--h2-size);
}
}
/* ── Only below 800px: start fluid scaling down ── */
@media (max-width: 800px) {
.logo--ilivesbdh h1 {
/*
- Never smaller than ~2.22.5em (readable on mobile)
- Scales smoothly with viewport
- Caps at your original 4em (won't grow above desktop size)
*/
font-size: clamp(2.5em, 9.5vw, 4em);
}
.logo--ilivesbdh h2 {
font-size: clamp(1.8em, 5.2vw, 2.2em);
}
}
.page-node-type-landing-page #block-views-block-media-display-blocks-source {
display: none;
}
article.node.node--type-landing-page h2 {
margin: 0;
text-align: center;
}
.hero-section {
border: 10px solid #d0bca4;
height: 300px;
background-size: cover !important;
}
.hero--wrapper {
background: #e1dbbf;
}
.logo-wrapper {
background: #3333335c;
display: flex;
align-items: center;
}
.path-frontpage .region--content {
margin-bottom: 0;
}
#block-olivesbdh-views-block-front-page-featured-books-block-2 .view-content,
#block-olivesbdh-views-block-front-page-featured-books-block-1 .view-content {
/*display: none;*/
.node__title {
font-size: 1.1rem;
font-weight: bold;
border-bottom: 1px solid #6e563a;
/*margin: 0;*/
a {
color: #6e563a;
}
}
.node__content {
img {
min-width: 100%;
border: 1px solid #ccc;
background: #fff;
padding: 1rem;
}
}
.views-field-did-image {
float: none;
max-width: 100%;
margin: 0;
height: 100%;
}
.views-row {
padding: 15px;
background: #ece8e3;
border: 1px solid #ccc;
display: flex;
flex-direction: column;
.views-field-title h4 {
margin: 0;
/*margin-bottom: 1rem;*/
a {
text-decoration: none;
}
}
.views-field img {
width: 100%;
}
}
.node__title a {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
}
}
/*clean up titles on lp figure block*/
div#block-olivesbdh-views-block-front-page-featured-books-block-2 .node__title {
margin: 0;
}
div#block-olivesbdh-views-block-front-page-featured-books-block-2
.node__title
a {
line-height: 1.4;
}
div#block-olivesbdh-views-block-front-page-featured-books-block-2
.view-eva
.views-row {
padding: 0 !important;
margin-top: 1em;
}
@media (min-width: 43.75rem) {
#block-olivesbdh-views-block-front-page-featured-books-block-1 .view-content {
.views-field.views-field-title {
height: 7em;
}
display: flex;
justify-content: space-between;
.views-row {
width: 32%;
/*justify-content: space-around;*/
}
}
}
@media (min-width: 43.75rem) {
.region--content-below {
display: flex;
flex-wrap: wrap;
}
.region--content-below
#block-olivesbdh-views-block-front-page-featured-books-block-1 {
flex-basis: calc(72% - (var(--grid-gap) / 2));
flex-grow: 1;
flex-shrink: 0;
margin-inline-end: var(--grid-gap);
}
.region--content-below
#block-olivesbdh-views-block-front-page-featured-books-block-2 {
flex-basis: calc(25% - (var(--grid-gap) / 2));
flex-grow: 1;
flex-shrink: 0;
margin-inline-end: var(--grid-gap);
}
.region--content-below > *:nth-child(2n),
.region--content-below > *:last-child {
margin-inline-end: 0;
}
}
#block-olivesbdh-maparchiveslpblock,
#block-olivesbdh-learnmorelpblock {
.block__content {
border: 1px solid #ccc;
img {
width: 100%;
}
}
}
.card-section {
background: #f6f8f8;
padding: 1rem;
img {
width: 100%;
}
display: flex;
.left {
margin-right: 3rem;
}
h4 {
margin: 0;
margin-top: 1rem;
font-size: 1.4rem;
}
ul {
margin: 0;
list-style-type: none;
margin-left: 0.5rem;
}
a {
text-decoration: none !important;
font-size: 1.1rem;
}
}
.page-node-type-landing-page .node__content {
padding: 0;
}
.page-node-type-landing-page .main-content__container {
padding-top: 1rem;
}
/*icons*/
#block-olivesbdh-learnmorelpblock .block__title,
#block-olivesbdh-maparchiveslpblock .block__title {
position: relative; /* Optional: for positioning adjustments */
font-size: 1.8rem;
svg {
/*width: 30px;*/
}
&::before {
display: inline-block;
width: 40px; /* Adjust the size as needed */
height: 40px; /* Adjust the size as needed */
margin-right: 8px; /* Space between icon and text */
vertical-align: middle; /* Aligns icon with text */
}
}
#block-olivesbdh-learnmorelpblock .block__title::before {
content: url("../../images/telescope.svg"); /* Path to your SVG file */
}
#block-olivesbdh-maparchiveslpblock .block__title::before {
content: url("../../images/sextant.svg"); /* Path to your SVG file */
}
Loading…
Cancel
Save