<?xml version='1.0' encoding='utf-8' ?>

<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>Vigils</title>
  <link>https://vigils.dreamwidth.org/</link>
  <description>Vigils - Dreamwidth Studios</description>
  <lastBuildDate>Tue, 03 Mar 2020 19:25:24 GMT</lastBuildDate>
  <generator>LiveJournal / Dreamwidth Studios</generator>
  <lj:journal>vigils</lj:journal>
  <lj:journaltype>community</lj:journaltype>
  <image>
    <url>https://v2.dreamwidth.org/14039268/1235444</url>
    <title>Vigils</title>
    <link>https://vigils.dreamwidth.org/</link>
    <width>100</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>https://vigils.dreamwidth.org/19563.html</guid>
  <pubDate>Tue, 03 Mar 2020 19:25:24 GMT</pubDate>
  <title>Tutorial/Snippet: Responsive comments for Dreamwidth.</title>
  <link>https://vigils.dreamwidth.org/19563.html</link>
  <description>Posted by: &lt;span lj:user=&apos;terra&apos; style=&apos;white-space: nowrap;&apos; class=&apos;ljuser&apos;&gt;&lt;a href=&apos;https://terra.dreamwidth.org/profile&apos;&gt;&lt;img src=&apos;https://www.dreamwidth.org/img/silk/identity/user.png&apos; alt=&apos;[personal profile] &apos; width=&apos;17&apos; height=&apos;17&apos; style=&apos;vertical-align: text-bottom; border: 0; padding-right: 1px;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;https://terra.dreamwidth.org/&apos;&gt;&lt;b&gt;terra&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;One of my long-term frustrations with the Dreamwidth commenting system is that it nests forever, which works nicely for shorter comment threads but terribly for long roleplay exchanges that extend forever and break the page.  Happily Dreamwidth introduced a fix for this a while ago, and this is a brief tutorial to show you how to enable the responsive comment feature.&lt;/p&gt;

&lt;span class=&quot;cut-wrapper&quot;&gt;&lt;span style=&quot;display: none;&quot; id=&quot;span-cuttag___1&quot; class=&quot;cuttag&quot;&gt;&lt;/span&gt;&lt;b class=&quot;cut-open&quot;&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class=&quot;cut-text&quot;&gt;&lt;a href=&quot;https://vigils.dreamwidth.org/19563.html#cutid1&quot;&gt;instructions and a snippet under the cut&lt;/a&gt;&lt;/b&gt;&lt;b class=&quot;cut-close&quot;&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style=&quot;display: none;&quot; id=&quot;div-cuttag___1&quot; aria-live=&quot;assertive&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=vigils&amp;ditemid=19563&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://vigils.dreamwidth.org/19563.html</comments>
  <category>tutorial » coding</category>
  <category>site » dreamwidth</category>
  <lj:security>public</lj:security>
  <lj:poster>terra</lj:poster>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://vigils.dreamwidth.org/14120.html</guid>
  <pubDate>Wed, 17 May 2017 10:14:20 GMT</pubDate>
  <title>Responsive Web Design for Dreamwidth, Pt. II</title>
  <link>https://vigils.dreamwidth.org/14120.html</link>
  <description>Posted by: &lt;span lj:user=&apos;terra&apos; style=&apos;white-space: nowrap;&apos; class=&apos;ljuser&apos;&gt;&lt;a href=&apos;https://terra.dreamwidth.org/profile&apos;&gt;&lt;img src=&apos;https://www.dreamwidth.org/img/silk/identity/user.png&apos; alt=&apos;[personal profile] &apos; width=&apos;17&apos; height=&apos;17&apos; style=&apos;vertical-align: text-bottom; border: 0; padding-right: 1px;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;https://terra.dreamwidth.org/&apos;&gt;&lt;b&gt;terra&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;This is part two of a series on responsive layouts for dreamwidth. Be sure to read &lt;a href=&quot;http://vigils.dreamwidth.org/13859.html&quot;&gt;part one&lt;/a&gt; first, because the stuff I am going to be talking about here won&apos;t work very well by default. This is also going to be a little different than my other tutorals, because there&apos;s no magic code you can copy and paste to make your layout work better on mobile. Instead, this post is aimed at explaining the basic CSS tools that you need in order to customize your layout.&lt;/p&gt;

