Skip to content

Commit

Permalink
Better preview stylesheets
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-morrison committed Nov 1, 2018
1 parent 580257f commit de252c5
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 112 deletions.
196 changes: 85 additions & 111 deletions processing/preview.css
Original file line number Diff line number Diff line change
@@ -1,131 +1,105 @@
/* Selected styles copied from Medieval QA site. Will need updating occasionally. */
body, html
{
font-size: 16px;
font-family: "PT Sans", sans-serif;
line-height: 22.85px;
color: #333333;
body, html
{
font-size: 17px;
font-family: "PT Sans", sans-serif;
padding: 0;
background-color: #ffffff;
}
}

.tei-label, .label
{
font-weight: 600;
height: 18px;
line-height: 1.2rem;
font-size: 1.13rem;
color: #0D0D0D;
}

.tei-italic
{
font-style: italic;
color: #0D0D0D;
}

.layoutDesc
{
margin: 10px 0;
}

.individual-item *:not(h5):not(h4):not(h3):not(h2):not(h1)
{
font-size: 17px;
}
.bold, .tei-label, .label, h5, h4, h3, h2, h1
{
font-weight: 700;
}
.super
{
position: relative;
display: inline-block;
font-size: small;
color: #0D0D0D;
top: -9px;
}
{
position: relative;
display: inline-block;
font-size: small;
top: -9px;
}
.tei-italic,.italic
{
font-style: italic;
}

.italic {
line-height: 1.13rem;
color: #0D0D0D;
font-size: 1.13rem;
font-style: italic;
}
.layoutDesc
{
margin: 10px 0;
}
.tei-label
{
height: 18px;
}

.bold, h4
{
font-weight: 600;
color: #0D0D0D;
}

h4
{
margin-top: 5px;
margin-bottom: 5px;
}
{
margin-top: 5px;
margin-bottom: 5px;
}

h1
{
font-size: 2rem;
font-weight: 500;
}

h3
{
font-size:1.5rem;
font-weight: 500;
}
{
font-size: 32px;
}

.nestedmsItem {
margin-left: 1rem;
padding-bottom: 1rem;
border-bottom: 1px solid #eaeaea;
margin-bottom: 1rem;
text-align: justify;
}
margin-left: 16px;
padding-bottom: 16px;
border-bottom: 1px solid #eaeaea;
margin-bottom: 16px;
text-align: justify;
}

p,.seg,.item,.head,.physDesc-p,.tei-title,.locus,.note,.decoNote-list,.decoNote
{
font-size: 1.13rem;
color: #0D0D0D;
line-height: 1.17rem;
margin: 0 0 5px;
text-align: justify;
}
p,.seg,.item,.head,.physDesc-p,.tei-title,.locus,.note,.decoNote-list,.decoNote,.item-number
{
margin: 0 0 5px;
text-align: justify;
}

.msItem
{
border-bottom: 1px solid #eaeaea;
margin-bottom: 1rem;
padding-bottom: 1rem;
}
.msItem,.msPart
{
border-bottom: 1px solid #eaeaea;
margin-bottom: 16px;
padding-bottom: 16px;
}

.secFol .italic
{
font-style: normal;
}

{
font-style: normal;
}
.support, .form, .extent, .dimensions, .foliation, .condition
{
margin-top: 5px;
}

{
margin-top: 5px;
}
p.note:last-of-type {
margin: 0 0 0;
}
margin: 0;
}

.incipit,.explicit,.rubric, .finalRubric,.textLang, .origPlace,.secFol,.objectDesc,.additional,.colophon,.origin
{
font-size: 1.13rem;
line-height: 1.15rem;
color: #0D0D0D;
text-align: justify;
margin-bottom: 5px;
}
.author,.bibl,.orgName,#zotero-bibliography-text,.origDate,.origPlace,.additions
{
font-size: 1.13rem;
line-height: 1.15rem;
margin-bottom: 5px;
}

.incipit,.explicit,.rubric, .finalRubric,.textLang,
.origPlace,.secFol,.objectDesc,.additional,.colophon,.origin, .msName
{
text-align: justify;
margin-bottom: 5px;
}
.author,.bibl,.orgName,#zotero-bibliography-text,.origDate,.origPlace,.additions, .coveragewarning
{
margin-bottom: 5px;
}
.physDesc, .history {
text-align: justify;
}
text-align: justify;
}

.additional ul.listBibl
{
padding: 0;
}
{
padding: 0;
}

.small-caps, .author, .translator
{
font-variant: small-caps;
}
2 changes: 1 addition & 1 deletion processing/previewManuscript.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<!-- Set URL here to allow links (e.g. to persons or places) to work
when previewing (if destinations exist on the web site.) -->
<xsl:variable name="website-url" as="xs:string" select="'http://armenian-qa.bodleian.ox.ac.uk'"/>
<xsl:variable name="website-url" as="xs:string" select="'https://armenian.bodleian.ox.ac.uk'"/>

<!-- Do NOT add customizations here. This stylesheet merely wraps
the output of convert2HTML.xsl in html and body tags, for previewing
Expand Down

0 comments on commit de252c5

Please sign in to comment.