This is a migrated thread and some comments may be shown as answers.

[Solved] Skin migration mapping document/tool

2 Answers 113 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jason Maronge
Top achievements
Rank 1
Jason Maronge asked on 28 Jan 2008, 03:22 PM
Does anyone know if there is a document/tool for helping in the conversion of the skins to Prometheus?  CSS is not my strong point and it looks like the new skins are a lot more complicated than the old ones.  I am trying to do the combobox right now.  It would be very nice to have a document that maps the old css classes to the new ones.  Even better would be images with arrows comparing the 2 different controls. 

Thanks....

Jason

2 Answers, 1 is accepted

Sort by
0
Jason Maronge
Top achievements
Rank 1
answered on 28 Jan 2008, 03:26 PM
I thought that i would post the skin i was trying to convert.  it is pretty simple and standard, incase someone out there was bored and really good and fast at doing this.  :)

.ComboBoxDropDown_Custom  
{  
    border1px solid black;  
    background-colorwhite;  
}  
 
.ComboBoxImage_Custom  
{  
    vertical-align:middle;  
    border1px solid #7F9DB9;  
    border-leftnone;  
}  
 
.ComboBoxImageHover_Custom  
{  
    vertical-align:middle;  
    border1px solid #7F9DB9;  
    border-leftnone;  
}  
 
.ComboBoxInput_Custom  
{  
    border1px solid #7F9DB9;    
    background-colorwhite;  
    vertical-alignmiddle;  
    font-familyArialVerdana;  
    font-size11px;  
    font-weight:bold ;  
    color#585880;  
    padding-top2px;     
    padding-left3px;  
    height21px;  
    cursordefault;  
}  
 
.ComboBoxInputHover_Custom  
{  
    border1px solid #7F9DB9;    
    background-colorwhite;  
    vertical-alignmiddle;  
    font-familyArialVerdana;  
    font-size11px;  
    font-weight:bold ;  
    color#585880;  
    padding-top2px;  
    padding-left3px;  
    height21px;  
    cursordefault;  
}  
 
.ComboBoxItem_Custom  
{  
    font-familyArial;  
    font-size11px;   
    font-weight:bold ;  
    color#585880;  
    padding3px;  
    text-decorationnone;  
    text-alignleft;  
    _height:1%;  
}  
 
.ComboBoxItemHover_Custom  
{  
    font-familyArial;  
    font-weight:bold ;  
    font-size11px;   
    colorwhite;  
    text-decorationnone;  
    background-color#777777;   
    cursorpointer;  
    cursor: hand;  
    padding3px;  
    text-alignleft;  
    _height:1%;  
}  
 
.ComboBoxItemDisabled_Custom  
{  
    font-familyArial;  
    font-size11px;   
    colorgray;  
    cursor: no-drop;  
    padding3px;  
    text-decorationnone;  
    text-alignleft;  
}  
 
.ComboBoxLoadingMessage_Custom  
{  
    font-familyArial;  
    font-size11px;   
    padding2px;  
}  
 
.ComboBoxMoreResultsMessage_Custom  
{  
    font-familyArial;  
    font-size10px;   
    padding2px;  
    text-aligncenter;  
}  
 
 
.ComboBoxMoreResultsImage_Custom  
{  
    padding5px;  
    margin-top5px;  
}  
 
.ComboBoxMoreResultsBox_Custom  
{  
    background-color#EEEEE5;  
}  
 
 
.ComboBoxHeader_Custom  
{  
    font-size12px;  
    font-weightbold;  
    colorwhite;  
    background-color#666;  
}  
 

Jason
0
Accepted
Dimo
Telerik team
answered on 29 Jan 2008, 08:56 AM
Hello Jason,

I have to admit that currently we do not have a skin migration tutorial or tool for the controls which have changed their rendering recently, but this is a very reasonable idea and we embrace it.


As for the ComboBox, here is the CSS class map:

(Classic ComboBox   ->   Prometheus ComboBox)


.ComboBoxDropDown_Custom    ->    .RadComboBoxDropDown_Custom

.ComboBoxImage_Custom    ->    .RadComboBox_Custom .rcbArrowCell a

.ComboBoxImageHover_Custom    ->    .RadComboBox_Custom .rcbArrowCell a:hover

.ComboBoxInput_Custom    ->    .RadComboBox_Custom .rcbInputCell input

.ComboBoxItem_Custom    ->    .RadComboBoxDropDown_Custom .rcbItem

.ComboBoxItemHover_Custom    ->    .RadComboBoxDropDown_Custom .rcbHovered

.ComboBoxItemDisabled_Custom    ->    .RadComboBoxDropDown_Custom .rcbDisabled

.ComboBoxLoadingMessage_Custom    ->    .RadComboBoxDropDown_Custom .rcbLoading

.ComboBoxMoreResultsBox_Custom    ->    .RadComboBoxDropDown_Custom .rcbMoreResults

.ComboBoxMoreResultsMessage_Custom    ->    .RadComboBoxDropDown_Custom .rcbMoreResults span

.ComboBoxMoreResultsImage_Custom    ->    .RadComboBoxDropDown_Custom .rcbMoreResults a

.ComboBoxHeader_Custom    ->    .RadComboBoxDropDown_Custom .rcbHeader


Please note that the images in the old rendering have now been transfered to background images of link elements.


Greetings,
Dimo
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Jason Maronge
Top achievements
Rank 1
Answers by
Jason Maronge
Top achievements
Rank 1
Dimo
Telerik team
Share this question
or