http://www.mediawiki.org/wiki/Special:Code/MediaWiki/94232

Revision: 94232
Author:   devayon
Date:     2011-08-11 07:34:03 +0000 (Thu, 11 Aug 2011)
Log Message:
-----------
style fix (css class names)

Modified Paths:
--------------
    trunk/extensions/SemanticMediaWiki/skins/SMW_custom.css
    
trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialQueryCreator.php

Modified: trunk/extensions/SemanticMediaWiki/skins/SMW_custom.css
===================================================================
--- trunk/extensions/SemanticMediaWiki/skins/SMW_custom.css     2011-08-11 
07:22:52 UTC (rev 94231)
+++ trunk/extensions/SemanticMediaWiki/skins/SMW_custom.css     2011-08-11 
07:34:03 UTC (rev 94232)
@@ -131,22 +131,35 @@
 }
 
 /* ui buttons for QueryUI */
-.smw-sort input, .smw-sort a, .smw-sort select, .smw-sort checkbox{
+.smwsort input, .smwsort a, .smwsort select, .smwsort checkbox{
        margin-left: 5px;
        margin-bottom: 5px;
 }
+
 span.smw-remove a img{
        text-decoration: none;
        margin-right: 5px;
        vertical-align: -3px;
 }
 
-.smw-prop-dialog input, .smw-prop-dialog select{
+.smwpropdialog input, .smwpropdialog select{
        margin-top: 10px;
        margin-right: 5px;
+       margin-left: 5px;
 }
 
+.smwcatdialog input, .smwcatdialog select{
+       margin-top: 10px;
+       margin-right: 5px;
+       margin-left: 5px;
+}
 
+/* Query Creator */
+div.smwqcnavbar{
+       padding-bottom: 5px;
+       padding-top: 5px;
+}
+
 /* search, browse, RDF icons */
 
 span.smwsearchicon { /*FIXME: this was only used for Factbox docu, should be 
removed from code*/

Modified: 
trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialQueryCreator.php
===================================================================
--- 
trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialQueryCreator.php
  2011-08-11 07:22:52 UTC (rev 94231)
+++ 
trunk/extensions/SemanticMediaWiki/specials/AskSpecial/SMW_SpecialQueryCreator.php
  2011-08-11 07:34:03 UTC (rev 94232)
@@ -37,7 +37,7 @@
                $html_output = $this->makeResults( $p );
                if ( $this->uiCore->getQueryString() != "" ) {
                        if ( $this->usesNavigationBar() ) {
-                               $html_output .= Html::rawElement( 'div', array( 
'class' => 'smw-qc-navbar' ),
+                               $html_output .= Html::rawElement( 'div', array( 
'class' => 'smwqcnavbar' ),
                                                                        
$this->getNavigationBar ( $this->uiCore->getLimit(), 
$this->uiCore->getOffset(), $this->uiCore->hasFurtherResults() )
                                                                ); // ? can we 
preload offset and limit?
                        }
@@ -45,7 +45,7 @@
                        $html_output .= Html::rawElement( 'div', array( 'class' 
=> 'smw-qc-result' ), $this->uiCore->getHTMLResult() );
 
                        if ( $this->usesNavigationBar() ) {
-                               $html_output .= Html::rawElement( 'div', array( 
'class' => 'smw-qc-navbar' ),
+                               $html_output .= Html::rawElement( 'div', array( 
'class' => 'smwqcnavbar' ),
                                                                        
$this->getNavigationBar ( $this->uiCore->getLimit(), 
$this->uiCore->getOffset(), $this->uiCore->hasFurtherResults() )
                                                                ); // ? can we 
preload offset and limit?
                        }
@@ -297,7 +297,7 @@
                foreach ( $additional_POs as $key => $value ) {
                        if ( is_array( $property_values ) and array_key_exists( 
$key, $property_values ) ) {
                                // make a element for additional properties
-                               $result .= Html::openElement( 'div', array( 
'id' => "sort_div_$i", 'class' => 'smw-sort' ) );
+                               $result .= Html::openElement( 'div', array( 
'id' => "sort_div_$i", 'class' => 'smwsort' ) );
                                $result .= '<span class="smw-remove"><a 
href="javascript:removePOInstance(\'sort_div_' . $i . '\')"><img src="' . 
$smwgScriptPath . '/skins/images/close-button.png" alt="' . wfMsg( 
'smw_qui_delete' ) . '"></a></span>';
                                $result .= wfMsg( 'smw_qui_property' );
                                $result .= Html::input( 'property[' . $i . ']', 
$property_values[$key], 'text', array( 'size' => '35', 'id' => "property$i" ) ) 
. "\n";
@@ -322,7 +322,7 @@
                                $i++;
                        }
                        if ( is_array( $category_values ) and array_key_exists( 
$key, $category_values ) ) {
-                               $result .= Html::openElement( 'div', array( 
'id' => "sort_div_$i", 'class' => 'smw-sort' ) );
+                               $result .= Html::openElement( 'div', array( 
'id' => "sort_div_$i", 'class' => 'smwsort' ) );
                                $result .= '<span class="smw-remove"><a 
href="javascript:removePOInstance(\'sort_div_' . $i . '\')"><img src="' . 
$smwgScriptPath . '/skins/images/close-button.png" alt="' . wfMsg( 
'smw_qui_delete' ) . '"></a></span>' .
                                                        'Category (optional)' . 
// todo: i18n
                                                        Xml::input( 
"category[$i]", '20', $category_values[$key], array( 'id' => "category$i" ) ) . 
" " .
@@ -337,7 +337,7 @@
                // END: create form elements already submitted earlier via form
 
                // create hidden form elements to be cloned later
-               $hidden_property = Html::openElement( 'div', array( 'id' => 
'property_starter', 'class' => 'smw-sort', 'style' => 'display:none' ) ) .
+               $hidden_property = Html::openElement( 'div', array( 'id' => 
'property_starter', 'class' => 'smwsort', 'style' => 'display:none' ) ) .
                                        '<span class="smw-remove"><a><img 
src="' . $smwgScriptPath . '/skins/images/close-button.png" alt="' . wfMsg( 
'smw_qui_delete' ) . '"></a></span>' .
                                        wfMsg( 'smw_qui_property' ) .
                                        Xml::input( "property_num", '35' ) . " 
" .
@@ -350,7 +350,7 @@
                                        Xml::closeElement( 'div' );
                $hidden_property = json_encode( $hidden_property );
 
-               $hidden_category = Html::openElement( 'div', array( 'id' => 
'category_starter', 'class' => 'smw-sort', 'style' => 'display:none' ) ) .
+               $hidden_category = Html::openElement( 'div', array( 'id' => 
'category_starter', 'class' => 'smwsort', 'style' => 'display:none' ) ) .
                                        '<span class="smw-remove"><a><img 
src="' . $smwgScriptPath . '/skins/images/close-button.png" alt="' . wfMsg( 
'smw_qui_delete' ) . '"></a></span>' .
                                        'Category (optional)' . // todo: i18n
                                        Xml::input( "category_num", '20' ) . " 
" .
@@ -359,7 +359,7 @@
                                        Xml::closeElement( 'div' );
                $hidden_category = json_encode( $hidden_category );
 
-               $property_dialog_box = Xml::openElement( 'div', array( 'id' => 
'prop-dialog', 'title' => 'Property Options', 'class' => 'smw-prop-dialog' ) ) 
. // todo i18n
+               $property_dialog_box = Xml::openElement( 'div', array( 'id' => 
'prop-dialog', 'title' => 'Property Options', 'class' => 'smwpropdialog' ) ) . 
// todo i18n
                                        Xml::inputLabel( 'Property:', '', 
'd-property', 'd-property' ) . '<br/>' . // todo i18n
                                        Xml::inputLabel( 'Label:', '', 
'd-property-label', 'd-property-label' ) . '<br/>' . // todo i18n
                                        '<label for="d-format">Format:</label> 
' . Html::openElement( 'select', array( 'name' => 'd-format', 'id' => 
'd-format' ) ) . // todo i18n
@@ -370,7 +370,7 @@
                                        // Xml::inputLabel( 'Limit:', 
'd-property-limit', 'd-property-limit' ) . '<br/>' . // todo i18n
                                        '<input type="hidden" 
name="d-property-code" id="d-property-code">' .
                                        Xml::closeElement( 'div' );
-               $category_dialog_box = Xml::openElement( 'div', array( 'id' => 
'cat-dialog', 'title' => 'Category Options', 'class' => 'smw-cat-dialog' ) ) . 
// todo i18n
+               $category_dialog_box = Xml::openElement( 'div', array( 'id' => 
'cat-dialog', 'title' => 'Category Options', 'class' => 'smwcatdialog' ) ) . // 
todo i18n
                                        Xml::inputLabel( 'Category:', '', 
'd-category', 'd-category' ) . '<br/>' . // todo i18n
                                        Xml::inputLabel( 'Label:', '', 
'd-category-label', 'd-category-label' ) . '<br/>' . // todo i18n
                                        Xml::inputLabel( 'Yes:', '', 
'd-category-yes', 'd-category-yes' ) . '<br/>' . // todo i18n


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to