<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dw="https://www.dreamwidth.org">
  <id>tag:dreamwidth.org,2009-04-07:17442</id>
  <title>Mat Bowles</title>
  <subtitle>Dreaming in Digital</subtitle>
  <author>
    <name>Mat Bowles</name>
  </author>
  <link rel="alternate" type="text/html" href="https://matgb.dreamwidth.org/"/>
  <link rel="self" type="text/xml" href="https://matgb.dreamwidth.org/data/atom"/>
  <updated>2010-11-29T02:07:25Z</updated>
  <dw:journal username="matgb" type="personal"/>
  <entry>
    <id>tag:dreamwidth.org,2009-04-07:17442:379483</id>
    <link rel="alternate" type="text/html" href="https://matgb.dreamwidth.org/379483.html"/>
    <link rel="self" type="text/xml" href="https://matgb.dreamwidth.org/data/atom/?itemid=379483"/>
    <title>Making blogs display better on mobile devices</title>
    <published>2010-11-28T22:03:47Z</published>
    <updated>2010-11-29T02:07:25Z</updated>
    <category term="css"/>
    <category term="dreamwidth: layout"/>
    <category term="style system"/>
    <dw:security>public</dw:security>
    <dw:reply-count>3</dw:reply-count>
    <content type="html">I'm trying to fix some issues with my and Jennie's layout for display on mobile devices, if anyone knows enough about either the DW style system or CSS media types to help, the question is over at &lt;span style='white-space: nowrap;'&gt;&lt;a href='https://style-system.dreamwidth.org/profile'&gt;&lt;img src='https://www.dreamwidth.org/img/silk/identity/community.png' alt='[community profile] ' width='16' height='16' style='vertical-align: text-bottom; border: 0; padding-right: 1px;' /&gt;&lt;/a&gt;&lt;a href='https://style-system.dreamwidth.org/'&gt;&lt;b&gt;style_system&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://style-system.dreamwidth.org/36726.html" title="Using @media commands to print separate stylesheets?"&gt;Using &lt;span style='white-space: nowrap;'&gt;&lt;img src='https://www.dreamwidth.org/img/silk/identity/user.png' alt='[profile] ' width='17' height='17' style='vertical-align: text-bottom; border: 0; padding-right: 1px;' /&gt;&lt;b&gt;media&lt;/b&gt;&lt;/span&gt; commands to print separate stylesheets?&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Essentially, it's considered good practice to have a different stylesheet for different sorts of browsers. For example, on my computer, the browser needs to be told that I want the sidebar to the right, how wide the boxes should be, etc.  But on my phone browser, that information is actually worse than useless, as it can't make use of it, I pay for the bandwidth to download it anyway, and some mobile browsers will try and display it if told to even though it can't work properly.&lt;br /&gt;&lt;br /&gt;I've had reports from some readers, here and on friends journals, that most DW layouts are unreadable in certain devices (a Palm Pre being a specific example--I can't check).  I think this is both a good thing to learn to do, and will be useful overall for the site.&lt;br /&gt;&lt;br /&gt;Wondering around cvarious places, wordpress.com hosted blogs do it by not giving any style information to a mobile device, so you just get default browser stuff, which looks ugly, wordpress self-hosted blogs use a variety of tools--some good &amp; some bad, LJ and DW styles don't do anything specific, but seem to degrade gracefully, and Blogger hosted blogs are almost impossible to navigate using Opera Mobile and I still can't figure out what it is in the code they're doing that borks it that badly.  &lt;br /&gt;&lt;br /&gt;If anyone can spot it, I can code a fix for friends using Blogger. Because that'd make my life much happier.&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=matgb&amp;ditemid=379483" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-04-07:17442:362303</id>
    <link rel="alternate" type="text/html" href="https://matgb.dreamwidth.org/362303.html"/>
    <link rel="self" type="text/xml" href="https://matgb.dreamwidth.org/data/atom/?itemid=362303"/>
    <title>[DW] Profile link icons update.</title>
    <published>2009-05-07T16:28:59Z</published>
    <updated>2009-05-07T16:49:16Z</updated>
    <category term="dreamwidth: layout"/>
    <category term="css"/>
    <category term="dreamwidth"/>
    <dw:security>public</dw:security>
    <dw:reply-count>7</dw:reply-count>
    <content type="html">In my &lt;a href="http://matgb.dreamwidth.org/361968.html" title="[LJ/DW] Making profile icons look cool in your layout"&gt;Monday post about icons&lt;/a&gt;, I gave replacement codes for the 5 icons that DW commonly uses as well as the 3 that LJ commonly uses.  I missed one that DW uses, namely direct links to LJs using the new custom site code.&lt;br /&gt;&lt;br /&gt;If you didn't know, rather than the old &lt;strong&gt;[lj-user="matgb"]&lt;/strong&gt; code, DW has replaced it with &lt;strong&gt;[user name="matgb"]&lt;/strong&gt;, ie removing the LJ bit given, obviously, it's not on LJ. But cunningly, they've also added another option, if you code &lt;strong&gt;[user name="matgb" &lt;em&gt;site&lt;/em&gt;="livejournal.com"]&lt;/strong&gt; it will link to matgb on LJ, not DW. And it'll take the LJ usericon from the LJ server as well.&lt;br /&gt;&lt;br /&gt;Which would be cool. Except it doesn't auto-discover whether it's a person, community or feed. So my post &lt;a href="http://matgb.dreamwidth.org/362185.html" title="Social media inward looking wankery"&gt;Tuesday&lt;/a&gt; mentioning the Russian President's blog displayed it as a person, not as a community. Which I think is slightly unintuitive and misleading. So I've fixed that.&lt;br /&gt;&lt;br /&gt;&lt;span class="leftbox"&gt;&lt;textarea&gt;
