From: Sam H. v. a. <we...@ma...> - 2005-11-21 21:49:20
|
Log Message: ----------- reorganization and small changes for recent modifications to links(). split into two parts: * ur.template classes: These classes appear in ur.template and are NOT emitted by WeBWorK code. They need only appear in this template. * WeBWorK classes: These classes are emitted by WeBWorK code and should appear in ANY WeBWorK template. moved "minimal list style" to "div.Links ul" and "div.Links ul ul". div.Links is a ur.template class, and the proper place for styling the link menu lists is in ur.template. Consequently, any UL in a Links div gets styled this way, not just ULs of class LinksMenu. (In fact, class LinksMenu no longer exists.) Modified Files: -------------- webwork2/htdocs/css: ur.css Revision Data ------------- Index: ur.css =================================================================== RCS file: /webwork/cvs/system/webwork2/htdocs/css/ur.css,v retrieving revision 1.13 retrieving revision 1.14 diff -Lhtdocs/css/ur.css -Lhtdocs/css/ur.css -u -r1.13 -r1.14 --- htdocs/css/ur.css +++ htdocs/css/ur.css @@ -1,10 +1,6 @@ -/* hack to get around MSIE peekaboo bug */ -/* this hack causes other problems and may no longer be needed for the peekaboo bug so we will comment it out */ -/* * {zoom: 1;} */ - -/********************/ -/* template classes */ -/********************/ +/******************************************************************************/ +/* ur.template classes: These classes appear in ur.template and are NOT + * emitted by WeBWorK code. They need only appear in this template. */ body { margin: 0px; } @@ -15,10 +11,15 @@ div.Logo { } div.Links { font-size: small; } +div.Links ul { list-style: none; margin-left: 0; padding-left: 0; } +div.Links ul ul { list-style: none; margin-left: 0.5em; padding-left: 0; } + /* we used to say "height: 10em; overflow: auto" here, but it caused * problems for mozilla. so we're back to having a looong siblings list * for the time being. :-( */ div.Siblings { font-size: small; } +div.Siblings ul { list-style: none; margin-left: 0; padding-left: 0; } +div.Siblings ul ul { list-style: none; margin-left: 0.5em; padding-left: 0; } div.Options { font-size: small; } /* top table cell, contains login message and path */ @@ -26,11 +27,12 @@ td.TopPanel a:link, td.TopPanel a:visited { color: #FF9933; } +.Path { } -*.LoginStatus { text-align: right; font-size: small; position:absolute; top: 0; right: 0; } +.LoginStatus { text-align: right; font-size: small; position:absolute; top: 0; right: 0; } td.Timestamp { text-align: left; font-size: small; font-style: italic; } -*.Path { } +/* (should have ContentPanelError here) */ /* main content panel, contains body */ td.ContentPanel { background-color: white; color: black; } @@ -38,54 +40,26 @@ td.ContentPanel a:visited { color: blue; } td.ContentPanel a:active { color: red; } -/* contains info */ -td.InfoPanel { background-color: #DDDDDD; color: black; width: 30% } -td.InfoPanel a:link, -td.InfoPanel a:visited { color: blue; } -td.InfoPanel a:active { color: red; } - -div.Info { } div.Nav { } div.Title { font-size: 16pt; } -div.SubmitError { color: red; font-style: italic; } div.Message { font-style: italic; } +div.SubmitError { color: red; font-style: italic; } div.Body { } div.Warnings { } -div.viewOptions { border: thin groove; padding: 1ex; margin: 2ex; align: left; } -/* background colors for success and failure messages */ -div.ResultsWithoutError { background-color: #66ff99 } /* light green */ -div.ResultsWithError { background-color: #ffcccc } /* light red */ -div.ResultsAlert { background-color: yellow } /* yellow */ - -div.NoFontMessage {padding: 10; border-style: solid; border-width:3; - border-color: #DD0000; background-color: #FFF8F8; - width: 75%; text-align: left; margin: 10px auto 10px 12%;} - -/* text colors for published and unpublished sets */ -font.Published { font-style: normal; font-weight: normal; color: #000000; } /* black */ -font.Unpublished { font-style: italic; font-weight: normal; color: #aaaaaa; } /* light grey */ - -/* styles used when editing a temporary file */ -div.temporaryFile { background-color: #ff9900 ; font-style: italic; } -p.temporaryFile { background-color: #ff9900 ; font-style: italic; } +/* (shuld have Message here) */ +/* contains info */ +td.InfoPanel { background-color: #DDDDDD; color: black; width: 30% } +td.InfoPanel a:link, +td.InfoPanel a:visited { color: blue; } +td.InfoPanel a:active { color: red; } +div.Info { } -/* text colors for Auditing, Current, and Dropped students */ -div.Audit { font-style: normal; color: purple; } -div.Enrolled { font-weight: normal; color: black; } -div.Drop { font-style: italic; color: grey; } - -/*******************/ -/* general classes */ -/*******************/ - -p.emphasis { font-style:italic; } - -/************************/ -/* new standard classes */ -/************************/ +/******************************************************************************/ +/* WeBWorK classes: These classes are emitted by WeBWorK code and should + * appear in ANY WeBWorK template. */ /* tables used for laying out form fields shouldn't have a border */ table.FormLayout { border: 0; } @@ -99,21 +73,27 @@ div.AuthorComment { background-color: #00E0E0; color: black; } /* minimal style for lists of links (generated by the links escape) */ -ul.LinksMenu { list-style: none; margin-left: 0; padding-left: 0; } -ul.LinksMenu ul { list-style: none; margin-left: 0.5em; padding-left: 0; } +/*ul.LinksMenu { list-style: none; margin-left: 0; padding-left: 0; }*/ +/*ul.LinksMenu ul { list-style: none; margin-left: 0.5em; padding-left: 0; }*/ -/*************************/ -/* WeBWorK::HTML widgets */ -/*************************/ +/* background styles for success and failure messages */ +div.ResultsWithoutError { background-color: #66ff99 } /* light green */ +div.ResultsWithError { background-color: #ffcccc } /* light red */ +div.ResultsAlert { background-color: yellow } /* yellow */ -/* WeBWorK::HTML::ScrollingRecordList */ +/* styles used by WeBWorK::HTML::ScrollingRecordList */ div.ScrollingRecordList { padding: 1em; white-space: nowrap; border: thin solid gray; } div.ScrollingRecordList select.ScrollingRecordList { width: 99%; } -/*************************************************************************/ -/* classes used in Problem.pm (replace these with new standard classes?) */ -/*************************************************************************/ +/* wraps the View Options form (generated by &optionsMacro) */ +/* FIXME: can't this style information just go in div.Options above? */ +div.viewOptions { border: thin groove; padding: 1ex; margin: 2ex; align: left; } +/* messages, attempt results, answer previews, etc. go in this DIV */ +/* this used to be "float:left", but that was suspected of causing MSIE peekaboo bug */ +div.problemHeader {} + +/* styles for the attemptResults table */ table.attemptResults { border-style: outset; border-width: 1px; @@ -129,9 +109,7 @@ padding: 2px 5px 2px 5px; background-color: #DDDDDD; } -/* - * override above settings in tables used to display ans_array results - */ +/* override above settings in tables used to display ans_array results */ table.attemptResults td td, table.attemptResults td th, table.ArrayLayout td { @@ -144,7 +122,32 @@ padding: 2px 5px 2px 5px; width: auto; } -# div.problemHeader { float: left; } # suspected of causing MSIE peekaboo bug -div.problemHeader {} -div.problem { clear: both; background-color: #E0E0E0; color: black; } +.attemptResultsSummary { font-style:italic; } .parsehilight { background-color:yellow; } + +/* the problem TEXT itself does in this box */ +div.problem { clear: both; background-color: #E0E0E0; color: black; } + +/* jsMath emits this class when appropriate math fonts aren't available */ +div.NoFontMessage { + padding: 10; + border-style: solid; + border-width:3; + border-color: #DD0000; + background-color: #FFF8F8; + width: 75%; + text-align: left; + margin: 10px auto 10px 12%; +} + +/* text colors for published and unpublished sets */ +font.Published { font-style: normal; font-weight: normal; color: #000000; } /* black */ +font.Unpublished { font-style: italic; font-weight: normal; color: #aaaaaa; } /* light grey */ + +/* styles used when editing a temporary file */ +.temporaryFile { background-color: #ff9900 ; font-style: italic; } + +/* text colors for Auditing, Current, and Dropped students */ +.Audit { font-style: normal; color: purple; } +.Enrolled { font-weight: normal; color: black; } +.Drop { font-style: italic; color: grey; } |