Skip to content

Commit

Permalink
Item11084: fix foswikiMakeVisible class for elements other than span …
Browse files Browse the repository at this point in the history
…and div

git-svn-id: http://svn.foswiki.org/branches/Release01x01@12402 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
ArthurClemens authored and ArthurClemens committed Aug 28, 2011
1 parent c80f3b6 commit 4d06ab6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/data/System/AppendixCascadingStyleSheets.txt
Expand Up @@ -62,7 +62,7 @@ A wide range of standard styles are used in the Foswiki core code and topics, an
|=.foswikiLarge= | Large text, for instance for introduction paragraphs |
|=.foswikiNoBreak= | Causes whitespace not to create a linebreak; for instance with the dates in the attachment table |
|=.foswikiJs= | Added to the =html= tag if the browser has javascript enabled. |
|=.foswikiMakeVisible= | For elements that should only be visible with !JavaScript on: default set to hidden, is made visible by !JavaScript; defaults to inline |
|=.foswikiMakeVisible= | For elements that should only be visible with !JavaScript on: default set to hidden, is made visible by !JavaScript |
|=.foswikiMakeVisibleInline= | DEPRECATED as of Foswiki 1.1.0: use =span.foswikiMakeVisible=. For =span= elements that should only be visible with !JavaScript on: default set to hidden, is made visible by !JavaScript |
|=.foswikiMakeVisibleBlock= | DEPRECATED as of Foswiki 1.1.0: use =div.foswikiMakeVisible=. For =div= elements that should only be visible with !JavaScript on: default set to hidden, is made visible by !JavaScript |
|=.foswikiMakeHidden= | For elements that should be hidden with !JavaScript on: no default style, is made hidden by !JavaScript |
Expand Down
31 changes: 26 additions & 5 deletions core/pub/System/SkinTemplates/base_src.css
Expand Up @@ -8,15 +8,36 @@
.foswikiMakeVisibleBlock {
display:none;
}
/* for all inline elements - block level elements are handled below */
.foswikiJs .foswikiMakeVisible {
display:;
display:inline;
}
.foswikiJs div.foswikiMakeVisible {
.foswikiJs p.foswikiMakeVisible,
.foswikiJs h1.foswikiMakeVisible,
.foswikiJs h2.foswikiMakeVisible,
.foswikiJs h3.foswikiMakeVisible,
.foswikiJs h4.foswikiMakeVisible,
.foswikiJs h5.foswikiMakeVisible,
.foswikiJs h6.foswikiMakeVisible,
.foswikiJs dl.foswikiMakeVisible,
.foswikiJs dt.foswikiMakeVisible,
.foswikiJs dd.foswikiMakeVisible,
.foswikiJs ol.foswikiMakeVisible,
.foswikiJs ul.foswikiMakeVisible,
.foswikiJs li.foswikiMakeVisible,
.foswikiJs address.foswikiMakeVisible,
.foswikiJs blockquote.foswikiMakeVisible,
.foswikiJs center.foswikiMakeVisible,
.foswikiJs del.foswikiMakeVisible,
.foswikiJs div.foswikiMakeVisible,
.foswikiJs form.foswikiMakeVisible,
.foswikiJs hr.foswikiMakeVisible,
.foswikiJs ins.foswikiMakeVisible,
.foswikiJs noscript.foswikiMakeVisible,
.foswikiJs pre.foswikiMakeVisible,
.foswikiJs table.foswikiMakeVisible {
display:block;
}
.foswikiJs span.foswikiMakeVisible {
display:inline;
}
.foswikiJs .foswikiMakeVisibleInline {
/* deprecated */
display:inline;
Expand Down

0 comments on commit 4d06ab6

Please sign in to comment.