[tw] Styles for Save-wiki button change in modal

2017-09-06 Thread Vayu Asura
I want to have a custom save-wiki button within a modal.

When I transclude {{$:/core/ui/Buttons/save-wiki}} in a tiddler the button 
is displayed like on the sidebar with the image, invisible outline and 
changing color

When I put it into parameter of a modal message it is displayed as a grey 
empty button without image:

<$button message=tm-modal param="$:/core/ui/Buttons/save-wiki" >pop save 
button up


If I put some text into system tiddler it is case-red according to 
"tc-dirty-indicator" class so that's retained.

Why are others canceled?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/690a092a-be6f-4633-8f4a-119b0df16dd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Make a borderless table

2017-09-06 Thread Vayu Asura
maybe it has to do with some surrounding tags.

On Tuesday, September 5, 2017 at 10:44:15 PM UTC+3, 
codacoder...@outlook.com wrote:
>
>
>
> On Tuesday, September 5, 2017 at 2:16:13 PM UTC-5, Vayu Asura wrote:
>>
>>
>> when invoked with  it keeps the 
>> outermost border of the table
>>
>>
> I see no border using Eric's code.  I checked the css and looked in 
> DevTools inspector.  Apart from TW's row styling being applied to the 
> wikitext version, they're identical with respect to borders. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fca5be4a-f840-4ed8-aeed-69705b583f41%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Make a borderless table

2017-09-05 Thread Vayu Asura
Found Eric's solution 
here https://groups.google.com/forum/#!topic/tiddlywiki/UC10tciyr1U

I have no idea how it works save for the most abstract concepts. The funny 
thing about its implication is:

when invoked with  it keeps the outermost 
border of the table
and when invoked like 

@@.borderless


@@


removes the outer border as well.

Weird.

On Tuesday, September 5, 2017 at 9:27:03 PM UTC+3, Vayu Asura wrote:
>
> I want a specific table to be bordeless
>
> The syntax for wiki tables allows that style string in the top. 
>
> However I couldn't either find a proper style in the default stylesheet to 
> get the invisible border or make my own:
>
> tagged `$:/tags/Stylesheet`
>
> .no-border {
> border: 0px;
> }
>
> and the table I want to make borderless in another tiddler:
>
> |.no-border|k
> |myfield|myvalue|
>
> Dev-tools show 
>
> 
> 
> myfieldmyvalue
> 
> 
>
> But the border still renders. What am I doing wrong?
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2e16d72a-0b21-4c1b-9f3d-5024dd66c81f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Make a borderless table

2017-09-05 Thread Vayu Asura
that yields quite strange results actually...

On Tuesday, September 5, 2017 at 9:52:28 PM UTC+3, codacoder...@outlook.com 
wrote:
>
>
>
> On Tuesday, September 5, 2017 at 1:27:03 PM UTC-5, Vayu Asura wrote:
>>
>> I want a specific table to be bordeless
>>
>> The syntax for wiki tables allows that style string in the top. 
>>
>> However I couldn't either find a proper style in the default stylesheet 
>> to get the invisible border or make my own:
>>
>> tagged `$:/tags/Stylesheet`
>>
>> .no-border {
>> border: 0px;
>> }
>>
>> and the table I want to make borderless in another tiddler:
>>
>> |.no-border|k
>> |myfield|myvalue|
>>
>> Dev-tools show 
>>
>
>  
> Remove the dot from the class:
>
>
>> 
>>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a8317698-495f-4a6b-9b08-1fd493091dd1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Make a borderless table

2017-09-05 Thread Vayu Asura
I want a specific table to be bordeless

The syntax for wiki tables allows that style string in the top. 

However I couldn't either find a proper style in the default stylesheet to 
get the invisible border or make my own:

tagged `$:/tags/Stylesheet`

.no-border {
border: 0px;
}

and the table I want to make borderless in another tiddler:

|.no-border|k
|myfield|myvalue|

Dev-tools show 



myfieldmyvalue



But the border still renders. What am I doing wrong?


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b21f5c47-4497-4423-857f-2fd073720b80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Is there a consistent guide on how to modify different parts of the interface of the wiki?

2017-09-04 Thread Vayu Asura
Neat! Thanks.

