kaigou: this is what I do, darling (Default)
锴 angry fishtrap 狗 ([personal profile] kaigou) wrote in [site community profile] dreamscapes2009-10-19 09:44 pm
Entry tags:

Tranquility III / Gradiance

Theme name/layout: Gradiance
Author: Kaigou
Layout info: Tranquility III*
Image info: 1 image (faux icon)** http://i385.photobucket.com/albums/oo292/solnull/other/openid-navy.jpg
Source: http://www.karinoyo.com/media/gradiance.css

[NOTE: if considering claiming, hold off for a bit: I'm prepping S2 code, so it's less of a major project for anyone to convert. At least, that's the plan.]

Style goals: low-contrast but colorful, with interaction/management links offset to the side (instead of at bottom), and icons replaced with text.

* I used TIII as base, but have the the layout's style sheet turned off, and using only the custom CSS. I can't recall; does that make this a theme or a layout? is new layout!

** currently only an icon for the navy version (what I'm using on my journal right now), but easy enough to do one for each gradiant-version.

The code is set up to have the colors set aside for easier cut/paste replace etc, but generally every version has eight colors. As long as the contrast between the 4th color and the 8th color is enough to make text legible, the gradiant range can go from darkest-dark to lightest-light, or from medium-dark to medium-light, depending on the amount of contrast required. I went ahead and set up 12 versions, and did two of them as reverse (light-on-dark), since all that's needed to reverse is to flip the order of the eight colors.

If you're on a page-read page (not page-reply!), and you click on "reply", the comment form is part of the entry content footer, which means you end up with this RESOLVED

"top of page" footer bar wants to leap up. It's inconsistent, though, so naturally it behaved when I tried to grab a screenshot. This could just be Firefox 2, though. I can't get it to do it in Firefox 3. now I can't get it to do it at all. hrmm.

last thing on the wishlist for the layout is to turn the four sidebar icons into text RESOLVED

min-width of 62em, which is temporary -- in Safari the sidebar isn't behaving fixed: set at 860px min-width, and now Safari behaves

In the meantime, if anyone's got super-CSS insights, much appreciated in advance.
wyntarvox: (Default)

[personal profile] wyntarvox 2009-10-20 03:46 am (UTC)(link)
* I used TIII as base, but have the the layout's style sheet turned off, and using only the custom CSS. I can't recall; does that make this a theme or a layout?

I don't have any answers for the rest yet, but this is a new layout! Themes pretty much only change the colours/background images, or slightly tweak CSS. Entirely custom CSS is a new layout. :)

Looks cool, by the way!
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

[staff profile] denise 2009-10-20 03:59 am (UTC)(link)
oh, gosh, those are pretty!
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2009-10-21 12:36 am (UTC)(link)
I solemnly swear that I will never throttle anyone for submitting too many themes -- or too many layouts, for that matter :-)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2009-10-21 08:07 am (UTC)(link)
I prefer to feed 'em chocolate :-)
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)

[staff profile] denise 2009-10-21 08:05 am (UTC)(link)
Fu likes variations :)
branchandroot: oak against sky (Default)

[personal profile] branchandroot 2009-10-20 04:55 pm (UTC)(link)
Oh, way cool!

The quick reply thing does not bring instant solutions to my mind, though playing with float and position on #qrdiv might get you somewhere.
branchandroot: oak against sky (Default)

[personal profile] branchandroot 2009-10-20 05:00 pm (UTC)(link)
I think what you want, to make the profile module links into text is to add this in your settables:

set userlite_interaction_links = "text";
branchandroot: oak against sky (Default)

[personal profile] branchandroot 2009-10-21 03:15 pm (UTC)(link)
It does have to be in the theme or user layer you're using right then to stick. It sounds like it might be getting overwritten as you work--you see, all the wizard changes you make get written into an S2 user layer. Once it's set in the actual layout layer, it will stick.
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2009-10-21 08:36 am (UTC)(link)
It's not #qrdiv in page-reply, I think *checks ids* It's #fostform or something like that. But I think that moving the printing else-html might work. Hmm... need to look into it later.
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2009-10-21 08:33 am (UTC)(link)
For the QR thing, would moving it elsewhere in the HTML help?
branchandroot: oak against sky (Default)

