Skip to content

Commit

Permalink
Merge branch 'searchpage-styling' into 6.x-ocr
Browse files Browse the repository at this point in the history
Signed-off-by: Christos Sidiropoulos <csidirop@runbox.com>
  • Loading branch information
csidirop committed Aug 10, 2023
2 parents dde5219 + 41252f0 commit 6862501
Show file tree
Hide file tree
Showing 6 changed files with 225 additions and 3 deletions.
5 changes: 5 additions & 0 deletions Resources/Private/JavaScript/websiteScripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ $(document).ready(function() {

// switch on code highlighting
hljs.highlightAll();

// hide/show volumes
$(".tx-dlf-morevolumes, .tx-dlf-hidevolumes").on(mobileEvent, (function(e) {
$(this).parent().toggleClass("tx-dlf-volumes-open").find(".tx-dlf-volume").slideToggle();
}));
});

// EOF
2 changes: 2 additions & 0 deletions Resources/Private/Less/website.less
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,7 @@
@import "website/header.less";
@import "website/content.less";
@import "website/home.less";
@import "website/search.less";
@import "website/searchlist.less";

// EOF
37 changes: 37 additions & 0 deletions Resources/Private/Less/website/search.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*
*
* Website - Search
* ================================================
*
* Author: Bernd Fallert <bernd.fallert@uni-mannheim.de>
* Author: Christos Sidiropoulos <Christos.Sidiropoulos@uni-mannheim.de>
* License: All rights reserved
*
*/

.website {
.page-container {
.tx-dlf-search-form {
margin-bottom: 0px;
margin-top: 30px;
border-bottom: none;

div.tx-dlf-search-extended {
display: flex;
margin-top: 50px;
.tx-dlf-search-operator {
width: 20%;
}
.tx-dlf-search-field-option {
width: 50%;
}
}

label {
display: inline;
}
}
}
}

// EOF
178 changes: 178 additions & 0 deletions Resources/Private/Less/website/searchlist.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,178 @@
/*
*
* Website - Searchlist
* ================================================
*
* Author: Bernd Fallert <bernd.fallert@uni-mannheim.de>
* Author: Christos Sidiropoulos <Christos.Sidiropoulos@uni-mannheim.de>
* License: All rights reserved
*
*/

.website {
.page-container {
div.tx-dlf-listview {

form.tx-dlf-search-form {
// sort select items:
select {
width: 30%;
display: inline;
}
}

ol.tx-dlf-abstracts {
li {
display: flex;
flex-wrap: wrap;

a {
display: flex;
flex-wrap: wrap;
width: 90%;

/* Thumbnail: main */
div.tx-dlf-listview-thumbnail {
position: relative;
margin: 0 25px 0 0;
line-height: 0;
flex: 0 1 10px;

img {
width: 140px;
height: auto;
}
}

/* Metadata: main */
dl {
width: 70%; /* container width */
overflow: hidden;
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap;
align-content: flex-start;
dt {
flex: 0 0 35%;
text-overflow: ellipsis;
overflow: hidden;
}
dd {
flex: 0 0 65%;
margin-left: auto;
text-align: left;
text-overflow: ellipsis;
overflow: hidden;
&:after {
display: block;
content: '';
}
}
dd + dd { //if two dd elements follow one after the other
margin-left: 35%; //see dt flex value
}
}
}

.tx-dlf-volume{
display: none;
}

&.tx-dlf-volumes-open .tx-dlf-morevolumes {
transform: rotate(-90deg);
}

/* Button: open/unhide parent listelement */
button.tx-dlf-morevolumes {
transform: rotate(+90deg);

// color: transparent;
text-shadow: none;
background-color: transparent;
border-color: currentcolor;

position: relative;
width: 40px;
height: 40px;
// font: 0/0 'Open Sans',Helvetica,Arial,sans-serif;
border: 0;
display: inline-block;
transition: all .3s ease-out;
transform-origin: center center;
cursor: pointer;

text-shadow: none;

&:before {
// color: rgb(146, 251, 255);
position: absolute;
top: -5px;
left: 5px;
content: ">>";
font-size: 40px;
line-height: 40px;
font-family: 'VistaSansBold','Calibri-Bold','Helvetica',Sans-serif;
color: @light-blue;
display: block;
letter-spacing: -0.1em;
}
}

/* Subelements */
ol {
background-color:#d4e2f1;
width: 100%;
list-style: none;

li {
a {
/* Thumbnail: sub */
div.tx-dlf-listview-thumbnail {
position: relative;
margin: 0 25px 0 0;
line-height: 0;
flex: 0 1 80px;

img {
width: 85px;
height: auto;
}
}

/* Metadata: sub */
dl {
width: 60%; /* container width */
overflow: hidden;
padding: 0;
margin: 0;
display: flex;
flex-wrap: wrap;
align-content: flex-start;
dt {
flex: 0 0 35%;
text-overflow: ellipsis;
overflow: hidden;
}
dd {
flex: 0 0 65%;
margin-left: auto;
text-align: left;
text-overflow: ellipsis;
overflow: hidden;
&:after {
display: block;
content: '';
}
}
}
}
}
}
}
}
}
}
}

// EOF
2 changes: 1 addition & 1 deletion Resources/Public/Css/webStyles.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions Resources/Public/JavaScript/webScripts.js

Large diffs are not rendered by default.

0 comments on commit 6862501

Please sign in to comment.