<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>css</title>
  <link rel="alternate" type="text/html" href="http://www.rudis.net/taxonomy/term/296"/>
  <link rel="self" type="application/atom+xml" href="http://www.rudis.net/taxonomy/term/296/atom/feed"/>
  <id>http://www.rudis.net/taxonomy/term/296/atom/feed</id>
  <updated>2007-08-28T19:29:29-04:00</updated>
  <entry>
    <title>RDN Optimized for iPhone</title>
    <link rel="alternate" type="text/html" href="http://www.rudis.net/node/190" />
    <id>http://www.rudis.net/node/190</id>
    <published>2007-08-28T19:26:34-04:00</published>
    <updated>2007-08-28T19:29:29-04:00</updated>
    <author>
      <name>bob</name>
    </author>
    <category term="2007" />
    <category term="Apple" />
    <category term="css" />
    <category term="iphone" />
    <category term="Site Info" />
    <summary type="html"><![CDATA[<p>Found some time to optimize <a href="http://www.rudis.net/">rudis dot net</a> for the iPhone. I created a custom <code>iPhone.css</code> for Drupal's <a href="http://drupal.org/project/itheme">itheme</a> that gets rid of everything but the content div (no search, navigation, background image[s] or sidebar). I'd prefer it if those bytes were never sent to the client, but hiding them works well. (I may re-add search once I can figure out a pleasant way to display the box)</p>
<p>The actual "code" is after the jump. It requires two additional lines in the <code>itheme</code> <code>page.tpl.php</code>:</p>
<pre>
&lt;meta name="viewport" content="width = 545" /&gt;
&lt;link media="only screen and (max-device-width: 480px)"
      href="/themes/itheme/iPhone.css"
      type="text/css" rel="stylesheet" /&gt;
</pre>    ]]></summary>
    <content type="html"><![CDATA[<p>Found some time to optimize <a href="http://www.rudis.net/">rudis dot net</a> for the iPhone. I created a custom <code>iPhone.css</code> for Drupal's <a href="http://drupal.org/project/itheme">itheme</a> that gets rid of everything but the content div (no search, navigation, background image[s] or sidebar). I'd prefer it if those bytes were never sent to the client, but hiding them works well. (I may re-add search once I can figure out a pleasant way to display the box)</p>
<p>The actual "code" is after the jump. It requires two additional lines in the <code>itheme</code> <code>page.tpl.php</code>:</p>
<pre>
&lt;meta name="viewport" content="width = 545" /&gt;
&lt;link media="only screen and (max-device-width: 480px)"
      href="/themes/itheme/iPhone.css"
      type="text/css" rel="stylesheet" /&gt;
</pre><p>
&lt;!--break--><br />
<hr noshade size="1" />(code for <code>iPhone.css</code>)</p>
<pre style="color:#333333">
#page {
        background: #42afdc;
}
body {
        background: #42afdc;
        font: 75%/170% Verdana, Arial, Helvetica, sans-serif;
        padding: 0px;
        margin: 0px;
        color: #333333;
}
#search { display:none }
#search .container-inline { display:none }
#search-theme-form { display:none }
#sidebar { display:none }
#sidebar .dbx-group, 
   #sidebar .dbx-box,
       #sidebar .dbx-handle { display:none }
#wrapper {
   margin: 0px 0px 0px 10px;
   width: 545px
}
#content {
        padding: 25px 0px 15px 5px;
        width: 495px;
        background: #ffffff;
        clear: both;
        overflow: hidden;
}

#content p {
        line-height: 115%;
}
#nav { display:none }
</pre>    ]]></content>
  </entry>
</feed>
