diff options
-rw-r--r-- | lib/web/statusRouter.js | 6 | ||||
-rw-r--r-- | public/css/index.css | 11 | ||||
-rw-r--r-- | public/css/markdown.css | 4 | ||||
-rw-r--r-- | public/views/codimd/body.ejs | 2 | ||||
-rw-r--r-- | public/views/index/body.ejs | 4 |
5 files changed, 21 insertions, 6 deletions
diff --git a/lib/web/statusRouter.js b/lib/web/statusRouter.js index 256fead0..7ecf3839 100644 --- a/lib/web/statusRouter.js +++ b/lib/web/statusRouter.js @@ -17,7 +17,8 @@ statusRouter.get('/status', function (req, res, next) { realtime.getStatus(function (data) { res.set({ 'Cache-Control': 'private', // only cache by client - 'X-Robots-Tag': 'noindex, nofollow' // prevent crawling + 'X-Robots-Tag': 'noindex, nofollow', // prevent crawling + 'Content-Type': 'application/json' }) res.send(data) }) @@ -101,7 +102,8 @@ statusRouter.get('/config', function (req, res) { } res.set({ 'Cache-Control': 'private', // only cache by client - 'X-Robots-Tag': 'noindex, nofollow' // prevent crawling + 'X-Robots-Tag': 'noindex, nofollow', // prevent crawling + 'Content-Type': 'application/javascript' }) res.render(config.constantsPath, data) }) diff --git a/public/css/index.css b/public/css/index.css index 9cc1766e..d9ebf6de 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -310,7 +310,16 @@ body.night{ overflow: hidden; } -.night .dropdown-menu{ +.night .dropdown-menu > li > a { + color: #eee; +} + +.night .dropdown-menu > li > a:focus, +.night .dropdown-menu > li > a:hover { + color: #262626 +} + +.night .dropdown-menu { background: #222; } diff --git a/public/css/markdown.css b/public/css/markdown.css index 85a4c594..23ed6bab 100644 --- a/public/css/markdown.css +++ b/public/css/markdown.css @@ -214,3 +214,7 @@ .markdown-body figure { margin: 1em 40px; } + +.markdown-body img { + background-color: transparent; +} diff --git a/public/views/codimd/body.ejs b/public/views/codimd/body.ejs index 49604379..b5932a61 100644 --- a/public/views/codimd/body.ejs +++ b/public/views/codimd/body.ejs @@ -233,7 +233,7 @@ </button> <h4 class="modal-title" id="myModalLabel"><%= __('Are you sure?') %></h4> </div> - <div class="modal-body" style="color:black;"> + <div class="modal-body"> <h5 class="ui-delete-modal-msg"><%= __('Do you really want to delete this note?') %></h5> <strong class="ui-delete-modal-item"><%= __('All users will lose their connection.') %></strong> </div> diff --git a/public/views/index/body.ejs b/public/views/index/body.ejs index a0de8c32..29fa3181 100644 --- a/public/views/index/body.ejs +++ b/public/views/index/body.ejs @@ -168,7 +168,7 @@ </button> <h4 class="modal-title" id="myModalLabel"><%= __('Are you sure?') %></h4> </div> - <div class="modal-body" style="color:black;"> + <div class="modal-body"> <h5 class="ui-delete-history-modal-msg"></h5> <strong class="ui-delete-history-modal-item"></strong> </div> @@ -188,7 +188,7 @@ </button> <h4 class="modal-title" id="myModalLabel"><%= __('Are you sure?') %></h4> </div> - <div class="modal-body" style="color:black;"> + <div class="modal-body"> <h5 class="ui-delete-user-modal-msg"><%= __('Do you really want to delete your user account?') %></h5> <strong class="ui-delete-user-modal-item"><%= __('This will delete your account, all notes that are owned by you and remove all references to your account from other notes.') %></strong> </div> |