NarrativeWeb fixes

Space between place, description and the event note when there are
many sources.
Change the css order between print and screen.
The chosen theme can erase prior values.
Add a width for the source column in all themes.

Fixes #10810
This commit is contained in:
SNoiraud 2018-09-28 20:43:53 +02:00 committed by Nick Hall
parent 3046b0586c
commit f2bc982c3d
10 changed files with 32 additions and 5 deletions

View File

@ -330,6 +330,10 @@ table.IndividualList td.ColumnSurname {
content: ""; content: "";
} }
table.eventlist tbody tr td.ColumnSources {
width: 5%;
}
/* Gallery /* Gallery
----------------------------------------------------- */ ----------------------------------------------------- */
#GalleryNav { #GalleryNav {

View File

@ -489,7 +489,7 @@ table.eventlist tbody tr td.ColumnNotes {
width: 20%; width: 20%;
} }
table.eventlist tbody tr td.ColumnSources { table.eventlist tbody tr td.ColumnSources {
width: 17%; width: 5%;
} }
table.eventlist tbody tr td.ColumnPerson { table.eventlist tbody tr td.ColumnPerson {
width: 35%; width: 35%;

View File

@ -373,6 +373,10 @@ table.IndividualList td.ColumnSurname {
content: ""; content: "";
} }
table.eventlist tbody tr td.ColumnSources {
width: 5%;
}
/* Gallery /* Gallery
----------------------------------------------------- */ ----------------------------------------------------- */
#GalleryNav { #GalleryNav {

View File

@ -366,6 +366,10 @@ table.IndividualList td.ColumnSurname {
content: ""; content: "";
} }
table.eventlist tbody tr td.ColumnSources {
width: 5%;
}
/* Gallery /* Gallery
----------------------------------------------------- */ ----------------------------------------------------- */
#GalleryNav { #GalleryNav {

View File

@ -366,6 +366,10 @@ table.IndividualList td.ColumnSurname {
content: ""; content: "";
} }
table.eventlist tbody tr td.ColumnSources {
width: 5%;
}
/* Gallery /* Gallery
----------------------------------------------------- */ ----------------------------------------------------- */
#GalleryNav { #GalleryNav {

View File

@ -366,6 +366,10 @@ table.IndividualList td.ColumnSurname {
content: ""; content: "";
} }
table.eventlist tbody tr td.ColumnSources {
width: 5%;
}
/* Gallery /* Gallery
----------------------------------------------------- */ ----------------------------------------------------- */
#GalleryNav { #GalleryNav {

View File

@ -32,7 +32,6 @@ body {
background-color: #00029D; background-color: #00029D;
color: #00029D; color: #00029D;
width: 100%; width: 100%;
padding: 0px 14px;
} }
/* Navigation Menus /* Navigation Menus

View File

@ -312,6 +312,10 @@ table#SortByCount thead th.ColumnQuantity a:after {
content: ""; content: "";
} }
table.eventlist tbody tr td.ColumnSources {
width: 5%;
}
/* Gallery /* Gallery
-----------------------------------------------------------------*/ -----------------------------------------------------------------*/
#GalleryNav { #GalleryNav {

View File

@ -576,6 +576,10 @@ table.relationships tbody tr td.ColumnPartner a:hover {
content: ""; content: "";
} }
table.eventlist tbody tr td.ColumnSources {
width: 5%;
}
/* Gallery /* Gallery
----------------------------------------------------- */ ----------------------------------------------------- */
#Gallery { } #Gallery { }

View File

@ -676,7 +676,7 @@ class BasePage: # pylint: disable=C1001
trow2 += Html("td", "", class_="ColumnEvent") trow2 += Html("td", "", class_="ColumnEvent")
# get event source references # get event source references
srcrefs = self.get_citation_links(event.get_citation_list()) or " " srcrefs = self.get_citation_links(event.get_citation_list()) or " "
trow += Html("td", srcrefs, class_="ColumnSources") trow += Html("td", srcrefs, class_="ColumnSources", rowspan=2)
# get event notes # get event notes
notelist = event.get_note_list() notelist = event.get_note_list()
@ -1391,10 +1391,10 @@ class BasePage: # pylint: disable=C1001
# create stylesheet and favicon links # create stylesheet and favicon links
links = Html("link", type="image/x-icon", links = Html("link", type="image/x-icon",
href=url4, rel="shortcut icon") + ( href=url4, rel="shortcut icon") + (
Html("link", type="text/css", href=url3,
media='print', rel="stylesheet", indent=False),
Html("link", type="text/css", href=url2, Html("link", type="text/css", href=url2,
media="screen", rel="stylesheet", indent=False), media="screen", rel="stylesheet", indent=False),
Html("link", type="text/css", href=url3,
media='print', rel="stylesheet", indent=False)
) )
# Link to Navigation Menus stylesheet # Link to Navigation Menus stylesheet