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

print-window-tiddler
Jermolene 2014-08-28 18:47:21 +01:00
rodzic 787481a804
commit 1814d502a4
10 zmienionych plików z 53 dodań i 53 usunięć

Wyświetl plik

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

Wyświetl plik

@ -11,7 +11,7 @@ caption: {{$:/language/Search/Filter/Caption}}
<div class="tw-block-dropdown-wrapper">
<$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>
</div>

Wyświetl plik

@ -10,7 +10,7 @@ tags: $:/tags/EditTemplate
<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>
@ -20,7 +20,7 @@ tags: $:/tags/EditTemplate
<$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-preview">
@ -30,7 +30,7 @@ tags: $:/tags/EditTemplate
</div>
<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>
@ -40,8 +40,8 @@ tags: $:/tags/EditTemplate
<$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>
<$edit field="text" class="tw-edit-texteditor" placeholder={{$:/language/EditTemplate/Body/Placeholder}}/>
<em class="tc-edit"><<lingo Hint>></em> <$button type="set" set="$:/state/showeditpreview" setTo="yes"><<lingo Preview/Button/Show>></$button>
<$edit field="text" class="tc-edit-texteditor" placeholder={{$:/language/EditTemplate/Body/Placeholder}}/>
</$reveal>

Wyświetl plik

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

Wyświetl plik

@ -5,7 +5,7 @@ tags: $:/tags/EditTemplate
\define tag-styles()
background-color:$(backgroundColor)$;
\end
<div class="tw-edit-tags">
<div class="tc-edit-tags">
<$fieldmangler>
<$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" />
@ -13,9 +13,9 @@ background-color:$(backgroundColor)$;
</$set>
</$list>
<div class="tw-edit-add-tag">
<div class="tc-edit-add-tag">
<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">
<$button message="tw-add-tag" param={{$:/temp/NewTagName}} set="$:/temp/NewTagName" setTo="" class="">
<<lingo Tags/Add/Button>>

Wyświetl plik

@ -1,4 +1,4 @@
title: $:/core/ui/EditTemplate/title
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"/>

Wyświetl plik

@ -2,11 +2,11 @@ title: $:/core/ui/EditTemplate/type
tags: $:/tags/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">
<$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">
<$list filter='[all[shadows+tiddlers]prefix[$:/language/Docs/Types/]each[group]sort[group]]'>
<div class="tc-dropdown-item">

Wyświetl plik

@ -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 NavigatorWidget incorporates handlers for the following events:
** `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-save-tiddler` for saving a draft tiddler
* Draft tiddlers are automatically excluded from search operations

Wyświetl plik

@ -31,21 +31,21 @@ tags: [[$:/tags/stylesheet]]
<<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)">>
}
.tw-edit-tags {
.tc-edit-tags {
<<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">>
border: none;
outline: none;
}
canvas.tw-edit-bitmapeditor {
canvas.tc-edit-bitmapeditor {
<<box-shadow "2px 2px 5px rgba(0, 0, 0, 0.5)">>
}

Wyświetl plik

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