Skip to content

Commit

Permalink
Merge pull request #232 from csidirop/searchpage-styling
Browse files Browse the repository at this point in the history
Searchpage styling
  • Loading branch information
beatrycze-volk authored Oct 25, 2023
2 parents 8168640 + afa2d35 commit e925406
Show file tree
Hide file tree
Showing 7 changed files with 217 additions and 4 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,4 +58,9 @@ $(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();
}));
});
2 changes: 2 additions & 0 deletions Resources/Private/Less/website.less
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@
@import "website/header.less";
@import "website/content.less";
@import "website/home.less";
@import "website/search.less";
@import "website/searchlist.less";
33 changes: 33 additions & 0 deletions Resources/Private/Less/website/search.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
*
* Website - Search
* ================================================
*
*
*/

.website {
.page-container {
.tx-dlf-search-form {
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;
}
}
}
}
173 changes: 173 additions & 0 deletions Resources/Private/Less/website/searchlist.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
/*
*
* Website - Searchlist
* ================================================
*
*
*/

.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: '';
}
}
}
}
}
}
}
}
}
}
}
2 changes: 1 addition & 1 deletion Resources/Public/Css/allStyles.css

Large diffs are not rendered by default.

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 e925406

Please sign in to comment.