Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add stgall tei route and sample tei output #1132

Open
wants to merge 28 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
18a4fdb
feat: Add stgall tei route and sample tei output
pghorpade Nov 17, 2023
58adb7c
add styling
axamei Nov 17, 2023
e41e37d
fix: xslt styles
pghorpade Nov 27, 2023
6c8544f
update styling for accordion
axamei Nov 28, 2023
734d192
Merge branch 'main' into APPS-2464
pghorpade Nov 28, 2023
3d18b28
Merge branch 'main' into APPS-2464
github-actions[bot] Nov 29, 2023
bad35ec
fix: subwork item styling
pghorpade Nov 29, 2023
d4ce365
fix: togglelinks for work items
pghorpade Nov 30, 2023
8a06a19
update styling
axamei Dec 5, 2023
5c3e299
fix: update tei route
pghorpade Dec 6, 2023
0627cd3
fix: add active class and beliograpghy link class with ul and li tags…
pghorpade Dec 7, 2023
c7470cd
fix: replace _ with .
pghorpade Dec 7, 2023
40341c9
Merge branch 'main' into APPS-2464
github-actions[bot] Dec 12, 2023
674dc5b
Merge branch 'main' into APPS-2464
github-actions[bot] Jan 5, 2024
4c0efda
Merge branch 'main' into APPS-2464
github-actions[bot] Jan 12, 2024
d46d5fc
Merge branch 'main' into APPS-2464
github-actions[bot] Jan 17, 2024
f77bb8e
Merge branch 'main' into APPS-2464
github-actions[bot] Jan 19, 2024
d6d8cd8
Merge branch 'main' into APPS-2464
github-actions[bot] Jan 19, 2024
1b252ff
Merge branch 'main' into APPS-2464
github-actions[bot] Feb 22, 2024
44ec429
Merge branch 'main' into APPS-2464
github-actions[bot] Mar 21, 2024
bfc1423
Merge branch 'main' into APPS-2464
github-actions[bot] Jun 13, 2024
3f5130f
Merge branch 'main' into APPS-2464
github-actions[bot] Jun 14, 2024
39b5f38
Merge branch 'main' into APPS-2464
github-actions[bot] Aug 5, 2024
9557749
Merge branch 'main' into APPS-2464
github-actions[bot] Aug 9, 2024
af5d103
Merge branch 'main' into APPS-2464
github-actions[bot] Aug 16, 2024
8d3aa4f
Merge branch 'main' into APPS-2464
github-actions[bot] Aug 20, 2024
c5bbe21
Merge branch 'main' into APPS-2464
github-actions[bot] Aug 23, 2024
28f3bf7
Merge branch 'main' into APPS-2464
github-actions[bot] Aug 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
148 changes: 117 additions & 31 deletions app/assets/stylesheets/theme_ursus/pages/_ur-static-stgallpage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
}

.stgall-work-title,
.stgall-transcription-title {
.stgall-transcription-title,
.stgall-bibliograghy-title {
font-weight: bold;
font-style: italic;
}
Expand All @@ -27,10 +28,6 @@
border: 1px solid #ccc;
}

// .stgall-subnav-item:hover {
// background-color: #e0e0e0;
// }

.stagll-flex-container {
display: flex;
flex-direction: row;
Expand All @@ -48,9 +45,7 @@
.stgall-work-item-bibliography,
.stgall-work-item-content,
.stgall-work-item-transcription {
padding: 1rem;
margin-top: -0.5rem;
background-color: $ucla-lightest-blue-2;
}

.stgall-work-item-bibliography .WorkBibiliography {
Expand All @@ -59,11 +54,15 @@
gap: 16px;
list-style-type: none;

li {
> li {
display: flex;
flex-direction: column;
gap: 8px;
}

p {
margin-bottom: 4px;
}
}

.stgall-contents {
Expand All @@ -74,28 +73,27 @@
}

.toggleDivWorkItem .stgall-work-title {
margin-bottom: 16px;
padding: 1rem;
font-size: 16px;
}

.toggleDivWorkItem .stgall-contents {
flex-direction: column;

justify-content: flex-start;
gap: 16px;

br {
display: none;
}

.stgall-work-item {
padding: 1rem;
display: flex;
flex-direction: column;
gap: 8px;

&:not(:last-child) {
border-bottom: 1px dotted $ucla-blue;
padding-bottom: 1rem;
&:nth-child(odd) {
background-color: rgba($gray-10,0.5);
}

.stgall-work-item-heading {
Expand All @@ -121,12 +119,18 @@
list-style-type: none;
font-size: 12px;

li {
> li {
display: flex;
flex-direction: column;
gap: 4px;
}
}

.stgall-work-item-bibliography + h4,
.document-metadata + h4 {
border-top: 1px dotted $ucla-darker-blue;
padding-top: 1.5rem;
}
}
}

Expand All @@ -141,53 +145,135 @@
gap: 16px;
list-style-type: none;

li {
> li {
display: flex;
flex-direction: column;
gap: 4px;
}
}
.bibliography-links {
display: inline-flex;
flex-direction: row;
justify-content: flex-start;
gap: 12px;

> li {
display: inline;
}

a {
padding: 1rem 0;
font-size: 10px;
font-weight: 600;
color: $ucla-blue;
text-transform: uppercase;
letter-spacing: 1px;

&::after {
content: "";
width: 11px;
height: 11px;
margin-left: 4px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z'/%3E%3C/svg%3E");
background-position: center;
background-repeat: no-repeat;
background-size: contain;
display: inline-block;
}
}
}

.stgall-sub-links {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
gap: 8px;
align-items: flex-start;
gap: 2px;
position: relative;

a,
button {
background-color: $ucla-lightest-blue-2;
color: $ucla-darkest-blue;
color: $ucla-darker-blue;
line-height: 1;
margin: 0.5rem 0 0.5rem;
padding: 0.7rem 1rem;
border: none;
}
}
border: 2px solid transparent;

.stgall-work-item-content {}
display: inline-block;
position: relative;
z-index: 2;
top: 2px;

.stgall-work-item-bibliography {}

.stgall-work-item-transcription {}

/*.manuscript-bibliography {
&:hover:not(.active) {
background-color: $ucla-blue;
color: $white;
}

&:focus,
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pghorpade after the logic is put in place in the js, you can move 213 and to 208 so that the hover and focus states have the same styling.

&.active {
background-color: $white;
border-color: $ucla-darker-blue;
border-bottom-color: $white;
border-top-width: 6px;
border-top-color: $ucla-blue;
}
.manuscript-description{

&:visited {
background-color: $ucla-lightest-blue-2;
color: $ucla-darker-blue;
}
.toggleDiv {
display: none;
}*/
}
}

.stgall-work-item-bibliography {
padding: 1rem;
}

.stgall-work-item-transcription .stgall-transcriptionSource {
padding: 1rem;
}

.toggleDivWorkItem {
display: none;

border: 2px solid $ucla-darker-blue;
background-color: $white;
}

.stgall-manuscript-contents {
display: flex;

.document__list-metadata-key--ursus {
color: $black;
}
}

.book-level-section {
display: flex;
flex-direction: column;
gap: 16px;
font-size: 14px;

.book-level-item {
display: flex;
flex-direction: column;
gap: 4px;
}

.book-title, .book-level-item > p {
font-weight: bold;
}
}

.stgall-tan_divider > br {
display: none;
}

.stgall-tan_divider {
display: flex;
flex-direction: column;
gap: 1rem;
}

/* Add more styles as needed */
Loading
Loading