On Monday, September 4, 2017 at 4:09:42 PM UTC+3, TonyM wrote:
>
> As Promised,
>
> Place this inside a tiddler, I use this to find my way, but I am sure we 
> could add more especialt for CSS/Styles
>
> [[Tiddler Manager|$:/Manager]]
>
> [[Tag Manager|$:/TagManager]]?
>
> Browser Tabname [[$:/core/wiki/title]]
>
> !!!Page Template
> Tags
>
> *$:/tags/TopLeftBar
> *$:/tags/TopRightBar
> *$:/tags/AboveStory
> *$:/tags/BelowStory
>
> *$:/SiteSubtitle
>
> !!Page Template
> All tiddlers tagged: $:/tags/PageTemplate
>
> *$:/core/ui/PageTemplate/topleftbar
> *$:/core/ui/PageTemplate/toprightbar
> *$:/core/ui/PageTemplate/sidebar (all sidebar items)
> *$:/core/ui/PageTemplate/story
> *$:/core/ui/PageTemplate/alerts
> *$:/core/ui/PageTemplate/pluginreloadwarning
>
> Tiddlers tagged $:/tags/Alert will apear in a popup with a delete trashcan
>
> !!View Template
> All tiddlers tagged: $:/tags/ViewTemplate
>
> Elements
>
> *$:/core/ui/ViewTemplate/title
> *$:/core/ui/ViewTemplate/unfold
> *$:/core/ui/ViewTemplate/subtitle
> *$:/core/ui/ViewTemplate/tags
> *$:/core/ui/ViewTemplate/classic
> *$:/core/ui/ViewTemplate/body
> *$:/core/ui/ViewTemplate/import
> *$:/core/ui/ViewTemplate/plugin
>
> !!~EditTemplate
>
> All tiddlers tagged: $:/tags/EditTemplate 
>
> Elements
>
> *$:/core/ui/EditTemplate/controls
> *$:/core/ui/EditTemplate/title
> *$:/core/ui/EditTemplate/tags
> *$:/core/ui/EditTemplate/shadow
> *$:/core/ui/ViewTemplate/classic
> *$:/core/ui/EditTemplate/body
> *$:/core/ui/EditTemplate/type
> *$:/core/ui/EditTemplate/fields
>
>
> !!!Here
> Tiddlers that are also tags
>
> <$list filter="[is[tag]!sort[title]]">
>
> 
>
> Overwritten Shadow Tiddlers
>
> <$list filter="[is[shadow]]">
>
> 
>
> Regards
> Tony
>
> On Thursday, August 31, 2017 at 5:51:04 PM UTC+10, TonyM wrote:
>>
>> I made a single tidder I call a quick reference with links and notes on 
>> many of the elements. Not available here (in the country) but I will plan 
>> to publish it at tiddlywiki.psat.com.au in a few days. 
>>
>> Regards
>> Tony
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d9a622fb-cc2c-4d5c-a1a9-fb60ef094d83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Reference text of <> macro result

2017-09-04 Thread Vayu Asura
I've actually found a way: you can substitute the currentTiddler variable 
and reference fields as if default:

<$set name=currentTiddler value=<>>
<$reveal type=match state={{!!myField}} text="">
myField of a generated tiddler is empty








On Thursday, August 31, 2017 at 6:13:36 PM UTC+3, Vayu Asura wrote:
>
> I have editText widget referencing <> macro resulting tiddler:
>
> <$edit-text tiddler=<> placeholder="describe the 
> problem" tag="textarea" />
>
> I want to set the "issue" field of the tiddler it is transcluded in. And I 
> can't find a way to reference the text field of 
> resulting $:/IssueEdit--645974869 tiddler except for hardcoding it which is 
> not an option.
>
> I nee something like that:
>
> <$button>
>  <$action-setfield issue={{<>}}/>
> Set Issue
> 
>
> Tried wrapping qualify result into a variable but it didn't work. And I 
> can't nest widgets so explicit <$transclude> won't work either.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/89926057-49a1-40bc-8727-8f6784631dbf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Is there a consistent guide on how to modify different parts of the interface of the wiki?

2017-09-04 Thread Vayu Asura
That was useful. Found my bearings.

On Wednesday, August 30, 2017 at 8:50:48 PM UTC+3, Ton Gerner wrote:
>
> Hi Vayu,
>
> Maybe this can help you: http://tw5custom.tiddlyspot.com/
>
> Cheers,
>
> Ton
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/101ee7dd-53bc-4293-a30b-fd819a38db54%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Reference text of <> macro result

