Class Notes
As of this writing, around 118 of you have signed up for a layout making track--84 of you for the S2/CSS track--and I made sure to say hi to everybody that commented to introduce themselves! I also noticed a lot of you don't have very much CSS experience--and learning these skills is an important reason many of you are taking the course. I think this means I'll turn the next week's HTML and CSS overview; Examining with browser developer tools class into two weeks, so that I have enough time to cover the subject in more detail and give students more study time, as well as give some more time for mentors to answer questions that come up.
You can use the syllabus at any time to jump between lessons or see what's coming up. The previous class is the Class Intro.
S2 Background
S2 was created with a few objectives in mind:- Styles that could be customized by a lay user without knowing CSS or HTML
- Security. Styles can't be used to server exploits to viewers, harm the servers, or access sensitive information. Javascript and unsafe HTML is stripped from an untrusted (that is, non-official) layer. Additionally, running the style is sandboxed. Styles can't access sensitive information on the server or overload it--any style code that runs for too long will be killed.
- Powerful for advanced users. Because S2 is actually a programming language, style makers can do almost anything they want with the presentation of their journal. Some people have even used S2 to make small games (look at this version of Tic-Tac-Toe made by
exor674! Later on, I'll teach S2 students how to use a barebones layout skeleton to practice basic programming in S2 with.
S2 is built on top of something called a core layer that defines what functions and data are available to the style--we'll get more into the details behind that later. Dreamwidth has two core layers available:
- core1 -- inherited from the LJ, what people use when they import styles from LiveJournal. This has the downside of not being able to take advantage of styles development done just for Dreamwidth, like the modules system.
- core2 -- built just for Dreamwidth, what native Dreamwidth styles use
This class is going to deal with core2 styles.
The Customization Wizard
The first order of business in working with S2 is understanding the customization area. I want you to read this overview of the Customization Area.
One thing the Dreamwidth styles team has done a lot of work on (and continues to work on) is standardizing the options available for customization--for instance, right now
ninetydegrees is working on standardizing options for scaling/not showing icons across the layouts.
So, it's important for layout makers to understand the Customization Area and the options it gives. For S2/CSS people, you're going to need to choose appropriate options to offer for your layout's users. For Simplified CSS and CSS only people, some of the options (like modules, page setup, and presentation settings) might also affect how you implement your CSS.
Exercises
Exercises for this class are all optional. They're tools to help direct you in your learning, but nobody is grading you on them!
Note: These exercises involve changing the display layout of a journal. If you don't want to do these exercises on your Dreamwidth account, you can create a temporary account on my development server for this purpose--just don't use the password you use for Dreamwidth. It won't be around when I set up the main installation for this class, though.
- Look through the Base layouts section of the customization wizard. Apply three different layouts. (Ignore Zesty, it's the odd one out of all the layouts.)
- For each layout you apply, change some options in the Customization Wizard Sections--especially from the Page Setup, Presentation, and Modules sections. Observe the effects.
- For at least one layout that offers it, use the Image section to set a page background image and a header. (I have some background patterns from dinpattern.com up here for you to use if you want.)
- Just for fun, turn off the layout's CSS in the Custom CSS function for a layout, and see what happens! You'll see quite a difference; all the effects of that layout have been created by CSS.
- Ask any questions you might have!
no subject
Date: 2011-04-16 07:19 am (UTC)no subject
Date: 2011-04-16 08:46 am (UTC)This isn't the first time this has happened to me, so I know I can make it work if I scream at it long enough, but, well. I was kind of figuring this is just a 'click things and see what happens' kind of refresher, not a 'crib together some CSS that will probably work' sort of things, so, uh. ^^;;
Chose this as a background for Tranquility III, which other than moving modules around has been unaltered. Over on a brand-new RP journal:
no subject
Date: 2011-04-16 08:54 am (UTC)Basically what is happening here is: Tranquility is defining the image background for the body tag, but then redefines a background color for the #canvas div (if that doesn't make any sense yet don't worry), so the background color for the #canvas hides the image background on the main body of the page!
It will be easy to fix.
(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:no subject
Date: 2011-04-16 09:38 am (UTC)Holy cow, I'm seeing my journal naked! ''XD
no subject
Date: 2011-04-16 03:15 pm (UTC)(no subject)
From:no subject
Date: 2011-04-16 11:00 am (UTC)no subject
Date: 2011-04-16 11:11 am (UTC)(no subject)
From:no subject
Date: 2011-04-16 11:22 am (UTC)(also, for the entire time that layout has been available, i thought it was skittish. i never noticed the L. fail.)
no subject
Date: 2011-04-16 11:29 am (UTC)(no subject)
From:(no subject)
From:no subject
Date: 2011-04-16 01:46 pm (UTC)Result & Thank you
Date: 2011-04-16 02:41 pm (UTC)I also posted the results of one layout to my journal and I thought I would link back here: click
Re: Result & Thank you
Date: 2011-04-16 03:00 pm (UTC)Is that wanted or not? what do I need to do to get the whole group one module in the wanted background colour?
I am using the journal style Brittle with the theme Certain Frogs
Re: Result & Thank you
From:Re: Result & Thank you
From:no subject
Date: 2011-04-16 02:53 pm (UTC)no subject
Date: 2011-04-16 06:36 pm (UTC)no subject
Date: 2011-04-16 06:40 pm (UTC)(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:no subject
Date: 2011-04-16 07:31 pm (UTC)Hee, that was fun. I think I'll keep it the way it ended up for now!
So Colorside has controls for setting the appearance of the sidebar Tags in two places (Presentation and Modules)? And maybe the second one overrides the first? Because I couldn't get it to change until I changed it on Modules.
And on Noveau Oleanders - I couldn't seem to change the font size of the entry titles no matter what I did. I know I had the right section of the wizard because I could change the fonts - but the size simply wouldn't change.
no subject
Date: 2011-04-16 09:19 pm (UTC)Bug filed! Thanks. :)
(no subject)
From:(no subject)
From:(no subject)
From:no subject
Date: 2011-04-16 07:55 pm (UTC)no subject
Date: 2011-04-16 08:42 pm (UTC)(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:no subject
Date: 2011-04-16 09:26 pm (UTC)Like, if I tile something you still can see the single tiles, yes? And if it's seamless then you don't?
no subject
Date: 2011-04-16 09:29 pm (UTC)(no subject)
From:no subject
Date: 2011-04-16 11:04 pm (UTC)no subject
Date: 2011-04-16 11:35 pm (UTC)You should be able to change the font face for your journal/title and subtitle in this section:
http://www.dreamwidth.org/customize/options?group=fonts
Look for "Preferred font for journal titles" and "Preferred font for journal subtitles".
I specifically linked to dinpattern.com because you can used them on your journal, the copy on the site says: "You may use these patterns for any personal or commercial web and screen use. If used, please link back to DinPattern and author credit would be appreciated. Also, feel free to leave a tip."
You probably do want to upload it somewhere else like Photobucket or LJ and not from dinpattern.com's site--we don't have image hosting yet on DW, but other places do.
(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:no subject
Date: 2011-04-17 12:55 am (UTC)In Additional Options on the Presentation page, there's this option: "Enter in a value twice that of any sidebars. Also ensure that the value is given in em or px." I don't understand what it does, or why the value should be twice that of the sidebars. I've been changing it to various values in both em and px and haven't seen any effect - could you give me any clues?
no subject
Date: 2011-04-17 06:34 am (UTC)This value is used when you have two left sidebars or two right sidebars, to make sure there is enough space for them and entries won't overlap. When you only have one sidebar or one sidebar on each side, it has no effect.
(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:no subject
Date: 2011-04-17 02:18 am (UTC)The other thing I'm seeing is, I think, a Firefox specific issue: the background images aren't tiling correctly. I've noticed this happening in some other skins I've made (for eFiction, for example.) They look fine in IE, but in Firefox repeat-x appears to work but repeat-y doesn't.
no subject
Date: 2011-04-17 02:41 am (UTC)The font size specified in the CSS is '4 em' which is really big. You have the ability to change that using the wizard.
no subject
Date: 2011-04-17 07:51 pm (UTC)no subject
Date: 2011-04-17 07:54 pm (UTC)(no subject)
From:(no subject)
From:no subject
Date: 2011-04-17 09:17 pm (UTC)When I changed my style from Spice by branchandroot for Fluid Measure to Burgundy by branchandroot for Basic Boxes, my page setup showed "2 Column (sidebar on right)" selected on the customize page, which is what I had selected for Spice. When I loaded my journal the theme displayed with all modules on the left except page generated and powered by Dreamwidth on the right.
When I reloaded the customize page the "3 Column (sidebars on either side)" page layout was selected.
no subject
Date: 2011-04-17 09:25 pm (UTC)no subject
Date: 2011-04-17 09:42 pm (UTC)no subject
Date: 2011-04-17 09:45 pm (UTC)(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:no subject
Date: 2011-04-18 06:56 am (UTC)no subject
Date: 2011-04-18 05:13 pm (UTC)no subject
Date: 2011-04-18 07:17 am (UTC)I yoinked your #header CSS from the top of the page and I've kinda been adding on to the custom CSS...
#header {
background: url(http://i1232.photobucket.com/albums/ff374/ShapelessKitters/Photoshop/nm52-bt-16_1000x318.jpg) no-repeat center center;
width: 1000px;
height: 318px;
padding-top: 10px;
padding-left: 10px;
margin-left: 0px;
}
#content {
width: 855px;
}
#footer {
width: 1000px;
}
^What I have so far. Two questions:
1) How do I center the entire layout collectively? Header, content, sidebars, footer, etc. Everything included.
2) How do I move that annoying text on the header around? I want to have it above or below the header image, but just knowing how it can possibly be moved at all will also suffice.
no subject
Date: 2011-04-18 11:02 am (UTC)2) The name of the journal is controlled by the title and subtitle code. You can play with the margins or the padding to move it around:
(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:no subject
Date: 2011-04-18 07:33 am (UTC)no subject
Date: 2011-04-18 05:06 pm (UTC)(no subject)
From:no subject
Date: 2011-04-19 02:38 am (UTC)no subject
Date: 2011-04-19 11:53 pm (UTC)(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:(no subject)
From:no subject
Date: 2011-04-20 10:09 pm (UTC)The entry hover link color wouldn't work on the Basic Boxes layout. The hover link color worked fine on the modules, and footer, but I'm not sure about the page links because I'm not sure what the page links are.
no subject
Date: 2011-04-20 10:38 pm (UTC)Entry hover link color
Try changing that color--I tested it and it seems to work!
(no subject)
From:(no subject)
From:no subject
Date: 2011-04-22 01:39 pm (UTC)ETA: Clarifying - under Customize Journal Style, Images, Header.
no subject
Date: 2011-04-22 07:10 pm (UTC)* Picasa doesn't allow "hotlinking" aka the image won't load if the page you are viewing is not on their site
* Double check the URL to make sure it didn't get mangled somehow
You can test with this image if you like:
http://skittisheclipse.com/dw/styles/dinpattern/waves.gif
Or you can link me to your Picasa image and I can investigate.
(no subject)
From:(no subject)
From:no subject
Date: 2011-04-26 07:39 am (UTC)I noticed that when I tried to put a background on my community (which uses the White text on Black version of Sunday Morning) when I put a background image in it stops immediately after the end of the last entry on the page. Now this wouldn't be a bit deal if you have a lot of entries, but right now I've only got one short entry in there so the side bar continues down below the end of the background image on a blank black background. If I open the expandable cut tag so the entry is longer than the sidebar, then more background magically appears (at least until you run out of entry)!
Now I'm sure that if I was really all that bothered about it I could fix this with a simple CSS override (which is how I would usually do things), but the point of this exercise was to play with the options wizard, so...do I get brownie points for discovering a bug?
ETA: I realize I should probably give you the name of the community so you can look at the issue yourself. Here it is:
no subject
Date: 2011-04-26 07:41 am (UTC)