[personal profile] branchandroot 2009-10-21 03:22 pm (UTC)(link)
Yes, I think it would. If it's moved outside of the entry footer, and possibly outside of .entry. I haven't been able to get at the layer to look at the css, but if that dark background is on .entry, then putting the QR just inside the close of .entry-wrapper would work. If the background is on .entry-wrapper, I think it would have to go just outside that, right before #comments.

ETA: There we go. Yeah, looks like it just needs to go outside of .entry.
Edited 2009-10-21 15:25 (UTC)
branchandroot: oak against sky (Default)

[personal profile] branchandroot 2009-10-21 03:36 pm (UTC)(link)
*pets you* I hear you. I actually meant the medium-colored box (darker than the entry content bg, but lighter than the page bg). So, yeah. If the QR anchor/trigger can just be moved, in the code, outside of .entry then it can be cleared to appear nicely below the entry text without pulling the medium-colored box down with it. It can't really be done with css alone, I don't think, but hopefully Afuna knows of someone who can fish in the code and swap that around for your layout.
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2009-10-21 04:52 pm (UTC)(link)
Putting here so you both can see:


function Page::print_entry(Entry e)
"The meat of each new layout. Describes how each page will look. In nearly all cases, the logic and decision-making processes should come from pre-existing functions in core2, and should not get written here. If you limit the structure of the page to HTML, function calls, and attached CSS, then you will be able to pick up all of the enhancements and accessibility requirements managed by core2."
{

    $e->print_wrapper_start();
    """<div class="header">\n""";
    $e->print_subject();
    $e->print_metatypes();
    $e->print_time();
    """</div>\n""";
    """<div>\n""";
    """<div class="contents">\n""";
    """<div class="inner">\n""";
    $e->print_userpic();
    $e->print_poster();
    $e->print_text();
    $e->print_metadata();
    """</div>\n""";
    """</div>\n""";
    """</div>\n""";
    """<div class="footer">\n""";
    """<div class="inner">\n""";
    $e->print_tags();
    $e->print_management_links();
    if ($this isa EntryPage) {
        """<hr class="above-entry-interaction-links" />""";
        $e->print_interaction_links("topcomment");
    }
    else {
        $e->print_interaction_links();
    }
    "</div>\n</div>\n";


    $e->print_wrapper_end();
    $this->print_reply_container({ "target" => "topcomment" });
}



That function prints out the entry div and everything in it. If you want the QR within the entry div still, just not hiding in the sidebar, then reverse the order of

$e->print_wrapper_end();
$this->print_reply_container({ "target" => "topcomment" });


You just need to copy and paste that into one of your layers. Hmm, if you copy and paste a function into a user layer, it gets wiped out next time you save in the wizard, so let me just walk you through setting up another layer, where you can put code that will be in no danger of being wiped out.

1.) Go to http://www.dreamwidth.org/customize/advanced/layers. Create a new layout-specific layer. Type: Theme, Layout: Tranquility III.
2.) Look at the list of layers; note the number for the theme layer that's under Tranquility III
3.) Go to http://www.dreamwidth.org/customize/advanced/styles. Look for a style that's named something like wizard-tranquilityiii/(something). It's the one you're currently using so it will be in bold.
4.) Edit the style. Change theme to the number you noted above and save your changes.

