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

CSS problem in 'default' skin

5 Answers 58 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Marja
Top achievements
Rank 1
Marja asked on 14 May 2014, 10:28 AM
When an option in the panelbar is too long to fit on one line, it correctly wraps to a second line.

However, the CSS for the 'default' skin doesn't take that into account. It only highlights the 1st line. And since the text color is white, the text on the second line is not visible then (white on white).

This issue is not present in all color schemes. WebBlue for instance is just fine.

How can we fix this issue in the 'default' scheme?

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 14 May 2014, 11:06 AM
Hi Marja,

As a workaround please try the following CSS which works fine at fine at my end.

CSS:
<style type="text/css">
    .rpSelected
    {
        background-color: #DAF0FC !important;
        font-weight: bold !important;
    }
    .rpSelected:hover
    {
        background-color: #DDF7FF !important;
        font-weight: bold !important;
    }
    .rpSlide .rpItem:hover
    {
        background-color: #DFF5FF !important;
    }
    .rpSlide .rpLink:hover
    {
        background-image: none !important;
    }
    .rpSlide .rpOut:hover
    {
        background-image: none !important;
    }
</style>

Thanks,
Shinu.
0
Marja
Top achievements
Rank 1
answered on 14 May 2014, 11:13 AM
Thank you, but that color is wrong and it looks strange for currently selected item. The 1st line is then the original dark grey, and the 2nd line is light blue.
0
Shinu
Top achievements
Rank 2
answered on 15 May 2014, 04:31 AM
Hi Marja,

Please do the following modification in the above posted code to achieve your scenario.

CSS:
<style type="text/css">
    .rpSelected
    {
        background-color: Gray !important;
        font-weight: bold !important;
    }
    .rpSlide .rpLink:hover
    {
        background-image: none !important;
    }
    .rpSlide .rpOut:hover
    {
        background-image: none !important;
    }
</style>

Thanks,
Shinu.
0
Marja
Top achievements
Rank 1
answered on 15 May 2014, 10:23 AM
Hi Shinu,

Thanks, this is better but still not entirely correct.
When selected, second and subsequent level items keep their dark-gray background image.

I've tried adding "background-image: none !important;"  to ".rpSelected" but that doesn't help.

Do you have any further suggestions?
0
Shinu
Top achievements
Rank 2
answered on 16 May 2014, 05:22 AM
Hi Marja,

Please try the below CSS  code which works fine at my end.

CSS:
.RadPanelBar_Default .rpGroup a.rpLink, .RadPanelBar_Default .rpGroup a.rpLink .rpOut
{
    background-image: none !important;
}

Thanks,
Shinu.
Tags
PanelBar
Asked by
Marja
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Marja
Top achievements
Rank 1
Share this question
or