Changeset 8576


Ignore:
Timestamp:
Jan 10, 2011, 1:57:40 PM (13 years ago)
Author:
cljosse
Message:

[gally_cuise] update theme

Location:
extensions/gally/gally-cuise
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/gally/gally-cuise/conf/default.conf

    r7459 r8576  
    11# ------------------------------------------------------------------------------
    2 # GRUM:DARK-II
     2# GRUM:CUISE
    33# Theme for Piwigo
    44# ------------------------------------------------------------------------------
     
    99# << May the Little SpaceFrog be with you >>
    1010# ------------------------------------------------------------------------------
    11 # Grum dark II for themes "Gally"
     11# Cuise for themes "Gally"
    1212#
    1313# see the gally-default/release_notes.txt file for more informations
     
    3535#     works well with FF2, FF3, Opera, Safari
    3636imageAutoScroll = "yes"
     37
     38# -- 1.3.1 --
     39# the 'imageSimulateHighRes' option can take theses values :
     40#   "yes" => if there is no high res file and if the image need scroll, the
     41#            template simulate an high res image managment
     42#   "no"  => don't simulate high res image
     43imageSimulateHighRes = "no"
    3744
    3845# The 'imageCenterMode' option can take theses values :
     
    106113# The 'animateDelay' option can take any positive integer value
    107114# This option define the duration (in milliseconds) of effects
    108 animateDelay= 250
     115animateDelay=250
    109116
    110117# The 'marginContainer' option can take any positive integer value
  • extensions/gally/gally-cuise/css/theme.css

    r7498 r8576  
    33  Theme for Piwigo
    44  ------------------------------------------------------------------------------
    5   file: gally-cuise/theme.css
    6   file version: 1.0
    7   date: 2008-11-11
     5  file: gally/cuise/theme.css
     6  file version: 1.2.0
    87  ------------------------------------------------------------------------------
    98  author: grum modified cljosse
     
    208207
    209208/* menubar_categories.tpl */
    210 #icon_start_filter { float:right,right:100px;
     209#icon_start_filter {
    211210  background:url(./../icon/start_filter.png);
    212211}
     
    523522  border-radius: 8px; /* round corners with CSS3 compliant browsers */
    524523  background-color:#808080;
    525  
     524  border:none;
    526525}
    527526
     
    807806
    808807#navThumbNext, #navThumbPrev {
    809       top:20%;
    810     height:80%;
     808  top:265px;
    811809 
    812810}
    813811
    814 #navThumbPrevContainer, #navThumbNextContainer {
    815    vertical-align:middle; top:30%;
    816    height:30%;
     812#navThumbPrevContainer, #navThumbNextContainer {
     813  height:200px;
    817814}
    818815
     
    12901287
    12911288div ul.thumbnails SPAN.wrap2:hover {
     1289 
     1290}
     1291
     1292#navThumbPrev, #navThumbPrev{
    12921293   
    1293 }
    1294 
    1295 
     1294
     1295}
    12961296 
  • extensions/gally/gally-cuise/js/crossbrowser.js

    r7459 r8576  
    6666
    6767                   var mode = document.documentMode || 0;
    68                   if (obj.currentStyle.position!="absolute"){
     68                  if (getStyles(obj).position!="absolute"){
    6969
    7070                    init_x0=init_x - (0.5*strokeWeight) ;
     
    217217    var limit = 100, i = 0;
    218218    var el = Obj; //(this) 
    219            style= el.currentStyle ;
     219           style= getStyles(el); 
     220    strokeWeight = Get_stokeWeight( style.borderWidth);
     221    strokeStyle  = Get_style( style.borderStyle);
     222    strokeColor  = Get_Color( style.borderColor);
     223
    220224         zindex = 3;
    221225         var El_src = el.element;
    222226
    223          while ((typeof (El_src) != 'undefined') && (El_src.currentStyle.position != 'relative') && (El_src.tagName != 'BODY')) {
     227         while ((typeof (El_src) != 'undefined') && ( getStyles(El_src).position != 'relative') && (El_src.tagName != 'BODY')) {
    224228             El_src = El_src.parentElement;
    225229             
     
    230234       
    231235
    232          var el_zindex = parseInt(el.currentStyle.zIndex);
     236         var el_zindex = parseInt(getStyles(el).zIndex);
    233237         if (isNaN(el_zindex)) { el_zindex = 3; }
    234238         var m = el.children;
     
    244248
    245249   
    246          switch(Obj.currentStyle.borderWidth)
     250         switch(getStyles(Obj).borderWidth)
    247251         {
    248252         case 'solid':
    249253            break;
    250254         default:
    251          strokeWeight=parseInt(Obj.currentStyle.borderWidth);
     255         strokeWeight=parseInt(getStyles(Obj).borderWidth);
    252256             break;
    253257         }
    254258           
    255          switch(Obj.currentStyle.borderStyle)
     259         switch(getStyles(Obj).borderStyle)
    256260         {
    257261         case 'solid':
    258          strokeStyle=Obj.currentStyle.borderStyle;
     262         strokeStyle=getStyles(Obj).borderStyle;
    259263            break;
    260264        case 'double':
    261         strokeStyle=Obj.currentStyle.borderStyle;
     265        strokeStyle=getStyles(Obj).borderStyle;
    262266            break;
    263267
    264268         default:
    265          strokeStyle=Obj.currentStyle.borderStyle;
     269         strokeStyle=getStyles(Obj).borderStyle;
    266270
    267271             break;
     
    282286         }
    283287         //==================================
    284          var fillColor = translateColor(Obj.currentStyle.backgroundColor);
    285          var strokeColor =  translateColor(Obj.currentStyle.borderColor);
     288         var fillColor = translateColor(getStyles(Obj).backgroundColor);
     289         var strokeColor =  translateColor(getStyles(Obj).borderColor);
    286290 
    287291
     
    296300           if (isNaN(Top)) Top=0 ;
    297301   //=================================================================
    298            s = Obj.currentStyle;
     302           s = getStyles(Obj);
    299303
    300304         if (typeof s.transform != "undefined") {
     
    312316
    313317
    314          alpha = Obj.currentStyle['opacity'] || 1;
    315 
    316 
    317          var fillSrc = Obj.currentStyle.backgroundImage.replace(/^url\("(.+)"\)$/, '$1');
    318 
    319          if (fillSrc) var filltype = (Obj.currentStyle['type']) || "tile";
    320          else var filltype = (Obj.currentStyle['type']) || "gradientRadial";
     318         alpha = getStyles(Obj)['opacity'] || 1;
     319
     320
     321         var fillSrc = getStyles(Obj).backgroundImage.replace(/^url\("(.+)"\)$/, '$1');
     322
     323         if (fillSrc) var filltype = (getStyles(Obj)['type']) || "tile";
     324         else var filltype = (getStyles(Obj)['type']) || "gradientRadial";
    321325  /*
    322326         var fillopacity = alpha;
     
    423427
    424428         /*===================================================================================*/
    425          var text_shadow = Obj.currentStyle['text-shadow'];
    426 
    427          var box_shadow = Obj.currentStyle['-moz-box-shadow'] ||
    428                    Obj.currentStyle['box-shadow'] ||
    429                    Obj.currentStyle['-webkit-box-shadow'] ||
    430                    Obj.currentStyle['-khtml-box-shadow'];
     429         var text_shadow = getStyles(Obj)['text-shadow'];
     430
     431         var box_shadow = getStyles(Obj)['-moz-box-shadow'] ||
     432                   getStyles(Obj)['box-shadow'] ||
     433                   getStyles(Obj)['-webkit-box-shadow'] ||
     434                   getStyles(Obj)['-khtml-box-shadow'];
    431435
    432436
     
    520524         if (isIE6 && (strokeWeight > 0)) {
    521525             Obj.style.borderStyle = 'none';
    522              Obj.style.paddingTop = parseInt(Obj.currentStyle.paddingTop || 0) + strokeWeight;
    523              Obj.style.paddingBottom = parseInt(Obj.currentStyle.paddingBottom || 0) + strokeWeight;
     526             Obj.style.paddingTop = parseInt(getStyles(Obj).paddingTop || 0) + strokeWeight;
     527             Obj.style.paddingBottom = parseInt(getStyles(Obj).paddingBottom || 0) + strokeWeight;
    524528         }
    525529
     
    563567
    564568         var h0 = 0;
    565          var strokeWeight = parseInt(obj.currentStyle.borderWidth);
     569         var strokeWeight = parseInt(getStyles(obj).borderWidth);
    566570         if (isNaN(strokeWeight)) { strokeWeight = 0; }
    567571
     
    896900            if (!jQuery.browser.msie) return;
    897901
    898     s= a.currentStyle;
     902    s= getStyles(a);
    899903           var moz = s['-moz-border-radius'] !== undefined   ;
    900904            var webkit = s['-webkit-border-radius'] !== undefined;
     
    941945 jQuery(':Radius');
    942946
    943      
     947
    944948});
     949
     950
     951//====================================================================
     952function Get_Tableau(Val_src) {
     953    Val_src = removeExtraSpace(Val_src)
     954
     955    var tableau = Val_src.split(" ");
     956    tableau = Val_src + " " + Val_src + " " + tableau[0] + " " + tableau[0];
     957
     958    tableau = tableau.split(" ");
     959
     960    return { Top: tableau[0], Right: tableau[1], Bottom: tableau[2], Left: tableau[3] };
     961}
     962//============================================================
     963function Get_radius(obj) {
     964    /*
     965    1 La valeur spécifiée est appliquée aux quatre coins.
     966    2 La première valeur est appliquée aux coins supérieur gauche et inférieur droit, et la seconde, aux coins supérieur droit et inférieur gauche 
     967    3 La première valeur est appliquée au coin supérieur gauche, la deuxième aux coins supérieur droit et inférieur gauche, et la troisième, au coin inférieur droit 
     968    4 Les angles supérieur gauche, supérieur droit, inférieur droit et inférieur gauche sont respectivement définis 
     969    */
     970
     971    var m1 = "border-radius,-o-border-radius,-moz-border-radius,-webkit-border-radius,star";
     972    m1 += ",borderRadius,OBorderRadius,MozBorderRadius,WebkitBorderRadius,star";
     973
     974    $e = jQuery(obj);
     975    m1 = m1.split(",");
     976    s = obj.currentStyle;
     977    // s = obj.style.cssText.split(";");
     978
     979    Attribut = false;
     980    type = "";
     981    for (i in m1)
     982        if (s[m1[i]] != undefined) {
     983            Attribut = true;
     984            radius = s[m1[i]];
     985            type = m1[i];
     986            break;
     987        }
     988    if (typeof radius == "undefined") { radius = "0" }
     989    var reg = new RegExp("\ \ ", "g");
     990    nr = radius;
     991    while (radius.match("\/")) {
     992        radius = radius.replace("\/", " ");
     993    }
     994
     995    while (radius.match("\ \ ")) {
     996        radius = radius.replace(reg, " ");
     997    }
     998
     999    if (type.match("star")) {
     1000        var radius = (radius + " " + 1)
     1001        var tableau = radius.split(" ");
     1002        return { r: tableau[0],
     1003            type: type
     1004        }
     1005    }
     1006
     1007
     1008    v1 = Get_Tableau(radius);
     1009
     1010
     1011
     1012    top_left = parseInt(s['border-top-left-radius'] || v1.Top);
     1013    top_right = parseInt(s['border-top-right-radius'] || v1.Right);
     1014    bottom_right = parseInt(s['border-bottom-right-radius'] || v1.Bottom);
     1015    bottom_left = parseInt(s['border-bottom-left-radius'] || v1.Left);
     1016
     1017
     1018
     1019    type = (nr.match("\/")) ? "oval" : (parseInt(v1.Left) == 0) ? "rect" : "shape";
     1020
     1021    return { r: v1.Left,
     1022        top_left: top_left,
     1023        top_right: top_right,
     1024        bottom_right: bottom_right,
     1025        bottom_left: bottom_left,
     1026        type: type
     1027    };
     1028
     1029}
     1030//=======================================================================================
     1031/*
     1032Single (default)
     1033ThinThin
     1034ThinThick
     1035ThickThin
     1036ThickBetweenThin
     1037*/
     1038function Get_style(borderStyle_src) {
     1039
     1040    v1 = Get_Tableau(borderStyle_src);
     1041
     1042    for (i1 in v1) {
     1043        borderStyle = v1[i1];
     1044
     1045
     1046        switch (borderStyle) {
     1047            case 'solid':
     1048                strokeStyle[i1] = "Single";
     1049                break;
     1050            case 'double':
     1051                strokeStyle[i1] = "thinThin";
     1052                break;
     1053            case 'none':
     1054                strokeStyle[i1] = "Single";
     1055                stroked = false
     1056                break;
     1057            default:
     1058                strokeStyle[i1] = "Single";
     1059
     1060                break;
     1061        }
     1062
     1063    }
     1064    return strokeStyle;
     1065}
     1066
     1067//=============================================================
     1068function Get_Color(Color_src) {
     1069
     1070    v1 = Get_Tableau(Color_src);
     1071    for (i1 in v1) {
     1072        strokeColor[i1] = (translateColor(v1[i1]) == "transparent") ? "none" : translateColor(v1[i1]);
     1073
     1074    }
     1075
     1076    return strokeColor;
     1077}
     1078
     1079//=============================================================
     1080function Get_stokeWeight(Weight_src) {
     1081
     1082    v1 = Get_Tableau(Weight_src);
     1083    stroked = false;
     1084    for (i1 in v1) {
     1085        Weight = v1[i1];
     1086        p1 = Weight.match("%")
     1087
     1088        switch (Weight) {
     1089            case p1:
     1090                strokeWeight[i1] = 10;
     1091                break;
     1092            case 'thin':
     1093                strokeWeight[i1] = 0.5;
     1094                break;
     1095            case 'medium':
     1096                strokeWeight[i1] = 0.75;
     1097                break;
     1098            case 'thick':
     1099                strokeWeight[i1] = 2;
     1100                break;
     1101            case 'inherit':
     1102                if (Obj.parentElement)
     1103                    strokeWeight[i1] = Get_stokeWeight(Obj.parentElement.currentStyle.borderWidth);
     1104                else
     1105                    strokeWeight[i1] = 0;
     1106
     1107                break;
     1108
     1109            default:
     1110
     1111                strokeWeight[i1] = Weight;
     1112                break;
     1113        }
     1114        strokeWeight[i1] = parseInt(strokeWeight[i1]);
     1115        if (isNaN(strokeWeight[i1])) {
     1116            strokeWeight[i1] = 0;
     1117        }
     1118
     1119        stroked = (strokeWeight[i1] > 0) ? true : stroked;
     1120    }
     1121    return strokeWeight;
     1122
     1123}
     1124
     1125// Récupérer la valeur d'une propriété CSS d'un élément id
     1126function getStyle(elt, pro) {
     1127    var element = document.getElementById(elt);
     1128    if (window.getComputedStyle) // Mozilla Firefox & cie
     1129    {
     1130        var propriete = window.getComputedStyle(element, null).getPropertyValue(pro);
     1131    }
     1132    else if (element.currentStyle) // Microsoft Internet Explorer
     1133    {
     1134        // Formatage (IE) de la propriété CSS
     1135        while (pro.indexOf('-') != -1) {
     1136            var lettresuivtiret = pro.charAt(pro.indexOf('-') + 1);
     1137            pro = pro.replace(/-\S{1}/, lettresuivtiret.toUpperCase());
     1138        }
     1139        var propriete = eval('element.currentStyle.' + pro);
     1140    }
     1141    return propriete;
     1142}
     1143// Récupérer la valeur CSS
     1144function getStyles(elt) {
     1145    var element = elt;
     1146    if (window.getComputedStyle) // Mozilla Firefox & cie
     1147    {
     1148        var propriete = window.getComputedStyle(element, null);
     1149    }
     1150    else if (element.currentStyle) // Microsoft Internet Explorer
     1151    {
     1152
     1153        var propriete = element.currentStyle;
     1154    }
     1155    return propriete;
     1156}
Note: See TracChangeset for help on using the changeset viewer.