diff --git a/src/web/app/auth/tags/form.tag b/src/web/app/auth/tags/form.tag index 5bb27c269..8f60aadb5 100644 --- a/src/web/app/auth/tags/form.tag +++ b/src/web/app/auth/tags/form.tag @@ -29,7 +29,7 @@ <button @click="cancel">キャンセル</button> <button @click="accept">アクセスを許可</button> </div> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/auth/tags/index.tag b/src/web/app/auth/tags/index.tag index 8d70a4162..e1c0cb82e 100644 --- a/src/web/app/auth/tags/index.tag +++ b/src/web/app/auth/tags/index.tag @@ -20,7 +20,7 @@ <mk-signin/> </main> <footer><img src="/assets/auth/logo.svg" alt="Misskey"/></footer> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/ch/tags/channel.tag b/src/web/app/ch/tags/channel.tag index fec542500..ea0234340 100644 --- a/src/web/app/ch/tags/channel.tag +++ b/src/web/app/ch/tags/channel.tag @@ -33,7 +33,7 @@ <small><a href={ _URL_ }>Misskey</a> ver { _VERSION_ } (葵 aoi)</small> </footer> </main> - <style> + <style lang="stylus" scoped> :scope display block @@ -181,7 +181,7 @@ </virtual> </div> </div> - <style> + <style lang="stylus" scoped> :scope display block margin 0 @@ -255,7 +255,7 @@ <li each={ files }>{ name }</li> </ol> <input ref="file" type="file" accept="image/*" multiple="multiple" onchange={ changeFile }/> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/ch/tags/header.tag b/src/web/app/ch/tags/header.tag index dec83c9a5..8af6f1c37 100644 --- a/src/web/app/ch/tags/header.tag +++ b/src/web/app/ch/tags/header.tag @@ -6,7 +6,7 @@ <a if={ !SIGNIN } href={ _URL_ }>ログイン(新規登録)</a> <a if={ SIGNIN } href={ _URL_ + '/' + I.username }>{ I.username }</a> </div> - <style> + <style lang="stylus" scoped> :scope display flex diff --git a/src/web/app/ch/tags/index.tag b/src/web/app/ch/tags/index.tag index 489f21148..2fd549368 100644 --- a/src/web/app/ch/tags/index.tag +++ b/src/web/app/ch/tags/index.tag @@ -6,7 +6,7 @@ <ul if={ channels }> <li each={ channels }><a href={ '/' + this.id }>{ this.title }</a></li> </ul> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/common/tags/activity-table.tag b/src/web/app/common/tags/activity-table.tag index 1d26d1788..b0a100090 100644 --- a/src/web/app/common/tags/activity-table.tag +++ b/src/web/app/common/tags/activity-table.tag @@ -12,7 +12,7 @@ stroke-width="0.1" stroke="#f73520"/> </svg> - <style> + <style lang="stylus" scoped> :scope display block max-width 600px diff --git a/src/web/app/common/tags/authorized-apps.tag b/src/web/app/common/tags/authorized-apps.tag index 0594032de..324871949 100644 --- a/src/web/app/common/tags/authorized-apps.tag +++ b/src/web/app/common/tags/authorized-apps.tag @@ -8,7 +8,7 @@ <p>{ app.description }</p> </div> </div> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/common/tags/ellipsis.tag b/src/web/app/common/tags/ellipsis.tag index 97ef745d0..734454e4a 100644 --- a/src/web/app/common/tags/ellipsis.tag +++ b/src/web/app/common/tags/ellipsis.tag @@ -1,5 +1,5 @@ <mk-ellipsis><span>.</span><span>.</span><span>.</span> - <style> + <style lang="stylus" scoped> :scope display inline diff --git a/src/web/app/common/tags/error.tag b/src/web/app/common/tags/error.tag index 07ba61161..0a6535762 100644 --- a/src/web/app/common/tags/error.tag +++ b/src/web/app/common/tags/error.tag @@ -11,7 +11,7 @@ <button if={ !troubleshooting } @click="troubleshoot">%i18n:common.tags.mk-error.troubleshoot%</button> <mk-troubleshooter if={ troubleshooting }/> <p class="thanks">%i18n:common.tags.mk-error.thanks%</p> - <style> + <style lang="stylus" scoped> :scope display block width 100% @@ -108,7 +108,7 @@ <p if={ server === false }><b>%fa:exclamation-triangle%%i18n:common.tags.mk-error.troubleshooter.no-server%</b><br>%i18n:common.tags.mk-error.troubleshooter.no-server-desc%</p> <p if={ server === true } class="success"><b>%fa:info-circle%%i18n:common.tags.mk-error.troubleshooter.success%</b><br>%i18n:common.tags.mk-error.troubleshooter.success-desc%</p> - <style> + <style lang="stylus" scoped> :scope display block width 100% diff --git a/src/web/app/common/tags/file-type-icon.tag b/src/web/app/common/tags/file-type-icon.tag index dba2ae44d..035aec247 100644 --- a/src/web/app/common/tags/file-type-icon.tag +++ b/src/web/app/common/tags/file-type-icon.tag @@ -1,6 +1,6 @@ <mk-file-type-icon> <virtual if={ kind == 'image' }>%fa:file-image%</virtual> - <style> + <style lang="stylus" scoped> :scope display inline </style> diff --git a/src/web/app/common/tags/forkit.tag b/src/web/app/common/tags/forkit.tag index 55d573108..6a8d06e56 100644 --- a/src/web/app/common/tags/forkit.tag +++ b/src/web/app/common/tags/forkit.tag @@ -4,7 +4,7 @@ <path class="octo-arm" d="M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2" fill="currentColor"></path> <path d="M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z" fill="currentColor"></path> </svg></a> - <style> + <style lang="stylus" scoped> :scope display block position absolute diff --git a/src/web/app/common/tags/introduction.tag b/src/web/app/common/tags/introduction.tag index 28afc6fa4..c92cff0d1 100644 --- a/src/web/app/common/tags/introduction.tag +++ b/src/web/app/common/tags/introduction.tag @@ -5,7 +5,7 @@ <p>無料で誰でも利用でき、広告も掲載していません。</p> <p><a href={ _DOCS_URL_ } target="_blank">もっと知りたい方はこちら</a></p> </article> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/common/tags/messaging/form.tag b/src/web/app/common/tags/messaging/form.tag index 93733e8d7..33b0beb88 100644 --- a/src/web/app/common/tags/messaging/form.tag +++ b/src/web/app/common/tags/messaging/form.tag @@ -12,7 +12,7 @@ %fa:R folder-open% </button> <input name="file" type="file" accept="image/*"/> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/common/tags/messaging/index.tag b/src/web/app/common/tags/messaging/index.tag index d38569999..24d49257c 100644 --- a/src/web/app/common/tags/messaging/index.tag +++ b/src/web/app/common/tags/messaging/index.tag @@ -33,7 +33,7 @@ </div> <p class="no-history" if={ !fetching && history.length == 0 }>%i18n:common.tags.mk-messaging.no-history%</p> <p class="fetching" if={ fetching }>%fa:spinner .pulse .fw%%i18n:common.loading%<mk-ellipsis/></p> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/common/tags/messaging/message.tag b/src/web/app/common/tags/messaging/message.tag index f211b10b5..d65bb8770 100644 --- a/src/web/app/common/tags/messaging/message.tag +++ b/src/web/app/common/tags/messaging/message.tag @@ -18,7 +18,7 @@ <mk-time time={ message.created_at }/><virtual if={ message.is_edited }>%fa:pencil-alt%</virtual> </footer> </div> - <style> + <style lang="stylus" scoped> :scope $me-balloon-color = #23A7B6 diff --git a/src/web/app/common/tags/messaging/room.tag b/src/web/app/common/tags/messaging/room.tag index 2fdf50457..0a669dbc9 100644 --- a/src/web/app/common/tags/messaging/room.tag +++ b/src/web/app/common/tags/messaging/room.tag @@ -16,7 +16,7 @@ <div class="grippie" title="%i18n:common.tags.mk-messaging-room.resize-form%"></div> <mk-messaging-form user={ user }/> </footer> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/common/tags/nav-links.tag b/src/web/app/common/tags/nav-links.tag index ea122575a..3766e5c0a 100644 --- a/src/web/app/common/tags/nav-links.tag +++ b/src/web/app/common/tags/nav-links.tag @@ -1,6 +1,6 @@ <mk-nav-links> <a href={ aboutUrl }>%i18n:common.tags.mk-nav-links.about%</a><i>・</i><a href={ _STATS_URL_ }>%i18n:common.tags.mk-nav-links.stats%</a><i>・</i><a href={ _STATUS_URL_ }>%i18n:common.tags.mk-nav-links.status%</a><i>・</i><a href="http://zawazawa.jp/misskey/">%i18n:common.tags.mk-nav-links.wiki%</a><i>・</i><a href="https://github.com/syuilo/misskey/blob/master/DONORS.md">%i18n:common.tags.mk-nav-links.donors%</a><i>・</i><a href="https://github.com/syuilo/misskey">%i18n:common.tags.mk-nav-links.repository%</a><i>・</i><a href={ _DEV_URL_ }>%i18n:common.tags.mk-nav-links.develop%</a><i>・</i><a href="https://twitter.com/misskey_xyz" target="_blank">Follow us on %fa:B twitter%</a> - <style> + <style lang="stylus" scoped> :scope display inline </style> diff --git a/src/web/app/common/tags/number.tag b/src/web/app/common/tags/number.tag index 7afb8b398..4b1081a87 100644 --- a/src/web/app/common/tags/number.tag +++ b/src/web/app/common/tags/number.tag @@ -1,5 +1,5 @@ <mk-number> - <style> + <style lang="stylus" scoped> :scope display inline </style> diff --git a/src/web/app/common/tags/poll-editor.tag b/src/web/app/common/tags/poll-editor.tag index f660032c9..28e059e87 100644 --- a/src/web/app/common/tags/poll-editor.tag +++ b/src/web/app/common/tags/poll-editor.tag @@ -14,7 +14,7 @@ <button class="destroy" @click="destroy" title="%i18n:common.tags.mk-poll-editor.destroy%"> %fa:times% </button> - <style> + <style lang="stylus" scoped> :scope display block padding 8px diff --git a/src/web/app/common/tags/poll.tag b/src/web/app/common/tags/poll.tag index 3d0a559d0..003368815 100644 --- a/src/web/app/common/tags/poll.tag +++ b/src/web/app/common/tags/poll.tag @@ -15,7 +15,7 @@ <a if={ !isVoted } @click="toggleResult">{ result ? '%i18n:common.tags.mk-poll.vote%' : '%i18n:common.tags.mk-poll.show-result%' }</a> <span if={ isVoted }>%i18n:common.tags.mk-poll.voted%</span> </p> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/common/tags/post-menu.tag b/src/web/app/common/tags/post-menu.tag index 2ca8c9602..da5eaf8ed 100644 --- a/src/web/app/common/tags/post-menu.tag +++ b/src/web/app/common/tags/post-menu.tag @@ -15,7 +15,7 @@ <button @click="categorize">%i18n:common.tags.mk-post-menu.categorize%</button> </div> </div> - <style> + <style lang="stylus" scoped> $border-color = rgba(27, 31, 35, 0.15) :scope diff --git a/src/web/app/common/tags/raw.tag b/src/web/app/common/tags/raw.tag index adc6de5a3..55de0962e 100644 --- a/src/web/app/common/tags/raw.tag +++ b/src/web/app/common/tags/raw.tag @@ -1,5 +1,5 @@ <mk-raw> - <style> + <style lang="stylus" scoped> :scope display inline </style> diff --git a/src/web/app/common/tags/reaction-icon.tag b/src/web/app/common/tags/reaction-icon.tag index 012729391..50d62cfba 100644 --- a/src/web/app/common/tags/reaction-icon.tag +++ b/src/web/app/common/tags/reaction-icon.tag @@ -9,7 +9,7 @@ <virtual if={ opts.reaction == 'confused' }><img src="/assets/reactions/confused.png" alt="%i18n:common.reactions.confused%"></virtual> <virtual if={ opts.reaction == 'pudding' }><img src="/assets/reactions/pudding.png" alt="%i18n:common.reactions.pudding%"></virtual> - <style> + <style lang="stylus" scoped> :scope display inline diff --git a/src/web/app/common/tags/reaction-picker.vue b/src/web/app/common/tags/reaction-picker.vue index 496144d88..307b158c6 100644 --- a/src/web/app/common/tags/reaction-picker.vue +++ b/src/web/app/common/tags/reaction-picker.vue @@ -75,7 +75,7 @@ onMouseout: function(e) { this.title = placeholder; }, - close: function() { + clo1se: function() { this.$refs.backdrop.style.pointerEvents = 'none'; anime({ targets: this.$refs.backdrop, @@ -98,89 +98,85 @@ }; </script> -<mk-reaction-picker> +<style lang="stylus" scoped> + $border-color = rgba(27, 31, 35, 0.15) - <style> - $border-color = rgba(27, 31, 35, 0.15) + :scope + display block + position initial - :scope - display block - position initial + > .backdrop + position fixed + top 0 + left 0 + z-index 10000 + width 100% + height 100% + background rgba(0, 0, 0, 0.1) + opacity 0 - > .backdrop - position fixed - top 0 - left 0 - z-index 10000 - width 100% - height 100% - background rgba(0, 0, 0, 0.1) - opacity 0 + > .popover + position absolute + z-index 10001 + background #fff + border 1px solid $border-color + border-radius 4px + box-shadow 0 3px 12px rgba(27, 31, 35, 0.15) + transform scale(0.5) + opacity 0 - > .popover - position absolute - z-index 10001 - background #fff - border 1px solid $border-color - border-radius 4px - box-shadow 0 3px 12px rgba(27, 31, 35, 0.15) - transform scale(0.5) - opacity 0 + $balloon-size = 16px - $balloon-size = 16px + &:not(.compact) + margin-top $balloon-size + transform-origin center -($balloon-size) - &:not(.compact) - margin-top $balloon-size - transform-origin center -($balloon-size) - - &:before - content "" - display block - position absolute - top -($balloon-size * 2) - left s('calc(50% - %s)', $balloon-size) - border-top solid $balloon-size transparent - border-left solid $balloon-size transparent - border-right solid $balloon-size transparent - border-bottom solid $balloon-size $border-color - - &:after - content "" - display block - position absolute - top -($balloon-size * 2) + 1.5px - left s('calc(50% - %s)', $balloon-size) - border-top solid $balloon-size transparent - border-left solid $balloon-size transparent - border-right solid $balloon-size transparent - border-bottom solid $balloon-size #fff - - > p + &:before + content "" display block - margin 0 - padding 8px 10px - font-size 14px - color #586069 - border-bottom solid 1px #e1e4e8 + position absolute + top -($balloon-size * 2) + left s('calc(50% - %s)', $balloon-size) + border-top solid $balloon-size transparent + border-left solid $balloon-size transparent + border-right solid $balloon-size transparent + border-bottom solid $balloon-size $border-color - > div - padding 4px - width 240px - text-align center + &:after + content "" + display block + position absolute + top -($balloon-size * 2) + 1.5px + left s('calc(50% - %s)', $balloon-size) + border-top solid $balloon-size transparent + border-left solid $balloon-size transparent + border-right solid $balloon-size transparent + border-bottom solid $balloon-size #fff - > button - width 40px - height 40px - font-size 24px - border-radius 2px + > p + display block + margin 0 + padding 8px 10px + font-size 14px + color #586069 + border-bottom solid 1px #e1e4e8 - &:hover - background #eee + > div + padding 4px + width 240px + text-align center - &:active - background $theme-color - box-shadow inset 0 0.15em 0.3em rgba(27, 31, 35, 0.15) + > button + width 40px + height 40px + font-size 24px + border-radius 2px - </style> + &:hover + background #eee -</mk-reaction-picker> + &:active + background $theme-color + box-shadow inset 0 0.15em 0.3em rgba(27, 31, 35, 0.15) + +</style> diff --git a/src/web/app/common/tags/reactions-viewer.tag b/src/web/app/common/tags/reactions-viewer.tag index 50fb023f7..8ec14a12f 100644 --- a/src/web/app/common/tags/reactions-viewer.tag +++ b/src/web/app/common/tags/reactions-viewer.tag @@ -10,7 +10,7 @@ <span if={ reactions.confused }><mk-reaction-icon reaction='confused'/><span>{ reactions.confused }</span></span> <span if={ reactions.pudding }><mk-reaction-icon reaction='pudding'/><span>{ reactions.pudding }</span></span> </virtual> - <style> + <style lang="stylus" scoped> :scope display block border-top dashed 1px #eee diff --git a/src/web/app/common/tags/signin-history.tag b/src/web/app/common/tags/signin-history.tag index 9f02fc687..332bfdccf 100644 --- a/src/web/app/common/tags/signin-history.tag +++ b/src/web/app/common/tags/signin-history.tag @@ -2,7 +2,7 @@ <div class="records" if={ history.length != 0 }> <mk-signin-record each={ rec in history } rec={ rec }/> </div> - <style> + <style lang="stylus" scoped> :scope display block @@ -50,7 +50,7 @@ </header> <pre ref="headers" class="json" show={ show }>{ JSON.stringify(rec.headers, null, 2) }</pre> - <style> + <style lang="stylus" scoped> :scope display block border-bottom solid 1px #eee diff --git a/src/web/app/common/tags/signin.tag b/src/web/app/common/tags/signin.tag index 2ee188bbc..949217c71 100644 --- a/src/web/app/common/tags/signin.tag +++ b/src/web/app/common/tags/signin.tag @@ -11,7 +11,7 @@ </label> <button type="submit" disabled={ signing }>{ signing ? '%i18n:common.tags.mk-signin.signing-in%' : '%i18n:common.tags.mk-signin.signin%' }</button> </form> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/common/tags/signup.tag b/src/web/app/common/tags/signup.tag index 0b2ddf6d7..861c65201 100644 --- a/src/web/app/common/tags/signup.tag +++ b/src/web/app/common/tags/signup.tag @@ -38,7 +38,7 @@ </label> <button @click="onsubmit">%i18n:common.tags.mk-signup.create%</button> </form> - <style> + <style lang="stylus" scoped> :scope display block min-width 302px diff --git a/src/web/app/common/tags/special-message.tag b/src/web/app/common/tags/special-message.tag index 6643b1324..5d62797ae 100644 --- a/src/web/app/common/tags/special-message.tag +++ b/src/web/app/common/tags/special-message.tag @@ -1,7 +1,7 @@ <mk-special-message> <p if={ m == 1 && d == 1 }>%i18n:common.tags.mk-special-message.new-year%</p> <p if={ m == 12 && d == 25 }>%i18n:common.tags.mk-special-message.christmas%</p> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/common/tags/stream-indicator.vue b/src/web/app/common/tags/stream-indicator.vue index 619237193..6964cda34 100644 --- a/src/web/app/common/tags/stream-indicator.vue +++ b/src/web/app/common/tags/stream-indicator.vue @@ -49,7 +49,7 @@ }; </script> -<style lang="stylus"> +<style lang="stylus" scoped> > div display block pointer-events none diff --git a/src/web/app/common/tags/twitter-setting.tag b/src/web/app/common/tags/twitter-setting.tag index 8419f8b62..f865de466 100644 --- a/src/web/app/common/tags/twitter-setting.tag +++ b/src/web/app/common/tags/twitter-setting.tag @@ -7,7 +7,7 @@ <a href={ _API_URL_ + '/disconnect/twitter' } target="_blank" if={ I.twitter } @click="disconnect">%i18n:common.tags.mk-twitter-setting.disconnect%</a> </p> <p class="id" if={ I.twitter }>Twitter ID: { I.twitter.user_id }</p> - <style> + <style lang="stylus" scoped> :scope display block color #4a535a diff --git a/src/web/app/common/tags/uploader.tag b/src/web/app/common/tags/uploader.tag index a95004b46..ec9ba0243 100644 --- a/src/web/app/common/tags/uploader.tag +++ b/src/web/app/common/tags/uploader.tag @@ -9,7 +9,7 @@ <div class="progress waiting" if={ progress != undefined && progress.value == progress.max }></div> </li> </ol> - <style> + <style lang="stylus" scoped> :scope display block overflow auto diff --git a/src/web/app/desktop/tags/analog-clock.tag b/src/web/app/desktop/tags/analog-clock.tag index 35661405d..dda5a4b30 100644 --- a/src/web/app/desktop/tags/analog-clock.tag +++ b/src/web/app/desktop/tags/analog-clock.tag @@ -1,6 +1,6 @@ <mk-analog-clock> <canvas ref="canvas" width="256" height="256"></canvas> - <style> + <style lang="stylus" scoped> :scope > canvas display block diff --git a/src/web/app/desktop/tags/autocomplete-suggestion.tag b/src/web/app/desktop/tags/autocomplete-suggestion.tag index cf22f3a27..843b3a798 100644 --- a/src/web/app/desktop/tags/autocomplete-suggestion.tag +++ b/src/web/app/desktop/tags/autocomplete-suggestion.tag @@ -6,7 +6,7 @@ <span class="username">@{ username }</span> </li> </ol> - <style> + <style lang="stylus" scoped> :scope display block position absolute diff --git a/src/web/app/desktop/tags/big-follow-button.tag b/src/web/app/desktop/tags/big-follow-button.tag index 476f95840..f2e9dc656 100644 --- a/src/web/app/desktop/tags/big-follow-button.tag +++ b/src/web/app/desktop/tags/big-follow-button.tag @@ -5,7 +5,7 @@ <virtual if={ wait }>%fa:spinner .pulse .fw%</virtual> </button> <div class="init" if={ init }>%fa:spinner .pulse .fw%</div> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/desktop/tags/contextmenu.tag b/src/web/app/desktop/tags/contextmenu.tag index ade44fce2..09d989c09 100644 --- a/src/web/app/desktop/tags/contextmenu.tag +++ b/src/web/app/desktop/tags/contextmenu.tag @@ -1,6 +1,6 @@ <mk-contextmenu> <yield /> - <style> + <style lang="stylus" scoped> :scope $width = 240px $item-height = 38px diff --git a/src/web/app/desktop/tags/crop-window.tag b/src/web/app/desktop/tags/crop-window.tag index 80f3f4657..43bbcb8c5 100644 --- a/src/web/app/desktop/tags/crop-window.tag +++ b/src/web/app/desktop/tags/crop-window.tag @@ -10,7 +10,7 @@ </div> </yield> </mk-window> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/desktop/tags/detailed-post-window.tag b/src/web/app/desktop/tags/detailed-post-window.tag index 6d6f23ac3..50b4bf920 100644 --- a/src/web/app/desktop/tags/detailed-post-window.tag +++ b/src/web/app/desktop/tags/detailed-post-window.tag @@ -3,7 +3,7 @@ <div class="main" ref="main" if={ !fetching }> <mk-post-detail ref="detail" post={ post }/> </div> - <style> + <style lang="stylus" scoped> :scope display block opacity 0 diff --git a/src/web/app/desktop/tags/dialog.tag b/src/web/app/desktop/tags/dialog.tag index aff855251..92ea0b2b1 100644 --- a/src/web/app/desktop/tags/dialog.tag +++ b/src/web/app/desktop/tags/dialog.tag @@ -9,7 +9,7 @@ </virtual> </div> </div> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/desktop/tags/donation.tag b/src/web/app/desktop/tags/donation.tag index 73ee9d003..8a711890f 100644 --- a/src/web/app/desktop/tags/donation.tag +++ b/src/web/app/desktop/tags/donation.tag @@ -20,7 +20,7 @@ よろしくお願いいたします。 </p> </div> - <style> + <style lang="stylus" scoped> :scope display block color #fff diff --git a/src/web/app/desktop/tags/drive/browser-window.tag b/src/web/app/desktop/tags/drive/browser-window.tag index f49921eb6..4285992f6 100644 --- a/src/web/app/desktop/tags/drive/browser-window.tag +++ b/src/web/app/desktop/tags/drive/browser-window.tag @@ -8,7 +8,7 @@ <mk-drive-browser multiple={ true } folder={ parent.folder } ref="browser"/> </yield> </mk-window> - <style> + <style lang="stylus" scoped> :scope > mk-window [data-yield='header'] diff --git a/src/web/app/desktop/tags/drive/browser.tag b/src/web/app/desktop/tags/drive/browser.tag index 7e9f4662f..0c0ce4bb4 100644 --- a/src/web/app/desktop/tags/drive/browser.tag +++ b/src/web/app/desktop/tags/drive/browser.tag @@ -46,7 +46,7 @@ <div class="dropzone" if={ draghover }></div> <mk-uploader ref="uploader"/> <input ref="fileInput" type="file" accept="*/*" multiple="multiple" tabindex="-1" onchange={ changeFileInput }/> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/desktop/tags/drive/file.tag b/src/web/app/desktop/tags/drive/file.tag index 467768db1..b33e3bc5e 100644 --- a/src/web/app/desktop/tags/drive/file.tag +++ b/src/web/app/desktop/tags/drive/file.tag @@ -9,7 +9,7 @@ <img src={ file.url + '?thumbnail&size=128' } alt="" onload={ onload }/> </div> <p class="name"><span>{ file.name.lastIndexOf('.') != -1 ? file.name.substr(0, file.name.lastIndexOf('.')) : file.name }</span><span class="ext" if={ file.name.lastIndexOf('.') != -1 }>{ file.name.substr(file.name.lastIndexOf('.')) }</span></p> - <style> + <style lang="stylus" scoped> :scope display block padding 8px 0 0 0 diff --git a/src/web/app/desktop/tags/drive/folder.tag b/src/web/app/desktop/tags/drive/folder.tag index 2fae55e50..9458671cd 100644 --- a/src/web/app/desktop/tags/drive/folder.tag +++ b/src/web/app/desktop/tags/drive/folder.tag @@ -1,6 +1,6 @@ <mk-drive-browser-folder data-is-contextmenu-showing={ isContextmenuShowing.toString() } data-draghover={ draghover.toString() } @click="onclick" onmouseover={ onmouseover } onmouseout={ onmouseout } ondragover={ ondragover } ondragenter={ ondragenter } ondragleave={ ondragleave } ondrop={ ondrop } oncontextmenu={ oncontextmenu } draggable="true" ondragstart={ ondragstart } ondragend={ ondragend } title={ title }> <p class="name"><virtual if={ hover }>%fa:R folder-open .fw%</virtual><virtual if={ !hover }>%fa:R folder .fw%</virtual>{ folder.name }</p> - <style> + <style lang="stylus" scoped> :scope display block padding 8px diff --git a/src/web/app/desktop/tags/drive/nav-folder.tag b/src/web/app/desktop/tags/drive/nav-folder.tag index d688d2e08..f16cf2181 100644 --- a/src/web/app/desktop/tags/drive/nav-folder.tag +++ b/src/web/app/desktop/tags/drive/nav-folder.tag @@ -1,6 +1,6 @@ <mk-drive-browser-nav-folder data-draghover={ draghover } @click="onclick" ondragover={ ondragover } ondragenter={ ondragenter } ondragleave={ ondragleave } ondrop={ ondrop }> <virtual if={ folder == null }>%fa:cloud%</virtual><span>{ folder == null ? '%i18n:desktop.tags.mk-drive-browser-nav-folder.drive%' : folder.name }</span> - <style> + <style lang="stylus" scoped> :scope &[data-draghover] background #eee diff --git a/src/web/app/desktop/tags/ellipsis-icon.tag b/src/web/app/desktop/tags/ellipsis-icon.tag index 8462bfc4a..619f0d84f 100644 --- a/src/web/app/desktop/tags/ellipsis-icon.tag +++ b/src/web/app/desktop/tags/ellipsis-icon.tag @@ -2,7 +2,7 @@ <div></div> <div></div> <div></div> - <style> + <style lang="stylus" scoped> :scope display block width 70px diff --git a/src/web/app/desktop/tags/follow-button.tag b/src/web/app/desktop/tags/follow-button.tag index 8a1f7b2c1..5e482509a 100644 --- a/src/web/app/desktop/tags/follow-button.tag +++ b/src/web/app/desktop/tags/follow-button.tag @@ -5,7 +5,7 @@ <virtual if={ wait }>%fa:spinner .pulse .fw%</virtual> </button> <div class="init" if={ init }>%fa:spinner .pulse .fw%</div> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/desktop/tags/following-setuper.tag b/src/web/app/desktop/tags/following-setuper.tag index d8cd32a20..9453b5bf5 100644 --- a/src/web/app/desktop/tags/following-setuper.tag +++ b/src/web/app/desktop/tags/following-setuper.tag @@ -12,7 +12,7 @@ <p class="fetching" if={ fetching }>%fa:spinner .pulse .fw%読み込んでいます<mk-ellipsis/></p> <a class="refresh" @click="refresh">もっと見る</a> <button class="close" @click="close" title="閉じる">%fa:times%</button> - <style> + <style lang="stylus" scoped> :scope display block padding 24px diff --git a/src/web/app/desktop/tags/home-widgets/access-log.tag b/src/web/app/desktop/tags/home-widgets/access-log.tag index ecf121d58..47a6fd350 100644 --- a/src/web/app/desktop/tags/home-widgets/access-log.tag +++ b/src/web/app/desktop/tags/home-widgets/access-log.tag @@ -9,7 +9,7 @@ <span>{ path }</span> </p> </div> - <style> + <style lang="stylus" scoped> :scope display block overflow hidden diff --git a/src/web/app/desktop/tags/home-widgets/activity.tag b/src/web/app/desktop/tags/home-widgets/activity.tag index f2e9cf824..5cc542272 100644 --- a/src/web/app/desktop/tags/home-widgets/activity.tag +++ b/src/web/app/desktop/tags/home-widgets/activity.tag @@ -1,6 +1,6 @@ <mk-activity-home-widget> <mk-activity-widget design={ data.design } view={ data.view } user={ I } ref="activity"/> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/desktop/tags/home-widgets/broadcast.tag b/src/web/app/desktop/tags/home-widgets/broadcast.tag index 157c42963..a1bd2175d 100644 --- a/src/web/app/desktop/tags/home-widgets/broadcast.tag +++ b/src/web/app/desktop/tags/home-widgets/broadcast.tag @@ -14,7 +14,7 @@ }</h1> <p if={ !fetching }><mk-raw if={ broadcasts.length != 0 } content={ broadcasts[i].text }/><virtual if={ broadcasts.length == 0 }>%i18n:desktop.tags.mk-broadcast-home-widget.have-a-nice-day%</virtual></p> <a if={ broadcasts.length > 1 } @click="next">%i18n:desktop.tags.mk-broadcast-home-widget.next% >></a> - <style> + <style lang="stylus" scoped> :scope display block padding 10px diff --git a/src/web/app/desktop/tags/home-widgets/calendar.tag b/src/web/app/desktop/tags/home-widgets/calendar.tag index fded57e07..a304d6255 100644 --- a/src/web/app/desktop/tags/home-widgets/calendar.tag +++ b/src/web/app/desktop/tags/home-widgets/calendar.tag @@ -24,7 +24,7 @@ </div> </div> </div> - <style> + <style lang="stylus" scoped> :scope display block padding 16px 0 diff --git a/src/web/app/desktop/tags/home-widgets/channel.tag b/src/web/app/desktop/tags/home-widgets/channel.tag index c51ca0752..60227a629 100644 --- a/src/web/app/desktop/tags/home-widgets/channel.tag +++ b/src/web/app/desktop/tags/home-widgets/channel.tag @@ -7,7 +7,7 @@ </virtual> <p class="get-started" if={ this.data.channel == null }>%i18n:desktop.tags.mk-channel-home-widget.get-started%</p> <mk-channel ref="channel" show={ this.data.channel }/> - <style> + <style lang="stylus" scoped> :scope display block background #fff @@ -110,7 +110,7 @@ <mk-channel-post each={ post in posts.slice().reverse() } post={ post } form={ parent.refs.form }/> </div> <mk-channel-form ref="form"/> - <style> + <style lang="stylus" scoped> :scope display block @@ -207,7 +207,7 @@ </virtual> </div> </div> - <style> + <style lang="stylus" scoped> :scope display block margin 0 @@ -253,7 +253,7 @@ <mk-channel-form> <input ref="text" disabled={ wait } onkeydown={ onkeydown } placeholder="書いて"> - <style> + <style lang="stylus" scoped> :scope display block width 100% diff --git a/src/web/app/desktop/tags/home-widgets/donation.tag b/src/web/app/desktop/tags/home-widgets/donation.tag index a51a7bebb..327cae5a0 100644 --- a/src/web/app/desktop/tags/home-widgets/donation.tag +++ b/src/web/app/desktop/tags/home-widgets/donation.tag @@ -3,7 +3,7 @@ <h1>%fa:heart%%i18n:desktop.tags.mk-donation-home-widget.title%</h1> <p>{'%i18n:desktop.tags.mk-donation-home-widget.text%'.substr(0, '%i18n:desktop.tags.mk-donation-home-widget.text%'.indexOf('{'))}<a href="/syuilo" data-user-preview="@syuilo">@syuilo</a>{'%i18n:desktop.tags.mk-donation-home-widget.text%'.substr('%i18n:desktop.tags.mk-donation-home-widget.text%'.indexOf('}') + 1)}</p> </article> - <style> + <style lang="stylus" scoped> :scope display block background #fff diff --git a/src/web/app/desktop/tags/home-widgets/mentions.tag b/src/web/app/desktop/tags/home-widgets/mentions.tag index 5177b2db1..519e124ae 100644 --- a/src/web/app/desktop/tags/home-widgets/mentions.tag +++ b/src/web/app/desktop/tags/home-widgets/mentions.tag @@ -10,7 +10,7 @@ <virtual if={ parent.moreLoading }>%fa:spinner .pulse .fw%</virtual> </yield/> </mk-timeline> - <style> + <style lang="stylus" scoped> :scope display block background #fff diff --git a/src/web/app/desktop/tags/home-widgets/messaging.tag b/src/web/app/desktop/tags/home-widgets/messaging.tag index 695e1babf..53f4e2f06 100644 --- a/src/web/app/desktop/tags/home-widgets/messaging.tag +++ b/src/web/app/desktop/tags/home-widgets/messaging.tag @@ -3,7 +3,7 @@ <p class="title">%fa:comments%%i18n:desktop.tags.mk-messaging-home-widget.title%</p> </virtual> <mk-messaging ref="index" compact={ true }/> - <style> + <style lang="stylus" scoped> :scope display block overflow hidden diff --git a/src/web/app/desktop/tags/home-widgets/nav.tag b/src/web/app/desktop/tags/home-widgets/nav.tag index 61c0b4cb5..308652433 100644 --- a/src/web/app/desktop/tags/home-widgets/nav.tag +++ b/src/web/app/desktop/tags/home-widgets/nav.tag @@ -1,6 +1,6 @@ <mk-nav-home-widget> <mk-nav-links/> - <style> + <style lang="stylus" scoped> :scope display block padding 16px diff --git a/src/web/app/desktop/tags/home-widgets/notifications.tag b/src/web/app/desktop/tags/home-widgets/notifications.tag index 051714eab..31ef6f608 100644 --- a/src/web/app/desktop/tags/home-widgets/notifications.tag +++ b/src/web/app/desktop/tags/home-widgets/notifications.tag @@ -4,7 +4,7 @@ <button @click="settings" title="%i18n:desktop.tags.mk-notifications-home-widget.settings%">%fa:cog%</button> </virtual> <mk-notifications/> - <style> + <style lang="stylus" scoped> :scope display block background #fff diff --git a/src/web/app/desktop/tags/home-widgets/photo-stream.tag b/src/web/app/desktop/tags/home-widgets/photo-stream.tag index e3bf3a988..80f0573fb 100644 --- a/src/web/app/desktop/tags/home-widgets/photo-stream.tag +++ b/src/web/app/desktop/tags/home-widgets/photo-stream.tag @@ -9,7 +9,7 @@ </virtual> </div> <p class="empty" if={ !initializing && images.length == 0 }>%i18n:desktop.tags.mk-photo-stream-home-widget.no-photos%</p> - <style> + <style lang="stylus" scoped> :scope display block background #fff diff --git a/src/web/app/desktop/tags/home-widgets/post-form.tag b/src/web/app/desktop/tags/home-widgets/post-form.tag index bf6374dd3..b20a1c361 100644 --- a/src/web/app/desktop/tags/home-widgets/post-form.tag +++ b/src/web/app/desktop/tags/home-widgets/post-form.tag @@ -7,7 +7,7 @@ <textarea disabled={ posting } ref="text" onkeydown={ onkeydown } placeholder="%i18n:desktop.tags.mk-post-form-home-widget.placeholder%"></textarea> <button @click="post" disabled={ posting }>%i18n:desktop.tags.mk-post-form-home-widget.post%</button> </virtual> - <style> + <style lang="stylus" scoped> :scope display block background #fff diff --git a/src/web/app/desktop/tags/home-widgets/profile.tag b/src/web/app/desktop/tags/home-widgets/profile.tag index bba5b0c47..30ca3c3b6 100644 --- a/src/web/app/desktop/tags/home-widgets/profile.tag +++ b/src/web/app/desktop/tags/home-widgets/profile.tag @@ -3,7 +3,7 @@ <img class="avatar" src={ I.avatar_url + '?thumbnail&size=96' } @click="setAvatar" alt="avatar" title="クリックでアバター編集" data-user-preview={ I.id }/> <a class="name" href={ '/' + I.username }>{ I.name }</a> <p class="username">@{ I.username }</p> - <style> + <style lang="stylus" scoped> :scope display block overflow hidden diff --git a/src/web/app/desktop/tags/home-widgets/recommended-polls.tag b/src/web/app/desktop/tags/home-widgets/recommended-polls.tag index 5489edf5f..3abb35fac 100644 --- a/src/web/app/desktop/tags/home-widgets/recommended-polls.tag +++ b/src/web/app/desktop/tags/home-widgets/recommended-polls.tag @@ -10,7 +10,7 @@ </div> <p class="empty" if={ !loading && poll == null }>%i18n:desktop.tags.mk-recommended-polls-home-widget.nothing%</p> <p class="loading" if={ loading }>%fa:spinner .pulse .fw%%i18n:common.loading%<mk-ellipsis/></p> - <style> + <style lang="stylus" scoped> :scope display block background #fff diff --git a/src/web/app/desktop/tags/home-widgets/rss-reader.tag b/src/web/app/desktop/tags/home-widgets/rss-reader.tag index 45cc62a51..524d0c110 100644 --- a/src/web/app/desktop/tags/home-widgets/rss-reader.tag +++ b/src/web/app/desktop/tags/home-widgets/rss-reader.tag @@ -7,7 +7,7 @@ <virtual each={ item in items }><a href={ item.link } target="_blank">{ item.title }</a></virtual> </div> <p class="initializing" if={ initializing }>%fa:spinner .pulse .fw%%i18n:common.loading%<mk-ellipsis/></p> - <style> + <style lang="stylus" scoped> :scope display block background #fff diff --git a/src/web/app/desktop/tags/home-widgets/server.tag b/src/web/app/desktop/tags/home-widgets/server.tag index 6749a46b1..f716c9dfe 100644 --- a/src/web/app/desktop/tags/home-widgets/server.tag +++ b/src/web/app/desktop/tags/home-widgets/server.tag @@ -10,7 +10,7 @@ <mk-server-home-widget-disk if={ !initializing } show={ data.view == 3 } connection={ connection }/> <mk-server-home-widget-uptimes if={ !initializing } show={ data.view == 4 } connection={ connection }/> <mk-server-home-widget-info if={ !initializing } show={ data.view == 5 } connection={ connection } meta={ meta }/> - <style> + <style lang="stylus" scoped> :scope display block background #fff @@ -158,7 +158,7 @@ style="stroke: none; fill: url(#{ memGradientId }); mask: url(#{ memMaskId })"/> <text x="1" y="5">MEM <tspan>{ memP }%</tspan></text> </svg> - <style> + <style lang="stylus" scoped> :scope display block @@ -239,7 +239,7 @@ <p>{ cores } Cores</p> <p>{ model }</p> </div> - <style> + <style lang="stylus" scoped> :scope display block @@ -297,7 +297,7 @@ <p>Used: { bytesToSize(used, 1) }</p> <p>Free: { bytesToSize(free, 1) }</p> </div> - <style> + <style lang="stylus" scoped> :scope display block @@ -363,7 +363,7 @@ <p>Available: { bytesToSize(available, 1) }</p> <p>Used: { bytesToSize(used, 1) }</p> </div> - <style> + <style lang="stylus" scoped> :scope display block @@ -426,7 +426,7 @@ <p>Uptimes</p> <p>Process: { process ? process.toFixed(0) : '---' }s</p> <p>OS: { os ? os.toFixed(0) : '---' }s</p> - <style> + <style lang="stylus" scoped> :scope display block padding 10px 14px @@ -464,7 +464,7 @@ <p>Maintainer: <b>{ meta.maintainer }</b></p> <p>Machine: { meta.machine }</p> <p>Node: { meta.node }</p> - <style> + <style lang="stylus" scoped> :scope display block padding 10px 14px @@ -498,7 +498,7 @@ riot-stroke={ color }/> <text x="50%" y="50%" dy="0.05" text-anchor="middle">{ (p * 100).toFixed(0) }%</text> </svg> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/desktop/tags/home-widgets/slideshow.tag b/src/web/app/desktop/tags/home-widgets/slideshow.tag index 21b778bae..c356f5cbd 100644 --- a/src/web/app/desktop/tags/home-widgets/slideshow.tag +++ b/src/web/app/desktop/tags/home-widgets/slideshow.tag @@ -6,7 +6,7 @@ <div ref="slideB" class="slide b"></div> </div> <button @click="resize">%fa:expand%</button> - <style> + <style lang="stylus" scoped> :scope display block overflow hidden diff --git a/src/web/app/desktop/tags/home-widgets/timeline.tag b/src/web/app/desktop/tags/home-widgets/timeline.tag index f44023daa..4d3d830ce 100644 --- a/src/web/app/desktop/tags/home-widgets/timeline.tag +++ b/src/web/app/desktop/tags/home-widgets/timeline.tag @@ -10,7 +10,7 @@ <virtual if={ parent.moreLoading }>%fa:spinner .pulse .fw%</virtual> </yield/> </mk-timeline> - <style> + <style lang="stylus" scoped> :scope display block background #fff diff --git a/src/web/app/desktop/tags/home-widgets/timemachine.tag b/src/web/app/desktop/tags/home-widgets/timemachine.tag index 3cddf5355..e47ce2d4a 100644 --- a/src/web/app/desktop/tags/home-widgets/timemachine.tag +++ b/src/web/app/desktop/tags/home-widgets/timemachine.tag @@ -1,6 +1,6 @@ <mk-timemachine-home-widget> <mk-calendar-widget design={ data.design } warp={ warp }/> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/desktop/tags/home-widgets/tips.tag b/src/web/app/desktop/tags/home-widgets/tips.tag index 9246d0e10..2135a836c 100644 --- a/src/web/app/desktop/tags/home-widgets/tips.tag +++ b/src/web/app/desktop/tags/home-widgets/tips.tag @@ -1,6 +1,6 @@ <mk-tips-home-widget> <p ref="tip">%fa:R lightbulb%<span ref="text"></span></p> - <style> + <style lang="stylus" scoped> :scope display block overflow visible !important diff --git a/src/web/app/desktop/tags/home-widgets/trends.tag b/src/web/app/desktop/tags/home-widgets/trends.tag index 637f53a60..0d8454da6 100644 --- a/src/web/app/desktop/tags/home-widgets/trends.tag +++ b/src/web/app/desktop/tags/home-widgets/trends.tag @@ -9,7 +9,7 @@ </div> <p class="empty" if={ !loading && post == null }>%i18n:desktop.tags.mk-trends-home-widget.nothing%</p> <p class="loading" if={ loading }>%fa:spinner .pulse .fw%%i18n:common.loading%<mk-ellipsis/></p> - <style> + <style lang="stylus" scoped> :scope display block background #fff diff --git a/src/web/app/desktop/tags/home-widgets/user-recommendation.tag b/src/web/app/desktop/tags/home-widgets/user-recommendation.tag index 881373f8d..763d39449 100644 --- a/src/web/app/desktop/tags/home-widgets/user-recommendation.tag +++ b/src/web/app/desktop/tags/home-widgets/user-recommendation.tag @@ -15,7 +15,7 @@ </div> <p class="empty" if={ !loading && users.length == 0 }>%i18n:desktop.tags.mk-user-recommendation-home-widget.no-one%</p> <p class="loading" if={ loading }>%fa:spinner .pulse .fw%%i18n:common.loading%<mk-ellipsis/></p> - <style> + <style lang="stylus" scoped> :scope display block background #fff diff --git a/src/web/app/desktop/tags/home-widgets/version.tag b/src/web/app/desktop/tags/home-widgets/version.tag index 2b66b0490..aeebb53b0 100644 --- a/src/web/app/desktop/tags/home-widgets/version.tag +++ b/src/web/app/desktop/tags/home-widgets/version.tag @@ -1,6 +1,6 @@ <mk-version-home-widget> <p>ver { _VERSION_ } (葵 aoi)</p> - <style> + <style lang="stylus" scoped> :scope display block overflow visible !important diff --git a/src/web/app/desktop/tags/home.tag b/src/web/app/desktop/tags/home.tag index 204760796..e54acd18e 100644 --- a/src/web/app/desktop/tags/home.tag +++ b/src/web/app/desktop/tags/home.tag @@ -48,7 +48,7 @@ <div ref="right" data-place="right"></div> </div> </div> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/desktop/tags/images.tag b/src/web/app/desktop/tags/images.tag index 8c4234a0f..088f937e7 100644 --- a/src/web/app/desktop/tags/images.tag +++ b/src/web/app/desktop/tags/images.tag @@ -2,7 +2,7 @@ <virtual each={ image in images }> <mk-images-image image={ image }/> </virtual> - <style> + <style lang="stylus" scoped> :scope display grid grid-gap 4px @@ -60,7 +60,7 @@ style={ styles } @click="click" title={ image.name }></a> - <style> + <style lang="stylus" scoped> :scope display block overflow hidden @@ -111,7 +111,7 @@ <mk-image-dialog> <div class="bg" ref="bg" @click="close"></div><img ref="img" src={ image.url } alt={ image.name } title={ image.name } @click="close"/> - <style> + <style lang="stylus" scoped> :scope display block position fixed diff --git a/src/web/app/desktop/tags/input-dialog.tag b/src/web/app/desktop/tags/input-dialog.tag index 1eef25db1..26fa384e6 100644 --- a/src/web/app/desktop/tags/input-dialog.tag +++ b/src/web/app/desktop/tags/input-dialog.tag @@ -13,7 +13,7 @@ </div> </yield> </mk-window> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/desktop/tags/list-user.tag b/src/web/app/desktop/tags/list-user.tag index 91a6de0a0..c0e1051d1 100644 --- a/src/web/app/desktop/tags/list-user.tag +++ b/src/web/app/desktop/tags/list-user.tag @@ -13,7 +13,7 @@ </div> </div> <mk-follow-button user={ user }/> - <style> + <style lang="stylus" scoped> :scope display block margin 0 diff --git a/src/web/app/desktop/tags/messaging/room-window.tag b/src/web/app/desktop/tags/messaging/room-window.tag index 39afbe6dd..b13c2d3e9 100644 --- a/src/web/app/desktop/tags/messaging/room-window.tag +++ b/src/web/app/desktop/tags/messaging/room-window.tag @@ -5,7 +5,7 @@ <mk-messaging-room user={ parent.user }/> </yield> </mk-window> - <style> + <style lang="stylus" scoped> :scope > mk-window [data-yield='header'] diff --git a/src/web/app/desktop/tags/messaging/window.tag b/src/web/app/desktop/tags/messaging/window.tag index cd756daa0..ac5513a3f 100644 --- a/src/web/app/desktop/tags/messaging/window.tag +++ b/src/web/app/desktop/tags/messaging/window.tag @@ -5,7 +5,7 @@ <mk-messaging ref="index"/> </yield> </mk-window> - <style> + <style lang="stylus" scoped> :scope > mk-window [data-yield='header'] diff --git a/src/web/app/desktop/tags/notifications.tag b/src/web/app/desktop/tags/notifications.tag index 91876c24f..99024473f 100644 --- a/src/web/app/desktop/tags/notifications.tag +++ b/src/web/app/desktop/tags/notifications.tag @@ -83,7 +83,7 @@ </button> <p class="empty" if={ notifications.length == 0 && !loading }>ありません!</p> <p class="loading" if={ loading }>%fa:spinner .pulse .fw%%i18n:common.loading%<mk-ellipsis/></p> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/desktop/tags/pages/drive.tag b/src/web/app/desktop/tags/pages/drive.tag index 1cd5ca127..12ebcc47c 100644 --- a/src/web/app/desktop/tags/pages/drive.tag +++ b/src/web/app/desktop/tags/pages/drive.tag @@ -1,6 +1,6 @@ <mk-drive-page> <mk-drive-browser ref="browser" folder={ opts.folder }/> - <style> + <style lang="stylus" scoped> :scope display block position fixed diff --git a/src/web/app/desktop/tags/pages/entrance.tag b/src/web/app/desktop/tags/pages/entrance.tag index 95acbc910..9b8b4eca6 100644 --- a/src/web/app/desktop/tags/pages/entrance.tag +++ b/src/web/app/desktop/tags/pages/entrance.tag @@ -28,7 +28,7 @@ left: 15px; } </style> - <style> + <style lang="stylus" scoped> :scope $width = 1000px @@ -160,7 +160,7 @@ <a href={ _API_URL_ + '/signin/twitter' }>Twitterでサインイン</a> <div class="divider"><span>or</span></div> <button class="signup" @click="parent.signup">新規登録</button><a class="introduction" @click="introduction">Misskeyについて</a> - <style> + <style lang="stylus" scoped> :scope display block width 290px @@ -296,7 +296,7 @@ <mk-entrance-signup> <mk-signup/> <button class="cancel" type="button" @click="parent.signin" title="キャンセル">%fa:times%</button> - <style> + <style lang="stylus" scoped> :scope display block width 368px diff --git a/src/web/app/desktop/tags/pages/home-customize.tag b/src/web/app/desktop/tags/pages/home-customize.tag index 457b8390e..ad74e095d 100644 --- a/src/web/app/desktop/tags/pages/home-customize.tag +++ b/src/web/app/desktop/tags/pages/home-customize.tag @@ -1,6 +1,6 @@ <mk-home-customize-page> <mk-home ref="home" mode="timeline" customize={ true }/> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/desktop/tags/pages/home.tag b/src/web/app/desktop/tags/pages/home.tag index 62df62a48..206592518 100644 --- a/src/web/app/desktop/tags/pages/home.tag +++ b/src/web/app/desktop/tags/pages/home.tag @@ -2,7 +2,7 @@ <mk-ui ref="ui" page={ page }> <mk-home ref="home" mode={ parent.opts.mode }/> </mk-ui> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/desktop/tags/pages/messaging-room.tag b/src/web/app/desktop/tags/pages/messaging-room.tag index 3c21b9750..48096ec80 100644 --- a/src/web/app/desktop/tags/pages/messaging-room.tag +++ b/src/web/app/desktop/tags/pages/messaging-room.tag @@ -1,7 +1,7 @@ <mk-messaging-room-page> <mk-messaging-room if={ user } user={ user } is-naked={ true }/> - <style> + <style lang="stylus" scoped> :scope display block background #fff diff --git a/src/web/app/desktop/tags/pages/not-found.tag b/src/web/app/desktop/tags/pages/not-found.tag index e62ea1100..f2b4ef09a 100644 --- a/src/web/app/desktop/tags/pages/not-found.tag +++ b/src/web/app/desktop/tags/pages/not-found.tag @@ -4,7 +4,7 @@ <h1>Not Found</h1> </main> </mk-ui> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/desktop/tags/pages/post.tag b/src/web/app/desktop/tags/pages/post.tag index 6d3b030e0..43f040ed2 100644 --- a/src/web/app/desktop/tags/pages/post.tag +++ b/src/web/app/desktop/tags/pages/post.tag @@ -6,7 +6,7 @@ <a if={ parent.post.prev } href={ parent.post.prev }>%fa:angle-down%%i18n:desktop.tags.mk-post-page.prev%</a> </main> </mk-ui> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/desktop/tags/pages/search.tag b/src/web/app/desktop/tags/pages/search.tag index ac93fdaea..4d72fad65 100644 --- a/src/web/app/desktop/tags/pages/search.tag +++ b/src/web/app/desktop/tags/pages/search.tag @@ -2,7 +2,7 @@ <mk-ui ref="ui"> <mk-search ref="search" query={ parent.opts.query }/> </mk-ui> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/desktop/tags/pages/selectdrive.tag b/src/web/app/desktop/tags/pages/selectdrive.tag index d497a47c0..723a1dd5a 100644 --- a/src/web/app/desktop/tags/pages/selectdrive.tag +++ b/src/web/app/desktop/tags/pages/selectdrive.tag @@ -6,7 +6,7 @@ <button class="ok" @click="ok">%i18n:desktop.tags.mk-selectdrive-page.ok%</button> </div> - <style> + <style lang="stylus" scoped> :scope display block position fixed diff --git a/src/web/app/desktop/tags/pages/user.tag b/src/web/app/desktop/tags/pages/user.tag index 7bad03495..8ea47408c 100644 --- a/src/web/app/desktop/tags/pages/user.tag +++ b/src/web/app/desktop/tags/pages/user.tag @@ -2,7 +2,7 @@ <mk-ui ref="ui"> <mk-user ref="user" user={ parent.user } page={ parent.opts.page }/> </mk-ui> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/desktop/tags/post-detail-sub.tag b/src/web/app/desktop/tags/post-detail-sub.tag index 2d79ddd1e..62f09d4e2 100644 --- a/src/web/app/desktop/tags/post-detail-sub.tag +++ b/src/web/app/desktop/tags/post-detail-sub.tag @@ -21,7 +21,7 @@ </div> </div> </div> - <style> + <style lang="stylus" scoped> :scope display block margin 0 diff --git a/src/web/app/desktop/tags/post-detail.tag b/src/web/app/desktop/tags/post-detail.tag index 73ba930c7..4ba8275b2 100644 --- a/src/web/app/desktop/tags/post-detail.tag +++ b/src/web/app/desktop/tags/post-detail.tag @@ -63,7 +63,7 @@ </virtual> </div> </div> - <style> + <style lang="stylus" scoped> :scope display block margin 0 diff --git a/src/web/app/desktop/tags/post-form-window.tag b/src/web/app/desktop/tags/post-form-window.tag index 8955d0679..184ff548a 100644 --- a/src/web/app/desktop/tags/post-form-window.tag +++ b/src/web/app/desktop/tags/post-form-window.tag @@ -15,7 +15,7 @@ </div> </yield> </mk-window> - <style> + <style lang="stylus" scoped> :scope > mk-window diff --git a/src/web/app/desktop/tags/post-form.tag b/src/web/app/desktop/tags/post-form.tag index 4dbc69e4e..d32a3b66f 100644 --- a/src/web/app/desktop/tags/post-form.tag +++ b/src/web/app/desktop/tags/post-form.tag @@ -23,7 +23,7 @@ </button> <input ref="file" type="file" accept="image/*" multiple="multiple" tabindex="-1" onchange={ changeFile }/> <div class="dropzone" if={ draghover }></div> - <style> + <style lang="stylus" scoped> :scope display block padding 16px diff --git a/src/web/app/desktop/tags/post-preview.tag b/src/web/app/desktop/tags/post-preview.tag index 9a7db5ffa..dcad0ff7c 100644 --- a/src/web/app/desktop/tags/post-preview.tag +++ b/src/web/app/desktop/tags/post-preview.tag @@ -8,7 +8,7 @@ </div> </div> </article> - <style> + <style lang="stylus" scoped> :scope display block margin 0 diff --git a/src/web/app/desktop/tags/progress-dialog.tag b/src/web/app/desktop/tags/progress-dialog.tag index ef055c35b..9f7df312e 100644 --- a/src/web/app/desktop/tags/progress-dialog.tag +++ b/src/web/app/desktop/tags/progress-dialog.tag @@ -10,7 +10,7 @@ </div> </yield> </mk-window> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/desktop/tags/repost-form-window.tag b/src/web/app/desktop/tags/repost-form-window.tag index b501eb076..13a862d97 100644 --- a/src/web/app/desktop/tags/repost-form-window.tag +++ b/src/web/app/desktop/tags/repost-form-window.tag @@ -7,7 +7,7 @@ <mk-repost-form ref="form" post={ parent.opts.post }/> </yield> </mk-window> - <style> + <style lang="stylus" scoped> :scope > mk-window [data-yield='header'] diff --git a/src/web/app/desktop/tags/repost-form.tag b/src/web/app/desktop/tags/repost-form.tag index b2ebbf4c4..da8683ab6 100644 --- a/src/web/app/desktop/tags/repost-form.tag +++ b/src/web/app/desktop/tags/repost-form.tag @@ -10,7 +10,7 @@ <virtual if={ quote }> <mk-post-form ref="form" repost={ opts.post }/> </virtual> - <style> + <style lang="stylus" scoped> :scope > mk-post-preview diff --git a/src/web/app/desktop/tags/search-posts.tag b/src/web/app/desktop/tags/search-posts.tag index 0c8dbcbf6..d263f9576 100644 --- a/src/web/app/desktop/tags/search-posts.tag +++ b/src/web/app/desktop/tags/search-posts.tag @@ -9,7 +9,7 @@ <virtual if={ parent.moreLoading }>%fa:spinner .pulse .fw%</virtual> </yield/> </mk-timeline> - <style> + <style lang="stylus" scoped> :scope display block background #fff diff --git a/src/web/app/desktop/tags/search.tag b/src/web/app/desktop/tags/search.tag index e29a2b273..492999181 100644 --- a/src/web/app/desktop/tags/search.tag +++ b/src/web/app/desktop/tags/search.tag @@ -3,7 +3,7 @@ <h1>{ query }</h1> </header> <mk-search-posts ref="posts" query={ query }/> - <style> + <style lang="stylus" scoped> :scope display block padding-bottom 32px diff --git a/src/web/app/desktop/tags/select-file-from-drive-window.tag b/src/web/app/desktop/tags/select-file-from-drive-window.tag index 3e0f00c2f..8e9359b05 100644 --- a/src/web/app/desktop/tags/select-file-from-drive-window.tag +++ b/src/web/app/desktop/tags/select-file-from-drive-window.tag @@ -13,7 +13,7 @@ </div> </yield> </mk-window> - <style> + <style lang="stylus" scoped> :scope > mk-window [data-yield='header'] diff --git a/src/web/app/desktop/tags/select-folder-from-drive-window.tag b/src/web/app/desktop/tags/select-folder-from-drive-window.tag index ad4ae4caf..317fb90ad 100644 --- a/src/web/app/desktop/tags/select-folder-from-drive-window.tag +++ b/src/web/app/desktop/tags/select-folder-from-drive-window.tag @@ -11,7 +11,7 @@ </div> </yield> </mk-window> - <style> + <style lang="stylus" scoped> :scope > mk-window [data-yield='header'] diff --git a/src/web/app/desktop/tags/set-avatar-suggestion.tag b/src/web/app/desktop/tags/set-avatar-suggestion.tag index 82a438fb7..923871a79 100644 --- a/src/web/app/desktop/tags/set-avatar-suggestion.tag +++ b/src/web/app/desktop/tags/set-avatar-suggestion.tag @@ -2,7 +2,7 @@ <p><b>アバターを設定</b>してみませんか? <button @click="close">%fa:times%</button> </p> - <style> + <style lang="stylus" scoped> :scope display block cursor pointer diff --git a/src/web/app/desktop/tags/set-banner-suggestion.tag b/src/web/app/desktop/tags/set-banner-suggestion.tag index c5c5c7019..fa4e5843b 100644 --- a/src/web/app/desktop/tags/set-banner-suggestion.tag +++ b/src/web/app/desktop/tags/set-banner-suggestion.tag @@ -2,7 +2,7 @@ <p><b>バナーを設定</b>してみませんか? <button @click="close">%fa:times%</button> </p> - <style> + <style lang="stylus" scoped> :scope display block cursor pointer diff --git a/src/web/app/desktop/tags/settings-window.tag b/src/web/app/desktop/tags/settings-window.tag index 09566b898..64ce1336d 100644 --- a/src/web/app/desktop/tags/settings-window.tag +++ b/src/web/app/desktop/tags/settings-window.tag @@ -5,7 +5,7 @@ <mk-settings/> </yield> </mk-window> - <style> + <style lang="stylus" scoped> :scope > mk-window [data-yield='header'] diff --git a/src/web/app/desktop/tags/settings.tag b/src/web/app/desktop/tags/settings.tag index 084bde009..211e36741 100644 --- a/src/web/app/desktop/tags/settings.tag +++ b/src/web/app/desktop/tags/settings.tag @@ -67,7 +67,7 @@ %license% </section> </div> - <style> + <style lang="stylus" scoped> :scope display flex width 100% @@ -150,7 +150,7 @@ <input ref="accountBirthday" type="date" value={ I.profile.birthday } class="ui"/> </label> <button class="ui primary" @click="updateAccount">%i18n:desktop.tags.mk-profile-setting.save%</button> - <style> + <style lang="stylus" scoped> :scope display block @@ -196,7 +196,7 @@ <div class="ui info warn"><p>%fa:exclamation-triangle%%i18n:desktop.tags.mk-api-info.caution%</p></div> <p>%i18n:desktop.tags.mk-api-info.regeneration-of-token%</p> <button class="ui" @click="regenerateToken">%i18n:desktop.tags.mk-api-info.regenerate-token%</button> - <style> + <style lang="stylus" scoped> :scope display block color #4a535a @@ -226,7 +226,7 @@ <mk-password-setting> <button @click="reset" class="ui primary">%i18n:desktop.tags.mk-password-setting.reset%</button> - <style> + <style lang="stylus" scoped> :scope display block color #4a535a @@ -281,7 +281,7 @@ </ol> <div class="ui info"><p>%fa:info-circle%%i18n:desktop.tags.mk-2fa-setting.info%</p></div> </div> - <style> + <style lang="stylus" scoped> :scope display block color #4a535a @@ -351,7 +351,7 @@ <text x="50%" y="50%" dy="0.05" text-anchor="middle">{ (usageP * 100).toFixed(0) }%</text> </svg> - <style> + <style lang="stylus" scoped> :scope display block color #4a535a @@ -403,7 +403,7 @@ </div> </div> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/desktop/tags/sub-post-content.tag b/src/web/app/desktop/tags/sub-post-content.tag index 01e1fdb31..a07180b67 100644 --- a/src/web/app/desktop/tags/sub-post-content.tag +++ b/src/web/app/desktop/tags/sub-post-content.tag @@ -14,7 +14,7 @@ <summary>投票</summary> <mk-poll post={ post }/> </details> - <style> + <style lang="stylus" scoped> :scope display block overflow-wrap break-word diff --git a/src/web/app/desktop/tags/timeline.tag b/src/web/app/desktop/tags/timeline.tag index 115b22c86..008c69017 100644 --- a/src/web/app/desktop/tags/timeline.tag +++ b/src/web/app/desktop/tags/timeline.tag @@ -6,7 +6,7 @@ <footer data-yield="footer"> <yield from="footer"/> </footer> - <style> + <style lang="stylus" scoped> :scope display block @@ -151,7 +151,7 @@ <div class="detail" if={ isDetailOpened }> <mk-post-status-graph width="462" height="130" post={ p }/> </div> - <style> + <style lang="stylus" scoped> :scope display block margin 0 @@ -613,7 +613,7 @@ </div> </div> </article> - <style> + <style lang="stylus" scoped> :scope display block margin 0 diff --git a/src/web/app/desktop/tags/ui.tag b/src/web/app/desktop/tags/ui.tag index 4b302a0eb..cae30dbe2 100644 --- a/src/web/app/desktop/tags/ui.tag +++ b/src/web/app/desktop/tags/ui.tag @@ -6,7 +6,7 @@ <yield /> </div> <mk-stream-indicator if={ SIGNIN }/> - <style> + <style lang="stylus" scoped> :scope display block </style> @@ -56,7 +56,7 @@ </div> </div> </div> - <style> + <style lang="stylus" scoped> :scope display block position -webkit-sticky @@ -128,7 +128,7 @@ <input ref="q" type="search" placeholder="%i18n:desktop.tags.mk-ui-header-search.placeholder%"/> <div class="result"></div> </form> - <style> + <style lang="stylus" scoped> :scope > form @@ -187,7 +187,7 @@ <mk-ui-header-post-button> <button @click="post" title="%i18n:desktop.tags.mk-ui-header-post-button.post%">%fa:pencil-alt%</button> - <style> + <style lang="stylus" scoped> :scope display inline-block padding 8px @@ -235,7 +235,7 @@ <div class="notifications" if={ isOpen }> <mk-notifications/> </div> - <style> + <style lang="stylus" scoped> :scope display block float left @@ -420,7 +420,7 @@ </a> </li> </ul> - <style> + <style lang="stylus" scoped> :scope display inline-block margin 0 @@ -552,7 +552,7 @@ <div class="content"> <mk-analog-clock/> </div> - <style> + <style lang="stylus" scoped> :scope display inline-block overflow visible @@ -656,7 +656,7 @@ </li> </ul> </div> - <style> + <style lang="stylus" scoped> :scope display block float left @@ -845,7 +845,7 @@ <mk-ui-notification> <p>{ opts.message }</p> - <style> + <style lang="stylus" scoped> :scope display block position fixed diff --git a/src/web/app/desktop/tags/user-followers-window.tag b/src/web/app/desktop/tags/user-followers-window.tag index 43127a68a..a67888fa7 100644 --- a/src/web/app/desktop/tags/user-followers-window.tag +++ b/src/web/app/desktop/tags/user-followers-window.tag @@ -3,7 +3,7 @@ <yield to="content"> <mk-user-followers user={ parent.user }/></yield> </mk-window> - <style> + <style lang="stylus" scoped> :scope > mk-window [data-yield='header'] diff --git a/src/web/app/desktop/tags/user-followers.tag b/src/web/app/desktop/tags/user-followers.tag index ea670e272..79fa87141 100644 --- a/src/web/app/desktop/tags/user-followers.tag +++ b/src/web/app/desktop/tags/user-followers.tag @@ -1,6 +1,6 @@ <mk-user-followers> <mk-users-list fetch={ fetch } count={ user.followers_count } you-know-count={ user.followers_you_know_count } no-users={ 'フォロワーはいないようです。' }/> - <style> + <style lang="stylus" scoped> :scope display block height 100% diff --git a/src/web/app/desktop/tags/user-following-window.tag b/src/web/app/desktop/tags/user-following-window.tag index 10a84db31..dd798a020 100644 --- a/src/web/app/desktop/tags/user-following-window.tag +++ b/src/web/app/desktop/tags/user-following-window.tag @@ -3,7 +3,7 @@ <yield to="content"> <mk-user-following user={ parent.user }/></yield> </mk-window> - <style> + <style lang="stylus" scoped> :scope > mk-window [data-yield='header'] diff --git a/src/web/app/desktop/tags/user-following.tag b/src/web/app/desktop/tags/user-following.tag index 4523beac2..260900f95 100644 --- a/src/web/app/desktop/tags/user-following.tag +++ b/src/web/app/desktop/tags/user-following.tag @@ -1,6 +1,6 @@ <mk-user-following> <mk-users-list fetch={ fetch } count={ user.following_count } you-know-count={ user.following_you_know_count } no-users={ 'フォロー中のユーザーはいないようです。' }/> - <style> + <style lang="stylus" scoped> :scope display block height 100% diff --git a/src/web/app/desktop/tags/user-preview.tag b/src/web/app/desktop/tags/user-preview.tag index 7993895a8..cf7b96275 100644 --- a/src/web/app/desktop/tags/user-preview.tag +++ b/src/web/app/desktop/tags/user-preview.tag @@ -19,7 +19,7 @@ </div> <mk-follow-button if={ SIGNIN && user.id != I.id } user={ userPromise }/> </virtual> - <style> + <style lang="stylus" scoped> :scope display block position absolute diff --git a/src/web/app/desktop/tags/user-timeline.tag b/src/web/app/desktop/tags/user-timeline.tag index 0bfad05c2..be2649fb6 100644 --- a/src/web/app/desktop/tags/user-timeline.tag +++ b/src/web/app/desktop/tags/user-timeline.tag @@ -12,7 +12,7 @@ <virtual if={ parent.moreLoading }>%fa:spinner .pulse .fw%</virtual> </yield/> </mk-timeline> - <style> + <style lang="stylus" scoped> :scope display block background #fff diff --git a/src/web/app/desktop/tags/user.tag b/src/web/app/desktop/tags/user.tag index 8eca3caaa..046fef681 100644 --- a/src/web/app/desktop/tags/user.tag +++ b/src/web/app/desktop/tags/user.tag @@ -6,7 +6,7 @@ <mk-user-home if={ page == 'home' } user={ user }/> <mk-user-graphs if={ page == 'graphs' } user={ user }/> </div> - <style> + <style lang="stylus" scoped> :scope display block @@ -56,7 +56,7 @@ <a href={ '/' + user.username + '/graphs' } data-active={ parent.page == 'graphs' }>%fa:chart-bar%グラフ</a> </footer> </div> - <style> + <style lang="stylus" scoped> :scope $banner-height = 320px $footer-height = 58px @@ -242,7 +242,7 @@ <p class="following">%fa:angle-right%<a @click="showFollowing">{ user.following_count }</a>人を<b>フォロー</b></p> <p class="followers">%fa:angle-right%<a @click="showFollowers">{ user.followers_count }</a>人の<b>フォロワー</b></p> </div> - <style> + <style lang="stylus" scoped> :scope display block background #fff @@ -362,7 +362,7 @@ </virtual> </div> <p class="empty" if={ !initializing && images.length == 0 }>%i18n:desktop.tags.mk-user.photos.no-photos%</p> - <style> + <style lang="stylus" scoped> :scope display block background #fff @@ -461,7 +461,7 @@ <mk-follow-button user={ _user }/> </div> <p class="empty" if={ !initializing && users.length == 0 }>%i18n:desktop.tags.mk-user.frequently-replied-users.no-users%</p> - <style> + <style lang="stylus" scoped> :scope display block background #fff @@ -568,7 +568,7 @@ </virtual> </div> <p class="empty" if={ !initializing && users.length == 0 }>%i18n:desktop.tags.mk-user.followers-you-know.no-users%</p> - <style> + <style lang="stylus" scoped> :scope display block background #fff @@ -654,7 +654,7 @@ <div class="nav"><mk-nav-links/></div> </div> </div> - <style> + <style lang="stylus" scoped> :scope display flex justify-content center @@ -753,7 +753,7 @@ <mk-user-likes-graph user={ opts.user }/> </div> </section> - <style> + <style lang="stylus" scoped> :scope display block @@ -806,7 +806,7 @@ </p> <p>* 中央値</p> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/desktop/tags/users-list.tag b/src/web/app/desktop/tags/users-list.tag index 3e993a40e..fd5c73b7d 100644 --- a/src/web/app/desktop/tags/users-list.tag +++ b/src/web/app/desktop/tags/users-list.tag @@ -16,7 +16,7 @@ </button> <p class="no" if={ !fetching && users.length == 0 }>{ opts.noUsers }</p> <p class="fetching" if={ fetching }>%fa:spinner .pulse .fw%読み込んでいます<mk-ellipsis/></p> - <style> + <style lang="stylus" scoped> :scope display block height 100% diff --git a/src/web/app/desktop/tags/widgets/activity.tag b/src/web/app/desktop/tags/widgets/activity.tag index 9b547b95f..b9132e5a5 100644 --- a/src/web/app/desktop/tags/widgets/activity.tag +++ b/src/web/app/desktop/tags/widgets/activity.tag @@ -6,7 +6,7 @@ <p class="initializing" if={ initializing }>%fa:spinner .pulse .fw%%i18n:common.loading%<mk-ellipsis/></p> <mk-activity-widget-calender if={ !initializing && view == 0 } data={ [].concat(activity) }/> <mk-activity-widget-chart if={ !initializing && view == 1 } data={ [].concat(activity) }/> - <style> + <style lang="stylus" scoped> :scope display block background #fff @@ -110,7 +110,7 @@ stroke-width="0.1" stroke="#f73520"/> </svg> - <style> + <style lang="stylus" scoped> :scope display block @@ -174,7 +174,7 @@ stroke="#555" stroke-dasharray="2 2"/> </svg> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/desktop/tags/widgets/calendar.tag b/src/web/app/desktop/tags/widgets/calendar.tag index 00205a90a..4e365650c 100644 --- a/src/web/app/desktop/tags/widgets/calendar.tag +++ b/src/web/app/desktop/tags/widgets/calendar.tag @@ -18,7 +18,7 @@ @click="go.bind(null, i + 1)" title={ isOutOfRange(i + 1) ? null : '%i18n:desktop.tags.mk-calendar-widget.go%' }><div>{ i + 1 }</div></div> </div> - <style> + <style lang="stylus" scoped> :scope display block color #777 diff --git a/src/web/app/desktop/tags/window.tag b/src/web/app/desktop/tags/window.tag index 31830d907..3752f3609 100644 --- a/src/web/app/desktop/tags/window.tag +++ b/src/web/app/desktop/tags/window.tag @@ -20,7 +20,7 @@ <div class="handle bottom-right" if={ canResize } onmousedown={ onBottomRightHandleMousedown }></div> <div class="handle bottom-left" if={ canResize } onmousedown={ onBottomLeftHandleMousedown }></div> </div> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/dev/tags/new-app-form.tag b/src/web/app/dev/tags/new-app-form.tag index aba6b1524..1bd5b5a83 100644 --- a/src/web/app/dev/tags/new-app-form.tag +++ b/src/web/app/dev/tags/new-app-form.tag @@ -75,7 +75,7 @@ </section> <button @click="onsubmit">アプリ作成</button> </form> - <style> + <style lang="stylus" scoped> :scope display block overflow hidden diff --git a/src/web/app/dev/tags/pages/app.tag b/src/web/app/dev/tags/pages/app.tag index b25e0d859..3fdf8d15b 100644 --- a/src/web/app/dev/tags/pages/app.tag +++ b/src/web/app/dev/tags/pages/app.tag @@ -9,7 +9,7 @@ <input value={ app.secret } readonly="readonly"/> </div> </main> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/dev/tags/pages/apps.tag b/src/web/app/dev/tags/pages/apps.tag index 43db70fcf..fbacee137 100644 --- a/src/web/app/dev/tags/pages/apps.tag +++ b/src/web/app/dev/tags/pages/apps.tag @@ -10,7 +10,7 @@ </ul> </virtual> </div> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/dev/tags/pages/index.tag b/src/web/app/dev/tags/pages/index.tag index f863876fa..ca270b377 100644 --- a/src/web/app/dev/tags/pages/index.tag +++ b/src/web/app/dev/tags/pages/index.tag @@ -1,5 +1,5 @@ <mk-index><a href="/apps">アプリ</a> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/dev/tags/pages/new-app.tag b/src/web/app/dev/tags/pages/new-app.tag index 238b6865e..26185f278 100644 --- a/src/web/app/dev/tags/pages/new-app.tag +++ b/src/web/app/dev/tags/pages/new-app.tag @@ -6,7 +6,7 @@ </header> <mk-new-app-form/> </main> - <style> + <style lang="stylus" scoped> :scope display block padding 64px 0 diff --git a/src/web/app/mobile/tags/drive-folder-selector.tag b/src/web/app/mobile/tags/drive-folder-selector.tag index 6a0cb5cea..94cf1db41 100644 --- a/src/web/app/mobile/tags/drive-folder-selector.tag +++ b/src/web/app/mobile/tags/drive-folder-selector.tag @@ -7,7 +7,7 @@ </header> <mk-drive ref="browser" select-folder={ true }/> </div> - <style> + <style lang="stylus" scoped> :scope display block position fixed diff --git a/src/web/app/mobile/tags/drive-selector.tag b/src/web/app/mobile/tags/drive-selector.tag index 9e6f6a045..9c3a4b5c4 100644 --- a/src/web/app/mobile/tags/drive-selector.tag +++ b/src/web/app/mobile/tags/drive-selector.tag @@ -7,7 +7,7 @@ </header> <mk-drive ref="browser" select-file={ true } multiple={ opts.multiple }/> </div> - <style> + <style lang="stylus" scoped> :scope display block position fixed diff --git a/src/web/app/mobile/tags/drive.tag b/src/web/app/mobile/tags/drive.tag index 3d0396692..a063d0ca6 100644 --- a/src/web/app/mobile/tags/drive.tag +++ b/src/web/app/mobile/tags/drive.tag @@ -51,7 +51,7 @@ </div> <input ref="file" type="file" multiple="multiple" onchange={ changeLocalFile }/> <mk-drive-file-viewer if={ file != null } file={ file }/> - <style> + <style lang="stylus" scoped> :scope display block background #fff diff --git a/src/web/app/mobile/tags/drive/file-viewer.tag b/src/web/app/mobile/tags/drive/file-viewer.tag index 82fbb6609..119ad1fb2 100644 --- a/src/web/app/mobile/tags/drive/file-viewer.tag +++ b/src/web/app/mobile/tags/drive/file-viewer.tag @@ -60,7 +60,7 @@ <code>{ file.md5 }</code> </div> </div> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/mobile/tags/drive/file.tag b/src/web/app/mobile/tags/drive/file.tag index a04528ce7..96754e1b3 100644 --- a/src/web/app/mobile/tags/drive/file.tag +++ b/src/web/app/mobile/tags/drive/file.tag @@ -22,7 +22,7 @@ </div> </div> </a> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/mobile/tags/drive/folder.tag b/src/web/app/mobile/tags/drive/folder.tag index c0ccee6a5..bb17c5e67 100644 --- a/src/web/app/mobile/tags/drive/folder.tag +++ b/src/web/app/mobile/tags/drive/folder.tag @@ -4,7 +4,7 @@ <p class="name">%fa:folder%{ folder.name }</p>%fa:angle-right% </div> </a> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/mobile/tags/follow-button.tag b/src/web/app/mobile/tags/follow-button.tag index 805d5e659..baf8f2ffa 100644 --- a/src/web/app/mobile/tags/follow-button.tag +++ b/src/web/app/mobile/tags/follow-button.tag @@ -5,7 +5,7 @@ <virtual if={ wait }>%fa:spinner .pulse .fw%</virtual>{ user.is_following ? '%i18n:mobile.tags.mk-follow-button.unfollow%' : '%i18n:mobile.tags.mk-follow-button.follow%' } </button> <div class="init" if={ init }>%fa:spinner .pulse .fw%</div> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/mobile/tags/home-timeline.tag b/src/web/app/mobile/tags/home-timeline.tag index aa3818007..86708bfee 100644 --- a/src/web/app/mobile/tags/home-timeline.tag +++ b/src/web/app/mobile/tags/home-timeline.tag @@ -1,7 +1,7 @@ <mk-home-timeline> <mk-init-following if={ noFollowing } /> <mk-timeline ref="timeline" init={ init } more={ more } empty={ '%i18n:mobile.tags.mk-home-timeline.empty-timeline%' }/> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/mobile/tags/home.tag b/src/web/app/mobile/tags/home.tag index 2c07c286d..1bb9027dd 100644 --- a/src/web/app/mobile/tags/home.tag +++ b/src/web/app/mobile/tags/home.tag @@ -1,6 +1,6 @@ <mk-home> <mk-home-timeline ref="tl"/> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/mobile/tags/images.tag b/src/web/app/mobile/tags/images.tag index 5899364ae..c39eda38b 100644 --- a/src/web/app/mobile/tags/images.tag +++ b/src/web/app/mobile/tags/images.tag @@ -2,7 +2,7 @@ <virtual each={ image in images }> <mk-images-image image={ image }/> </virtual> - <style> + <style lang="stylus" scoped> :scope display grid grid-gap 4px @@ -57,7 +57,7 @@ <mk-images-image> <a ref="view" href={ image.url } target="_blank" style={ styles } title={ image.name }></a> - <style> + <style lang="stylus" scoped> :scope display block overflow hidden diff --git a/src/web/app/mobile/tags/init-following.tag b/src/web/app/mobile/tags/init-following.tag index d7e31b460..e0e2532af 100644 --- a/src/web/app/mobile/tags/init-following.tag +++ b/src/web/app/mobile/tags/init-following.tag @@ -9,7 +9,7 @@ <p class="fetching" if={ fetching }>%fa:spinner .pulse .fw%読み込んでいます<mk-ellipsis/></p> <a class="refresh" @click="refresh">もっと見る</a> <button class="close" @click="close" title="閉じる">%fa:times%</button> - <style> + <style lang="stylus" scoped> :scope display block background #fff diff --git a/src/web/app/mobile/tags/notification-preview.tag b/src/web/app/mobile/tags/notification-preview.tag index ab923ea9d..b2064cd42 100644 --- a/src/web/app/mobile/tags/notification-preview.tag +++ b/src/web/app/mobile/tags/notification-preview.tag @@ -47,7 +47,7 @@ <p class="post-ref">%fa:quote-left%{ getPostSummary(notification.post) }%fa:quote-right%</p> </div> </virtual> - <style> + <style lang="stylus" scoped> :scope display block margin 0 diff --git a/src/web/app/mobile/tags/notification.tag b/src/web/app/mobile/tags/notification.tag index de44caea2..23a9f2fe3 100644 --- a/src/web/app/mobile/tags/notification.tag +++ b/src/web/app/mobile/tags/notification.tag @@ -89,7 +89,7 @@ </a> </div> </virtual> - <style> + <style lang="stylus" scoped> :scope display block margin 0 diff --git a/src/web/app/mobile/tags/notifications.tag b/src/web/app/mobile/tags/notifications.tag index 520a336b0..ade71ea40 100644 --- a/src/web/app/mobile/tags/notifications.tag +++ b/src/web/app/mobile/tags/notifications.tag @@ -10,7 +10,7 @@ </button> <p class="empty" if={ notifications.length == 0 && !loading }>%i18n:mobile.tags.mk-notifications.empty%</p> <p class="loading" if={ loading }>%fa:spinner .pulse .fw%%i18n:common.loading%<mk-ellipsis/></p> - <style> + <style lang="stylus" scoped> :scope display block margin 8px auto diff --git a/src/web/app/mobile/tags/notify.tag b/src/web/app/mobile/tags/notify.tag index 386166f7f..787d3a374 100644 --- a/src/web/app/mobile/tags/notify.tag +++ b/src/web/app/mobile/tags/notify.tag @@ -1,6 +1,6 @@ <mk-notify> <mk-notification-preview notification={ opts.notification }/> - <style> + <style lang="stylus" scoped> :scope display block position fixed diff --git a/src/web/app/mobile/tags/page/drive.tag b/src/web/app/mobile/tags/page/drive.tag index b5ed3385e..8cc8134bc 100644 --- a/src/web/app/mobile/tags/page/drive.tag +++ b/src/web/app/mobile/tags/page/drive.tag @@ -2,7 +2,7 @@ <mk-ui ref="ui"> <mk-drive ref="browser" folder={ parent.opts.folder } file={ parent.opts.file } is-naked={ true } top={ 48 }/> </mk-ui> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/mobile/tags/page/entrance.tag b/src/web/app/mobile/tags/page/entrance.tag index b5da3c947..ebcf30f80 100644 --- a/src/web/app/mobile/tags/page/entrance.tag +++ b/src/web/app/mobile/tags/page/entrance.tag @@ -10,7 +10,7 @@ <footer> <p class="c">{ _COPYRIGHT_ }</p> </footer> - <style> + <style lang="stylus" scoped> :scope display block height 100% diff --git a/src/web/app/mobile/tags/page/entrance/signin.tag b/src/web/app/mobile/tags/page/entrance/signin.tag index 81d0a48a7..e6deea8c3 100644 --- a/src/web/app/mobile/tags/page/entrance/signin.tag +++ b/src/web/app/mobile/tags/page/entrance/signin.tag @@ -3,7 +3,7 @@ <a href={ _API_URL_ + '/signin/twitter' }>Twitterでサインイン</a> <div class="divider"><span>or</span></div> <button class="signup" @click="parent.signup">%i18n:mobile.tags.mk-entrance-signin.signup%</button><a class="introduction" @click="parent.introduction">%i18n:mobile.tags.mk-entrance-signin.about%</a> - <style> + <style lang="stylus" scoped> :scope display block margin 0 auto diff --git a/src/web/app/mobile/tags/page/entrance/signup.tag b/src/web/app/mobile/tags/page/entrance/signup.tag index 6634593d3..d219bb100 100644 --- a/src/web/app/mobile/tags/page/entrance/signup.tag +++ b/src/web/app/mobile/tags/page/entrance/signup.tag @@ -1,7 +1,7 @@ <mk-entrance-signup> <mk-signup/> <button class="cancel" type="button" @click="parent.signin" title="%i18n:mobile.tags.mk-entrance-signup.cancel%">%fa:times%</button> - <style> + <style lang="stylus" scoped> :scope display block margin 0 auto diff --git a/src/web/app/mobile/tags/page/home.tag b/src/web/app/mobile/tags/page/home.tag index 0c3121a21..4b9343a10 100644 --- a/src/web/app/mobile/tags/page/home.tag +++ b/src/web/app/mobile/tags/page/home.tag @@ -2,7 +2,7 @@ <mk-ui ref="ui"> <mk-home ref="home"/> </mk-ui> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/mobile/tags/page/messaging-room.tag b/src/web/app/mobile/tags/page/messaging-room.tag index 00ee26512..075ea8e83 100644 --- a/src/web/app/mobile/tags/page/messaging-room.tag +++ b/src/web/app/mobile/tags/page/messaging-room.tag @@ -2,7 +2,7 @@ <mk-ui ref="ui"> <mk-messaging-room if={ !parent.fetching } user={ parent.user } is-naked={ true }/> </mk-ui> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/mobile/tags/page/messaging.tag b/src/web/app/mobile/tags/page/messaging.tag index 76d610377..acde6f269 100644 --- a/src/web/app/mobile/tags/page/messaging.tag +++ b/src/web/app/mobile/tags/page/messaging.tag @@ -2,7 +2,7 @@ <mk-ui ref="ui"> <mk-messaging ref="index"/> </mk-ui> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/mobile/tags/page/new-post.tag b/src/web/app/mobile/tags/page/new-post.tag index 7adde3b32..1650446b4 100644 --- a/src/web/app/mobile/tags/page/new-post.tag +++ b/src/web/app/mobile/tags/page/new-post.tag @@ -1,6 +1,6 @@ <mk-new-post-page> <mk-post-form ref="form"/> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/mobile/tags/page/notifications.tag b/src/web/app/mobile/tags/page/notifications.tag index 596467d47..97717e2e2 100644 --- a/src/web/app/mobile/tags/page/notifications.tag +++ b/src/web/app/mobile/tags/page/notifications.tag @@ -2,7 +2,7 @@ <mk-ui ref="ui"> <mk-notifications ref="notifications"/> </mk-ui> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/mobile/tags/page/post.tag b/src/web/app/mobile/tags/page/post.tag index 5303ca8d3..003f9dea5 100644 --- a/src/web/app/mobile/tags/page/post.tag +++ b/src/web/app/mobile/tags/page/post.tag @@ -8,7 +8,7 @@ <a if={ parent.post.prev } href={ parent.post.prev }>%fa:angle-down%%i18n:mobile.tags.mk-post-page.prev%</a> </main> </mk-ui> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/mobile/tags/page/search.tag b/src/web/app/mobile/tags/page/search.tag index 51c8cce8b..393076367 100644 --- a/src/web/app/mobile/tags/page/search.tag +++ b/src/web/app/mobile/tags/page/search.tag @@ -2,7 +2,7 @@ <mk-ui ref="ui"> <mk-search ref="search" query={ parent.opts.query }/> </mk-ui> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/mobile/tags/page/selectdrive.tag b/src/web/app/mobile/tags/page/selectdrive.tag index 172a161ec..c7ff66d05 100644 --- a/src/web/app/mobile/tags/page/selectdrive.tag +++ b/src/web/app/mobile/tags/page/selectdrive.tag @@ -6,7 +6,7 @@ </header> <mk-drive ref="browser" select-file={ true } multiple={ multiple } is-naked={ true } top={ 42 }/> - <style> + <style lang="stylus" scoped> :scope display block width 100% diff --git a/src/web/app/mobile/tags/page/settings.tag b/src/web/app/mobile/tags/page/settings.tag index b388121cb..beaa08b9a 100644 --- a/src/web/app/mobile/tags/page/settings.tag +++ b/src/web/app/mobile/tags/page/settings.tag @@ -2,7 +2,7 @@ <mk-ui ref="ui"> <mk-settings /> </mk-ui> - <style> + <style lang="stylus" scoped> :scope display block </style> @@ -29,7 +29,7 @@ <li><a @click="signout">%fa:power-off%%i18n:mobile.tags.mk-settings-page.signout%</a></li> </ul> <p><small>ver { _VERSION_ } (葵 aoi)</small></p> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/mobile/tags/page/settings/authorized-apps.tag b/src/web/app/mobile/tags/page/settings/authorized-apps.tag index 8d538eba5..0145afc62 100644 --- a/src/web/app/mobile/tags/page/settings/authorized-apps.tag +++ b/src/web/app/mobile/tags/page/settings/authorized-apps.tag @@ -2,7 +2,7 @@ <mk-ui ref="ui"> <mk-authorized-apps/> </mk-ui> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/mobile/tags/page/settings/profile.tag b/src/web/app/mobile/tags/page/settings/profile.tag index 5d6c47794..e213f4070 100644 --- a/src/web/app/mobile/tags/page/settings/profile.tag +++ b/src/web/app/mobile/tags/page/settings/profile.tag @@ -2,7 +2,7 @@ <mk-ui ref="ui"> <mk-profile-setting/> </mk-ui> - <style> + <style lang="stylus" scoped> :scope display block </style> @@ -51,7 +51,7 @@ </div> <button class="save" @click="save" disabled={ saving }>%fa:check%%i18n:mobile.tags.mk-profile-setting.save%</button> </div> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/mobile/tags/page/settings/signin.tag b/src/web/app/mobile/tags/page/settings/signin.tag index 1a9e63886..5c9164bcf 100644 --- a/src/web/app/mobile/tags/page/settings/signin.tag +++ b/src/web/app/mobile/tags/page/settings/signin.tag @@ -2,7 +2,7 @@ <mk-ui ref="ui"> <mk-signin-history/> </mk-ui> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/mobile/tags/page/settings/twitter.tag b/src/web/app/mobile/tags/page/settings/twitter.tag index 02661d3b6..672eff25b 100644 --- a/src/web/app/mobile/tags/page/settings/twitter.tag +++ b/src/web/app/mobile/tags/page/settings/twitter.tag @@ -2,7 +2,7 @@ <mk-ui ref="ui"> <mk-twitter-setting/> </mk-ui> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/mobile/tags/page/user-followers.tag b/src/web/app/mobile/tags/page/user-followers.tag index a5e63613c..50280e7b9 100644 --- a/src/web/app/mobile/tags/page/user-followers.tag +++ b/src/web/app/mobile/tags/page/user-followers.tag @@ -2,7 +2,7 @@ <mk-ui ref="ui"> <mk-user-followers ref="list" if={ !parent.fetching } user={ parent.user }/> </mk-ui> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/mobile/tags/page/user-following.tag b/src/web/app/mobile/tags/page/user-following.tag index b4ed10783..b28efbab9 100644 --- a/src/web/app/mobile/tags/page/user-following.tag +++ b/src/web/app/mobile/tags/page/user-following.tag @@ -2,7 +2,7 @@ <mk-ui ref="ui"> <mk-user-following ref="list" if={ !parent.fetching } user={ parent.user }/> </mk-ui> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/mobile/tags/page/user.tag b/src/web/app/mobile/tags/page/user.tag index 8eec733fc..04b727636 100644 --- a/src/web/app/mobile/tags/page/user.tag +++ b/src/web/app/mobile/tags/page/user.tag @@ -2,7 +2,7 @@ <mk-ui ref="ui"> <mk-user ref="user" user={ parent.user } page={ parent.opts.page }/> </mk-ui> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/mobile/tags/post-detail.tag b/src/web/app/mobile/tags/post-detail.tag index be377d77f..e397ce7c0 100644 --- a/src/web/app/mobile/tags/post-detail.tag +++ b/src/web/app/mobile/tags/post-detail.tag @@ -62,7 +62,7 @@ <mk-post-detail-sub post={ post }/> </virtual> </div> - <style> + <style lang="stylus" scoped> :scope display block overflow hidden @@ -367,7 +367,7 @@ </div> </div> </article> - <style> + <style lang="stylus" scoped> :scope display block margin 0 diff --git a/src/web/app/mobile/tags/post-form.tag b/src/web/app/mobile/tags/post-form.tag index 6f0794753..202b03c20 100644 --- a/src/web/app/mobile/tags/post-form.tag +++ b/src/web/app/mobile/tags/post-form.tag @@ -24,7 +24,7 @@ <button class="poll" @click="addPoll">%fa:chart-pie%</button> <input ref="file" type="file" accept="image/*" multiple="multiple" onchange={ changeFile }/> </div> - <style> + <style lang="stylus" scoped> :scope display block max-width 500px diff --git a/src/web/app/mobile/tags/post-preview.tag b/src/web/app/mobile/tags/post-preview.tag index aaf846703..716916587 100644 --- a/src/web/app/mobile/tags/post-preview.tag +++ b/src/web/app/mobile/tags/post-preview.tag @@ -16,7 +16,7 @@ </div> </div> </article> - <style> + <style lang="stylus" scoped> :scope display block margin 0 diff --git a/src/web/app/mobile/tags/search-posts.tag b/src/web/app/mobile/tags/search-posts.tag index 3e3c034f2..9cb5ee36f 100644 --- a/src/web/app/mobile/tags/search-posts.tag +++ b/src/web/app/mobile/tags/search-posts.tag @@ -1,6 +1,6 @@ <mk-search-posts> <mk-timeline init={ init } more={ more } empty={ '%i18n:mobile.tags.mk-search-posts.empty%'.replace('{}', query) }/> - <style> + <style lang="stylus" scoped> :scope display block margin 8px auto diff --git a/src/web/app/mobile/tags/search.tag b/src/web/app/mobile/tags/search.tag index 15a861d7a..ab048ea13 100644 --- a/src/web/app/mobile/tags/search.tag +++ b/src/web/app/mobile/tags/search.tag @@ -1,6 +1,6 @@ <mk-search> <mk-search-posts ref="posts" query={ query }/> - <style> + <style lang="stylus" scoped> :scope display block </style> diff --git a/src/web/app/mobile/tags/sub-post-content.tag b/src/web/app/mobile/tags/sub-post-content.tag index 7192cd013..3d9175b18 100644 --- a/src/web/app/mobile/tags/sub-post-content.tag +++ b/src/web/app/mobile/tags/sub-post-content.tag @@ -8,7 +8,7 @@ <summary>%i18n:mobile.tags.mk-sub-post-content.poll%</summary> <mk-poll post={ post }/> </details> - <style> + <style lang="stylus" scoped> :scope display block overflow-wrap break-word diff --git a/src/web/app/mobile/tags/timeline.tag b/src/web/app/mobile/tags/timeline.tag index 66f58ff0a..3daf6b6d1 100644 --- a/src/web/app/mobile/tags/timeline.tag +++ b/src/web/app/mobile/tags/timeline.tag @@ -18,7 +18,7 @@ <span if={ fetching }>%i18n:common.loading%<mk-ellipsis/></span> </button> </footer> - <style> + <style lang="stylus" scoped> :scope display block background #fff @@ -197,7 +197,7 @@ </footer> </div> </article> - <style> + <style lang="stylus" scoped> :scope display block margin 0 @@ -595,7 +595,7 @@ </div> </div> </article> - <style> + <style lang="stylus" scoped> :scope display block margin 0 diff --git a/src/web/app/mobile/tags/ui.tag b/src/web/app/mobile/tags/ui.tag index c5dc4b2e4..8f0324f4d 100644 --- a/src/web/app/mobile/tags/ui.tag +++ b/src/web/app/mobile/tags/ui.tag @@ -5,7 +5,7 @@ <yield /> </div> <mk-stream-indicator if={ SIGNIN }/> - <style> + <style lang="stylus" scoped> :scope display block padding-top 48px @@ -58,7 +58,7 @@ <button if={ func } @click="func"><mk-raw content={ funcIcon }/></button> </div> </div> - <style> + <style lang="stylus" scoped> :scope $height = 48px @@ -250,7 +250,7 @@ </div> <a href={ aboutUrl }><p class="about">%i18n:mobile.tags.mk-ui-nav.about%</p></a> </div> - <style> + <style lang="stylus" scoped> :scope display none diff --git a/src/web/app/mobile/tags/user-card.tag b/src/web/app/mobile/tags/user-card.tag index d0c79698c..abe46bda0 100644 --- a/src/web/app/mobile/tags/user-card.tag +++ b/src/web/app/mobile/tags/user-card.tag @@ -7,7 +7,7 @@ <a class="name" href={ '/' + user.username } target="_blank">{ user.name }</a> <p class="username">@{ user.username }</p> <mk-follow-button user={ user }/> - <style> + <style lang="stylus" scoped> :scope display inline-block width 200px diff --git a/src/web/app/mobile/tags/user-followers.tag b/src/web/app/mobile/tags/user-followers.tag index c4cdedba8..a4dc99e68 100644 --- a/src/web/app/mobile/tags/user-followers.tag +++ b/src/web/app/mobile/tags/user-followers.tag @@ -1,6 +1,6 @@ <mk-user-followers> <mk-users-list ref="list" fetch={ fetch } count={ user.followers_count } you-know-count={ user.followers_you_know_count } no-users={ '%i18n:mobile.tags.mk-user-followers.no-users%' }/> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/mobile/tags/user-following.tag b/src/web/app/mobile/tags/user-following.tag index 3a6a54dd7..e1d98297c 100644 --- a/src/web/app/mobile/tags/user-following.tag +++ b/src/web/app/mobile/tags/user-following.tag @@ -1,6 +1,6 @@ <mk-user-following> <mk-users-list ref="list" fetch={ fetch } count={ user.following_count } you-know-count={ user.following_you_know_count } no-users={ '%i18n:mobile.tags.mk-user-following.no-users%' }/> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/mobile/tags/user-preview.tag b/src/web/app/mobile/tags/user-preview.tag index 48bf88a89..498ad53ec 100644 --- a/src/web/app/mobile/tags/user-preview.tag +++ b/src/web/app/mobile/tags/user-preview.tag @@ -11,7 +11,7 @@ <div class="description">{ user.description }</div> </div> </div> - <style> + <style lang="stylus" scoped> :scope display block margin 0 diff --git a/src/web/app/mobile/tags/user-timeline.tag b/src/web/app/mobile/tags/user-timeline.tag index 65203fec4..dd878810c 100644 --- a/src/web/app/mobile/tags/user-timeline.tag +++ b/src/web/app/mobile/tags/user-timeline.tag @@ -1,6 +1,6 @@ <mk-user-timeline> <mk-timeline ref="timeline" init={ init } more={ more } empty={ withMedia ? '%i18n:mobile.tags.mk-user-timeline.no-posts-with-media%' : '%i18n:mobile.tags.mk-user-timeline.no-posts%' }/> - <style> + <style lang="stylus" scoped> :scope display block max-width 600px diff --git a/src/web/app/mobile/tags/user.tag b/src/web/app/mobile/tags/user.tag index eb6d9ffbe..f0ecbd1c3 100644 --- a/src/web/app/mobile/tags/user.tag +++ b/src/web/app/mobile/tags/user.tag @@ -50,7 +50,7 @@ <mk-user-timeline if={ page == 'media' } user={ user } with-media={ true }/> </div> </div> - <style> + <style lang="stylus" scoped> :scope display block @@ -259,7 +259,7 @@ </div> </section> <p>%i18n:mobile.tags.mk-user-overview.last-used-at%: <b><mk-time time={ user.last_used_at }/></b></p> - <style> + <style lang="stylus" scoped> :scope display block max-width 600px @@ -314,7 +314,7 @@ </virtual> </div> <p class="empty" if={ !initializing && posts.length == 0 }>%i18n:mobile.tags.mk-user-overview-posts.no-posts%</p> - <style> + <style lang="stylus" scoped> :scope display block @@ -370,7 +370,7 @@ </div> <mk-time time={ post.created_at }/> </a> - <style> + <style lang="stylus" scoped> :scope display inline-block width 150px @@ -443,7 +443,7 @@ </virtual> </div> <p class="empty" if={ !initializing && images.length == 0 }>%i18n:mobile.tags.mk-user-overview-photos.no-photos%</p> - <style> + <style lang="stylus" scoped> :scope display block @@ -519,7 +519,7 @@ fill="#a1de41"/> </g> </svg> - <style> + <style lang="stylus" scoped> :scope display block max-width 600px @@ -564,7 +564,7 @@ </virtual> </div> <p class="empty" if={ user.keywords == null || user.keywords.length == 0 }>%i18n:mobile.tags.mk-user-overview-keywords.no-keywords%</p> - <style> + <style lang="stylus" scoped> :scope display block @@ -598,7 +598,7 @@ </virtual> </div> <p class="empty" if={ user.domains == null || user.domains.length == 0 }>%i18n:mobile.tags.mk-user-overview-domains.no-domains%</p> - <style> + <style lang="stylus" scoped> :scope display block @@ -633,7 +633,7 @@ </virtual> </div> <p class="empty" if={ !initializing && users.length == 0 }>%i18n:mobile.tags.mk-user-overview-frequently-replied-users.no-users%</p> - <style> + <style lang="stylus" scoped> :scope display block @@ -685,7 +685,7 @@ </virtual> </div> <p class="empty" if={ !initializing && users.length == 0 }>%i18n:mobile.tags.mk-user-overview-followers-you-know.no-users%</p> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/mobile/tags/users-list.tag b/src/web/app/mobile/tags/users-list.tag index 8e18bdea3..31ca58185 100644 --- a/src/web/app/mobile/tags/users-list.tag +++ b/src/web/app/mobile/tags/users-list.tag @@ -11,7 +11,7 @@ <span if={ moreFetching }>%i18n:common.loading%<mk-ellipsis/></span></button> <p class="no" if={ !fetching && users.length == 0 }>{ opts.noUsers }</p> <p class="fetching" if={ fetching }>%fa:spinner .pulse .fw%%i18n:common.loading%<mk-ellipsis/></p> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/stats/tags/index.tag b/src/web/app/stats/tags/index.tag index 4b5415b2f..494983706 100644 --- a/src/web/app/stats/tags/index.tag +++ b/src/web/app/stats/tags/index.tag @@ -5,7 +5,7 @@ <mk-posts stats={ stats }/> </main> <footer><a href={ _URL_ }>{ _HOST_ }</a></footer> - <style> + <style lang="stylus" scoped> :scope display block margin 0 auto @@ -59,7 +59,7 @@ <mk-posts> <h2>%i18n:stats.posts-count% <b>{ stats.posts_count }</b></h2> <mk-posts-chart if={ !initializing } data={ data }/> - <style> + <style lang="stylus" scoped> :scope display block </style> @@ -85,7 +85,7 @@ <mk-users> <h2>%i18n:stats.users-count% <b>{ stats.users_count }</b></h2> <mk-users-chart if={ !initializing } data={ data }/> - <style> + <style lang="stylus" scoped> :scope display block </style> @@ -133,7 +133,7 @@ stroke="#555" stroke-dasharray="2 2"/> </svg> - <style> + <style lang="stylus" scoped> :scope display block @@ -178,7 +178,7 @@ stroke-width="1" stroke="#555"/> </svg> - <style> + <style lang="stylus" scoped> :scope display block diff --git a/src/web/app/status/tags/index.tag b/src/web/app/status/tags/index.tag index 198aa89e3..9ac54c867 100644 --- a/src/web/app/status/tags/index.tag +++ b/src/web/app/status/tags/index.tag @@ -6,7 +6,7 @@ <mk-mem-usage connection={ connection }/> </main> <footer><a href={ _URL_ }>{ _HOST_ }</a></footer> - <style> + <style lang="stylus" scoped> :scope display block margin 0 auto @@ -77,7 +77,7 @@ <mk-cpu-usage> <h2>CPU <b>{ percentage }%</b></h2> <mk-line-chart ref="chart"/> - <style> + <style lang="stylus" scoped> :scope display block </style> @@ -107,7 +107,7 @@ <mk-mem-usage> <h2>MEM <b>{ percentage }%</b></h2> <mk-line-chart ref="chart"/> - <style> + <style lang="stylus" scoped> :scope display block </style> @@ -164,7 +164,7 @@ stroke="#f43b16" stroke-width="0.5"/> </svg> - <style> + <style lang="stylus" scoped> :scope display block padding 16px