簡體   English   中英

覆蓋Rails中的基礎頂部欄

[英]Overriding Foundation Top Bar in Rails

我試圖覆蓋基礎框架頂部欄的設置。 到目前為止,嘗試了很多組合,但均未成功。 我當前的設置如下。 它似乎並沒有接受變化

的Gemfile

    # Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.1'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
gem 'foundation-rails'
gem 'sass-rails', '~> 4.0.3'

foundation_and_overrides.scss

$topbar-bg-color: #e6e6e6;
$topbar-bg: $topbar-bg-color;

我最終計划將其移出替代文件

這就像添加一些自定義SCSS一樣簡單

   .top-bar {

  background: #615f5e;

}

雖然我仍然不確定覆蓋文件中的那些變量在哪里使用。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM