Changeset 205 in t29-www


Ignore:
Timestamp:
Oct 17, 2010, 7:15:29 PM (8 years ago)
Author:
sven
Message:
  • Translation system: CSS nicht mehr staendig laden (einfacheren Button eingefuehrt, CSS kann jetzt automatisch geladen werden)
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • en/dev/translation/editor.css

    r191 r205  
    109109        top: 0;
    110110        width: 0;
     111        display: none;
    111112}
    112113
     
    124125body .tr-disabled { display: block; }
    125126
     127/*
    126128#sidebar-tr .tr-disabled h3 { margin: 0; font-size: 100%; }
    127129#sidebar-tr .tr-disabled p {    margin: 5px 0; font-size: 90%; }
    128130#sidebar-tr .tr-disabled { color: #444;}
    129131#sidebar-tr .tr-disabled a { opacity: .8; }
     132*/
    130133
    131134#sidebar-tr .tr-enabled  h3 {
  • en/dev/translation/editor.js

    r191 r205  
    4343
    4444// helper: foobar.click(t29.tr.call(anything, value)); is shorthand for
    45 //             """.call(function(){ t29.tr.anything(value); });
     45//         foobar.call(function(){ t29.tr.anything(value); });
    4646t29.tr.call = function(f, v){ return function(){ t29.tr[f](v);} };
    4747t29.tr.arrow = function() {
    48         // update the nice arrow in the sidebar =)
    49         t29.tr.sidebar.find(".arrow").css({ "border-bottom-width": (a=Math.floor(t29.tr.sidebar.outerHeight()/2-1)),
    50                 "border-top-width": a });
     48        // update the nice arrow in the sidebar =) (some timeout for slow startups)
     49        setTimeout(function(){
     50                t29.tr.sidebar.find(".arrow").css({ "border-bottom-width":
     51                        (a=Math.floor(t29.tr.sidebar.outerHeight()/2-1)),"border-top-width": a }).show();
     52        }, 1000);
    5153};
    5254
  • en/inc/head.inc.shtm

    r189 r205  
    2121    <script type="text/javascript" src="/shared/js/tools.js"></script>
    2222    <script type="text/javascript" src="/shared/js/common.js"></script>
    23         <!-- translation system -->
    24         <!--<script type="text/javascript" src="/en/dev/translation/editor.js"></script>-->
    25         <link rel="stylesheet" type="text/css" href="/en/dev/translation/editor.css" />
    26         <!-- translation end -->
    2723
    2824    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" />
  • en/inc/menu.inc.shtm

    r191 r205  
    8383                <p>This site was trans&shy;lated by nonprofessional voluntary project members.
    8484                   We'd love to get your help!</p>
    85                 <a class="button white medium" href="/en/dev/translation/editor.php?page=<!--#echo var="DOCUMENT_URI" -->"
     85                <a href="/en/dev/translation/editor.php?page=<!--#echo var="DOCUMENT_URI" -->"
    8686                        title="Edit sentences directly inline!">Improve this page</a>
    8787        </div>
  • shared/css/fresh.css

    r189 r205  
    8888    margin: 0; padding: 0;
    8989    color: #000; background-color: #fff;
    90     font-family: Verdana,Tahoma,Helvetica,Arial,sans-serif;
     90    font-family: Verdana,Dejavu Sans,Helvetica,Arial,sans-serif;
    9191    /* exiplit keine font-size */
    9292}
     
    516516        display: none; /* simple internationalisation for sidebar boxes */
    517517}
     518#sidebar-tr .tr-disabled h3 { margin: 0; font-size: 100%; }
     519#sidebar-tr .tr-disabled p {    margin: 5px 0; font-size: 90%; }
     520#sidebar-tr .tr-disabled { color: #444; }
     521
     522#sidebar-tr .tr-disabled a {
     523        /* simple button like link for translation system */
     524        display: inline-block;
     525        zoom: 1; /* IE7 inline-block hack */ *display: inline;
     526        text-decoration: none;
     527        margin: 0 2px;
     528        padding: 0.4em 1.5em 0.42em;
     529        text-align: center;
     530        text-shadow: 0 1px 1px #ccc;
     531        vertical-align: baseline;
     532        outline: none;
     533        font-size: 12px;
     534        background-color: #eee;
     535        border: 1px solid #b7b7b7;
     536        -moz-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
     537        -webkit-box-shadow: 0 1px 2px rgba(0,0,0,0.2);
     538        box-shadow: 0 1px 2px rgba(0,0,0,0.2);
     539        -moz-border-radius: 0.5em 0.5em 0.5em 0.5em;
     540        -webkit-border-radius: 0.5em 0.5em 0.5em 0.5em;
     541        border-radius: 0.5em 0.5em 0.5em 0.5em;
     542        color: #404040;
     543}
     544
     545#sidebar-tr .tr-disabled a:hover {
     546        background-color: white;
     547        color: black;
     548        -moz-box-shadow: 0 1px 2px #333;
     549        text-shadow: 0 1px 1px #efefef;
     550        background: url("../img/fresh.design/orangebg.menu.png");
     551}
    518552
    519553/* Hostinfo-System: */
     
    782816}
    783817
    784 #content h2 {
     818#content h2, #content h3 {
    785819    /* Seit 04.01.2010: Neues Ueberschriftenlayout. Soll aber nur
    786820       auf Homepage genutzt werden, nicht etwa auf dev. oder so...! */
    787821    font-weight: normal;
    788     font-family: Trebuchet Ms;
     822    font-family: Trebuchet Ms,Verdana,Dejavu Sans,Helvetica,Arial,sans-serif;
    789823    font-size: 180%;
    790824    border-bottom: 3px double #aaa;
     
    793827#content h3 {
    794828    /* Und das gleiche auch fuer Unter-Ueberschriften */
    795     font-weight: normal;
    796     font-family: Trebuchet Ms;
    797829    font-size: 140%;
    798     border-bottom: 3px double #aaa;
    799830}
    800831
  • shared/js/tools.js

    r191 r205  
    214214        $.getScript('/en/dev/translation/editor.js', function(){
    215215                t29.tr.set_enabled(true); if(success_function) success_function(); });
    216         // unfortunately the CSS is already needed for #sidebar-tr styles (button)
    217         /*$.get('/en/dev/translation/editor.css', function(css) {
     216        $.get('/en/dev/translation/editor.css', function(css) {
    218217                $("<style type='text/css'/>").html(css).appendTo("head");
    219         });*/
     218        });
    220219       
    221         // text, nur einaml und so. bessere bedingung - schauen ob schon mal gestartet wurde.
     220        // text, nur einmal und so. bessere bedingung - schauen ob schon mal gestartet wurde.
    222221        if(!$("#sidebar-tr .tr-enabled").length) {
    223                 //$('#sidebar-tr').wrapInner("<div class='tr-disabled'/>")
    224222                $("<div class='tr-enabled'/>").html(t29.tr.preloader.enabled_string).appendTo('#sidebar-tr');
    225223        }
Note: See TracChangeset for help on using the changeset viewer.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License