删除门卫添加的样式表

时间:2014-06-06 02:21:14

标签: ruby-on-rails ruby-on-rails-4 doorkeeper

我安装了门卫,我没有做任何配置,也没有在我的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,并且供应商/资产/样式表也没有看到任何门卫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页面,但无法找到我的问题的解决方案。请帮忙。

1 个答案:

答案 0 :(得分:0)

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

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