&lt;p&gt;Once you&apos;ve &lt;a href=&quot;http://vigils.dreamwidth.org/13859.html&quot;&gt;configured your viewport&lt;/a&gt;, mobile devices will display full-sized layouts instead of zooming out in order to shrink them into a smaller screen. This is good, because it can make text more legible. But it&apos;s also bad, because screens are so small, and if you have any large images or absolute positioning, things will break.  Luckily, images have a pretty simple fix:&lt;/p&gt;

&lt;code&gt;img {max-width: 100%; }&lt;/code&gt;

&lt;p&gt;Just copy and paste that into your CSS and all of your images will scale automatically.&lt;/p&gt;

&lt;span class=&quot;cut-wrapper&quot;&gt;&lt;span style=&quot;display: none;&quot; id=&quot;span-cuttag___1&quot; class=&quot;cuttag&quot;&gt;&lt;/span&gt;&lt;b class=&quot;cut-open&quot;&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class=&quot;cut-text&quot;&gt;&lt;a href=&quot;https://vigils.dreamwidth.org/14120.html#cutid1&quot;&gt;divs are more complicated&lt;/a&gt;&lt;/b&gt;&lt;b class=&quot;cut-close&quot;&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style=&quot;display: none;&quot; id=&quot;div-cuttag___1&quot; aria-live=&quot;assertive&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=vigils&amp;ditemid=14120&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://vigils.dreamwidth.org/14120.html</comments>
  <category>tutorial » coding</category>
  <category>site » dreamwidth</category>
  <lj:security>public</lj:security>
  <lj:poster>terra</lj:poster>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://vigils.dreamwidth.org/13859.html</guid>
  <pubDate>Wed, 26 Apr 2017 04:22:25 GMT</pubDate>
  <title>Responsive Web Design for Dreamwidth, Pt. I</title>
  <link>https://vigils.dreamwidth.org/13859.html</link>
  <description>Posted by: &lt;span lj:user=&apos;terra&apos; style=&apos;white-space: nowrap;&apos; class=&apos;ljuser&apos;&gt;&lt;a href=&apos;https://terra.dreamwidth.org/profile&apos;&gt;&lt;img src=&apos;https://www.dreamwidth.org/img/silk/identity/user.png&apos; alt=&apos;[personal profile] &apos; width=&apos;17&apos; height=&apos;17&apos; style=&apos;vertical-align: text-bottom; border: 0; padding-right: 1px;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;https://terra.dreamwidth.org/&apos;&gt;&lt;b&gt;terra&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;More and more people are using their phones and other mobile devices to access their journals, but dreamwidth doesn&apos;t support the most common method of making websites responsive: CSS media queries.&lt;/p&gt;

&lt;p&gt;By default dreamwidth doesn&apos;t configure the &lt;a href=&quot;https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag&quot;&gt;viewport&lt;/a&gt;.  This means that on most mobile devices, instead of displaying a full-size layout, what you see is a a shrunk down version of what you&apos;d see on a desktop, which is often &lt;em&gt;too&lt;/em&gt; tiny to navigate, even if your layout was designed to work well on mobile browsers.  To change this behavior, you have to add a meta tag to the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; section of the code:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1&quot;&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Simple, right?  The trouble is that to add this line of code to the &lt;code&gt;&amp;lt;head&amp;gt;&lt;/code&gt; section, we&apos;re gonna have to venture into the somewhat arcane S2 system.&lt;/p&gt;

