1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-09-04 03:48:01 +00:00

Convert more "tw-*" classes to "tc-*"

This commit is contained in:
Jermolene
2014-08-28 18:47:21 +01:00
parent 787481a804
commit 1814d502a4
10 changed files with 53 additions and 53 deletions

View File

@@ -45,7 +45,7 @@ EditBitmapWidget.prototype.render = function(parent,nextSibling) {
// Create our element // Create our element
this.canvasDomNode = $tw.utils.domMaker("canvas",{ this.canvasDomNode = $tw.utils.domMaker("canvas",{
document: this.document, document: this.document,
"class":"tw-edit-bitmapeditor", "class":"tc-edit-bitmapeditor",
eventListeners: [{ eventListeners: [{
name: "touchstart", handlerObject: this, handlerMethod: "handleTouchStartEvent" name: "touchstart", handlerObject: this, handlerMethod: "handleTouchStartEvent"
},{ },{
@@ -62,14 +62,14 @@ EditBitmapWidget.prototype.render = function(parent,nextSibling) {
}); });
this.widthDomNode = $tw.utils.domMaker("input",{ this.widthDomNode = $tw.utils.domMaker("input",{
document: this.document, document: this.document,
"class":"tw-edit-bitmapeditor-width", "class":"tc-edit-bitmapeditor-width",
eventListeners: [{ eventListeners: [{
name: "change", handlerObject: this, handlerMethod: "handleWidthChangeEvent" name: "change", handlerObject: this, handlerMethod: "handleWidthChangeEvent"
}] }]
}); });
this.heightDomNode = $tw.utils.domMaker("input",{ this.heightDomNode = $tw.utils.domMaker("input",{
document: this.document, document: this.document,
"class":"tw-edit-bitmapeditor-height", "class":"tc-edit-bitmapeditor-height",
eventListeners: [{ eventListeners: [{
name: "change", handlerObject: this, handlerMethod: "handleHeightChangeEvent" name: "change", handlerObject: this, handlerMethod: "handleHeightChangeEvent"
}] }]

View File

@@ -11,7 +11,7 @@ caption: {{$:/language/Search/Filter/Caption}}
<div class="tw-block-dropdown-wrapper"> <div class="tw-block-dropdown-wrapper">
<$reveal state=<<qualify "$:/state/filterDropdown">> type="nomatch" text="" default=""> <$reveal state=<<qualify "$:/state/filterDropdown">> type="nomatch" text="" default="">
<div class="tw-block-dropdown tw-edit-type-dropdown"> <div class="tw-block-dropdown tc-edit-type-dropdown">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/Filter]]"><$link to={{!!filter}}><$transclude field="description"/></$link> <$list filter="[all[shadows+tiddlers]tag[$:/tags/Filter]]"><$link to={{!!filter}}><$transclude field="description"/></$link>
</$list> </$list>
</div> </div>

View File

@@ -10,7 +10,7 @@ tags: $:/tags/EditTemplate
<a href={{!!_canonical_uri}}><$text text={{!!_canonical_uri}}/></a> <a href={{!!_canonical_uri}}><$text text={{!!_canonical_uri}}/></a>
<$edit-text field="_canonical_uri" class="tw-edit-fields"></$edit-text> <$edit-text field="_canonical_uri" class="tc-edit-fields"></$edit-text>
</div> </div>
@@ -20,7 +20,7 @@ tags: $:/tags/EditTemplate
<$reveal state="$:/state/showeditpreview" type="match" text="yes"> <$reveal state="$:/state/showeditpreview" type="match" text="yes">
<em class="tw-edit"><<lingo Hint>></em> <$button type="set" set="$:/state/showeditpreview" setTo="no"><<lingo Preview/Button/Hide>></$button> <em class="tc-edit"><<lingo Hint>></em> <$button type="set" set="$:/state/showeditpreview" setTo="no"><<lingo Preview/Button/Hide>></$button>
<div class="tw-tiddler-preview"> <div class="tw-tiddler-preview">
<div class="tw-tiddler-preview-preview"> <div class="tw-tiddler-preview-preview">
@@ -30,7 +30,7 @@ tags: $:/tags/EditTemplate
</div> </div>
<div class="tw-tiddler-preview-edit"> <div class="tw-tiddler-preview-edit">
<$edit field="text" class="tw-edit-texteditor" placeholder={{$:/language/EditTemplate/Body/Placeholder}}/> <$edit field="text" class="tc-edit-texteditor" placeholder={{$:/language/EditTemplate/Body/Placeholder}}/>
</div> </div>
@@ -40,8 +40,8 @@ tags: $:/tags/EditTemplate
<$reveal state="$:/state/showeditpreview" type="nomatch" text="yes"> <$reveal state="$:/state/showeditpreview" type="nomatch" text="yes">
<em class="tw-edit"><<lingo Hint>></em> <$button type="set" set="$:/state/showeditpreview" setTo="yes"><<lingo Preview/Button/Show>></$button> <em class="tc-edit"><<lingo Hint>></em> <$button type="set" set="$:/state/showeditpreview" setTo="yes"><<lingo Preview/Button/Show>></$button>
<$edit field="text" class="tw-edit-texteditor" placeholder={{$:/language/EditTemplate/Body/Placeholder}}/> <$edit field="text" class="tc-edit-texteditor" placeholder={{$:/language/EditTemplate/Body/Placeholder}}/>
</$reveal> </$reveal>

View File

@@ -9,18 +9,18 @@ $:/config/EditTemplateFields/Visibility/$(currentField)$
[[hide]] -[title{$(config-title)$}] [[hide]] -[title{$(config-title)$}]
\end \end
<$fieldmangler> <$fieldmangler>
<div class="tw-edit-fields"> <div class="tc-edit-fields">
<table class="tw-edit-fields"> <table class="tc-edit-fields">
<tbody> <tbody>
<$list filter="[all[current]fields[]] +[sort[title]]" variable="currentField"> <$list filter="[all[current]fields[]] +[sort[title]]" variable="currentField">
<$list filter=<<config-filter>> variable="temp"> <$list filter=<<config-filter>> variable="temp">
<tr class="tw-edit-field"> <tr class="tc-edit-field">
<td class="tw-edit-field-name"> <td class="tc-edit-field-name">
<$text text=<<currentField>>/>:</td> <$text text=<<currentField>>/>:</td>
<td class="tw-edit-field-value"> <td class="tc-edit-field-value">
<$edit-text tiddler=<<currentTiddler>> field=<<currentField>> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}}/> <$edit-text tiddler=<<currentTiddler>> field=<<currentField>> placeholder={{$:/language/EditTemplate/Fields/Add/Value/Placeholder}}/>
</td> </td>
<td class="tw-edit-field-remove"> <td class="tc-edit-field-remove">
<$button message="tw-remove-field" param=<<currentField>> class="tc-btn-invisible">{{$:/core/images/delete-button}}</$button> <$button message="tw-remove-field" param=<<currentField>> class="tc-btn-invisible">{{$:/core/images/delete-button}}</$button>
</td> </td>
</tr> </tr>
@@ -30,12 +30,12 @@ $:/config/EditTemplateFields/Visibility/$(currentField)$
</table> </table>
</div> </div>
<div class="tw-edit-field-add"> <div class="tc-edit-field-add">
<em class="tw-edit"> <em class="tc-edit">
<<lingo Fields/Add/Prompt>> <<lingo Fields/Add/Prompt>>
</em> <span class="tw-edit-field-add-name"> </em> <span class="tc-edit-field-add-name">
<$edit-text tiddler="$:/temp/newfieldname" tag="input" default="" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} class="tw-edit-texteditor"/> <$edit-text tiddler="$:/temp/newfieldname" tag="input" default="" placeholder={{$:/language/EditTemplate/Fields/Add/Name/Placeholder}} class="tc-edit-texteditor"/>
</span> <span class="tw-edit-field-add-button"> </span> <span class="tc-edit-field-add-button">
<$button message="tw-add-field" param={{$:/temp/newfieldname}} set="$:/temp/newfieldname" setTo="" class=""> <$button message="tw-add-field" param={{$:/temp/newfieldname}} set="$:/temp/newfieldname" setTo="" class="">
<<lingo Fields/Add/Button>> <<lingo Fields/Add/Button>>
</$button> </$button>

View File

@@ -5,7 +5,7 @@ tags: $:/tags/EditTemplate
\define tag-styles() \define tag-styles()
background-color:$(backgroundColor)$; background-color:$(backgroundColor)$;
\end \end
<div class="tw-edit-tags"> <div class="tc-edit-tags">
<$fieldmangler> <$fieldmangler>
<$list filter="[all[current]tags[]sort[title]]" storyview="pop"><$set name="backgroundColor" value={{!!color}}><span style=<<tag-styles>> class="tw-tag-label"> <$list filter="[all[current]tags[]sort[title]]" storyview="pop"><$set name="backgroundColor" value={{!!color}}><span style=<<tag-styles>> class="tw-tag-label">
<$view field="title" format="text" /> <$view field="title" format="text" />
@@ -13,9 +13,9 @@ background-color:$(backgroundColor)$;
</$set> </$set>
</$list> </$list>
<div class="tw-edit-add-tag"> <div class="tc-edit-add-tag">
<span class="tw-add-tag-name"> <span class="tw-add-tag-name">
<$edit-text tiddler="$:/temp/NewTagName" tag="input" default="" placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}} focusPopup=<<qualify "$:/state/popup/tags-auto-complete">> class="tw-edit-texteditor"/> <$edit-text tiddler="$:/temp/NewTagName" tag="input" default="" placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}} focusPopup=<<qualify "$:/state/popup/tags-auto-complete">> class="tc-edit-texteditor"/>
</span> <$button popup=<<qualify "$:/state/popup/tags-auto-complete">> class="tc-btn-invisible btn-dropdown">{{$:/core/images/down-arrow}}</$button> <span class="tw-add-tag-button"> </span> <$button popup=<<qualify "$:/state/popup/tags-auto-complete">> class="tc-btn-invisible btn-dropdown">{{$:/core/images/down-arrow}}</$button> <span class="tw-add-tag-button">
<$button message="tw-add-tag" param={{$:/temp/NewTagName}} set="$:/temp/NewTagName" setTo="" class=""> <$button message="tw-add-tag" param={{$:/temp/NewTagName}} set="$:/temp/NewTagName" setTo="" class="">
<<lingo Tags/Add/Button>> <<lingo Tags/Add/Button>>

View File

@@ -1,4 +1,4 @@
title: $:/core/ui/EditTemplate/title title: $:/core/ui/EditTemplate/title
tags: $:/tags/EditTemplate tags: $:/tags/EditTemplate
<$edit-text field="draft.title" class="tc-titlebar tw-edit-texteditor"/> <$edit-text field="draft.title" class="tc-titlebar tc-edit-texteditor"/>

View File

@@ -2,11 +2,11 @@ title: $:/core/ui/EditTemplate/type
tags: $:/tags/EditTemplate tags: $:/tags/EditTemplate
\define lingo-base() $:/language/EditTemplate/ \define lingo-base() $:/language/EditTemplate/
<p><$fieldmangler><em class="tw-edit"><<lingo Type/Prompt>></em> <$edit-text field="type" tag="input" default="" placeholder={{$:/language/EditTemplate/Type/Placeholder}} focusPopup=<<qualify "$:/state/popup/type-dropdown">> class="tw-edit-typeeditor"/> <$button popup=<<qualify "$:/state/popup/type-dropdown">> class="tc-btn-invisible btn-dropdown">{{$:/core/images/down-arrow}}</$button> <$button message="tw-remove-field" param="type" class="tc-btn-invisible tc-btn-icon">{{$:/core/images/delete-button}}</$button></$fieldmangler></p> <p><$fieldmangler><em class="tc-edit"><<lingo Type/Prompt>></em> <$edit-text field="type" tag="input" default="" placeholder={{$:/language/EditTemplate/Type/Placeholder}} focusPopup=<<qualify "$:/state/popup/type-dropdown">> class="tc-edit-typeeditor"/> <$button popup=<<qualify "$:/state/popup/type-dropdown">> class="tc-btn-invisible btn-dropdown">{{$:/core/images/down-arrow}}</$button> <$button message="tw-remove-field" param="type" class="tc-btn-invisible tc-btn-icon">{{$:/core/images/delete-button}}</$button></$fieldmangler></p>
<div class="tw-block-dropdown-wrapper"> <div class="tw-block-dropdown-wrapper">
<$reveal state=<<qualify "$:/state/popup/type-dropdown">> type="nomatch" text="" default=""> <$reveal state=<<qualify "$:/state/popup/type-dropdown">> type="nomatch" text="" default="">
<div class="tw-block-dropdown tw-edit-type-dropdown"> <div class="tw-block-dropdown tc-edit-type-dropdown">
<$linkcatcher to="!!type"> <$linkcatcher to="!!type">
<$list filter='[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]each[group]sort[group]]'> <$list filter='[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]each[group]sort[group]]'>
<div class="tc-dropdown-item"> <div class="tc-dropdown-item">

View File

@@ -9,7 +9,7 @@ Several features work in concert to give the desired behaviour for draft tiddler
* The ListWidget can optionally render draft tiddlers through a different template * The ListWidget can optionally render draft tiddlers through a different template
* The NavigatorWidget incorporates handlers for the following events: * The NavigatorWidget incorporates handlers for the following events:
** `tw-new-tiddler` for creating a new tiddler in draft mode ** `tw-new-tiddler` for creating a new tiddler in draft mode
** `tw-edit-tiddler` for moving a tiddler into edit mode ** `tc-edit-tiddler` for moving a tiddler into edit mode
** `tw-cancel-tiddler` for cancelling a tiddler out of edit mode ** `tw-cancel-tiddler` for cancelling a tiddler out of edit mode
** `tw-save-tiddler` for saving a draft tiddler ** `tw-save-tiddler` for saving a draft tiddler
* Draft tiddlers are automatically excluded from search operations * Draft tiddlers are automatically excluded from search operations

View File

@@ -31,21 +31,21 @@ tags: [[$:/tags/stylesheet]]
<<filter "drop-shadow(0px -1px 2px rgba(0,0,0,0.25))">> <<filter "drop-shadow(0px -1px 2px rgba(0,0,0,0.25))">>
} }
.tw-tiddler-frame input.tw-edit-texteditor { .tw-tiddler-frame input.tc-edit-texteditor {
<<box-shadow "inset 0 1px 8px rgba(0, 0, 0, 0.15)">> <<box-shadow "inset 0 1px 8px rgba(0, 0, 0, 0.15)">>
} }
.tw-edit-tags { .tc-edit-tags {
<<box-shadow "inset 0 1px 8px rgba(0, 0, 0, 0.15)">> <<box-shadow "inset 0 1px 8px rgba(0, 0, 0, 0.15)">>
} }
.tw-tiddler-frame .tw-edit-tags input.tw-edit-texteditor { .tw-tiddler-frame .tc-edit-tags input.tc-edit-texteditor {
<<box-shadow "none">> <<box-shadow "none">>
border: none; border: none;
outline: none; outline: none;
} }
canvas.tw-edit-bitmapeditor { canvas.tc-edit-bitmapeditor {
<<box-shadow "2px 2px 5px rgba(0, 0, 0, 0.5)">> <<box-shadow "2px 2px 5px rgba(0, 0, 0, 0.5)">>
} }

