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

RADEditor and css media types

2 Answers 98 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Ivan
Top achievements
Rank 1
Ivan asked on 12 Jul 2012, 09:11 AM

Hi,

Is it allowed to include stylesheet classes inside @media and use them from Apply CSS Class Dropdown?

For example: 

@media screen {
  .test1 {
    background: red;
  }
  .test2 {
    background: blue;
  }
}
  .test3 {
    background: green;
  }
  .test4 {
    background: yellow;
  }

Why are there two different behaviors in Internet Explorer and Chrome/FireFox? Is it a bug?

Result in Internet Explorer: 

Apply CSS Class dropdown list has test1, test2, test3, test4 items. 

Result in FireFox and Chrome: 

Apply CSS Class dropdown list has only test3, test4 items. 

2 Answers, 1 is accepted

Sort by
0
Accepted
Rumen
Telerik team
answered on 17 Jul 2012, 08:24 AM
Hello,

Thank you for reporting this browser behavior.

I logged the issue in our PITS system and we will enhance the Apply Class dropdown in one of the upcoming versions of RadEditor. Here you can find the PITS Issue: Public URL. The improvement is a complex task and if you want to display the test1 and test2 classes in the dropdown you should declare them outside of the media rule.

We do appreciate your feedback and I updated your Telerik points.

All the best,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Ivan
Top achievements
Rank 1
answered on 18 Jul 2012, 12:25 PM
Thank you for the answer. 
Tags
Editor
Asked by
Ivan
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Ivan
Top achievements
Rank 1
Share this question
or