2017-08-31 Thread Vayu Asura
I have editText widget referencing <> macro resulting tiddler:

<$edit-text tiddler=<> placeholder="describe the 
problem" tag="textarea" />

I want to set the "issue" field of the tiddler it is transcluded in. And I 
can't find a way to reference the text field of 
resulting $:/IssueEdit--645974869 tiddler except for hardcoding it which is 
not an option.

I nee something like that:

<$button>
 <$action-setfield issue={{<>}}/>
Set Issue


Tried wrapping qualify result into a variable but it didn't work. And I 
can't nest widgets so explicit <$transclude> won't work either.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2a23726a-1f55-49b6-9673-2e1210b12703%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Is there a consistent guide on how to modify different parts of the interface of the wiki?

2017-08-30 Thread Vayu Asura


All this information is present on the tiddlywiki.com but it's all over the 
place - some things I've already done I can't repeat because I can't find 
the info I've been using and don't even remember what the names of 
interface parts were. What I'd like to find is a guide that lists different 
toolbars and elements by its official name and lists a system tag that's 
associated with it (e.g. Sidebar - $:/tags/SideBar etc.). I'd like to know 
how to locate existing elements and add new ones correctly. A tutorial on 
how to make tiddlers for the part is optional but would be nice. Parts I'm 
currently specifically interested in are in the screenshot:



-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e1d9214f-7008-4174-a0cc-c3d4811e4b22%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Is there a way to assign a generated list to a field? Next/Previous navigation between ToC chapters attempt.

2017-08-04 Thread Vayu Asura
Managed to make it work with two modifications:

<$list variable="parent" filter="[all[current]tags[]!limit[1]]">
   <$list filter="[titletagging[]beforesort[list]]">
  prev: <$link><>
   
   <$list filter="[titletagging[]aftersort[list]]">
  next: <$link><>
   


For some reason limit[1] yields the last tiddler not the first and my toc 
is sorted by list field

I don't understand what `variable` list widget parameter is generally doing 
(or specifically here either...). Does it just declare a variable and puts 
filter result into it? Do you just separate and abstract the common filter 
part with it or is it for something else? I have two tags on a tiddler I 
call it from. When I transclude it within the list it yields the resulting 
tag, but when I remove the !limit[1] part it regenerates both inner lists 
for each of two resulting tags. Wierd. Does it work as an iterator of sorts?

Not exactly what I had in mind as this requires the thing to be present on 
every entry rather than on the toc tiddler. But I'll try to adapt your 
solution to that as well and post here what I manage.

On Thursday, August 3, 2017 at 11:00:13 PM UTC+3, Eric Shulman wrote:
>
> On Thursday, August 3, 2017 at 10:43:51 AM UTC-7, Vayu Asura wrote:
>>
>> ...
>>
> next[] and previous[] operators... require hard-coded list field to work 
>> properly
>> ...
>> If there is a more reasonable way to do it esp without hard-coded lists, 
>> I'm very open to suggestions. 
>>
>
> before[] and after[] filters work like previous[] and next[] but use the 
> current filter result instead of a hard-coded list.
>
> Perhaps something like this will fit your needs:
>
> <$list variable="parent" filter="[all[current]tags[]limit[1]]">
><$list filter="[titletagging[]before]">
>   prev: <$link><>
>
><$list filter="[titletagging[]after]">
>   next: <$link><>
>
> 
>
> Notes:
> * the outer <$list> assumes that the first tag on the current tiddler is 
> the "parent" (a common usage for the <> macro)
> * the inner <$list> uses the tagging[] filter to get the siblings from the 
> parent, followed by the before[] or after[] filter to find the 
> previous/next sibling of the current tiddler
>
> let me know how it goes...
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools.com: "Small Tools for Big Ideas" (tm)
> InsideTiddlyWiki: The Missing Manuals
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0953a9d9-8aff-468b-9050-5f9c6988708b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Is there a way to assign a generated list to a field? Next/Previous navigation between ToC chapters attempt.

2017-08-03 Thread Vayu Asura
When I try this:

<$button> <$action-setfield list={{{[tag[mytag]]}}}/>Set List 