View File

@@ -661,7 +661,7 @@ button.tw-tag-label, span.tw-tag-label {
color: <<colour very-muted-foreground>>; color: <<colour very-muted-foreground>>;
} }
.tw-tiddler-frame input.tw-edit-texteditor, .tw-tiddler-frame textarea.tw-edit-texteditor { .tw-tiddler-frame input.tc-edit-texteditor, .tw-tiddler-frame textarea.tc-edit-texteditor {
width: 100%; width: 100%;
padding: 3px 3px 3px 3px; padding: 3px 3px 3px 3px;
border: 1px solid <<colour tiddler-editor-border>>; border: 1px solid <<colour tiddler-editor-border>>;
@@ -679,11 +679,11 @@ button.tw-tag-label, span.tw-tag-label {
border: 1px solid <<colour alert-border>>; border: 1px solid <<colour alert-border>>;
} }
.tw-tiddler-frame input.tw-edit-texteditor { .tw-tiddler-frame input.tc-edit-texteditor {
background-color: <<colour tiddler-editor-background>>; background-color: <<colour tiddler-editor-background>>;
} }
canvas.tw-edit-bitmapeditor { canvas.tc-edit-bitmapeditor {
border: 6px solid <<colour tiddler-editor-border-image>>; border: 6px solid <<colour tiddler-editor-border-image>>;
cursor: crosshair; cursor: crosshair;
-moz-user-select: none; -moz-user-select: none;
@@ -693,11 +693,11 @@ canvas.tw-edit-bitmapeditor {
margin-bottom: 6px; margin-bottom: 6px;
} }
.tw-edit-bitmapeditor-width { .tc-edit-bitmapeditor-width {
display: block; display: block;
} }
.tw-edit-bitmapeditor-height { .tc-edit-bitmapeditor-height {
display: block; display: block;
} }
@@ -745,33 +745,33 @@ canvas.tw-edit-bitmapeditor {
** Tiddler edit mode ** Tiddler edit mode
*/ */
.tw-tiddler-edit-frame em.tw-edit { .tw-tiddler-edit-frame em.tc-edit {
color: <<colour muted-foreground>>; color: <<colour muted-foreground>>;
font-style: normal; font-style: normal;
} }
.tw-edit-type-dropdown a.tc-tiddlylink-missing { .tc-edit-type-dropdown a.tc-tiddlylink-missing {
font-style: normal; font-style: normal;
} }
.tw-edit-tags { .tc-edit-tags {
border: 1px solid <<colour tiddler-editor-border>>; border: 1px solid <<colour tiddler-editor-border>>;
padding: 4px 8px 4px 8px; padding: 4px 8px 4px 8px;
} }
.tw-edit-add-tag { .tc-edit-add-tag {
display: inline-block; display: inline-block;
} }
.tw-edit-add-tag .tw-add-tag-name input { .tc-edit-add-tag .tw-add-tag-name input {
width: 50%; width: 50%;
} }
.tw-edit-tags .tw-tag-label { .tc-edit-tags .tw-tag-label {
display: inline-block; display: inline-block;
} }
.tw-edit-tags-list { .tc-edit-tags-list {
margin: 14px 0 14px 0; margin: 14px 0 14px 0;
} }
@@ -800,48 +800,48 @@ canvas.tw-edit-bitmapeditor {
width: 48%; width: 48%;
} }
.tw-edit-fields { .tc-edit-fields {
width: 100%; width: 100%;
} }
.tw-edit-fields table, .tw-edit-fields tr, .tw-edit-fields td { .tc-edit-fields table, .tc-edit-fields tr, .tc-edit-fields td {
border: none; border: none;
padding: 4px; padding: 4px;
} }
.tw-edit-fields > tbody > .tw-edit-field:nth-child(odd) { .tc-edit-fields > tbody > .tc-edit-field:nth-child(odd) {
background-color: <<colour tiddler-editor-fields-odd>>; background-color: <<colour tiddler-editor-fields-odd>>;
} }
.tw-edit-fields > tbody > .tw-edit-field:nth-child(even) { .tc-edit-fields > tbody > .tc-edit-field:nth-child(even) {
background-color: <<colour tiddler-editor-fields-even>>; background-color: <<colour tiddler-editor-fields-even>>;
} }
.tw-edit-field-name { .tc-edit-field-name {
text-align: right; text-align: right;
} }
.tw-edit-field-value input { .tc-edit-field-value input {
width: 100%; width: 100%;
} }
.tw-edit-field-remove { .tc-edit-field-remove {
} }
.tw-edit-field-remove svg { .tc-edit-field-remove svg {
height: 1em; height: 1em;
width: 1em; width: 1em;
fill: <<colour muted-foreground>>; fill: <<colour muted-foreground>>;
vertical-align: middle; vertical-align: middle;
} }
.tw-edit-field-add-name { .tc-edit-field-add-name {
display: inline-block; display: inline-block;
width: 15%; width: 15%;
} }
.tw-edit-field-add-button { .tc-edit-field-add-button {
display: inline-block; display: inline-block;
width: 10%; width: 10%;
} }