Created
March 23, 2022 10:23
-
-
Save brianzelip/0adfa0bf37cd911228d470cd2a382607 to your computer and use it in GitHub Desktop.
Bodleian's ArchivesSpace print stylesheet for public app
This file contains hidden or 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
/** | |
* All content below this comment block from https://archives.bodleian.ox.ac.uk/assets/style/bodleian_print.css | |
*/ | |
/* The following stops search facets, the footer, sidebars, buttons, etc from being printed */ | |
#content div:not(.has-resizable-content):not(#tabs)>.col-sm-3 { | |
display:none ! important; | |
} | |
#content div:not(.has-resizable-content):not(#tabs)>.col-sm-9 { | |
width:100% ! important; | |
} | |
.panel-footer { | |
display:none ! important; | |
} | |
.sorter { | |
display:none ! important; | |
} | |
.btn { | |
display:none ! important; | |
} | |
#sidebar { | |
display:none ! important; | |
} | |
/* The following adjusts the header when printing. TODO: Unhide the Bodleian logo? */ | |
#header>.row { | |
border-bottom-color:#C0C0C0 ! important; | |
} | |
/* The following prints all sections within records, so people don't have to expand them first */ | |
.collapse { | |
display:initial ! important; | |
} | |
.infinite-record-wrapper { | |
height:auto ! important; | |
} | |
/* The following fixes an inconsistency in the layout of record pages caused by ArchivesSpace treating anything | |
that in EAD contains p elements as being comprised of sub-notes, even if it is just one */ | |
div.subnote { | |
padding-left:0px ! important; | |
} | |
/* The following apply style to the adjusted layout of search results in _result.html.erb */ | |
.recordrow { | |
page-break-inside:avoid; | |
display:block ! important; | |
position:relative ! important; | |
min-height:11ex ! important; | |
} | |
.recordrow .record-type-badge { | |
display:inline-block ! important; | |
float:left ! important; | |
width:9ch ! important; | |
text-align:center ! important; | |
color:#808080 ! important; | |
} | |
.recordrow .record-type-badge i { | |
font-size:24px ! important; | |
} | |
.recordrow .record-type-badge .badge-label { | |
display:block ! important; | |
font-size:0.85em ! important; | |
word-wrap:break-word ! important; | |
hyphens:auto ! important; | |
} | |
.recordrow .recordsummary { | |
display:inline-block ! important; | |
max-width:calc(100% - 11ch) ! important; | |
margin-left:1ch ! important; | |
height:100% ! important; | |
} | |
.recordrow .component { | |
font-weight:normal ! important; | |
} | |
.recordrow .abstract { | |
padding-top:0.25em ! important; | |
padding-bottom:0.25em ! important; | |
} | |
.recordrow .result_context { | |
padding-top:0px ! important; | |
} | |
.recordrow strong { | |
display:inline-block ! important; | |
min-width:9ch ! important; | |
color:rgb(51, 51, 51) ! important; | |
font-family:"Roboto Slab", serif ! important; | |
} | |
/* Search form customizations */ | |
.search, .refinesearch { | |
display:none ! important; | |
} | |
/* Home page */ | |
.welcome_note { | |
border:4px black solid; | |
padding:0.75em; | |
font-weight:bold; | |
} | |
/* Global message banner - do not print */ | |
.globalbanner { | |
display:none; | |
} | |
/* */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment