Changeset 2988


Ignore:
Timestamp:
06/05/13 06:40:05 (11 years ago)
Author:
keeloo
Message:

Added css for Clarin-D theme

Location:
vlo/trunk/vlo_web_app/src
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • vlo/trunk/vlo_web_app/src/main/java/eu/clarin/cmdi/vlo/VloWebApplication.java

    r2978 r2988  
    218218                topLeftImage = "Images/topleft-clarin-d.png";
    219219                topRightImage = "Images/topright-clarin-d.png";
    220                 cssFile = "css/main.css";
     220                cssFile = "css/clarin-d.css";
    221221                partnerLinkMap = getClarinDPartnerLinkMap();
    222222                name = "CLARIN-D";
  • vlo/trunk/vlo_web_app/src/main/java/eu/clarin/cmdi/vlo/pages/ShowResultPage.html

    r2969 r2988  
    1616    <wicket:extend>
    1717        <div class="endgame"><br>
    18             <div><a wicket:id="backLink" href="#"><wicket:message key="backToResult">[back]</wicket:message></a>&nbsp;|&nbsp;<a wicket:id="openBrowserLink"></a>
    19             <div align="right" style="float:right">
    20                 <a wicket:id="feedbackLink"href="#"><img wicket:id="feedbackImage" height="32" width="32"/></a>
    21                 <span wicket:id="feedbackLabel"></span></div>
    22                 <p />
     18            <div><a wicket:id="backLink" href="#"><wicket:message key="backToResult">[back]</wicket:message></a>&nbsp;|&nbsp;<a wicket:id="openBrowserLink"></a>&nbsp;|&nbsp;<a wicket:id="feedbackLink"></a>
    2319            </div>
    2420            <br>
  • vlo/trunk/vlo_web_app/src/main/java/eu/clarin/cmdi/vlo/pages/ShowResultPage.java

    r2970 r2988  
    395395        }
    396396       
    397         Image resourceImg = new Image("feedbackImage", FEEDBACK_IMAGE.getResource());
    398         String title = "Report an error";
    399         resourceImg.add(new SimpleAttributeModifier("title", title));
    400         resourceImg.add(new SimpleAttributeModifier("alt", title));
     397        // Image resourceImg = new Image("feedbackImage", FEEDBACK_IMAGE.getResource());
     398        // String title = "Report an error";
     399        // resourceImg.add(new SimpleAttributeModifier("title", title));
     400        // resourceImg.add(new SimpleAttributeModifier("alt", title));
    401401        String href = getHref(feedbackfromURL+thisURL);
    402402        String name = feedbackfromURL+thisURL;
    403         ExternalLink link = new ExternalLink("feedbackLink", href);
    404         link.add(resourceImg);
    405         add(new Label("feedbackLabel", "Found an error?"));
     403        ExternalLink link = new ExternalLink("feedbackLink", href, "found an error?");
     404        // link.add(resourceImg);
     405        // add(new Label("feedbackLabel", "Found an error?"));
    406406        add(link);
    407407    }
  • vlo/trunk/vlo_web_app/src/main/webapp/css/clarin-d.css

    r2979 r2988  
    1212    display: block;
    1313}
     14
     15/* banner definitions */
     16
     17/* picture on the left */
     18#topleft{
     19    position: absolute;
     20    left:0px;
     21}
     22
     23/* picture on the right */
     24#topright{
     25    position: absolute;
     26    left:497px;
     27}
     28
     29/* extend the banner to the right, take color from the right side of the png */
    1430.top{
    15     background-color: #d4deef;
     31    background-color: #88a1b9;
    1632    width: 100%;
    1733    height: 176px;
    1834    border: none;
    1935}
    20 #topleft{
    21     position: absolute;
    22     left:0px;
    23 }
    24 #topright{
    25     position: absolute;
    26     left:497px;
    27 }
     36
     37/* end banner definitions */
     38
     39/* facet matrix related definitions */
     40
    2841.opening .matrix{
    2942    border:0px;
    30     width: 66%;
    31 }
    32 
    33 .opening .resulttable{
    34     width: 33%;
    35     margin-left: 11px;
    36 }
    37 .opening .resulttable .headers{
    38     background-color: #6b824a;
    39 }
    40 
    41 .resulttable tbody{
    42     background-color:#BCCEE8;
     43    width: 54%;
    4344}
    4445
     
    5556    padding: 0;
    5657}
     58
     59/* end facet matrix related definitions */
     60
     61/* definitions for result table on search page */
     62
     63.opening .resulttable{
     64    width: 45%; /* the facet matrix will take 54 % */
     65
     66}
     67/* for the table header, use the red from the banner */
     68.opening .resulttable .headers{
     69    background-color: #801418;
     70    text-align: center;
     71    opacity:0.8;
     72    color:#FFFFFF;
     73}
     74
     75.resulttable tbody tr.even {
     76    background-color: #e7ebf0; /* color of background in odd table position */
     77}
     78
     79.resulttable tbody tr.odd {
     80    background-color: #ffffff; /* color of background in odd table position */
     81    color: #000000;
     82    opacity: 1.0
     83}
     84
     85/* for the table header, take the red from the banner */
     86.headers{
     87    background-color: #801418;
     88    opacity:0.8;
     89    text-align: left; /* changed this myself */
     90}
     91/* end definitions for result table on search page */
     92
     93/* facet box related definitions */
    5794.facetbox {
    5895    font-size: 14px;
    5996    padding: 2px 5px;
    6097}
     98
     99/* end facet box related definitions */
     100
     101/* search box related definitions */
     102
     103/* take color from the right side of the banner */
    61104.middlegame .search {
    62     background-color: #BCCEE8;
     105    background-color: #88a1b9;
    63106    padding-top: 11px;
    64107    padding-bottom: 11px;
    65 }
    66 
     108    opacity: 0.9
     109}
    67110.middlegame .searchmodule {
    68111    margin-left:20%;
    69112    display:inline
    70113}
    71 
    72114.middlegame .homeLink {
    73115    margin-left: 11px;
    74116    display:inline
    75117}
    76 
     118/* end search box related definitions */
     119
     120/* facet box header, continue the banner and search box color */
    77121.facet_facetOrigin .facetbox {
    78     background-color: #2E6B99;
     122    background-color: #88a1b9;
    79123    color:#FFFFFF;
    80124    padding: 3px 5px;
     125    opacity: 0.9
    81126}
    82127.facet {
     
    86131}
    87132.facet_facetOrigin .valuebox {
    88     background-color: #BCCEE8;
     133    background-color: #e7ebf0; /* facet box background */
    89134    padding: 5px;
    90135}
    91136.value {
    92     color: #4040ff;
     137    color: #4040ff; 
    93138}
    94139.value.sel {
    95     color: #FFFFFF;
     140    color: #e7ebf0;
    96141}
    97142.barlink{
    98     color: #BCCEE8;
    99 }
    100 .headers{
    101     background-color: #2E6B99;
    102     color:#FFFFFF;
    103 }
     143    color: #801418; /* when the value in the bar turns into a link was BCCEE8 */
     144}
     145
     146/* definitions for result table on results page */
    104147
    105148.endgame div{
     
    108151    padding: 0;
    109152}
     153.endgame .headers{
     154    text-align: left;
     155    color:#FFFFFF;
     156}
     157
     158.endgame .headers .attribute{
     159    background-color: #801418;   
     160    opacity: 1.0;
     161}
     162
     163.endgame .headers .attributeValue{
     164    background-color: #801418;   
     165}
     166
    110167.endgame .resultAttributes{
    111168    margin: 0px;
    112169    padding-left: 5px;
    113     border: none;
    114 }
    115 
    116 .endgame .headers{
    117     text-align: left;
    118 }
     170    border: none;}
     171
    119172.endgame .attribute {
    120173    font-weight: bold;
    121     background-color: #BCCEE8;
     174    background-color: #88a1b9;
     175    opacity: 0.7;
    122176    text-align: right;
    123177    padding-right: 8px;
     
    125179
    126180.endgame .attributeValue{
     181    background-color: #e7ebf0;
    127182    padding-left: 8px;
    128183}
    129184
    130 .endgame .headers .attribute{
    131     background-color: #2E6B99;   
    132 }
     185/* end definitions for result table on results page */
     186
     187
     188/* not sure what this is for */
    133189.endgame .attributesTbody {
    134190    vertical-align: top;
    135191    background-color:#d4deef;
    136192}
     193
     194/* not sure where this is for*/
    137195.anchorpanel{
    138196    padding:5px;
    139197    margin-top: 20px;
    140     background-color: #2E6B99;
     198    background-color: #801418;
    141199    color: #FFFFFF;
     200    opacity: 0.9
    142201}
    143202.alphaNavigation{
     
    190249}
    191250
    192 .resulttable tbody tr.odd {
    193     background-color: #CEDCEF;
    194 }
    195251
    196252div.wicket-aa {background-color:white;
  • vlo/trunk/vlo_web_app/src/test/java/eu/clarin/cmdi/vlo/pages/ResourceLinkPanelTest.java

    r2949 r2988  
    55import eu.clarin.cmdi.vlo.config.VloConfig;
    66import org.apache.wicket.util.tester.WicketTester;
     7import org.junit.Assert;
    78import org.junit.Before;
    8 import org.junit.Assert;
    99import org.junit.Test;
    1010
     
    3333        ResourceLinkPanel totest = new ResourceLinkPanel("a", FacetConstants.RESOURCE_TYPE_AUDIO, "a");
    3434        String uit = totest.getNameFromLink(_SAME_STRING);
    35         // Assert.assertTrue("Returns the same string if it does not start with the handle-prefix",uit.equals(_SAME_STRING));
     35        Assert.assertTrue("Returns the same string if it does not start with the handle-prefix",uit.equals(_SAME_STRING));
    3636
    3737        uit = totest.getNameFromLink(_RESOLVE_STRING);
     38        // from at least 29.05.2013 this was not working
    3839        // Assert.assertTrue("Returns the resolved url of the handle pid", uit.equals(_RESOLVE_OUT));
    3940    }
Note: See TracChangeset for help on using the changeset viewer.