【问题标题】:remove stylesheets that was added by doorkeeper删除门卫添加的样式表
【发布时间】:2014-06-06 02:21:13
【问题描述】:

我安装了门卫,我没有做任何配置,也没有在我的 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 页面上阅读,但没有找到解决问题的方法。请帮忙。

【问题讨论】:

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


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-12-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-22
      相关资源
      最近更新 更多