terra: fandom » prydain, the book of three (to find the thing you've never lost)
[personal profile] terra

This is a userstyle for Dreamwidth that tweaks the reply form on the new DW codepush. It's a pretty simple CSS grid. As a userstyle it requires an extension like Stylus, but any extension that lets you add custom CSS to websites should work.

Code + FAQ under the cut )
terra: (4)
[personal profile] terra

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.

instructions and a snippet under the cut )
terra: (Default)
[personal profile] terra

I've noticed quite a few people using dreamwidth layouts either imported from old livejournal code or newer insanejournal code. And one of the results of this is that the CSS that customizes the controlstrip navigation at the top of the page is either broken or non-existent. You can always disable the controlstrip to some degree using your account settings, and completely get rid of it with CSS, but I don't like to make that decision for the user. I personally use the controlstrip a lot when browsing dreamwidth!

So, I decided to whip up some basic controlstrip only CSS. It's at least slightly responsive (you can see the layout at [personal profile] kleptocratic for an example of how the code scales) and designed to be simple to customize to match a variety of layouts and aesthetics.

two variations on a single theme )
terra: (is that all?)
[personal profile] terra

The default Dreamwidth navigation module has a lot of stuff in it that might not be relevant to how you use the site and your journal. While it is pretty easy to remove individual items using CSS, you can also customize your navigation menu using the S2 system, which allows you to add new links or change the order of the existing ones.

code and breakdown behind the cut )
terra: history » hildegard von bingen (pic#2180719)
[personal profile] terra

This is part two of a series on responsive layouts for dreamwidth. Be sure to read part one first, because the stuff I am going to be talking about here won't work very well by default. This is also going to be a little different than my other tutorals, because there'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.

Once you've configured your viewport, 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'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:

img {max-width: 100%; }

Just copy and paste that into your CSS and all of your images will scale automatically.

divs are more complicated )
terra: fandom » ffvi, not an endorsement of dissidia (imperial witch)
[personal profile] terra

More and more people are using their phones and other mobile devices to access their journals, but dreamwidth doesn't support the most common method of making websites responsive: CSS media queries.

By default dreamwidth doesn't configure the viewport. 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'd see on a desktop, which is often too 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 <head> section of the code:

<meta name="viewport" content="width=device-width, initial-scale=1">

Simple, right? The trouble is that to add this line of code to the <head> section, we're gonna have to venture into the somewhat arcane S2 system.

Further instructions )

Tags