前提・実現したいこと
rails アプリをherokuにデプロイする際に下記のエラーが出ております。
発生している問題・エラーメッセージ
Sass::SyntaxError: Invalid CSS after " */": expected "}", was ""
(sass):1178
試したこと
どこのファイルにエラーがあるか試してみたところ、
stylesheets/.scss...[OK]
stylesheets/.css...[OK]
stylesheets/.scss...[ERROR]
stylesheets/.css...[ERROR]
stylesheets/***.scss...[ERROR]
と表示されましたが、ERRORのファイルのどこがエラーとなっているのかいまいちわかりません。
ど初心者なので初歩的な質問で申し訳ありませんがよろしくお願い致します。
=====該当ファイルコード=====
// Place all the styles related to the post controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
.contact-form {
border: 1px solid #ccc;
padding: 10px;
font-size: 13px;
font-family: sans-serif;
}
.contact-form .item {
display: block;
overflow: hidden;
margin-bottom: 10px;
}
.contact-form .item.no-label {
padding: 5px 0px 5px 60px;
}
.contact-form .item .label {
float: left;
padding: 5px;
margin:0;
}
.contact-form .item .radio-group{
padding: 5px 0px 5px 60px;
}
.contact-form .item input[type=text],
.contact-form .item input[type=email],
.contact-form .item textarea {
display: block;
margin-left: 60px;
width: 200px;
padding: 5px;
border: 1px solid #ccc;
box-sizing: border-box;
font-size: 13px;
}
.contact-form .item ::placeholder {
color: #ccc;
}
.contact-form .item textarea {
outline: none;
border: 1px solid #ccc;
resize: vertical;
}
input[type=submit] {
border: none;
outline: none;
display: block;
line-height: 30px;
width: 160px;
text-align: center;
font-size: 13px;
color: #fff;
background-color: #696;
border-bottom: 4px solid #464;
cursor:pointer;
box-sizing: content-box;
transition:0.1s ease all
}
input[type=submit]:hover{
opacity:0.6;
}
==========================
body{
font: 14px/1.9 'Noto Sans JP', Arial, Verdana, 游ゴシック, YuGothic,'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', メイリオ, Meiryo,sans-serif;
font-weight: 300;
-webkit-text-size-adjust:100%;
overflow-x: hidden;
color: #000;
background: #fff;
}
.header{
text-align: center;
}
.mainImg img{
position: absolute;
left: 50%;
max-width: 1280px;
width: 1280px;
height: 528px;
margin-left: -640px;
}
section{
clear:both;
padding-top: 70px;
}
section h2{
font-family: 'メイリオ';
width: 60%;
margin: 0 auto 40px;
font-size: 22px;
font-weight:normal;
text-align: center;
background: url(../borderBlack.png) repeat-x 0 50%;
background-size: 1px 1px;
}
section h2 span {
background: #fff;
padding: 0 80px;
}
.innerS{
width: 60%;
margin: 0 auto;
padding-bottom: 80px;
}
.sec03 img{
width: 100%;
margin-bottom: 30px;
}
/* Form Layout */
.form-wrapper {
background: #fafafa;
margin: 3em auto;
padding: 0 1em;
max-width: 370px;
}
h1 {
text-align: center;
padding: 1em 0;
}
form {
padding: 0 1.5em;
}
.form-item {
margin-bottom: 0.75em;
width: 100%;
}
.form-item input {
background: #fafafa;
border: none;
border-bottom: 2px solid #e9e9e9;
color: #666;
font-family: 'Open Sans', sans-serif;
font-size: 1em;
height: 50px;
transition: border-color 0.3s;
width: 100%;
}
.form-item input:focus {
border-bottom: 2px solid #c0c0c0;
outline: none;
}
.button-panel {
margin: 2em 0 0;
width: 100%;
}
.button-panel .button {
background: #f16272;
border: none;
color: #fff;
cursor: pointer;
height: 50px;
font-family: 'Open Sans', sans-serif;
font-size: 1.2em;
letter-spacing: 0.05em;
text-align: center;
text-transform: uppercase;
width: 100%;
}
.button:hover {
background: #ee3e52;
}
.form-footer {
font-size: 1em;
padding: 2em 0;
text-align: center;
}
.form-footer a {
color: #8c8c8c;
text-decoration: none;
transition: border-color 0.3s;
}
.form-footer a:hover {
border-bottom: 1px dotted #8c8c8c;
}
/* RESPONSIVE 設定
------------------------------------------------------------*/
@media only screen and (min-width: 800px){
body{
font-size:14px;
}
}
@media only screen and (max-width: 640px){
.innerS{
width: 94%;
padding-bottom: 70px;
}
}
@media only screen and (max-width: 799px){
.header{
width: 100%;
z-index: 500;
}
.headerWrap{
position: relative;
width: 100%;
height: 70px;
background: #fff;
border-bottom: 1px solid #ccc;
}
.header h1{
padding-top: 10px;
}
.header h1 img{
margin-top: 3px;
max-height: 45px;
width: auto !important;
}
.mainImg{
padding-top: 60px;
z-index: -100;
}
section{
padding-top: 50px;
}
section h2{
margin: 0 auto 20px;
}
section h2 span {
padding: 0 30px;
}
}
あなたの回答
tips
プレビュー