diff --git a/src/notionpage-covericon/body.tid b/src/notionpage-covericon/body.tid index 0fc283e..5f79198 100755 --- a/src/notionpage-covericon/body.tid +++ b/src/notionpage-covericon/body.tid @@ -7,17 +7,22 @@ list-before: $:/core/ui/ViewTemplate/title \define coverbox-db(cover,tiddler:"",default:"",class-outer:"",class-blur-bg:"",class-front-bg:"",style-outer:"",style-blur-bg:"",style-front-bg:"") \whitespace trim <$let currentTiddler={{{ [<__cover__>!is[blank]then<__cover__>else<__default__>] }}}> -<$let imguri={{{ [is[image]!has[_canonical_uri]] :then[subfilter] :else[get[_canonical_uri]else] }}}> +<$let imguri={{{ [is[image]!has[_canonical_uri]] :then[subfilter] :else[get[_canonical_uri]else] }}} + cover-bg-blur={{{ [<__tiddler__>get[page-cover_bg-blur]] :else[<__tiddler__>get[page-cover#bg-blur]else{$:/plugins/Gk0Wk/notionpage-covericon/config/default-cover-bg-blur}] }}} + cover-size={{{ [<__tiddler__>get[page-cover_size]] :else[<__tiddler__>get[page-cover#size]else{$:/plugins/Gk0Wk/notionpage-covericon/config/default-cover-size}else[cover]] }}} + cover-position={{{ [<__tiddler__>get[page-cover_position]] :else[<__tiddler__>get[page-cover#position]else{$:/plugins/Gk0Wk/notionpage-covericon/config/default-cover-position}else[cover]] }}} + cover-repeat={{{ [<__tiddler__>get[page-cover_repeat]] :else[<__tiddler__>get[page-cover#repeat]else{$:/plugins/Gk0Wk/notionpage-covericon/config/default-cover-repeat}else[no-repeat]] }}} +>
<$let img-bg={{{ [[background-image:url(]] [] [[);]] +[join[]] }}} - cover-bg-blur={{{ [[filter:blur(]] [<__tiddler__>get[page-cover#bg-blur]else{$:/plugins/Gk0Wk/notionpage-covericon/config/default-cover-bg-blur}] [[);]] +[join[]] }}} - cover-size={{{ [[background-size:]] [<__tiddler__>get[page-cover#size]else{$:/plugins/Gk0Wk/notionpage-covericon/config/default-cover-size}else[cover]] [[;]] +[join[]] }}} - cover-position={{{ [[background-position:]] [<__tiddler__>get[page-cover#position]else{$:/plugins/Gk0Wk/notionpage-covericon/config/default-cover-position}else[cover]] [[;]] +[join[]] }}} - cover-repeat={{{ [[background-repeat:]] [<__tiddler__>get[page-cover#repeat]else{$:/plugins/Gk0Wk/notionpage-covericon/config/default-cover-repeat}else[no-repeat]] [[;]] +[join[]] }}} + cover-bg-blur-property={{{ [[filter:blur(]] [] [[);]] +[join[]] }}} + cover-size-property={{{ [[background-size:]] [] [[;]] +[join[]] }}} + cover-position-property={{{ [[background-position:]] [] [[;]] +[join[]] }}} + cover-repeat-property={{{ [[background-repeat:]] [] [[;]] +[join[]] }}} > -
] [[background-size:cover;background-position:center;position:absolute;top:-10px;left:-10px;height:calc(100% + 20px);width:calc(100% + 20px);]] [] [<__style-blur-bg__>] +[join[]] }}} /> -
] [] [] [] [[position:relative;height:100%;width:100%;]] [<__style-front-bg__>] +[join[]] }}} /> +
] [[background-size:cover;background-position:center;position:absolute;top:-10px;left:-10px;height:calc(100% + 20px);width:calc(100% + 20px);]] [] [<__style-blur-bg__>] +[join[]] }}} /> +
] [] [] [] [[position:relative;height:100%;width:100%;]] [<__style-front-bg__>] +[join[]] }}} />
@@ -28,10 +33,10 @@ list-before: $:/core/ui/ViewTemplate/title <$let state=<> default-cover={{{ [get[page-cover]] }}} - cover-bg-blur={{{ [get[page-cover#bg-blur]else{$:/plugins/Gk0Wk/notionpage-covericon/config/default-cover-bg-blur}] }}} - cover-size={{{ [get[page-cover#size]else{$:/plugins/Gk0Wk/notionpage-covericon/config/default-cover-size}else[cover]] }}} - cover-position={{{ [get[page-cover#position]else{$:/plugins/Gk0Wk/notionpage-covericon/config/default-cover-position}else[cover]] }}} - cover-repeat={{{ [get[page-cover#repeat]else{$:/plugins/Gk0Wk/notionpage-covericon/config/default-cover-repeat}else[no-repeat]] }}} + cover-bg-blur={{{ [get[page-cover_bg-blur]] :else[get[page-cover#bg-blur]else{$:/plugins/Gk0Wk/notionpage-covericon/config/default-cover-bg-blur}] }}} + cover-size={{{ [get[page-cover_size]] :else[get[page-cover#size]else{$:/plugins/Gk0Wk/notionpage-covericon/config/default-cover-size}else[cover]] }}} + cover-position={{{ [get[page-cover_position]] :else[get[page-cover#position]else{$:/plugins/Gk0Wk/notionpage-covericon/config/default-cover-position}else[cover]] }}} + cover-repeat={{{ [get[page-cover_repeat]] :else[get[page-cover#repeat]else{$:/plugins/Gk0Wk/notionpage-covericon/config/default-cover-repeat}else[no-repeat]] }}} >
@@ -41,23 +46,26 @@ list-before: $:/core/ui/ViewTemplate/title
Blur:  - <$edit-text tiddler=<> field="page-cover#bg-blur" default=<> placeholder=""/> - <$button setTitle=<> setField="page-cover#bg-blur" setTo={{{ [get[page-cover#bg-blur]!is[blank]else] }}} style="color:inherit !important;cursor:pointer;font-weight:800;">Set + <$edit-text tiddler=<> field="page-cover_bg-blur" default=<> placeholder=""/> + <$button setTitle=<> setField="page-cover_bg-blur" setTo={{{ [get[page-cover_bg-blur]!is[blank]else] }}} style="color:inherit !important;cursor:pointer;font-weight:800;"><$action-deletefield $tiddler=<> $field="page-cover#bg-blur" />Set
Size:  - <$edit-text tiddler=<> field="page-cover#size" default=<> placeholder=""/> - <$button setTitle=<> setField="page-cover#size" setTo={{{ [get[page-cover#size]!is[blank]else] }}} style="color:inherit !important;cursor:pointer;font-weight:800;">Set + <$edit-text tiddler=<> field="page-cover_size" default=<> placeholder=""/> + <$button setTitle=<> setField="page-cover_size" setTo={{{ [get[page-cover_size]!is[blank]else] }}} style="color:inherit !important;cursor:pointer;font-weight:800;"><$action-deletefield $tiddler=<> $field="page-cover#size" />Set
Position:  - <$edit-text tiddler=<> field="page-cover#position" default=<> placeholder=""/> - <$button setTitle=<> setField="page-cover#position" setTo={{{ [get[page-cover#position]!is[blank]else] }}} style="color:inherit !important;cursor:pointer;font-weight:800;">Set + <$edit-text tiddler=<> field="page-cover_position" default=<> placeholder=""/> + <$button setTitle=<> setField="page-cover_position" setTo={{{ [get[page-cover_position]!is[blank]else] }}} style="color:inherit !important;cursor:pointer;font-weight:800;"><$action-deletefield $tiddler=<> $field="page-cover#position" />Set
Repeat:  - <$edit-text tiddler=<> field="page-cover#repeat" default=<> placeholder=""/> - <$button setTitle=<> setField="page-cover#repeat" setTo={{{ [get[page-cover#repeat]!is[blank]else] }}} style="color:inherit !important;cursor:pointer;font-weight:800;">Set + <$edit-text tiddler=<> field="page-cover_repeat" default=<> placeholder=""/> + <$button setTitle=<> setField="page-cover_repeat" setTo={{{ [get[page-cover_repeat]!is[blank]else] }}} style="color:inherit !important;cursor:pointer;font-weight:800;"><$action-deletefield $tiddler=<> $field="page-cover#repeat" />Set +
+
+ <$button setTitle=<> setField="page-cover" setTo="" style="line:inherit float: center; opacity: 0.5; width: 100" tooltip="Clear Icon">{{$:/core/images/delete-button}} Clear Page Cover