Browse Source

displays

master
rdrew 3 weeks ago
parent
commit
5d94a4671c
  1. 4
      css/components/block.css
  2. 5
      css/components/button.css
  3. 41
      css/components/islandora_mods.css
  4. 29
      css/components/landing_page.css
  5. 16
      css/components/navigation/nav-primary.css
  6. 3
      css/layout/social-bar.css

4
css/components/block.css

@ -15,7 +15,7 @@
letter-spacing: 0.02em; letter-spacing: 0.02em;
color: var(--color-text-neutral-loud); color: var(--color-text-neutral-loud);
/*font-size: var(--font-size-l);*/ /*font-size: var(--font-size-l);*/
font-size: 24px; font-size: 1.6em;
line-height: var(--sp); line-height: var(--sp);
border-bottom: 4px double; border-bottom: 4px double;
padding-bottom: 4px; padding-bottom: 4px;
@ -25,10 +25,8 @@
color: var(--color--gray-65); color: var(--color--gray-65);
} }
.region--sidebar .block { .region--sidebar .block {
/*background: #f6f8f8;*/ /*background: #f6f8f8;*/
background: #ece8e3; background: #ece8e3;
padding: 1rem; padding: 1rem;
border-radius: 5px; border-radius: 5px;
} }

5
css/components/button.css

@ -33,6 +33,7 @@
-webkit-appearance: none; -webkit-appearance: none;
appearance: none; appearance: none;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
font-family: var(--font-serif);
} }
.button:hover, .button:hover,
@ -68,8 +69,8 @@
*/ */
@supports (display: inline-flex) { @supports (display: inline-flex) {
.button, .button,
.facets-soft-limit-link { .facets-soft-limit-link {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;

41
css/components/islandora_mods.css

@ -52,9 +52,13 @@
font-size: 0.9em; font-size: 0.9em;
font-family: var(--font-serif); font-family: var(--font-serif);
color: #574938; color: #574938;
display: block;
} }
.field__item { .field__item {
font-size: 0.9em; font-size: 0.9em;
a {
text-decoration: none;
}
} }
} }
} }
@ -84,6 +88,43 @@
grid-template-columns: repeat(4, 1fr); /* desktop: 4 across */ grid-template-columns: repeat(4, 1fr); /* desktop: 4 across */
} }
} }
div#block-olivesbooks-solrsearchcontentsearchresultspagerforpage {
.pager__group {
background: #f5f5f5;
}
}
/* People grid */
.collection-view .view-header {
display: none;
}
.book-grid .views-view-grid__item-inner,
.people-grid .views-view-grid__item-inner {
border: 1px solid #ccc;
padding: 8px;
border-radius: 4px;
box-shadow: 0px 5px 11px -2px rgb(0 0 0 / 39%);
.views-field-did-image,
.field--type-image {
height: 230px;
overflow: hidden;
img {
width: 100%;
}
}
.views-field-title,
.views-field-name {
font-family: var(--font-serif);
line-height: 1.2;
margin-top: 10px;
padding-top: 5px;
font-size: 0.9rem;
border-top: 1px dotted #ccc;
a {
text-decoration: none;
}
}
}
#toggle-facets { #toggle-facets {
background-color: #574938; background-color: #574938;
background-color: var(--color--primary-50); background-color: var(--color--primary-50);

29
css/components/landing_page.css

@ -12,7 +12,7 @@
} }
figure.logo--olivesbooks { figure.logo--olivesbooks {
background: none; background: none;
width: 24em; width: 30em;
margin: 0 auto; margin: 0 auto;
height: 300px; height: 300px;
display: flex; display: flex;
@ -21,11 +21,11 @@ figure.logo--olivesbooks {
.logo--olivesbooks h2 { .logo--olivesbooks h2 {
margin: 0; margin: 0;
text-shadow: 2px 2px black; text-shadow: 2px 2px black;
color: #fff; color: #ece8e3;
} }
.logo--olivesbooks a { .logo--olivesbooks a {
color: #fff; color: #ece8e3;
text-decoration: none; text-decoration: none;
} }
.logo--olivesbooks h1 { .logo--olivesbooks h1 {
@ -218,29 +218,8 @@ div#block-olivesbooks-views-block-front-page-featured-books-block-2
.page-node-type-landing-page .main-content__container { .page-node-type-landing-page .main-content__container {
padding-top: 1rem; padding-top: 1rem;
} }
/*icons*/
#block-olivesbooks-learnmorelpblock .block__title,
#block-olivesbooks-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-olivesbooks-learnmorelpblock .block__title::before { /* ================================================== */
content: url("../../images/telescope.svg"); /* Path to your SVG file */
}
#block-olivesbooks-maparchiveslpblock .block__title::before {
content: url("../../images/sextant.svg"); /* Path to your SVG file */
}
/* landing page menu */ /* landing page menu */
nav#block-olivesbooks-landingpagemenu { nav#block-olivesbooks-landingpagemenu {
margin-block-end: var(--sp2); margin-block-end: var(--sp2);

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

@ -29,8 +29,10 @@
justify-content: space-between; justify-content: space-between;
} }
.primary-nav__menu-item.primary-nav__menu-item--has-children .primary-nav__menu-link--link, .primary-nav__menu-item.primary-nav__menu-item--has-children
.primary-nav__menu-item.primary-nav__menu-item--has-children .primary-nav__menu-link--nolink { .primary-nav__menu-link--link,
.primary-nav__menu-item.primary-nav__menu-item--has-children
.primary-nav__menu-link--nolink {
/* Ensure that long text doesn't make the mobile expand button wrap. */ /* Ensure that long text doesn't make the mobile expand button wrap. */
flex-basis: calc(100% - var(--sp3)); flex-basis: calc(100% - var(--sp3));
} }
@ -39,6 +41,7 @@
flex-grow: 1; flex-grow: 1;
-webkit-text-decoration: none; -webkit-text-decoration: none;
text-decoration: none; text-decoration: none;
font-family: var(--font-serif);
color: var(--color-text-neutral-loud); color: var(--color-text-neutral-loud);
font-size: 1.75rem; font-size: 1.75rem;
font-weight: bold; font-weight: bold;
@ -83,7 +86,9 @@
.primary-nav__menu-link--button.primary-nav__menu-link--has-children::after { .primary-nav__menu-link--button.primary-nav__menu-link--has-children::after {
position: absolute; position: absolute;
inset-inline-end: 0.5625rem; inset-inline-end: 0.5625rem;
inset-block-start: calc(var(--sp0-5) + 1.0625rem); /* Visually align button with menu link text. */ inset-block-start: calc(
var(--sp0-5) + 1.0625rem
); /* Visually align button with menu link text. */
width: 1.125rem; width: 1.125rem;
height: 0; height: 0;
content: ""; content: "";
@ -207,7 +212,6 @@ html:not(.js) .primary-nav__menu--level-2 {
.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");
/*fill:blue; */ /*fill:blue; */
margin-right:5px; margin-right: 5px;
} }

3
css/layout/social-bar.css

@ -15,7 +15,8 @@
.social-bar { .social-bar {
flex-shrink: 0; flex-shrink: 0;
width: var(--content-left); width: var(--content-left);
background-color: var(--color--gray-100); /* background-color: var(--color--gray-100); */
background: #ece8e3 !important;
} }
} }

Loading…
Cancel
Save