Skip to content

Commit

Permalink
Item713: convert twiki to foswiki in the css
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/QuickMenuSkin@4353 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
WillNorris authored and WillNorris committed Jul 2, 2009
1 parent 43511e0 commit 2a34c29
Show file tree
Hide file tree
Showing 14 changed files with 90 additions and 89 deletions.
5 changes: 3 additions & 2 deletions data/System/QuickMenuSkin.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,10 @@ The menu bar is built by default from %SYSTEMWEB%.QuickMenuBar, which in turn in
| Preview: | [[%SCRIPTURL{"view"}%/%WEB%/%TOPIC%?skin=quickmenu][Preview with this topic]] |
| Base Name: | quickmenu |
| Skin Author: | TWiki:Main/VernonLyon |
| Skin Version: | 10 Jan 2009 |
| Skin Version: | 2 Jul 2009 |
| Change&nbsp;History: | <!-- specify latest version first -->&nbsp; |
| 9 Jan 2009: | Tasks.Item713: Converting to Foswiki - Main.LarsEik |
| 2 Jul 2009: | update css to use Foswiki classes - Foswiki:Main.WillNorris |
| 9 Jan 2009: | Tasks.Item713: Converting to Foswiki - Foswiki:Main.LarsEik |
| 1 Feb 2007: | Added a missing template for TWiki 4.1.0 (v1.07) |
| 21 Nov 2006: | Added backlinks template, Fixed IE "select" bug, Menu items are actual links, Cleaner interface (v1.06) |
| 13 Sep 2006: | Fixed IE bug (v1.05) |
Expand Down
100 changes: 50 additions & 50 deletions pub/System/QuickMenuSkin/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ OL LI, UL LI {
line-height: 1.3em;
}
:link,
.twikiEmulatedLink {
.foswikiEmulatedLink {
color: #00f;
text-decoration: underline;
}
Expand All @@ -81,14 +81,14 @@ OL LI, UL LI {
background-color: #00f;
text-decoration: none;
}
.twikiTopic {
.foswikiTopic {
padding: 1em;
}
.twikiTopic H2, .twikiTopic H3, .twikiTopic H4, .twikiTopic H5 {
.foswikiTopic H2, .foswikiTopic H3, .foswikiTopic H4, .foswikiTopic H5 {
border: solid #999;
border-width: 0 0 1px 0;
}
.twikiTopic H2 {
.foswikiTopic H2 {
background-color: #eee;
}
.PageTitle {
Expand Down Expand Up @@ -129,29 +129,29 @@ OL LI, UL LI {
font-weight: bold;
}

.twikiRdiffRevInfo {
.foswikiRdiffRevInfo {
padding: 1em 2em;
color: #666;
border: solid #666;
border-width: 0 0 1px 0;
}
.twikiRevInfo {
.foswikiRevInfo {
text-align: right;
font-size: 80%;
color: #666;
}
.twikiGrayText {
.foswikiGrayText {
color: #666;
}
.twikiInputBox {
.foswikiInputBox {
margin: 0;
padding: 0 1px 1px 1px;
color: black;
font-size: 10px;
border: solid 1px #ccc;
border-color: #aaa #ddd #ddd #aaa;
}
.twikiInputBoxDefault {
.foswikiInputBoxDefault {
color: #999;
}
.TopicAction {
Expand Down Expand Up @@ -190,7 +190,7 @@ OL LI, UL LI {
.foswikiAccessKey {
text-decoration: underline;
}
.twikiSubmit {
.foswikiSubmit {
border: 1px solid #315ea3;
color: #fff;
background: url("menu_bg.gif") repeat-x center;
Expand All @@ -200,29 +200,29 @@ OL LI, UL LI {
color: #000;
background: url("menu_over.gif") repeat-x center;
}
INPUT.twikiSubmitDisabled,
INPUT.twikiSubmitDisabled:focus,
INPUT.twikiSubmitDisabled:hover {
INPUT.foswikiSubmitDisabled,
INPUT.foswikiSubmitDisabled:focus,
INPUT.foswikiSubmitDisabled:hover {
border: 1px solid #666;
color: #666;
background: #aaa;
}
.twikiToc {
.foswikiToc {
margin: 1em 0;
padding: .3em 0 .6em 0;
}
.twikiToc .twikiTocTitle {
.foswikiToc .foswikiTocTitle {
margin: 0;
padding: 0;
font-weight: bold;
color: #666;
}
.twikiToc UL {
.foswikiToc UL {
list-style: none;
margin: 0;
padding: 0 0 0 .5em;
}
.twikiToc LI {
.foswikiToc LI {
margin-left: 1.2em;
padding-left: 1.2em;
}
Expand Down Expand Up @@ -263,36 +263,36 @@ a:visited .twistyLinkLabel {
}

/* TablePlugin */
.twikiTable,
.twikiTable td,
.twikiTable th {
.foswikiTable,
.foswikiTable td,
.foswikiTable th {
border-color: #ccc;
}
.twikiTable th {
.foswikiTable th {
padding: 4px;
}
.twikiTable td {
.foswikiTable td {
padding: 2px 4px;
}
.twikiTable th a:link,
.twikiTable th a:visited,
.twikiTable th a font {
.foswikiTable th a:link,
.foswikiTable th a:visited,
.foswikiTable th a font {
color: #06c;
text-decoration: none;
}
.twikiTable th a:hover,
.twikiTable th a:hover font {
.foswikiTable th a:hover,
.foswikiTable th a:hover font {
background-color:transparent;
color: #609;
border: solid #609;
border-width: 0 0 1px 0;
}
th.twikiSortedAscendingCol,
th.twikiSortedDescendingCol {
th.foswikiSortedAscendingCol,
th.foswikiSortedDescendingCol {
background-color: #def;
}

.twikiAttachments {
.foswikiAttachments {
margin: 0;
padding: .5em 2em;
font-size: 90%;
Expand All @@ -301,7 +301,7 @@ th.twikiSortedDescendingCol {
border-width: 1px 0 0 0;
background-color: #f8f1ff;
}
.twikiAttachments TABLE {
.foswikiAttachments TABLE {
margin: .5em 0 1em 0;
padding: 0;
line-height: 1.3em;
Expand All @@ -310,22 +310,22 @@ th.twikiSortedDescendingCol {
border: solid 1px #ccc;
width: 100%;
}
.twikiAttachments TH {
.foswikiAttachments TH {
padding: 3px 6px;
height: 2.5em;
background-color: #fff;
}
.twikiAttachments TD {
.foswikiAttachments TD {
padding: 3px 6px;
height: 2em;
vertical-align: top;
border-width: 0 0 1px 0;
}
.twikiHidden,
.twikiAttachments CAPTION {
.foswikiHidden,
.foswikiAttachments CAPTION {
display: none;
}
.twikiHelp {
.foswikiHelp {
padding: 1em;
background-color: #def;
border: solid #9cf;
Expand All @@ -338,8 +338,8 @@ th.twikiSortedDescendingCol {
border: solid #c9f;
border-width: 0 0 1px 0;
}
.twikiDiffAddedMarker,
.twikiDiffDeletedMarker {
.foswikiDiffAddedMarker,
.foswikiDiffDeletedMarker {
padding: .3em;
font-weight: bold;
}
Expand All @@ -359,7 +359,7 @@ th.twikiSortedDescendingCol {
font-size: 100%;
vertical-align: baseline;
}
.twikiNew {
.foswikiNew {
padding: 0 2px;
color: #639;
background-color: #edf;
Expand All @@ -379,37 +379,37 @@ th.twikiSortedDescendingCol {
border: solid #999;
border-width: 1px 0;
}
.twikiRight {
.foswikiRight {
float: right;
}
.twikiLeft {
.foswikiLeft {
float: left;
}
.twikiSmall,
.twikiSummary {
.foswikiSmall,
.foswikiSummary {
font-size: smaller;
}
.SearchResults .twikiSummary {
.SearchResults .foswikiSummary {
padding: 0 2em 1em 2em;
border: solid #999;
border-width: 0 0 1px 0;
}
TABLE#twikiSearchTable {
TABLE#foswikiSearchTable {
border: solid #999;
border-width: 1px 1px 0 1px;
}
TABLE#twikiSearchTable TH,
TABLE#twikiSearchTable TD {
TABLE#foswikiSearchTable TH,
TABLE#foswikiSearchTable TD {
padding: 1em;
border: solid #999;
border-width: 0 0 1px 0;
}
TABLE#twikiSearchTable TD.first {
TABLE#foswikiSearchTable TD.first {
background: #eee;
}
.twikiEditboxStyleMono {
.foswikiEditboxStyleMono {
font: 100% "Courier New", courier, monaco, monospace;
}
.twikiEditboxStyleProportional {
.foswikiEditboxStyleProportional {
font: 100% verdana, arial, sans-serif;
}
12 changes: 6 additions & 6 deletions templates/attach.quickmenu.tmpl
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
%TMPL:INCLUDE{"foswiki"}%

%TMPL:DEF{"templatescript"}%
<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/JavascriptFiles/twiki_attach.js"></script>
<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/JavascriptFiles/foswiki_attach.js"></script>
%TMPL:END%


%TMPL:DEF{"existingattachments"}%</p>
<span id="attachexistingshow" class="twistyMakeOpaque"><a href="#" class="twistyTrigger">%ICON{toggleopen-small}%<span class="twikiLinkLabel" id="attachmentsshowlink">%MAKETEXT{"Show existing attachments"}%</span></a></span><span id="attachexistinghide" class="twistyHidden twistyMakeOpaque"><a href="#" class="twistyTrigger">%ICON{toggleclose-small}%<span class="twikiLinkLabel" id="attachmentshidelink">%MAKETEXT{"Hide existing attachments"}%</span></a></span>
<span id="attachexistingshow" class="twistyMakeOpaque"><a href="#" class="twistyTrigger">%ICON{toggleopen-small}%<span class="foswikiLinkLabel" id="attachmentsshowlink">%MAKETEXT{"Show existing attachments"}%</span></a></span><span id="attachexistinghide" class="twistyHidden twistyMakeOpaque"><a href="#" class="twistyTrigger">%ICON{toggleclose-small}%<span class="foswikiLinkLabel" id="attachmentshidelink">%MAKETEXT{"Hide existing attachments"}%</span></a></span>
<h2 class="twistyMakeHidden">%MAKETEXT{"Existing attachments"}%</h2>
<div id="attachexistingtoggle" class="twistyMakeHidden twistyRememberSetting">
%META{"attachments" all="on"}% <script type="text/javascript">
//<![CDATA[
var attTable = document.getElementById("twikiAttachmentsTable");
var attTable = document.getElementById("foswikiAttachmentsTable");
if (attTable) {
var count = " (" + (attTable.getElementsByTagName("tr").length - 1) + ")";
document.getElementById('attachmentsshowlink').firstChild.data += count;
Expand All @@ -22,10 +22,10 @@

%TMPL:DEF{"content"}%
%TMPL:P{"simpleheader"}%
<div class=twikiTopic>
<div class=foswikiTopic>
---+ %MAKETEXT{"Attach image or document on [_1]" args="%TOPIC%"}%
<span id="attachhelpshow" class="twistyMakeOpaque"><a href="#" class="twistyTrigger">%ICON{toggleopen-small}%<span class="twikiLinkLabel">%MAKETEXT{"Show help"}%</span></a></span><span id="attachhelphide" class="twistyHidden twistyMakeOpaque"><a href="#" class="twistyTrigger">%ICON{toggleclose-small}%<span class="twikiLinkLabel">%MAKETEXT{"Hide help"}%</span></a></span>
<div id="attachhelptoggle" class="twikiHelp twistyHidden twistyRememberSetting">
<span id="attachhelpshow" class="twistyMakeOpaque"><a href="#" class="twistyTrigger">%ICON{toggleopen-small}%<span class="foswikiLinkLabel">%MAKETEXT{"Show help"}%</span></a></span><span id="attachhelphide" class="twistyHidden twistyMakeOpaque"><a href="#" class="twistyTrigger">%ICON{toggleclose-small}%<span class="foswikiLinkLabel">%MAKETEXT{"Hide help"}%</span></a></span>
<div id="attachhelptoggle" class="foswikiHelp twistyHidden twistyRememberSetting">
%TMPL:P{"notes"}%</div>
<form name="main" enctype="multipart/form-data" action="%SCRIPTURLPATH{"upload"}%/%WEB%/%TOPIC%" method="post">
%TMPL:P{"previousdetails"}%
Expand Down
10 changes: 5 additions & 5 deletions templates/attachtables.quickmenu.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@

%{ Header definition for topic attachments and top table in attach screen }%
%TMPL:DEF{ATTACH:files:header(basic)}%
<div class="twikiAttachments"> %TABLE{tableborder="0" cellpadding="0" cellspacing="0" databg="#FFFFFF" id="twikiAttachmentsTable" summary="%MAKETEXT{"Topic attachments"}%" caption="%MAKETEXT{"Topic attachments"}%" }%
<div class="foswikiAttachments"> %TABLE{tableborder="0" cellpadding="0" cellspacing="0" databg="#FFFFFF" id="foswikiAttachmentsTable" summary="%MAKETEXT{"Topic attachments"}%" caption="%MAKETEXT{"Topic attachments"}%" }%
%TMPL:P{ATTACH:files:header(toprow)}%%TMPL:END%

%{ A basic row definition, for attachment table and attach screen }%
%TMPL:DEF{ATTACH:files:row(basic)}%
| %A_ICON%<span class="twikiHidden">%A_EXT%</span> | <a href="%A_URL%">%A_FILE%</a> | <a href="%SCRIPTURLPATH{"attach"}%/%WEB%/%TOPIC%?filename=%A_FILE%&revInfo=1" title='%MAKETEXT{"change, update, previous revisions, move, delete..."}%'rel='nofollow'>%MAKETEXT{"manage"}%</a> | %A_SIZE% | %A_DATE% | %A_USER% | %A_COMMENT% |%TMPL:END%
| %A_ICON%<span class="foswikiHidden">%A_EXT%</span> | <a href="%A_URL%">%A_FILE%</a> | <a href="%SCRIPTURLPATH{"attach"}%/%WEB%/%TOPIC%?filename=%A_FILE%&revInfo=1" title='%MAKETEXT{"change, update, previous revisions, move, delete..."}%'rel='nofollow'>%MAKETEXT{"manage"}%</a> | %A_SIZE% | %A_DATE% | %A_USER% | %A_COMMENT% |%TMPL:END%

%{ Header for topic attachment table }%
%TMPL:DEF{ATTACH:files:header}%
<div class="twikiAttachments"> %TABLE{tableborder="0" cellpadding="0" cellspacing="0" databg="#FFFFFF" id="twikiAttachmentsTable" summary="%MAKETEXT{"Topic attachments"}%" caption="%MAKETEXT{"Topic attachments"}%" }%
<span id="attachmentsshow" class="twistyMakeOpaque"><a href="#" class="twistyTrigger">%ICON{toggleopen}%<span class="twikiLinkLabel" id="attachmentsshowlink">%MAKETEXT{"Show attachments"}%</span></a></span><span id="attachmentshide" class="twistyHidden twistyMakeOpaque"><a href="#" class="twistyTrigger">%ICON{toggleclose}%<span class="twikiLinkLabel" id="attachmentshidelink">%MAKETEXT{"Hide attachments"}%</span></a></span>
<div class="foswikiAttachments"> %TABLE{tableborder="0" cellpadding="0" cellspacing="0" databg="#FFFFFF" id="foswikiAttachmentsTable" summary="%MAKETEXT{"Topic attachments"}%" caption="%MAKETEXT{"Topic attachments"}%" }%
<span id="attachmentsshow" class="twistyMakeOpaque"><a href="#" class="twistyTrigger">%ICON{toggleopen}%<span class="foswikiLinkLabel" id="attachmentsshowlink">%MAKETEXT{"Show attachments"}%</span></a></span><span id="attachmentshide" class="twistyHidden twistyMakeOpaque"><a href="#" class="twistyTrigger">%ICON{toggleclose}%<span class="foswikiLinkLabel" id="attachmentshidelink">%MAKETEXT{"Hide attachments"}%</span></a></span>
<div id="attachmentstoggle" class="twistyMakeHidden twistyRememberSetting">
%TMPL:P{ATTACH:files:header(toprow)}%
%TMPL:END%
Expand All @@ -32,7 +32,7 @@
</div></div>
<script type="text/javascript">
//<![CDATA[
var attTable = document.getElementById("twikiAttachmentsTable");
var attTable = document.getElementById("foswikiAttachmentsTable");
if (attTable) {
var count = " (" + (attTable.getElementsByTagName("tr").length - 1) + ")";
document.getElementById('attachmentsshowlink').firstChild.data += count;
Expand Down
2 changes: 1 addition & 1 deletion templates/backlinksallwebs.quickmenu.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%TMPL:DEF{"titleaction"}%(backlinks) %TMPL:END%

%TMPL:DEF{"content"}%
<div class=twikiTopic>
<div class=foswikiTopic>
<p>%ICON{"topicbacklinks"}% <b>%MAKETEXT{"Backlinks to [_1] in all Webs" args="%TOPIC%"}%</b>&nbsp;&nbsp;<small><a href="%SCRIPTURLPATH{"oops"}%/%WEB%/%TOPIC%?template=backlinksweb" title='%MAKETEXT{"Search all webs for topics that link to here"}%' accesskey="b"><img src="%ICONURL{search-small}%" width="13" height="13" alt="" border="0" />&nbsp;%MAKETEXT{"Search [_1] We&b only" args="<nop>%WEB%"}%</a></small></p>
%TMPL:P{"searchweb"}%
%TMPL:P{"searchallwebs"}%
Expand Down
2 changes: 1 addition & 1 deletion templates/backlinksweb.quickmenu.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
%TMPL:DEF{"titleaction"}%(backlinks) %TMPL:END%

%TMPL:DEF{"content"}%
<div class=twikiTopic>
<div class=foswikiTopic>
<p>%ICON{"topicbacklinks"}% <b>%MAKETEXT{"Backlinks to [_1] in [_2] Web" args="%TOPIC%, <nop>%WEB%"}%</b>&nbsp;&nbsp;<small><a href="%SCRIPTURLPATH{"oops"}%/%WEB%/%TOPIC%?template=backlinksallwebs" title='%MAKETEXT{"Search all webs for topics that link to here"}%' accesskey="l"><img src="%ICONURL{search-small}%" width="13" height="13" alt="" border="0" />&nbsp;%MAKETEXT{"Search a&ll Webs"}%</a></small></p>
%TMPL:P{"searchweb"}%
%TMPL:P{"topicinfo"}%</div>%TMPL:END%
6 changes: 3 additions & 3 deletions templates/changeform.quickmenu.tmpl
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
%TMPL:INCLUDE{"foswiki"}%

%TMPL:DEF{"topicaction"}% <input type="submit" class="twikiSubmit" name="submit" value='%MAKETEXT{"Change form"}%' /> %MAKETEXT{"or"}% <input type="button" class="twikiSubmit" name="backbutton" %MAKETEXT{"value='Cancel' accesskey='c'"}% onclick="history.go(-1)" />%TMPL:END%
%TMPL:DEF{"topicaction"}% <input type="submit" class="foswikiSubmit" name="submit" value='%MAKETEXT{"Change form"}%' /> %MAKETEXT{"or"}% <input type="button" class="foswikiSubmit" name="backbutton" %MAKETEXT{"value='Cancel' accesskey='c'"}% onclick="history.go(-1)" />%TMPL:END%

%TMPL:DEF{"titleaction"}%(change form) %TMPL:END%
%TMPL:DEF{"webaction"}% *Action* %TMPL:END%

%TMPL:DEF{"content"}%
%TMPL:P{"simpleheader"}%
<div class=twikiTopic>
<div class=foswikiTopic>
<form name="main" action="%SCRIPTURLPATH{"edit"}%/%WEB%/%TOPIC%" method="post">
<input type="hidden" name="t" value="t=%GMTIME{"$epoch"}%" />
---++ Choose a new form template

<table border="0" cellspacing="0" cellpadding="0" class=twikiTable>
<table border="0" cellspacing="0" cellpadding="0" class=foswikiTable>
<tr><th>Possible form templates<th>Notes</tr>
<tr valign=top><td><ul style="padding-left: 1em">%FORMLIST%</ul>
</td><td valign="top">
Expand Down
Loading

0 comments on commit 2a34c29

Please sign in to comment.