I get the first list item into list field. Is there a way I can get all the 
titles into list field? I need it for next[] and previous[] operators. They 
require hard-coded list field to work properly, I'm looking for a way to at 
least generate this hard coded value. 

As for what I need it for, I've made this little monster to navigate 
between ToC chapters sequentially. 

It requires all the chapters to be in the list field of the tiddler it's 
called from. 

Haven't found any complete solution so built one myself. If there is a more 
reasonable way to do it esp without hard-coded lists, I'm very open to 
suggestions. 

$sel$ is the state tiddler for ToC selection (current item variable for all 
intents and purposes...), the reveals hide navigation when no item is 
selected - have tried to monitor filter state to hide when there is no next 
or prev item but couldnt bind it to current $sel$ tiddler value correctly.

\define TocNav(sel:"TovTest")


<$set name=selection value=$sel$>
<$set name=selectionValue value={{$sel$}}>





<$reveal type="nomatch" state=<> text="">

<$button>
<$action-setfield $tiddler=<> text={{{[previous
]}}} />
<$action-navigate $to=<>/>
{{$:/core/images/chevron-left}}



<$button><$action-navigate $to=<>/>{{$:/core/images/chevron-
up}}



<$button>
<$action-setfield $tiddler=<> 
text={{{[next]}}} />
<$action-navigate $to=<>/>
{{$:/core/images/chevron-right}}










\end


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5d8806bd-2862-4554-983e-fcdee08c17be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Want to encrypt tiddlers by tag, can't figure out the mechanism.

2017-07-27 Thread Vayu Asura
Can't seem to find it anywhere in my wiki, or on tiddlywiki.com6; Looked 
all over control panel, tried setting padlock encryption beforehand. Found 
it on github though, with a  $:/tags/ControlPanel tag. What am doing wrong?

On Wednesday, July 26, 2017 at 10:32:29 PM UTC+3, Danielo Rodríguez wrote:
>
> If you want to encrypt tiddlers in batch you have to do it through the 
> control panel, encrypt tiddlers tab. Then out there the filter with the 
> desired tag.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/47c555fb-1ccd-4944-8dc6-5ae18d233171%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Want to encrypt tiddlers by tag, can't figure out the mechanism.

2017-07-26 Thread Vayu Asura
I have a set of tiddlers tagged "admin". I want their content display to 
require a password. Tried EncryptWidget with the filter [tag[admin]] - with 
the global set password (through padlock tool) it encrypts itself and I can 
still edit it. It doesn't encrypt the tagged tiddlers. There's 
PasswordWidget and an inaccessible PasswordVault I don't get how to use. So 
it just doesn't add up for me. How do I do this?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/71f74400-6e2a-41d7-a519-99a983cc15ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How do I center an image withing the modal?

2017-07-26 Thread Vayu Asura
That totally worked, thanks!

On Thursday, July 20, 2017 at 10:53:29 PM UTC+3, Eric Shulman wrote:
>
> On Wednesday, July 19, 2017 at 2:03:15 PM UTC-7, Vayu Asura wrote:
>>
>> I'm using tm-modal to create a full-res image display. So I call tm-modal 
>> to display the image tiddler.
>>
> The thing is I can't center smaller images within the modal body, it is 
>> always alingned left. Not sure which rule to edit and what to add for the 
>> center alignment. 
>>
>
> The trick is to apply "margin:auto" to the img element... and it only 
> takes ONE line of CSS!!
>
> Simply create a tiddler, tagged with $:/tags/Stylesheet, containing:
> .tc-modal-body img { display:block;margin:auto; }
>
> Tested and verified:
> 1) open http://tiddlywiki.com/#Modals
> 2) press the "Open demo modal" button... note that MotovunJack image is 
> NOT centered
> 3) create the stylesheet tiddler as described above
> 4) press the "Open demo modal" button again MotovunJack image is now 
> centered.
> Q.E.D
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools.com: "Small Tools for Big Ideas" (tm)
> InsideTiddlyWiki: The Missing Manuals
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b831b18d-cd10-4dcb-89d4-4951b9f17bb6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] How do I center an image withing the modal?

2017-07-19 Thread Vayu Asura
I'm using tm-modal to create a full-res image display. So I call tm-modal 
to display the image tiddler.
Extracted all the css rules I found regarding the modal:

