forked from researchspace/researchspace
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #85 from swiss-art-research-net/fix/styling
add header
- Loading branch information
Showing
7 changed files
with
79 additions
and
0 deletions.
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
16 changes: 16 additions & 0 deletions
16
src/main/resources/org/researchspace/apps/sari/assets/no_auth/sari.css
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,16 @@ | ||
.sari-page-header { | ||
display: flex; | ||
align-items: center; | ||
} | ||
.sari-page-header-thumbnail { | ||
max-width: 80px; | ||
margin-right: 16px; | ||
} | ||
.sari-page-header-thumbnail img { | ||
max-width: 100%; | ||
height: auto; | ||
display: block; | ||
} | ||
.sari-page-header-content { | ||
flex-grow: 1; | ||
} |
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
23 changes: 23 additions & 0 deletions
23
src/main/resources/org/researchspace/apps/sari/assets/sari.less
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,23 @@ | ||
// out: ./no_auth/sari | ||
|
||
.sari { | ||
&-page-header { | ||
display: flex; | ||
align-items: center; | ||
|
||
&-thumbnail { | ||
max-width: 80px; | ||
margin-right: 16px; | ||
|
||
img { | ||
max-width: 100%; | ||
height: auto; | ||
display: block; | ||
} | ||
} | ||
|
||
&-content { | ||
flex-grow: 1; | ||
} | ||
} | ||
} |
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
32 changes: 32 additions & 0 deletions
32
...lates/http%3A%2F%2Fwww.researchspace.org%2Fresource%2Fsystem%2FDefaultResourceHeader.html
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,32 @@ | ||
<div class="sari-page-header"> | ||
<div class="sari-page-header-thumbnail"> | ||
<mp-resource-thumbnail iri='[[this]]'></mp-resource-thumbnail> | ||
</div> | ||
<div class="sar-ipage-header-content"> | ||
<h1> | ||
<mp-label iri='[[this]]'></mp-label> | ||
</h1> | ||
|
||
<p> | ||
<b>URI</b>: | ||
<a href='[[this]]' style="font-size: 12px; text-decoration: underline;" target='_blank'> | ||
<span>[[this]]</span> | ||
</a> | ||
</p> | ||
|
||
<!--Types --> | ||
<p> | ||
<b>Type</b>: <semantic-query | ||
query="SELECT DISTINCT ?type WHERE { <[[this]]> [[#if type]][[type]][[else]]a[[/if]] ?type }" | ||
style="display:inline;"></semantic-query> | ||
</p> | ||
|
||
<!--Description --> | ||
<p> | ||
<semantic-query | ||
query='SELECT ?description WHERE { <[[this]]> [[#if description]][[description]][[else]]rdfs:comment[[/if]] ?description } LIMIT 1' | ||
template='{{#each bindings}}<span><b>Description</b>: {{description.value}}</span>{{/each}}'> | ||
</semantic-query> | ||
</p> | ||
</div> | ||
</div> |