-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from mlibrary/LIBSEARCH-864-cross-references-t…
…oggle-terms Libsearch 864 cross references toggle terms
- Loading branch information
Showing
8 changed files
with
332 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/** | ||
* cross-references.css | ||
* | ||
* Cross references display results relating to the listed record. | ||
* | ||
* ----------------- | ||
* Table of Contents | ||
* ----------------- | ||
* 1.0 - Cross References | ||
* 2.0 - Toggle Cross References | ||
* 2.1 - Summary | ||
* 2.1.1 - Content | ||
*/ | ||
|
||
|
||
|
||
/******************************/ | ||
/*** 1.0 - Cross References ***/ | ||
/******************************/ | ||
|
||
ol.cross-references-list { | ||
color: var(--search-neutral-500); | ||
list-style: none; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
|
||
|
||
/*************************************/ | ||
/*** 2.0 - Toggle Cross References ***/ | ||
/*************************************/ | ||
|
||
details.toggle-cross-references:not([open]) { | ||
margin-top: 0.25rem; | ||
} | ||
|
||
details.toggle-cross-references[open] { | ||
padding-bottom: 2.125rem; | ||
position: relative; | ||
} | ||
|
||
/*** 2.1 - Summary ***/ | ||
|
||
details.toggle-cross-references > summary { | ||
border: 1px solid var(--search-neutral-500); | ||
border-radius: var(--radius-default); | ||
color: var(--search-neutral-500); | ||
cursor: pointer; | ||
padding: 0.125rem 0.375rem; | ||
list-style: none; | ||
width: fit-content; | ||
} | ||
|
||
details.toggle-cross-references > summary::-webkit-details-marker { | ||
display: none; | ||
} | ||
|
||
details.toggle-cross-references[open] > summary { | ||
bottom: 0; | ||
position: absolute; | ||
} | ||
|
||
/* 2.1.1 - Content */ | ||
|
||
details.toggle-cross-references:not([open]) .details-open, | ||
details.toggle-cross-references[open] .details-closed { | ||
display: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/** | ||
* description-list.css | ||
* | ||
* Description lists are used to display metadata. | ||
* | ||
* ----------------- | ||
* Table of Contents | ||
* ----------------- | ||
* 1.0 - Description List | ||
* 1.1 - Term | ||
* 1.2 - Description | ||
*/ | ||
|
||
|
||
|
||
/******************************/ | ||
/*** 1.0 - Description List ***/ | ||
/******************************/ | ||
|
||
/*** 1.1 - Term ***/ | ||
|
||
dl dt { | ||
font-weight: var(--semibold); | ||
} | ||
|
||
.browse-table:not(.subject-browse) dl dt { | ||
clear: left; | ||
float: left; | ||
margin-right: 0.5rem; | ||
} | ||
|
||
/*** 1.2 - Description ***/ | ||
|
||
dl dd { | ||
margin: 0; | ||
} | ||
|
||
dl dt.visually-hidden:not(:only-of-type) + dd { | ||
margin-bottom: 0.5rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.