Changeset 1271

Show
Ignore:
Timestamp:
01/01/2009 02:37:34 PM (20 months ago)
Author:
DarTar
Message:

Preliminary implementation of JS-less system messages, as per Olivier's suggestion in http://wush.net/trac/wikka/ticket/353#comment:2. This patch attempts to unify the look of all system messages, but needs extensive testing as it may break the layout (it replaces previous occurrences of em.error and em.success and messages generated via the Redirect() method), refs #353 and #784

Location:
branches/1.1.6.6
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/1.1.6.6/css/wikka.css

    r1261 r1271  
    3333 
    3434.page { 
     35        position: relative; /* needed for the correct positioning of system messages */ 
    3536        color: #000; 
    3637        font-size: 13px; 
     
    467468} 
    468469 
    469 em.error { 
     470.error { 
     471        position: absolute; 
     472        top: 1.5em; 
     473        right: 1.5em; 
     474        max-width: 40%; 
     475        border: 2px solid #A33; 
     476        padding: .2em .4em; 
    470477        color: #A33;  
     478        background-color: #FEE; 
    471479        font-style: normal; 
    472480        font-weight: bold; 
    473         font-size: 95%; 
    474 } 
    475  
    476 em.success { 
     481        font-size: 90%; 
     482} 
     483 
     484.success { 
     485        position: absolute; 
     486        top: 1.5em; 
     487        right: 1.5em; 
     488        max-width: 40%; 
     489        border: 2px solid #3A3; 
     490        padding: .2em .4em; 
    477491        color: #3A3;  
     492        background-color: #EFE; 
    478493        font-style: normal; 
    479494        font-weight: bold; 
    480         font-size: 95%; 
     495        font-size: 90%; 
    481496} 
    482497 
  • branches/1.1.6.6/templates/header.php

    r1237 r1271  
    4343?> 
    4444</head> 
    45 <body <?php echo $message ? "onLoad=\"alert('".$message."');\" " : "" ?> > 
     45<body> 
     46<?php 
     47//display system messages 
     48if (isset($message) && strlen($message)>0) 
     49{ 
     50        echo '<div class="success">'.$message.'</div>'; 
     51} 
     52?> 
    4653<div class="header"> 
    4754        <h2><a id="homepage_link" href="<?php echo $this->href('', $this->config['root_page'], ''); ?>"><?php echo $this->config['wakka_name'];?></a> : <a href="<?php echo $this->href('backlinks', '', ''); ?>" title="Display a list of pages linking to <?php echo $this->tag ?>"><?php echo $this->GetPageTag(); ?></a></h2>