teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

4

情報追加

2020/03/16 09:32

投稿

ayako_sato
ayako_sato

スコア8

title CHANGED
File without changes
body CHANGED
@@ -65,6 +65,9 @@
65
65
  *= require_self
66
66
  */
67
67
  @import "variables";
68
+ @import "guest";
69
+ @import "user";
70
+
68
71
  ```
69
72
  ↑上記scssにはvariables以外の他のスタイルも追加されています。
70
73
 

3

情報追加

2020/03/16 09:32

投稿

ayako_sato
ayako_sato

スコア8

title CHANGED
File without changes
body CHANGED
@@ -13,7 +13,8 @@
13
13
 
14
14
  ### 該当のソースコード
15
15
 
16
- ```guest.scss
16
+ guest.scss
17
+ ```
17
18
  .request {
18
19
  width: 90%;
19
20
  margin: 0 auto;
@@ -35,7 +36,8 @@
35
36
  }
36
37
  ```
37
38
 
38
- ```variables.scss
39
+ variables.scss
40
+ ```
39
41
  // テキスト
40
42
 
41
43
  $txt-head: #669999 !default;

2

誤字訂正

2020/03/13 07:36

投稿

ayako_sato
ayako_sato

スコア8

title CHANGED
File without changes
body CHANGED
@@ -45,7 +45,8 @@
45
45
  $main-button: #669999;
46
46
  ```
47
47
 
48
- ```application.scss
48
+ application.scss
49
+ ```
49
50
  /*
50
51
  * This is a manifest file that'll be compiled into application.css, which will include all the files
51
52
  * listed below.

1

情報追加

2020/03/13 07:32

投稿

ayako_sato
ayako_sato

スコア8

title CHANGED
File without changes
body CHANGED
@@ -11,10 +11,6 @@
11
11
 
12
12
  ![イメージ説明](4eb3e92858aa9a95078581c3100aef91.png)
13
13
 
14
- ```
15
- エラーメッセージ
16
- ```
17
-
18
14
  ### 該当のソースコード
19
15
 
20
16
  ```guest.scss
@@ -48,6 +44,28 @@
48
44
  // ボタン
49
45
  $main-button: #669999;
50
46
  ```
47
+
48
+ ```application.scss
49
+ /*
50
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
51
+ * listed below.
52
+ *
53
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
54
+ * vendor/assets/stylesheets directory can be referenced here using a relative path.
55
+ *
56
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
57
+ * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
58
+ * files in this directory. Styles in this file should be added after the last require_* statement.
59
+ * It is generally better to create a new file per style scope.
60
+ *
61
+ *= require_tree .
62
+ *= require_self
63
+ */
64
+ @import "variables";
65
+ ```
66
+ ↑上記scssにはvariables以外の他のスタイルも追加されています。
67
+
68
+
51
69
  ### 補足
52
70
  スペルミスもなく半角全角などの相違もなく、該当の「color: $txt-head;」の「$」を削除するとエラーは回避できるのですが、読みこんでいるはずのvariables.scssに指定している色になりません…。
53
71
  お気づきの点がありましたらどなたかご助言いただけますと幸いです。