That above creates a new theme layer where you can put code (which won't be modified or wiped out by the wizard), and sets up your style to use this layer.

Now just head back to http://www.dreamwidth.org/customize/advanced/layers, edit that theme, and paste in the code snippet I gave you. You can copy the set icons to text thing into the theme layer, too, and that won't be wiped out, too :-)

Once you hit compile, the changes will be reflected on your journal.
(deleted comment)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2009-10-21 05:54 pm (UTC)(link)
Hmm I'm not seeing... oh! In my browser, the sidebar links are being forced below the entry. Meant to mention that, but forgot.

The original code I gave, where print_wrapper_end comes before print_reply_container should mean that print_reply_container is outside the entry entirely. Is this somewhere else? *peeks*
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2009-10-21 06:11 pm (UTC)(link)
Heeeheeehee yay!
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2009-10-21 06:52 pm (UTC)(link)
Which page is that one?
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2009-10-21 07:07 pm (UTC)(link)
Hmm. Try this: #qrform table { border: none !important;}
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2009-10-22 05:35 am (UTC)(link)
Kk. It works for me in Firefox, but I guess Safari just doesn't like it :-(

It's probably hardcoded, so that people don't have to code it into each layout. It would be nice if it were a class though, and we did the CSS not-inline. Hmmm....
baggyeyes: Cat Eye (Cat Eye)

o/

[personal profile] baggyeyes 2009-10-21 02:58 pm (UTC)(link)
I'm getting a error when I click on the layer source link.
baggyeyes: Bugs Bunny and the Bull (Default)

Re: o/

[personal profile] baggyeyes 2009-10-21 03:30 pm (UTC)(link)
I've got it now. :)
ninetydegrees: Art: self-portrait (Default)

[personal profile] ninetydegrees 2009-10-27 12:54 pm (UTC)(link)
Would you clarify, please? Is your journal displaying the newest version or, on the contrary, it may not be? I'm seeing issues on your journal but that may be old code.
ninetydegrees: Art: self-portrait (Default)

[personal profile] ninetydegrees 2009-10-27 03:08 pm (UTC)(link)
Ok, thanks. The big issue for me on your journal is that entries are displayed in two different ways and, in both cases, unlike on your previews. The entry text box is supposed to overlap the one below it and the entry management links are supposed to be at the top right? I'm seeing the links below the entry text box so there's no overlapping at all. This is not true of entries with photos but their width is reduced as compared to other entries.

I'm using Firefox 3.5.3 and a 1440px wide resolution.
Edited 2009-10-27 15:09 (UTC)
ninetydegrees: Art: self-portrait (Default)

[personal profile] ninetydegrees 2009-10-27 05:36 pm (UTC)(link)
I think previews will show you better. The first and second ones are your recent page. The third one is your test entry.

http://img34.imageshack.us/img34/1/kaigou1.png

http://img9.imageshack.us/img9/9389/kaigou2.png

http://img10.imageshack.us/img10/2331/kaigou3.png

ninetydegrees: Art: self-portrait (Default)

[personal profile] ninetydegrees 2009-10-27 10:54 pm (UTC)(link)
If you're coding from scratch then, yes, you can do whatever you want. :) I think the idea is to try to work with Core code as much as you can. If that's not possible well...

Sorry for the edit. Firefox was being stupid.
Edited 2009-10-27 22:55 (UTC)
afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)

[personal profile] afuna 2009-10-28 12:42 am (UTC)(link)
Yes, this.

In addition, some things like page elements order, or entry elements order are meant to be overriden. Just make sure that the entry wrapper is being printed, etc, and you're good to go :-)
baggyeyes: Bugs Bunny and the Bull (Chistian Bale hates dialup Internet)

[personal profile] baggyeyes 2009-11-06 01:29 am (UTC)(link)
So...to be clear, when I apply this I use Tabula Rasa as a base, and turn off the base style sheet?

Edited I took a closer look at the screenshots. Curses to my dialup!! I used TIII
Edited 2009-11-06 01:32 (UTC)
baggyeyes: Bugs Bunny and the Bull (Default)

[personal profile] baggyeyes 2009-11-06 04:07 am (UTC)(link)
First off - I love the layout. It's got a good design to it, easy to move around, nothing that's confusing...

My problem comes in that the graphics are really heavy on dialup, and on those Mobile high-speed USB thingies telephone companies have been selling. I borrowed my sister's to try out, and this layout slowed down the browser.

I can surf images off, no problem.
foxfirefey: A fox colored like flame over an ornately framed globe (Default)

[personal profile] foxfirefey 2009-11-13 07:43 pm (UTC)(link)
Oh no, I was going back and checking and seeing what still needs conversion and your links are dead now! That makes me sad because I really love this.