Skip to content

Commit 9b23869

Browse files
auroreallibemmoqui
authored andcommitted
Fix Bug #14261
Optimizes the presentation when the news does not have an image, in list or carousel view. + Presentation last visitors in the EDM - (only Waves skin).
1 parent 1637144 commit 9b23869

File tree

7 files changed

+131
-4
lines changed

7 files changed

+131
-4
lines changed

aurora/aurora-configuration/src/main/config/data/web/weblib.war/Aurora/css/main.css

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -991,14 +991,17 @@ label.select-header:before {
991991
float: left;
992992
height: 314px;
993993
position: relative;
994-
overflow: hidden;
994+
overflow: hidden;
995+
width: calc( 100% - 260px );
996+
margin-bottom:1em;
995997
}
996998

997999
.main-home-page #last-publication-home,
9981000
.main-home-page #rssNews,
9991001
.main-home-page #freeZone {
10001002
margin-left: 260px;
10011003
margin-top: 2.5em;
1004+
clear:left;
10021005
}
10031006

10041007

@@ -1316,13 +1319,23 @@ label.select-header:before {
13161319
color: #333;
13171320
}
13181321

1319-
/********************** ***************************/
1322+
/********************** News as carrousel ***************************/
13201323

13211324
#carrousel-actualite .centered-btns_nav {
13221325
top: 36%;
13231326
margin-top: 0;
13241327
}
13251328

1329+
#carrousel-actualite #slider li {
1330+
position:relative;
1331+
}
1332+
#carrousel-actualite #slider li > a {
1333+
position: absolute;
1334+
top:0;
1335+
left:0;
1336+
right:0;
1337+
bottom: 0;
1338+
}
13261339
/*********** News as list *******************/
13271340
#carrousel-actualite .list-news {
13281341
padding: 0;

aurora/aurora-configuration/src/main/config/data/web/weblib.war/Aurora/css/stylesheet.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,15 @@ button,
10851085
padding: 8px;
10861086
}
10871087

1088+
.spaceHome .carousel li:not(:has(.thumbnail))::before,
1089+
.main-home-page #carrousel-actualite a:has(img[src*='emptyNews'])::before {
1090+
background-color: rgba(0, 0, 0, .1);
1091+
}
1092+
1093+
.main-home-page #carrousel-actualite a:has(img[src*='emptyNews'])::before {
1094+
content: "best format 16:9";
1095+
background-position: center calc( 50% - 4em );
1096+
}
10881097

10891098
.spaceHome .spaceNavigation li.browse-space a {
10901099
background: url("../imgDesign/bg_menu_level1.png") no-repeat scroll 0px -10px transparent;

aurora/aurora-configuration/src/main/config/data/web/weblib.war/skins/Sobre/css/main.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,10 @@ label.select-header:before {
11051105

11061106
#carrousel-actualite .list-news li {
11071107
width: 100%;
1108-
height: 100px;
1108+
height: 140px;
1109+
clear: left;
1110+
margin-bottom: 1em;
1111+
display: block;
11091112
}
11101113

11111114
#carrousel-actualite .list-news li img {

aurora/aurora-configuration/src/main/config/data/web/weblib.war/skins/Sobre/css/stylesheet.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,6 +1332,27 @@ button,
13321332
padding-left:0;
13331333
}
13341334

1335+
.spaceHome .carousel li:not(:has(.thumbnail))::before,
1336+
.main-home-page #carrousel-actualite a:has(img[src*='emptyNews'])::before {
1337+
background-color: rgba(0, 0, 0, .1);
1338+
}
1339+
.main-home-page #carrousel-actualite a:has(img[src*="emptyNews"])::before {
1340+
height: 400px;
1341+
}
1342+
1343+
.main-home-page #carrousel-actualite a:has(img[src*='emptyNews'])::before {
1344+
content: "Best format 16:9";
1345+
background-position: center calc( 50% - 4em );
1346+
}
1347+
1348+
.main-home-page #carrousel-actualite .list-news a:has(img[src*='emptyNews'])::before {
1349+
content: " ";
1350+
background-position: center center;
1351+
width: 200px;
1352+
height:120px;
1353+
float: left;
1354+
}
1355+
13351356
.spaceHome .spaceNavigation::after,
13361357
.spaceHome .cg-favorit-list::after {
13371358
content:' ';

aurora/aurora-configuration/src/main/config/data/web/weblib.war/skins/prima/css/stylesheet.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,6 +1251,24 @@ silverpeas-calendar-event-occurrence-list .display-grouped-by-day .high-priority
12511251
position:relative;
12521252
}
12531253

