Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stylesheets can be with media parameter ?
#1
Mybb Team would to add new function in style editor when we adding new stylesheet ?
I mean about function ($stylesheets) in global.php

Like this:
$stylesheets .= "<link type=\"text/css\" rel=\"stylesheet\" href=\"{$mybb->settings['bburl']}/{$page_stylesheet}\" />\n";
I manually added some media in stylesheet.
$stylesheets .= "<link type=\"text/css\" media=\"screen\" rel=\"stylesheet\" href=\"{$mybb->settings['bburl']}/{$page_stylesheet}\" />\n";
It would be better if we adding new stylesheet with a some parameters.
This can help for multiple stylesheets for several screen resolution. Like mobile, or monitor and printer.
#2
You can use @media screen {...} in the stylesheets instead.
[Image: banner.png]
#3
Hmmm Yea...
So media="screen" { in example.css is same as in <link type="text/css" media="screen" rel="stylesheet" href="xxx" /> ?
#4
But all stylesheets will be loaded...

<link href="iphone4.css" rel="stylesheet" media="only screen and (-webkit-min-device-pixel-ratio: 2)" type="text/css" />
and

1
<link href="portrait.css" rel="stylesheet" media="all and (orientation:portrait)" />
 

1
<link href="landscape.css" rel="stylesheet" media="all and (orientation:landscape)" />
That would be better Smile


Forum Jump:


Users browsing this thread: 1 Guest(s)