Mercurial > moin > 2.0
changeset 2392:c515adfb6b69
Fixes #35, transclusion toggle activated
author | sharky93 <rishabhr123@gmail.com> |
---|---|
date | Sat, 17 Aug 2013 20:59:34 +0530 |
parents | b90f9f175060 |
children | 0cb9f75fb9ba |
files | MoinMoin/templates/common.js MoinMoin/themes/basic/static/css/basic.css MoinMoin/themes/basic/static/custom-less/basic.less |
diffstat | 3 files changed, 94 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/templates/common.js Sat Aug 17 18:28:28 2013 +0530 +++ b/MoinMoin/templates/common.js Sat Aug 17 20:59:34 2013 +0530 @@ -131,6 +131,7 @@ wrappers = $('.moin-item-wrapper'); if (wrappers.length > 0) { $('.moin-transclusions-button').css('display', ''); + $('.moin-transclusions-button').click(toggleTransclusionOverlays); } } $(document).ready(initTransclusionOverlays);
--- a/MoinMoin/themes/basic/static/css/basic.css Sat Aug 17 18:28:28 2013 +0530 +++ b/MoinMoin/themes/basic/static/css/basic.css Sat Aug 17 20:59:34 2013 +0530 @@ -4424,3 +4424,45 @@ .moin-quicklink-delete:focus { text-decoration: none; } +.moin-transclusion { + max-width: 100%; +} +.moin-item-wrapper { + position: relative; + display: inline-block; +} +.moin-item-wrapper > a:hover { + color: link_color; + text-decoration: none; +} +div.moin-item-wrapper { + width: 100%; +} +.moin-item-overlay-ul, +.moin-item-overlay-lr { + display: none; + position: absolute; + font-size: 1.2em; + font-weight: bold; + margin: 0; + opacity: .5; + padding: 1px; + border-color: #428bca; + border-style: double; +} +.moin-item-overlay-ul { + top: -4px; + left: -4px; + border-width: 3px 0 0 3px; +} +.moin-item-overlay-lr { + bottom: -4px; + right: -4px; + border-width: 0 3px 3px 0; +} +.moin-item-overlay-ul:hover, +.moin-item-overlay-lr:hover { + opacity: .8; + background-color: #555555; + color: #428bca; +}
--- a/MoinMoin/themes/basic/static/custom-less/basic.less Sat Aug 17 18:28:28 2013 +0530 +++ b/MoinMoin/themes/basic/static/custom-less/basic.less Sat Aug 17 20:59:34 2013 +0530 @@ -82,4 +82,54 @@ &:focus { text-decoration: none; } -} \ No newline at end of file +} + +// transclusion +.moin-transclusion { + max-width: 100%; +} + +.moin-item-wrapper { + position: relative; + display: inline-block; + > a:hover { + color: link_color; + text-decoration: none; + } +} + +div.moin-item-wrapper { + width: 100%; // force bottom border of transcluded headings to extend across entire page +} + +.moin-item-overlay-ul, +.moin-item-overlay-lr { + display: none; + position: absolute; + font-size: 1.2em; + font-weight: bold; + margin: 0; + opacity: .5; + padding: 1px; + border-color: @link-color; + border-style: double; +} + +.moin-item-overlay-ul { + top: -4px; + left: -4px; + border-width: 3px 0 0 3px; +} + +.moin-item-overlay-lr { + bottom: -4px; + right: -4px; + border-width: 0 3px 3px 0; +} + +.moin-item-overlay-ul:hover, +.moin-item-overlay-lr:hover { + opacity: .8; + background-color: @gray; + color: @link-color; +}