&lt;span class=&quot;cut-wrapper&quot;&gt;&lt;span style=&quot;display: none;&quot; id=&quot;span-cuttag___1&quot; class=&quot;cuttag&quot;&gt;&lt;/span&gt;&lt;b class=&quot;cut-open&quot;&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class=&quot;cut-text&quot;&gt;&lt;a href=&quot;https://vigils.dreamwidth.org/13859.html#cutid1&quot;&gt;Further instructions&lt;/a&gt;&lt;/b&gt;&lt;b class=&quot;cut-close&quot;&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style=&quot;display: none;&quot; id=&quot;div-cuttag___1&quot; aria-live=&quot;assertive&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=vigils&amp;ditemid=13859&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://vigils.dreamwidth.org/13859.html</comments>
  <category>site » dreamwidth</category>
  <category>tutorial » coding</category>
  <lj:security>public</lj:security>
  <lj:poster>terra</lj:poster>
  <lj:reply-count>3</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://vigils.dreamwidth.org/10968.html</guid>
  <pubDate>Sun, 25 Mar 2012 17:37:41 GMT</pubDate>
  <title>tutorial: css font properties and the font: shortcut</title>
  <link>https://vigils.dreamwidth.org/10968.html</link>
  <description>Posted by: &lt;span lj:user=&apos;terra&apos; style=&apos;white-space: nowrap;&apos; class=&apos;ljuser&apos;&gt;&lt;a href=&apos;https://terra.dreamwidth.org/profile&apos;&gt;&lt;img src=&apos;https://www.dreamwidth.org/img/silk/identity/user.png&apos; alt=&apos;[personal profile] &apos; width=&apos;17&apos; height=&apos;17&apos; style=&apos;vertical-align: text-bottom; border: 0; padding-right: 1px;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;https://terra.dreamwidth.org/&apos;&gt;&lt;b&gt;terra&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;So yesterday I &lt;a href=&quot;http://vigils.dreamwidth.org/10566.html&quot;&gt;wrote some code out&lt;/a&gt; because I &lt;em&gt;despise&lt;/em&gt; the font tag, and today comes a more in-depth look at font properties in CSS.&lt;/p&gt;

&lt;span class=&quot;cut-wrapper&quot;&gt;&lt;span style=&quot;display: none;&quot; id=&quot;span-cuttag___1&quot; class=&quot;cuttag&quot;&gt;&lt;/span&gt;&lt;b class=&quot;cut-open&quot;&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class=&quot;cut-text&quot;&gt;&lt;a href=&quot;https://vigils.dreamwidth.org/10968.html#cutid1&quot;&gt;Cut for length and formatting&lt;/a&gt;&lt;/b&gt;&lt;b class=&quot;cut-close&quot;&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style=&quot;display: none;&quot; id=&quot;div-cuttag___1&quot; aria-live=&quot;assertive&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=vigils&amp;ditemid=10968&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://vigils.dreamwidth.org/10968.html</comments>
  <category>!tutorials</category>
  <category>tutorial » coding</category>
  <lj:security>public</lj:security>
  <lj:poster>terra</lj:poster>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://vigils.dreamwidth.org/10566.html</guid>
  <pubDate>Sun, 25 Mar 2012 02:45:13 GMT</pubDate>
  <title>tutorial: &amp;lt;span&amp;gt;, inline css, and you</title>
  <link>https://vigils.dreamwidth.org/10566.html</link>
  <description>Posted by: &lt;span lj:user=&apos;terra&apos; style=&apos;white-space: nowrap;&apos; class=&apos;ljuser&apos;&gt;&lt;a href=&apos;https://terra.dreamwidth.org/profile&apos;&gt;&lt;img src=&apos;https://www.dreamwidth.org/img/silk/identity/user.png&apos; alt=&apos;[personal profile] &apos; width=&apos;17&apos; height=&apos;17&apos; style=&apos;vertical-align: text-bottom; border: 0; padding-right: 1px;&apos; /&gt;&lt;/a&gt;&lt;a href=&apos;https://terra.dreamwidth.org/&apos;&gt;&lt;b&gt;terra&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;One of the main differences between LJ and DW and how they let you code is that DW allows &lt;em&gt;inline CSS&lt;/em&gt; in comments.   This is a wonderful thing that can make your comment formatting much more elegant, because you can handle all of your formatting with a single string of code instead of using a string of &amp;lt;font&amp;gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;!&lt;/p&gt;

&lt;span class=&quot;cut-wrapper&quot;&gt;&lt;span style=&quot;display: none;&quot; id=&quot;span-cuttag___1&quot; class=&quot;cuttag&quot;&gt;&lt;/span&gt;&lt;b class=&quot;cut-open&quot;&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class=&quot;cut-text&quot;&gt;&lt;a href=&quot;https://vigils.dreamwidth.org/10566.html#cutid1&quot;&gt;a write-up and some code snippets&lt;/a&gt;&lt;/b&gt;&lt;b class=&quot;cut-close&quot;&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style=&quot;display: none;&quot; id=&quot;div-cuttag___1&quot; aria-live=&quot;assertive&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=vigils&amp;ditemid=10566&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://vigils.dreamwidth.org/10566.html</comments>
  <category>!tutorials</category>
  <category>tutorial » coding</category>
  <lj:security>public</lj:security>
  <lj:poster>terra</lj:poster>
  <lj:reply-count>11</lj:reply-count>
</item>
</channel>
</rss>
