1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-26 07:13:15 +00:00

Fixed tiddler styling issues

This commit is contained in:
Jeremy Ruston 2012-10-24 22:28:25 +01:00
parent 999d63c0f0
commit ce4a14c68a
5 changed files with 10 additions and 8 deletions

View File

@ -114,7 +114,7 @@ exports.executeMacro = function() {
}
// Set up the attributes for the wrapper element
var attributes = {
"class": ["tw-tiddler-frame"]
"class": []
};
if(!this.wiki.tiddlerExists(renderTitle)) {
attributes["class"].push("tw-tiddler-missing");

View File

@ -5837,7 +5837,7 @@ Tiddler styles
}
@media (min-width: 767px) {
.tw-story-element {
.tw-tiddler-frame {
padding: 30px 30px 30px 30px;
margin: 30px 5px 30px 5px;
background-color: #fff;
@ -5854,7 +5854,7 @@ Tiddler styles
}
.tw-story-element .body {
.tw-tiddler-frame .body {
margin-top: 12px;
}

View File

@ -1,7 +1,8 @@
title: $:/templates/ViewTemplate
modifier: JeremyRuston
<div class="title">
<div class="tw-tiddler-frame">
<div class="title">
<span><<view title>></span> <span> <<reveal state:[[$:/EditMode]] type:match text:yes>< <<button EditTiddler class:"btn-invisible"><[img[$:/core/images/edit-button.svg]]>> >> </span>
<<button close class:"btn-invisible pull-right"><[img[$:/core/images/close-button.svg]]>>
</div>
@ -14,3 +15,4 @@ modifier: JeremyRuston
<div class="body">
<<view text wikified>>
</div>
</div>

View File

@ -61,7 +61,7 @@ Tiddler styles
@media (min-width: 767px) {
.tw-story-element {
.tw-tiddler-frame {
padding: 30px 30px 30px 30px;
margin: 30px 5px 30px 5px;
.box-shadow(1px 1px 6px rgba(0,0,0,0.4));
@ -80,7 +80,7 @@ body {
}
.tw-story-element .body {
.tw-tiddler-frame .body {
margin-top: 12px;
}

File diff suppressed because one or more lines are too long