Changeset 15000


Ignore:
Timestamp:
03/02/10 16:31:41 (2 years ago)
Author:
sam
Message:

stylage matrix suite

Location:
trunk/Xul_Core/content/scenariCore/widgets/matrix
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Xul_Core/content/scenariCore/widgets/matrix/matrix.xbl.css

    r14998 r15000  
    6969 
    7070hbox[anonid=header]{ 
    71         min-height:25px; 
     71        min-height:20px; 
    7272} 
    7373hbox[anonid=tabsContainer]:empty{ 
     
    105105        border-bottom: 1px solid ThreeDShadow; 
    106106        border-right: 1px solid ThreeDShadow; 
    107         border-left: 1px solid transparent; 
    108         padding: 3px 4px 2px 4px; 
     107        border-left: 0px; 
     108        padding: 0px; 
    109109        max-width: -moz-min-content; 
    110110} 
    111111 
    112 slotTab:FIRST-CHILD, 
    113 slotTabContent:FIRST-CHILD{ 
    114         -moz-border-radius-topleft: 3px; 
     112slotTab.firstTab, 
     113slotTabContent.firstTab{ 
     114        -moz-border-radius-topleft: 4px; 
     115} 
     116 
     117slotTab.justBeforeSelected, 
     118slotTabContent.justBeforeSelected{ 
     119        border-right: 0px; 
    115120} 
    116121 
     
    120125        background: -moz-linear-gradient(top, threedhighlight,threedface); 
    121126        border-bottom: 1px solid threedface; 
    122 } 
     127        border-right: 1px solid ThreeDShadow; 
     128        border-left: 1px solid ThreeDShadow; 
     129        border-top: 1px solid ThreeDShadow; 
     130        -moz-border-radius-topleft: 4px; 
     131        -moz-border-radius-topright: 4px; 
     132        margin-top:-1px; 
     133} 
     134slotTab.selectedTab.firstTab, 
     135slotTabContent.selectedTab.firstTab{ 
     136        border-left: 0px; 
     137} 
     138 
    123139 
    124140slotTab:focus, 
     
    132148} 
    133149 
    134 slotTab .tabLabel, 
    135 slotTabContent .tabLabel{ 
     150slotTab .tabLabelTxt, 
     151slotTabContent .tabLabelTxt{ 
    136152        padding-left:0px; 
    137153        padding-right:0px; 
     
    143159        padding:0px; 
    144160} 
    145  
    146  
    147  
     161slotTab .tabLabel, 
     162slotTabContent .tabLabel{ 
     163        padding: 3px 4px 2px 4px; 
     164} 
     165slotTab .tabTools, 
     166slotTabContent .tabTools{ 
     167        visibility:hidden; 
     168        margin:0px; 
     169        padding: 0px; 
     170} 
     171slotTab:hover .tabTools, 
     172slotTabContent:hover .tabTools { 
     173        visibility:visible; 
     174} 
     175slotTab *[anonid=tabToolBar], 
     176slotTabContent *[anonid=tabToolBar]{ 
     177                padding: 1px 2px 1px 4px; 
     178        border-left: 1px solid ThreeDShadow; 
     179        border-bottom: 1px solid ThreeDShadow; 
     180        -moz-border-radius-bottomleft: 4px; 
     181        opacity:0.5; 
     182        background: -moz-linear-gradient(top, threedhighlight,threedface); 
     183} 
     184slotTab.selectedTab *[anonid=tabToolBar], 
     185slotTabContent.selectedTab *[anonid=tabToolBar]{ 
     186        -moz-border-radius-topright: 4px; 
     187} 
     188slotTab *[anonid=tabToolBar]:hover, 
     189slotTabContent *[anonid=tabToolBar]:hover{ 
     190        opacity:0.9; 
     191} 
    148192 
    149193arrowscrollbox[anonid=tabsBar]{ 
     
    163207        border: 1px solid ThreeDShadow; 
    164208} 
    165 toolbarbutton[anonid=maxBtn] toolbarbutton-icon{ 
    166         margin:left:3px; 
    167 } 
     209 
     210/* ======================== maxBtn ======================== */  
    168211toolbarbutton[anonid=maxBtn] { 
    169212                -moz-appearance: none; 
     
    175218        width: 20px; 
    176219} 
     220toolbarbutton[anonid=maxBtn] .toolbarbutton-icon{ 
     221        opacity:0.5; 
     222} 
    177223toolbarbutton[anonid=maxBtn]:hover { 
    178224        -moz-image-region: rect(0px, 32px, 16px, 16px); 
    179225} 
     226toolbarbutton[anonid=maxBtn]:hover .toolbarbutton-icon{ 
     227        opacity:1; 
     228} 
    180229toolbarbutton[anonid=maxBtn]:active { 
    181230        -moz-image-region: rect(0px, 48px, 16px, 32px); 
    182231} 
    183  
     232toolbarbutton[anonid=maxBtn]:active .toolbarbutton-icon{ 
     233        opacity:1; 
     234} 
    184235*[BlockMax=true] toolbarbutton[anonid=maxBtn] { 
    185236        list-style-image: url("chrome://scenariCore/content/widgets/matrix/img/bkNorm.png"); 
    186237} 
    187238 
     239/* ======================== closeBtn ======================== */  
    188240toolbarbutton[anonid=closeBtn] { 
    189241        list-style-image: url("chrome://scenariCore/content/widgets/matrix/img/close-button.png"); 
     
    194246        width: 16px; 
    195247        height: 16px; 
    196         visibility:hidden; 
    197 } 
    198 slotTab:hover toolbarbutton[anonid=closeBtn], 
    199 slotTabContent:hover toolbarbutton[anonid=closeBtn] { 
    200         visibility:visible; 
    201248} 
    202249.selectedTab>toolbarbutton[anonid=closeBtn]{ 
  • trunk/Xul_Core/content/scenariCore/widgets/matrix/matrix.xbl.xml

    r14998 r15000  
    620620                <content align="center"> 
    621621                        <children> 
    622                 <xul:image class="tabIcon" xbl:inherits="src=image"/> 
    623                         <xul:label class="tabLabel small-margin" xbl:inherits="value=label"/> 
    624                         <xul:spacer flex="1"/> 
     622                                        <xul:stack> 
     623                                                <xul:hbox class="tabLabel"> 
     624                                <xul:image class="tabLabelIco" xbl:inherits="src=image"/> 
     625                                        <xul:label class="tabLabelTxt small-margin" xbl:inherits="value=label"/> 
     626                                                </xul:hbox> 
     627                                                <xul:hbox class="tabTools" pack="end" align="top"> 
     628                                                        <xul:hbox anonid="tabToolBar"> 
     629                                                    <xul:toolbarbutton anonid="closeBtn" hidden="true" xbl:inherits="hidden=notClosable" oncommand="document.getBindingParent(this).closeTab();"/> 
     630                                                        </xul:hbox> 
     631                                                </xul:hbox> 
     632                                        </xul:stack> 
    625633            </children> 
    626             <xul:toolbarbutton anonid="closeBtn" hidden="true" xbl:inherits="hidden=notClosable" oncommand="document.getBindingParent(this).closeTab();"/> 
    627634                </content> 
    628635                <implementation> 
  • trunk/Xul_Core/content/scenariCore/widgets/matrix/slotContents.xbl.xml

    r14998 r15000  
    5252                                <xul:arrowscrollbox anonid="tabsBar" flex="1" orient="horizontal"> 
    5353                                        <xul:hbox anonid="tabsContainer" flex="1"/> 
    54                                         <xul:spacer anonid="tabsBarSpace" flex="100"/> 
     54                                        <xul:spacer anonid="tabsBarSpace" flex="10000"/> 
    5555                                </xul:arrowscrollbox> 
    5656                                <!-- TODO Historique 
     
    103103        <!-- Interne : onglets destinés pour le slotContents --> 
    104104        <binding id="slotTabContent" extends="chrome://scenariCore/content/widgets/matrix/matrix.xbl.xml#slotTab"> 
    105                 <content align="center" flex="1"> 
     105                <content align="top"> 
    106106                                <children> 
    107                 <xul:image class="tabIcon" xbl:inherits="src=image"/> 
    108                         <xul:label class="tabLabel small-margin" xbl:inherits="value=label" minwidth="20" crop="end"/> 
    109                         <xul:spacer flex="1" style="background-color: green;"/> 
     107                                        <xul:stack> 
     108                                                <xul:hbox class="tabLabel"> 
     109                                <xul:image class="tabLabelIco" xbl:inherits="src=image"/> 
     110                                        <xul:label class="tabLabelTxt small-margin" xbl:inherits="value=label" minwidth="20" crop="end"/> 
     111                                                </xul:hbox> 
     112                                                <xul:hbox class="tabTools" pack="end" align="top"> 
     113                                                        <xul:hbox anonid="tabToolBar"> 
     114                                                <xul:toolbarbutton anonid="closeBtn" oncommand="document.getBindingParent(this).closeTab();"/> 
     115                                                        </xul:hbox> 
     116                                                </xul:hbox> 
     117                                        </xul:stack> 
    110118                    </children> 
    111                 <xul:toolbarbutton anonid="closeBtn" oncommand="document.getBindingParent(this).closeTab();"/> 
    112119                </content> 
    113120        </binding> 
Note: See TracChangeset for help on using the changeset viewer.