Moved print inside base stylesheet using media rules. One less HTTP GET.

This commit is contained in:
Sarven Capadisli 2010-03-24 14:50:12 +01:00
parent a3da5b24c9
commit 647b3a1f6b
11 changed files with 174 additions and 7 deletions

View File

@ -198,8 +198,7 @@ class Action extends HTMLOutputter // lawsuit
if (Event::handle('StartShowStatusNetStyles', array($this)) &&
Event::handle('StartShowLaconicaStyles', array($this))) {
$this->cssLink('css/display.css',null,'screen, projection, tv');
$this->cssLink('css/print.css','base','print');
$this->cssLink('css/display.css',null, 'screen, projection, tv, print');
Event::handle('EndShowStatusNetStyles', array($this));
Event::handle('EndShowLaconicaStyles', array($this));
}

View File

@ -7,6 +7,7 @@
* @link http://status.net/
*/
@media screen, projection, tv {
* { margin:0; padding:0; }
img { display:block; border:0; }
a abbr { cursor: pointer; border-bottom:0; }
@ -1688,3 +1689,34 @@ width:auto;
#bookmarklet #wrap {
min-width:0;
}
}/*end of @media screen, projection, tv*/
@media print {
a:after { background-color:#FFFFFF; }
a:not([href^="#"]):after { content:" <"attr(href)"> "; }
img { border:none; }
p { orphans: 2; widows: 1; }
#site_nav_global_primary,
#site_nav_local_views,
#form_notice,
.pagination,
#site_nav_global_secondary,
.entity_actions,
.notice-options,
#aside_primary,
.form_subscription_edit .submit {
display:none;
}
.timestamp dt, .timestamp dd,
.device dt, .device dd {
display:inline;
}
.profiles li,
.notices li {
margin-bottom:18px;
}
}/*end of @media print*/

View File

@ -7,6 +7,7 @@
* @link http://status.net/
*/
@media screen, projection, tv {
* { margin:0; padding:0; }
img { display:block; border:0; }
a abbr { cursor: pointer; border-bottom:0; }
@ -1358,3 +1359,34 @@ display:none;
.guide {
clear:both;
}
}/*end of @media screen, projection, tv*/
@media print {
a:after { background-color:#FFFFFF; }
a:not([href^="#"]):after { content:" <"attr(href)"> "; }
img { border:none; }
p { orphans: 2; widows: 1; }
#site_nav_global_primary,
#site_nav_local_views,
#form_notice,
.pagination,
#site_nav_global_secondary,
.entity_actions,
.notice-options,
#aside_primary,
.form_subscription_edit .submit {
display:none;
}
.timestamp dt, .timestamp dd,
.device dt, .device dd {
display:inline;
}
.profiles li,
.notices li {
margin-bottom:18px;
}
}/*end of @media print*/

View File

@ -7,8 +7,9 @@
* @link http://status.net/
*/
@import url(base.css);
@import url(base.css) screen, projection, tv, print;
@media screen, projection, tv {
html {
background-color:#144A6E;
}

View File

@ -7,6 +7,7 @@
* @link http://status.net/
*/
@media screen, projection, tv {
* { margin:0; padding:0; }
img { display:block; border:0; }
a abbr { cursor: pointer; border-bottom:0; }
@ -2099,4 +2100,33 @@ border-left-color:#FFFFFF;
#footer {
background-color:#FFFFFF;
}
}/*end of @media screen, projection, tv*/
@media print {
a:after { background-color:#FFFFFF; }
a:not([href^="#"]):after { content:" <"attr(href)"> "; }
img { border:none; }
p { orphans: 2; widows: 1; }
#site_nav_global_primary,
#site_nav_local_views,
#form_notice,
.pagination,
#site_nav_global_secondary,
.entity_actions,
.notice-options,
#aside_primary,
.form_subscription_edit .submit {
display:none;
}
.timestamp dt, .timestamp dd,
.device dt, .device dd {
display:inline;
}
.profiles li,
.notices li {
margin-bottom:18px;
}
}/*end of @media print*/

View File

@ -7,8 +7,9 @@
* @link http://status.net/
*/
@import url(../../base/css/display.css);
@import url(../../base/css/display.css) screen, projection, tv, print;
@media screen, projection, tv {
body,
a:active {
background-color:#CEE1E9;
@ -516,3 +517,4 @@ background-position:90% 47%;
background-position:10% 47%;
}
}/*end of @media screen, projection, tv*/

View File

@ -7,6 +7,7 @@
* @link http://status.net/
*/
@media screen, projection, tv {
* { margin:0; padding:0; }
img { display:block; border:0; }
a abbr { cursor: pointer; border-bottom:0; }
@ -1137,3 +1138,34 @@ display:none;
.guide {
clear:both;
}
}/*end of @media screen, projection, tv*/
@media print {
a:after { background-color:#FFFFFF; }
a:not([href^="#"]):after { content:" <"attr(href)"> "; }
img { border:none; }
p { orphans: 2; widows: 1; }
#site_nav_global_primary,
#site_nav_local_views,
#form_notice,
.pagination,
#site_nav_global_secondary,
.entity_actions,
.notice-options,
#aside_primary,
.form_subscription_edit .submit {
display:none;
}
.timestamp dt, .timestamp dd,
.device dt, .device dd {
display:inline;
}
.profiles li,
.notices li {
margin-bottom:18px;
}
}/*end of @media print*/

View File

@ -7,8 +7,9 @@
* @link http://status.net/
*/
@import url(base.css);
@import url(base.css) screen, projection, tv, print;
@media screen, projection, tv {
html,
body,
a:active {
@ -234,3 +235,5 @@ background-position:10% 45%;
background-image:url(../../base/images/icons/twotone/green/arrow-right.gif);
background-position:90% 45%;
}
}/*end of @media screen, projection, tv*/

View File

@ -7,8 +7,9 @@
* @link http://status.net/
*/
@import url(../../base/css/display.css);
@import url(../../base/css/display.css) screen, projection, tv, print;
@media screen, projection, tv {
body,
a:active {
background-color:#F0F2F5;
@ -515,3 +516,4 @@ background-position:90% 47%;
background-position:10% 47%;
}
}/*end of @media screen, projection, tv*/

View File

@ -7,6 +7,7 @@
* @link http://status.net/
*/
@media screen, projection, tv {
* { margin:0; padding:0; }
img { display:block; border:0; }
a abbr { cursor: pointer; border-bottom:0; }
@ -1383,3 +1384,34 @@ display:none;
.guide {
clear:both;
}
}/*end of @media screen, projection, tv*/
@media print {
a:after { background-color:#FFFFFF; }
a:not([href^="#"]):after { content:" <"attr(href)"> "; }
img { border:none; }
p { orphans: 2; widows: 1; }
#site_nav_global_primary,
#site_nav_local_views,
#form_notice,
.pagination,
#site_nav_global_secondary,
.entity_actions,
.notice-options,
#aside_primary,
.form_subscription_edit .submit {
display:none;
}
.timestamp dt, .timestamp dd,
.device dt, .device dd {
display:inline;
}
.profiles li,
.notices li {
margin-bottom:18px;
}
}/*end of @media print*/

View File

@ -7,8 +7,9 @@
* @link http://status.net/
*/
@import url(base.css);
@import url(base.css) screen, projection, tv, print;
@media screen, projection, tv {
html {
background:url(../images/illustrations/illu_pigeons-01.png) no-repeat 0 100%;
}
@ -496,3 +497,4 @@ background-position:90% 47%;
background-position:10% 47%;
}
}/*end of @media screen, projection, tv*/