1254+
.spaceHome .carousel li:not(:has(.thumbnail))::before,
1255+
.main-home-page #carrousel-actualite a:has(img[src*='emptyNews'])::before {
1256+
background-color: rgba(0, 0, 0, .1);
1257+
}
1258+
1259+
.main-home-page #carrousel-actualite a:has(img[src*='emptyNews'])::before {
1260+
content: "Best format 4:3";
1261+
background-position: center calc( 50% - 4em );
1262+
height: 300px;
1263+
}
1264+
1265+
.main-home-page #carrousel-actualite .list-news a:has(img[src*='emptyNews'])::before {
1266+
content: " ";
1267+
background-position: center center;
1268+
width: 160px;
1269+
height:100px;
1270+
}
1271+
12541272
.spaceHome .spaceNavigation li.browse-component p {
12551273
padding-left: 0;
12561274
}

aurora/aurora-configuration/src/main/config/data/web/weblib.war/skins/waves/css/stylesheet.css

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1651,6 +1651,22 @@ silverpeas-calendar-event-occurrence-list-item div.occurrence-extra,
16511651
margin-top: 0;
16521652
}
16531653

1654+
.main-home-page #carrousel-actualite a:has(img[src*="emptyNews"])::before {
1655+
height: 300px;
1656+
}
1657+
1658+
.main-home-page #carrousel-actualite a:has(img[src*='emptyNews'])::before {
1659+
content: "Best format 600x400px";
1660+
background-position: center calc( 50% - 4em );
1661+
}
1662+
1663+
.main-home-page #carrousel-actualite .list-news a:has(img[src*='emptyNews'])::before {
1664+
content: " ";
1665+
background-position: center center;
1666+
width: 160px;
1667+
height:100px;
1668+
background-color: #FFF;
1669+
}
16541670

16551671
.spaceHome .spaceNavigation {
16561672
margin: 1 0;
@@ -2092,6 +2108,23 @@ div.cell fieldset.skinFieldset {
20922108
height: auto;
20932109
line-height: auto;
20942110
}
2111+
#preview #lastReaderList {
2112+
padding-bottom:0;
2113+
}
2114+
#preview #lastReaderList li {
2115+
height:48px;
2116+
}
2117+
#preview #lastReaderList::after {
2118+
content:'';
2119+
clear:left;
2120+
height:1px;
2121+
width:100%;
2122+
display:block;
2123+
}
2124+
2125+
#preview #lastReaderList li span.consultationDate, #preview #lastReaderList li span.userToZoom {
2126+
padding-left: 53px;
2127+
}
20952128

20962129
#pubList #pubsHeader {
20972130
line-height: 37px;

aurora/aurora-war/src/main/webapp/look/jsp/css/aurora.css

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,4 +424,34 @@
424424
/************* New users list *****************/
425425
.main-home-page #new-users-home .new-users-list {
426426
list-style: none;
427-
}
427+
}
428+
429+
/************* Slideshow ***********/
430+
.spaceHome .carousel li:not(:has(.thumbnail))::before,
431+
.main-home-page #carrousel-actualite a:has(img[src*='emptyNews'])::before {
432+
content:' ';
433+
background: rgba(255, 255, 255, .5);
434+
text-align: center;
435+
flex-basis: 50%;
436+
display: flex;
437+
align-content: center;
438+
background-repeat: no-repeat;
439+
background-size: 50px 50px;
440+
background-position: center center;
441+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23999999' d='M21.11 22.53L18.579 20H4.616q-.672 0-1.144-.472T3 18.385V7.615q0-.67.472-1.143Q3.944 6 4.616 6h1.39v1.427l-4.12-4.12l.714-.713l19.223 19.223zM21 18.184l-5.294-5.3q-.01-.704-.29-1.365q-.28-.66-.78-1.16q-.494-.495-1.154-.774q-.66-.28-1.365-.29L8.173 5.356L9.423 4h5.154l1.85 2h2.958q.67 0 1.143.472q.472.472.472 1.144zm-9-1.452q.671 0 1.286-.231q.614-.23 1.114-.679L9.179 10.6q-.448.5-.679 1.115q-.23.614-.23 1.285q0 1.548 1.09 2.64q1.092 1.09 2.64 1.09m0-1q-1.146 0-1.939-.792T9.27 13q0-.558.207-1.049q.207-.492.595-.88l3.858 3.858q-.389.388-.88.595t-1.05.207'/%3E%3C/svg%3E");
442+
}
443+
444+
.main-home-page #carrousel-actualite a:has(img[src*="emptyNews"]) {
445+
display:block;
446+
}
447+
448+
.main-home-page #carrousel-actualite a:has(img[src*='emptyNews']) > img{
449+
display:none;
450+
}
451+
452+
.main-home-page #carrousel-actualite a:has(img[src*='emptyNews'])::before {
453+
display:block;
454+
width: 100%;
455+
height:500px;
456+
}
457+

0 commit comments

Comments
 (0)