現在railsでヘッダーを作成中です。
そこで、scssで下記の様にheaderにコーディングを使用しても効きません。
どうしてこの様な現象が起きるのでしょうか?
どなたかご教授お願い致します。
[application.scss] @import "bootstrap"; @import url('https://fonts.googleapis.com/css2?family=Lato:ital@1&display=swap'); body { overflow-x: hidden; font-family: 'Lato', sans-serif; color: #505962; } //Navigation header { text-transform: uppercase; font-weight: 700; font-size: .20rem; letter-spacing: .1rem; background: rgba(0,0,0,0.6)!important; }
[header.html.erb] <header class="site-header"> <nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top"> <div class="container-fluid"> <%= link_to "アプリ名", root_path, id: "logo", class: "navbar-brand" %> <ul class="navbar-nav"> <% if user_signed_in? %> <li><%= link_to "アカウント編集", edit_user_registration_path, class: "nav-link" %></li> <li><%= link_to "ログアウト", destroy_user_session_path, method: :delete, class: "nav-link" %></li> <% else %> <li><%= link_to "ログイン", new_user_session_path, class: "nav-link" %></li> <li><%= link_to "新規登録", new_user_registration_path, class: "nav-link" %></li> <% end %> </ul> </div> </nav> </header>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/04/27 08:02
2020/04/27 08:05
2020/04/27 08:07
2020/04/27 08:10 編集
2020/04/27 08:14
2020/04/27 08:19