.ljuser img[src="http://www.livejournal.com/img/userinfo.gif"] {
background-color:transparent;
background-image: url(http://www.livejournal.com/img/pencil.gif);
padding: 17px 17px 0 2px !important;
}
&lt;/textarea&gt;&lt;/span&gt;I've added &lt;i&gt;another&lt;/i&gt; bit of code for DW so that off-site links to &lt;i&gt;LJ&lt;/i&gt;s instead display the LJ pencil, to show it's something on LJ, not a bloke regardless of what it is on LJ. So, if you look at this post on DW using my style, it'll show the little pencil when I repeat the link. Look: &lt;span style='white-space: nowrap;'&gt;&lt;a href='http://blog-medvedev.livejournal.com/profile'&gt;&lt;img src='https://www.dreamwidth.org/img/external/lj-community.gif' alt='[livejournal.com profile] ' style='vertical-align: text-bottom; border: 0; padding-right: 1px;' width='16' height='16'/&gt;&lt;/a&gt;&lt;a href='http://blog-medvedev.livejournal.com/'&gt;&lt;b&gt;blog_medvedev&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;.  I suspect I could keep doing these for ages—if you regularly link to IJ, WP, JF or whatever people, y'know what? Sort your own code out, ask me if you need help.&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=matgb&amp;ditemid=362303" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
  <entry>
    <id>tag:dreamwidth.org,2009-04-07:17442:361968</id>
    <link rel="alternate" type="text/html" href="https://matgb.dreamwidth.org/361968.html"/>
    <link rel="self" type="text/xml" href="https://matgb.dreamwidth.org/data/atom/?itemid=361968"/>
    <title>[LJ/DW] Making profile icons look cool in your layout</title>
    <published>2009-05-04T18:13:10Z</published>
    <updated>2010-09-13T15:00:59Z</updated>
    <category term="css"/>
    <category term="lj: layout"/>
    <category term="dreamwidth: layout"/>
    <category term="doctor who"/>
    <dw:security>public</dw:security>
    <dw:reply-count>15</dw:reply-count>
    <content type="html">One of the things I like about journalling platforms based on the LJ codebase is the easy shortcut for usernames that'll link to  both the blog itself &lt;i&gt;and&lt;/i&gt; the profile, with that nice little logo for the profile link.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ETA&lt;/b&gt;: At the top, unfortunately. The site where some of my icons was hosted, dammitja.net appears to be down, I'll be contacting the site owner ASAP, but in the meantime, the code does work, but won't display properly here using the icons I liked :-(&lt;br /&gt;&lt;raw&gt;&lt;br /&gt;&lt;span class="leftbox"&gt;&lt;table&gt;&lt;tr&gt;
&lt;td&gt;&lt;br /&gt;&lt;/td&gt;
&lt;td&gt;&lt;br /&gt;LJ&lt;br /&gt;&lt;/td&gt;
&lt;td&gt;&lt;br /&gt;DW&lt;br /&gt;&lt;/td&gt;
&lt;td&gt;&lt;br /&gt;Mine&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;br /&gt;User&lt;br /&gt;&lt;/td&gt;
&lt;td&gt;&lt;br /&gt;&lt;img src="http://l-stat.livejournal.com/img/userinfo.gif" alt="LJ User Icon" /&gt;&lt;br /&gt;&lt;/td&gt;
&lt;td&gt;&lt;br /&gt;&lt;img src="http://s.dreamwidth.org/img/silk/identity/user.png" alt="DW User Icon" /&gt;&lt;br /&gt;&lt;/td&gt;
&lt;td&gt;&lt;br /&gt;&lt;img src="http://dammitja.net/lj/opp/drwho06.gif" alt="Little Colin Baker" /&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;br /&gt;Community&lt;br /&gt;&lt;/td&gt;
&lt;td&gt;&lt;br /&gt;&lt;img src="http://l-stat.livejournal.com/img/community.gif" alt="LJ Comm Icon" /&gt;&lt;br /&gt;&lt;/td&gt;
&lt;td&gt;&lt;br /&gt;&lt;img src="http://s.dreamwidth.org/img/silk/identity/community.png" alt="DW Comm Icon" /&gt;&lt;br /&gt;&lt;/td&gt;
&lt;td&gt;&lt;br /&gt;&lt;img src="http://pics.livejournal.com/snapesbabe/pic/000fzf79" alt="Little Tardis!" /&gt;&lt;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;br /&gt;Feed&lt;br /&gt;&lt;/td&gt;
&lt;td&gt;&lt;br /&gt;&lt;img src="http://l-stat.livejournal.com/img/syndicated.gif" alt="LJ Feed Icon" /&gt;&lt;br /&gt;&lt;/td&gt;
&lt;td&gt;&lt;br /&gt;&lt;img src="http://s.dreamwidth.org/img/silk/identity/feed.png" alt="DW Feed Icon" /&gt;&lt;br /&gt;&lt;/td&gt;
&lt;td&gt;&lt;br /&gt;&lt;img src="http://pics.livejournal.com/snapesbabe/pic/000fxssg" alt="Little Dalek!" /&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;br /&gt;Others&lt;/td&gt;
&lt;td&gt;&lt;img src="http://dammitja.net/lj/opp/drwho05.gif" alt="Little Peter!" /&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="http://dammitja.net/lj/opp/flibble.gif" alt="Little Mr Flibble!" /&gt;&lt;/td&gt;
&lt;td&gt;&lt;img src="http://www.livejournal.com/img/pencil.gif" alt="LJ userbloke" /&gt;&lt;br /&gt;&lt;/table&gt;&lt;/span&gt;&lt;/raw&gt;Thing is, the nice little logo doesn't always suit the style of the place it's appearing in, or the colour scheme of the layout.  So, given I know how to replace them, I thought I'd update the code and add some new tweaks.  As always, CSS hackery, playing with CSS is both fun and easy, I highly recommend it for people of a web-savvy nature.&lt;br /&gt;&lt;br /&gt;I have, naturally, chosen a Doctor Who theme to my replacement images—feel free to replace them with something else if you wish. I forget where I got the original code for to do this, it's heavily updated now, but I'd like to credit the author, so if you know, gimme a link?&lt;br /&gt;&lt;br /&gt;&lt;span class="leftbox"&gt;&lt;textarea align="left" hspace="5"&gt;.ljuser img {
width: 0;
height: 0;
background-repeat: no-repeat;
background-color:transparent;
/* so that IE users will still see an image */
background-image: url(http://pics.livejournal.com/snapesbabe/pic/000fxssg);
padding: 19px 15px 0 2px !important;
}
.ljuser img[src="http://s.dreamwidth.org/img/silk/identity/user.png"] {
background-color:transparent;
background-image: url(http://dammitja.net/lj/opp/drwho06.gif);
padding: 19px 15px 0 2px !important;
}
.ljuser img[src="http://s.dreamwidth.org/img/silk/identity/community.png"] {
background-color:transparent;
background-image: url(http://pics.livejournal.com/snapesbabe/pic/000fzf79);
padding: 18px 11px 0 2px !important;
}
.ljuser img[src="http://s.dreamwidth.org/img/silk/identity/feed.png"] {
background-color:transparent;
background-image: url(http://pics.livejournal.com/snapesbabe/pic/000fxssg);
padding: 18px 15px 0 2px !important;
}
.ljuser img[src="http://s.dreamwidth.org/img/silk/identity/user_staff.png"] {
background-color:transparent;
background-image: url(http://dammitja.net/lj/opp/drwho05.gif);
padding: 18px 15px 0 2px !important;
}
.ljuser img[src="http://s.dreamwidth.org/img/silk/identity/openid.png"] {
background-color:transparent;
background-image: url(http://dammitja.net/lj/opp/flibble.gif);
padding: 18px 15px 0 2px !important;
}
.ljuser img[src="http://s.dreamwidth.org/img/external/lj-userinfo.gif"] {
background-color:transparent;
background-image: url(http://www.livejournal.com/img/pencil.gif);
padding: 17px 17px 0 2px !important;
}&lt;/textarea&gt;&lt;/span&gt;Anyway. Dreamwidth users should go to the &lt;a href="http://www.dreamwidth.org/customize/options.bml?group=customcss"&gt;DW Custom CSS page&lt;/a&gt; and paste the code into the big box. &lt;br clear="all" /&gt;&lt;br /&gt;&lt;span class="leftbox"&gt;&lt;textarea align="left" hspace="5"&gt;.ljuser img {
width: 0;
height: 0;
background-repeat: no-repeat;
background-color:transparent;
/* so that IE users will still see an image */
background-image: url(http://pics.livejournal.com/snapesbabe/pic/000fxssg);
padding: 19px 15px 0 2px !important;
}
.ljuser img[src="http://l-stat.livejournal.com/img/userinfo.gif"] {
background-color:transparent;
background-image: url(http://dammitja.net/lj/opp/drwho06.gif);
padding: 19px 15px 0 2px !important;
}
.ljuser img[src="http://l-stat.livejournal.com/img/community.gif"] {
background-color:transparent;
background-image: url(http://pics.livejournal.com/snapesbabe/pic/000fzf79);
padding: 18px 11px 0 2px !important;
}
.ljuser img[src="http://l-stat.livejournal.com/img/syndicated.gif"] {
background-color:transparent;
background-image: url(http://pics.livejournal.com/snapesbabe/pic/000fxssg);
padding: 18px 11px 0 2px !important;
}&lt;/textarea&gt;&lt;/span&gt;Livejournal users should go to the &lt;a href="http://www.livejournal.com/customize/options.bml?group=customcss"&gt;LJ Custom CSS&lt;/a&gt; page and, go on, have a guess...&lt;br /&gt;&lt;br /&gt;Yup, copy and paste the code into the box. One little caveat—it's replacing images taken from l-stat.livejournal.com, if LJ changes their &lt;abbr title="Content Delivery Network"&gt;CDN&lt;/abbr&gt; again, then the URL might change and the code'll stop working, I'll update it as soon as I know to, it's likely to be a simple change the letter hack (it used to be p-stat.*)&lt;br /&gt;&lt;br /&gt;The Colin icon is taken from &lt;span style='white-space: nowrap;'&gt;&lt;a href='http://allah-sulu.livejournal.com/profile'&gt;&lt;img src='https://www.dreamwidth.org/img/external/lj-userinfo.gif' alt='[livejournal.com profile] ' style='vertical-align: text-bottom; border: 0; padding-right: 1px;' width='17' height='17'/&gt;&lt;/a&gt;&lt;a href='http://allah-sulu.livejournal.com/'&gt;&lt;b&gt;allah_sulu&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;'s &lt;a href="http://allah-sulu.livejournal.com/959743.html"&gt;Ten Doctor&lt;/a&gt;'s. If you want to use &lt;a href="http://dammitja.net/lj/asmt/"&gt;different images&lt;/a&gt;, then replacing the image location is fairly easy, just make sure you also change the dimensions in the 'padding' area, the first two are effectively height and width.  &lt;br /&gt;&lt;br /&gt;I &lt;s title="No replacement meant the Dalek everywhere, which I knew from the following sentence, I are dim"&gt;deliberately haven't done one for OpenID accounts, I might change my mind on that but I think the OpenID logo ought to be got used to. I'm considering a DW staff replacement, but not sure what I should go for (either Five or &lt;img src="http://dammitja.net/lj/opp/usercan2.gif" style="width: 17px; height: 17px; border: 0" alt="" /&gt; appeal a bit).&lt;/s&gt; Haven't bothered with sponsored Comms, probably ought to, not doing so means the image won't show up at all.&lt;br /&gt;&lt;br /&gt;As always, feel free to link or comment with questions, etc.&lt;br /&gt;&lt;br /&gt;&lt;img src="https://www.dreamwidth.org/tools/commentcount?user=matgb&amp;ditemid=361968" width="30" height="12" alt="comment count unavailable" style="vertical-align: middle;"/&gt; comments</content>
  </entry>
</feed>
