[Using Sakai] Sakai CSS

Matthew Jones jonespm at umich.edu
Mon Jul 13 08:34:03 PDT 2009


Nice Adam, I didn't know about this feature. Unfortunately the {style}
and extended {block} macro only exist in 2.6 and were pulled in as
part of

http://jira.sakaiproject.org/browse/SAK-15905

./rwiki-impl/impl/src/java/uk/ac/cam/caret/sakai/rwiki/component/macros/StyleMacro.java

I'm quite looking forward to trying this feature out as I've had to do
some magic to make the wiki look good.

In 2.5 and in the meantime you'd have to either create a new skin for
your site or have your administrator add your style to the wikiStyles
or the default style.

Creating a *new* skin takes a little bit of work. But there are a few
ways your administrator might be able to help you get a css into your
specific site depending on which version you're running. It will still
take someone who has administrative access

Administrative stuff that requires access to the server:
- The administrator can edit the default skin as described on this
page: http://www.bestgrid.org/index.php/Customising_Sakai
- The administrator can copy the skin to a new directory and you can
use this new skin just for your site instead of the default skin
- You can just edit the wiki specific css file.

An administrator could also add in this patch which we are running at
umich which allows an administrator to add a stylesheet to your site.

"Add the Ability to embed a bit of HMTL from a Site Property in the
Background Document of a Site"
http://jira.sakaiproject.org/browse/SAK-15097

-Matthew

On Thu, Jul 9, 2009 at 2:04 PM, Marshall Feldman<marsh at uri.edu> wrote:
> Matthew Jones wrote
>> ------------------------------
>> | -- As far as indenting I've never found an easy way and have some
>> | interesting work arounds. This would probably be a nice thing to add
>> | though.
>> |
>> | Workaround 1: Almost all browsers support unicode and if you insert
>> | unicode spaces it will accept it and indent, it removes a regular old
>> | space though. On OSX you can type unicode moderately easily by going
>> | to System Preferences->International->Input Menu and selecting
>> | "Unicode Hex Input" near the bottom. Also select show Input Menu on
>> | Menu bar. This can be useful because you can insert other unicode into
>> | the wiki.
>> | (Character for the unicode space the wiki accepts and indents)
>> | http://www.fileformat.info/info/unicode/char/0020/index.htm
>> |
>> | Workaround 2: You can have your administrator add a new style to the
>> | portal.css or the wiki css (or your site's custom css if you have one)
>> | that has some styles to specify the level of indent you want then you
>> | can use the {block:class} {block} or {span:class} {span} to indent
>> | your block of text based on this style. I don't know if theres any
>> | good styles that already exist that do what you might want.
>> |
>> | For instance some of the existing comment body styles:
>> | {block:rwikicommentbody_1}Some test text{block} (However this style
>> | makes the text 85%)
>> |
>> | -------
>> | Possibly a good future macro (if someone would write it) might be
>> | {indent:5}Indented text{indent} Which would indent a block of text by
>> | this many spaces.
>> |
>> | -Matthew
>>
>>
> I actually meant to ask about CSS in my original post. Documentation for
> some of the wiki macros, such as block, mentions CSS selectors, but how
> does one access the CSS for a site?
>
> --
> Dr. Marshall Feldman, PhD
> Director of Research and Academic Affairs
>
> Center for Urban Studies and Research
> The University of Rhode Island
> email: marsh @ uri .edu (remove spaces)
>
>
>      Contact Information:
>
>
>        Kingston:
>
> 202 Hart House
> Charles T. Schmidt Labor Research Center
> The University of Rhode Island
> 36 Upper College Road
> Kingston, RI 02881-0815
> tel. (401) 874-5953:
> fax: (401) 874-5511
>
>
>        Providence:
>
> 206E Shepard Building
> URI Feinstein Providence Campus
> 80 Washington Street
> Providence, RI 02903-1819
> tel. (401) 277-5218
> fax: (401) 277-5464
> _______________________________________________
> sakai-user mailing list
> sakai-user at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-user
>
> TO UNSUBSCRIBE: send email to sakai-user-unsubscribe at collab.sakaiproject.org with a subject of "unsubscribe"
>


More information about the sakai-user mailing list