0

我安装了门卫,我没有做任何配置,也没有在我的 application.css 中包含任何门卫样式表,但仍然列出了门卫的样式表。

application.css 的内容:

/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any styles
 * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
 * file per style scope.
 *
 *= require bootstrap
 *= require_tree .
 *= require_self
 */

我检查了 lib/assets/stylesheets,并且 vendor/assets/stylesheets 也没有看到任何门卫 css。如何删除如下生成的门卫 css:

  <link href="/assets/doorkeeper/bootstrap.min.css?body=1" media="screen" rel="stylesheet" />
<link href="/assets/doorkeeper/application.css?body=1" media="screen" rel="stylesheet" />
<link href="/assets/doorkeeper/admin/application.css?body=1" media="screen" rel="stylesheet" />

我试图在门卫的 GIT 页面上阅读,但未能找到解决我的问题的方法。请帮忙。

4

1 回答 1

0

您是否尝试过覆盖 Doorkeeper 布局?看看这个:https ://github.com/doorkeeper-gem/doorkeeper/wiki/Customizing-views

不过,也许我误解了你的问题。此外,我假设尽管从 HTML 中手动删除,但 Doorkeeper CSS 链接正在重新生成。

于 2014-06-06T06:53:38.497 回答