.tc-modal-wrapper { position: fixed; overflow: auto; overflow-y: scroll; top
: 0; right: 0; bottom: 0; left: 0; z-index: 900; }
.tc-modal-backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; 
z-index: 1000; background-color: #33; }
.tc-modal { z-index: 1100; background-color: #ff; border: 1px solid 
#99; }
@media (max-width: 55em) { .tc-modal { position: fixed; top: 1em; left: 1em; 
right: 1em; }
.tc-modal-body { overflow-y: auto; max-height: 400px; max-height: 60vh; } }
@media (min-width: 55em) { .tc-modal { position: fixed; top: 2em; left: 5%; 
width: 90%; }
.tc-modal-body { overflow-y: auto; scroll; max-height: 700px; max-height: 
80vh;} }
.tc-modal-header { padding: 9px 15px; border-bottom: 1px solid #ee; }
.tc-modal-header h3 { margin: 0; line-height: 30px; }
.tc-modal-header img, .tc-modal-header svg { width: 1em; height: 1em; }
.tc-modal-body { padding: 15px; }
.tc-modal-footer { padding: 14px 15px 15px; margin-bottom: 0; text-align: 
right; background-color: #f5f5f5; border-top: 1px solid #dd; }


The thing is I can't center smaller images within the modal body, it is 
always alingned left. Not sure which rule to edit and what to add for the 
center alignment. 
Not sure if wrapping image into another tiddler would work correctly and it 
is very undesireable as I want to process img tiddlers directly with a 
modal-generating macro and thus creating intermediate tiddlers will get 
clunky.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f0ae8112-2d0d-4acd-8746-0f2589f4fee4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Can I manipulate modal window size using parameters?

2017-07-19 Thread Vayu Asura
I seem to have messed up the tag - when I tried to recreate the behavior in 
an empty wiki - the red color worked and when I copied the tag I had 2 
visually identical tags in the prompt. Probably got a trailing whitespace 
or something. After fixing that I messed around with PageStylesheet and 
vanilla theme css a bit. The best I could do is something like that:

@media (min-width: 55em) { .tc-modal { position: fixed; top: 2em; left: 5%; 
width: 90%; }

.tc-modal-body { overflow-y: auto; scroll; max-height: 700px; max-height: 
80vh;} }

That still has some issues with not being able to center-align image within 
the modal and being unable to set relative vertical size while retaining 
the scrolling ability, but for this question that's pretty much it. Thanks!

On Wednesday, July 19, 2017 at 10:21:57 PM UTC+3, Mark S. wrote:
>
> Could you post your play TW where the styles aren't working? Especially 
> the simple background example should work pretty much flawlessly ... hmm 
> ... what browser are you using?
>
> Good luck,
> Mark
>
> On Wednesday, July 19, 2017 at 12:10:12 PM UTC-7, Vayu Asura wrote:
>>
>> Doesn't work when I try. 
>> So I made a tiddler, called it modal-css, tagged it 
>> with $:/tags/Stylesheet, copied your class description, set content type 
>> to TW5 or Static Stylesheet (tried both) and save it. Call a modal and it 
>> doesn't change, still 50% of screen, with scrolls, yes, just as before. 
>>
>> There's something I really don't get about it: tried the example from 
>> "Using Stylesheets" article on tiddlywiki.com :
>>
>> *In addition, custom CSS stylesheets can be defined by tagging a tiddler 
>> $:/tags/Stylesheet. Try creating a custom stylesheet now with the following 
>> content in order to change the page background colour to red:*
>>
>> html body.tc-body {
>>  background: red;
>> }
>>
>> And that didn't work for me either
>>
>>
>> On Wednesday, July 19, 2017 at 8:50:20 PM UTC+3, Mark S. wrote:
>>>
>>> On mine, an oversized picture results in a scroll bar along the bottom. 
>>> Do you see a scroll bar?
>>>
>>> The size settings appear to be established by class .tc-modal with 
>>> attributes:
>>>
>>> position: fixed;
>>> top: 2em;
>>> left: 25%;
>>> width: 50%;
>>>
>>> So the image should be given half of your screen space. After that 
>>> another attribute overflow-y: auto creates a scrollbar (at least on my 
>>> desktop).
>>>
>>> You could create a tiddler tagged $:/tags/Stylesheet with :
>>>
>>> .tc-modal {
>>> position: fixed;
>>> top: 2em;
>>> left: 0%;
>>> width: 100%;
>>> }
>>>
>>> to give the image the full screen real-estate.
>>>
>>> Good luck,
>>> Mark
>>>
>>> On Wednesday, July 19, 2017 at 9:46:49 AM UTC-7, Vayu Asura wrote:
>>>>
>>>> I'm trying this:
>>>>
>>>> <$button>
>>>> <$action-sendmessage $message="tm-modal" $param="Picture 1.2" />
>>>> Click me!
>>>> 
>>>>
>>>> The "Picture 1.2" is an image tiddler. It is a full screenshot so it's 
>>>> big. When I click the button (formatted as an image thumbnail) I want to 
>>>> get a closer look at the picture at full size.
>>>> The problem is that modal window is pretty small and seems fixed width. 
>>>> The tm-modal message has no explicit parameters to adjust it. Is there any 
>>>> way to manipulate default modal size?
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b912541a-c8c7-42c4-b1b0-574aa5daf982%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Can I set button popup param to a field instead of a tiddler?

2017-07-19 Thread Vayu Asura
Feels both neat and kludgy at the same time... Thanks, will try that!

On Wednesday, July 19, 2017 at 10:04:47 PM UTC+3, PMario wrote:
>
> Hi, 
>
> That's exactly, what the qualify macro was made for. 
> http://tiddlywiki.com/#qualify%20Macro%20(Examples):%5B%5Bqualify%20Macro%20(Examples)%5D%5D%20%5B%5Bqualify%20Macro%5D%5D
>
> -m
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/06166dde-3654-47ff-9504-7be94c81fef0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Can I manipulate modal window size using parameters?

2017-07-19 Thread Vayu Asura
Doesn't work when I try. 
So I made a tiddler, called it modal-css, tagged it with $:/tags/Stylesheet, 
copied your class description, set content type to TW5 or Static Stylesheet 
(tried both) and save it. Call a modal and it doesn't change, still 50% of 
screen, with scrolls, yes, just as before. 



On Wednesday, July 19, 2017 at 8:50:20 PM UTC+3, Mark S. wrote:
>
> On mine, an oversized picture results in a scroll bar along the bottom. Do 
> you see a scroll bar?
>
> The size settings appear to be established by class .tc-modal with 
> attributes:
>
> position: fixed;
> top: 2em;
> left: 25%;
> width: 50%;
>
> So the image should be given half of your screen space. After that another 
> attribute overflow-y: auto creates a scrollbar (at least on my desktop).
>
> You could create a tiddler tagged $:/tags/Stylesheet with :
>
> .tc-modal {
> position: fixed;
> top: 2em;
> left: 0%;
> width: 100%;
> }
>
> to give the image the full screen real-estate.
>
> Good luck,
> Mark
>
> On Wednesday, July 19, 2017 at 9:46:49 AM UTC-7, Vayu Asura wrote:
>>
>> I'm trying this:
>>
>> <$button>
>> <$action-sendmessage $message="tm-modal" $param="Picture 1.2" />
>> Click me!
>> 
>>
>> The "Picture 1.2" is an image tiddler. It is a full screenshot so it's 
>> big. When I click the button (formatted as an image thumbnail) I want to 
>> get a closer look at the picture at full size.
>> The problem is that modal window is pretty small and seems fixed width. 
>> The tm-modal message has no explicit parameters to adjust it. Is there any 
>> way to manipulate default modal size?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/db88d8c7-0eb5-493e-ad1c-8bac56cf114f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Can I set button popup param to a field instead of a tiddler?

2017-07-19 Thread Vayu Asura
I have a control that manipulates a <> type by RadioWidget field mode 
as a template. I have several <> macros throughout my document where I 
want that template. If I have two or more toc-tiddlers open in the story 
and click this control's popup button the popup would appear on all 
toc-tiddlers because the popup state tiddler is hard-coded into the 
template. If I could reference a field - the button would modify that field 
for the tiddler I'm using the template within. The only way around I can 
think of is to wrap the template into a macro and parametrize the popup 
state tiddler. 

On Wednesday, July 19, 2017 at 7:52:54 PM UTC+3, Mark S. wrote:
>
> Why do you care if the state needs a tiddler instead of a tiddler/field, 
> since the contents are not available ? What is it that you're actually try 
> to accomplish?
>
> Good luck,
> Mark 
>
> On Wednesday, July 19, 2017 at 9:28:10 AM UTC-7, Vayu Asura wrote:
>>
>> Basicall I want to combine two examples from documentation:
>>
>> this
>>
>> <$button popup="$:/SamplePopupState">Pop me up!
>>
>>
>> <$reveal type="popup" state="$:/SamplePopupState">
>> 
>>
>>
>> ! This is the popup
>> And this is some text
>>
>>
>> 
>> 
>>
>> with this
>>
>> <$reveal type="match" state="!!jeremy" text="tiddlywiki">
>> ~TiddlyWiki!
>> 
>>
>> The problem is I can't find a way for a popup button parameter to 
>> reference a field:
>>
>> <$button popup="!!jeremy">Pop me up!
>>
>> does not work
>>
>> I did manage to make a slider with SetField action but it is not a popup 
>> - you can't click on an area to hide it.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4a5c7bf6-951a-416d-bdec-9339d253e37f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Can I manipulate modal window size using parameters?

2017-07-19 Thread Vayu Asura
I'm trying this:

<$button>
<$action-sendmessage $message="tm-modal" $param="Picture 1.2" />
Click me!


The "Picture 1.2" is an image tiddler. It is a full screenshot so it's big. 
When I click the button (formatted as an image thumbnail) I want to get a 
closer look at the picture at full size.
The problem is that modal window is pretty small and seems fixed width. The 
tm-modal message has no explicit parameters to adjust it. Is there any way 
to manipulate default modal size?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/aa518f9e-37a7-46f7-bfd8-5db8018fe68d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Can I set button popup param to a field instead of a tiddler?

2017-07-19 Thread Vayu Asura
Basicall I want to combine two examples from documentation:

this

<$button popup="$:/SamplePopupState">Pop me up!


<$reveal type="popup" state="$:/SamplePopupState">



! This is the popup
And this is some text





with this

<$reveal type="match" state="!!jeremy" text="tiddlywiki">
~TiddlyWiki!


The problem is I can't find a way for a popup button parameter to reference 
a field:

<$button popup="!!jeremy">Pop me up!

does not work

I did manage to make a slider with SetField action but it is not a popup - 
you can't click on an area to hide it.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/85bd2434-a145-4f2c-b507-12032b7f203d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Can I make a button to look like a link?

2017-05-26 Thread Vayu Asura
Yeah, thanks. Actually I found this on http://tiddlywiki.com/#ButtonWidget 
: "*Tip:* Set *class* to tc-btn-invisible tc-tiddlylink to have a button 
look like an internal link."

On Friday, May 26, 2017 at 6:41:30 PM UTC+3, Jed Carty wrote:
>
> This should work:
>
> <$button class='tc-btn-invisible tc-tiddlylink'>
> FNORDLook at FNORDme!!
> 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ed269238-9b9f-41f9-91c1-33f040515ea0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Can I make a button to look like a link?

2017-05-26 Thread Vayu Asura
I want a button that sends me to edit specified tiddler (<$button 
message=tm-edit-tiddler param=MyTiddler /> ). I want it to look and behave 
like an internal link though (color, cursor change etc.). How do I change 
default button widget display? Can't figure out styles usage. 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0d6c96fc-bf26-4481-a089-422adf602243%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Can I modify all tiddlers from filter result via button and ActionSetFieldWidget?

2017-05-10 Thread Vayu Asura
Worked! Thanks a lot!

On Monday, May 8, 2017 at 8:22:32 PM UTC+3, Mark S. wrote:
>
> I don't think you can do it in one fell swoop that way. You need to list 
> the tiddlers you want inside the button:
>
> <$button>Set all tiddlers tagged 'test' status to 'Passed'
> <$list filter="[tag[test]]">
> <$action-setfield  status="Passed"/>
> 
> 
>
> HTH
> Mark
>
> On Monday, May 8, 2017 at 9:58:33 AM UTC-7, Vayu Asura wrote:
>>
>> I have a button that modifies a tiddler status field:
>>
>> <$button>
>> <$action-setfield $tiddler=testTag2 status="Passed"/>
>> Set testTag2 status to 'Passed'
>> 
>>
>> And a filter
>>
>> {{{[tag[test]]}}}
>>
>> resulting in 3 tiddlers
>>
>> When I try something like that:
>>
>> <$button>
>> <$action-setfield $tiddler=*{{{[tag[test]]}}}* status="Passed"/>
>> Set all tiddlers tagged 'test' status to 'Passed'
>> 
>>
>> nothing happens
>>
>> Is it possible to set field of all results of a filter somehow?
>>
>> I saw a node.js command, but is there a way to do something like that 
>> within the wiki itself?
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/cae75f3a-adc7-4fe5-9f8a-dac9c66f6e4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Can I modify all tiddlers from filter result via button and ActionSetFieldWidget?

2017-05-08 Thread Vayu Asura
I have a button that modifies a tiddler status field:

<$button>
<$action-setfield $tiddler=testTag2 status="Passed"/>
Set testTag2 status to 'Passed'


And a filter

{{{[tags[test]]}}}

When I try something like that:

<$button>
<$action-setfield $tiddler=*{{{[tag[test]]}}}* status="Passed"/>
Set all tiddlers tagged 'test' status to 'Passed'


nothing happens

Is it possible to set field of all results of a filter somehow?

I saw a node.js command, but is there a way to do something like that 
within the wiki itself?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fc4acb7b-7fe5-431b-82d4-9115505f30a4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: TW5 can't pass a tiddler name with spaces correctly as a macro parameter

2017-04-24 Thread Vayu Asura


On Monday, April 24, 2017 at 8:09:08 PM UTC+3, Eric Shulman wrote:
>
> On Monday, April 24, 2017 at 9:42:20 AM UTC-7, Vayu Asura wrote:
>>
>> I have this defined
>> \define failed(tiddler:<> value:"Failed")
>> <$radio tiddler=$tiddler$ field="Status" value=$value$> $value$ 
>> \end
>>  when I try to call
>> |[[System Usage]]|<>|<> "System 
>> Usage" >>|
>> to modify "System Usage" tiddler it modifies "System" tiddler instead.
>>
>
> Macro parameters work by substitution.  When the macro is invoked, all 
> parameter references within the macro (e.g., $variablename$) are 
> automatically replaced by their passed in values.  Thus, when you invoke 
> <>
> this line of the macro
> <$radio tiddler=$tiddler$ field="Status" value=$value$> $value$ 
> results in the following syntax
> <$radio tiddler=System Usage field="Status" value=failed> $value$ 
>
> The problem is that there aren't any quotes around the 'tiddler' param in 
> the <$radio> widget, so the space in the value appears to be a delimeter, 
> making "Usage" into a separate param which lacks the "name=" syntax, and is 
> thus ignored.  The result is as you noted: the tiddler title being applied 
> ends with the first space, and the remainder of the title is ignored.
>
> To correct this, simply add some quotes surrounding the params in the 
> <$radio> widget, like this:
> <$radio tiddler="$tiddler$" field="Status" value="$value$"> $value$ 
> 
> which results in the following syntax being generated by the macro:
> <$radio tiddler="System Usage" field="Status" value="failed"> failed 
> 
>
> That should do it.  Let me know how it goes.
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools.com - "Small Tools for Big Ideas!" (tm)
> InsideTiddlyWiki: The Missing Manuals
>

Thanks. That was the issue. However that caused another issue - default to 
<> stopped working as it parses variable as plain text thus 
modifying tiddler called '<>' by default. 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a180fb2f-0b65-472a-9fb4-43d15903aa51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] TW5 can't pass a tiddler name with spaces correctly as a macro parameter

2017-04-24 Thread Vayu Asura
I have this defined

\define failed(tiddler:<> value:"Failed")
<$radio tiddler=$tiddler$ field="Status" value=$value$> $value$ 
\end


\define passed(tiddler:<> value:"Passed")
<$radio tiddler=$tiddler$ field="Status" value=$value$> $value$ 
\end

 
when I try to call

|[[System Usage]]|<>|<>|



to modify "System Usage" tiddler it modifies "System" tiddler instead.

Other parameters containing spaces work fine. Is that a bug or am I doing 
something wrong? If tiddler name I'm passing contains no spaces, it works 
fine.

Tried different quotes and escapes ("",'',"",{{}},<<>>)  to no effect. 
Either still modifies 'System' tiddler or bugs.

Is there a workaround besides changing tiddler name to 'SystemUsage' as I'd 
like to avoid that?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3a2db161-7f3c-41a4-b8d1-86ae83ee939a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.