-
Notifications
You must be signed in to change notification settings - Fork 5
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
pghorpade
wants to merge
28
commits into
main
Choose a base branch
from
APPS-2464
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
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 58adb7c
add styling
axamei e41e37d
fix: xslt styles
pghorpade 6c8544f
update styling for accordion
axamei 734d192
Merge branch 'main' into APPS-2464
pghorpade 3d18b28
Merge branch 'main' into APPS-2464
github-actions[bot] bad35ec
fix: subwork item styling
pghorpade d4ce365
fix: togglelinks for work items
pghorpade 8a06a19
update styling
axamei 5c3e299
fix: update tei route
pghorpade 0627cd3
fix: add active class and beliograpghy link class with ul and li tags…
pghorpade c7470cd
fix: replace _ with .
pghorpade 40341c9
Merge branch 'main' into APPS-2464
github-actions[bot] 674dc5b
Merge branch 'main' into APPS-2464
github-actions[bot] 4c0efda
Merge branch 'main' into APPS-2464
github-actions[bot] d46d5fc
Merge branch 'main' into APPS-2464
github-actions[bot] f77bb8e
Merge branch 'main' into APPS-2464
github-actions[bot] d6d8cd8
Merge branch 'main' into APPS-2464
github-actions[bot] 1b252ff
Merge branch 'main' into APPS-2464
github-actions[bot] 44ec429
Merge branch 'main' into APPS-2464
github-actions[bot] bfc1423
Merge branch 'main' into APPS-2464
github-actions[bot] 3f5130f
Merge branch 'main' into APPS-2464
github-actions[bot] 39b5f38
Merge branch 'main' into APPS-2464
github-actions[bot] 9557749
Merge branch 'main' into APPS-2464
github-actions[bot] af5d103
Merge branch 'main' into APPS-2464
github-actions[bot] 8d3aa4f
Merge branch 'main' into APPS-2464
github-actions[bot] c5bbe21
Merge branch 'main' into APPS-2464
github-actions[bot] 28f3bf7
Merge branch 'main' into APPS-2464
github-actions[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
279 changes: 279 additions & 0 deletions
279
app/assets/stylesheets/theme_ursus/pages/_ur-static-stgallpage.scss
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,279 @@ | ||
/* Add your CSS styles here */ | ||
.stgall-container { | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
text-align: center; | ||
|
||
} | ||
|
||
.stgall-work-title, | ||
.stgall-transcription-title, | ||
.stgall-bibliograghy-title { | ||
font-weight: bold; | ||
font-style: italic; | ||
} | ||
|
||
.stgall-subnav { | ||
display: flex; | ||
justify-content: space-between; | ||
width: 100%; | ||
margin-bottom: 2rem; | ||
} | ||
|
||
.stgall-subnav-item { | ||
flex: 1; | ||
background-color: #f0f0f0; | ||
padding: 10px; | ||
border: 1px solid #ccc; | ||
} | ||
|
||
.stagll-flex-container { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
justify-content: flex-start; | ||
margin: 20px; | ||
} | ||
|
||
.stgall-title { | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
} | ||
|
||
.stgall-work-item-bibliography, | ||
.stgall-work-item-content, | ||
.stgall-work-item-transcription { | ||
margin-top: -0.5rem; | ||
} | ||
|
||
.stgall-work-item-bibliography .WorkBibiliography { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 16px; | ||
list-style-type: none; | ||
|
||
> li { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 8px; | ||
} | ||
|
||
p { | ||
margin-bottom: 4px; | ||
} | ||
} | ||
|
||
.stgall-contents { | ||
display: flex; | ||
flex-direction: column; | ||
|
||
justify-content: flex-start; | ||
} | ||
|
||
.toggleDivWorkItem .stgall-work-title { | ||
padding: 1rem; | ||
font-size: 16px; | ||
} | ||
|
||
.toggleDivWorkItem .stgall-contents { | ||
flex-direction: column; | ||
|
||
justify-content: flex-start; | ||
|
||
br { | ||
display: none; | ||
} | ||
|
||
.stgall-work-item { | ||
padding: 1rem; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 8px; | ||
|
||
&:nth-child(odd) { | ||
background-color: rgba($gray-10,0.5); | ||
} | ||
|
||
.stgall-work-item-heading { | ||
display: flex; | ||
gap: 8px; | ||
font-weight: bold; | ||
} | ||
|
||
h4 { | ||
margin: 1rem 0; | ||
font-size: 14px; | ||
font-weight: bold; | ||
} | ||
|
||
.stgall-work-item-bibliography { | ||
padding: 0; | ||
} | ||
|
||
.WorkBibiliography { | ||
display: flex; | ||
flex-direction: column; | ||
gap: 16px; | ||
list-style-type: none; | ||
font-size: 12px; | ||
|
||
> 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; | ||
} | ||
} | ||
} | ||
|
||
.stgall-transcription-source { | ||
font-size: 14px; | ||
} | ||
|
||
.stgall-work-item-bibliography .WorkBibliography { | ||
margin-top: 1rem; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 16px; | ||
list-style-type: none; | ||
|
||
> 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: flex-start; | ||
gap: 2px; | ||
position: relative; | ||
|
||
a, | ||
button { | ||
background-color: $ucla-lightest-blue-2; | ||
color: $ucla-darker-blue; | ||
line-height: 1; | ||
margin: 0.5rem 0 0.5rem; | ||
padding: 0.7rem 1rem; | ||
border: 2px solid transparent; | ||
|
||
display: inline-block; | ||
position: relative; | ||
z-index: 2; | ||
top: 2px; | ||
|
||
&:hover:not(.active) { | ||
background-color: $ucla-blue; | ||
color: $white; | ||
} | ||
|
||
&:focus, | ||
&.active { | ||
background-color: $white; | ||
border-color: $ucla-darker-blue; | ||
border-bottom-color: $white; | ||
border-top-width: 6px; | ||
border-top-color: $ucla-blue; | ||
} | ||
|
||
&:visited { | ||
background-color: $ucla-lightest-blue-2; | ||
color: $ucla-darker-blue; | ||
} | ||
} | ||
} | ||
|
||
.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 */ |
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.