From dd8f0255bc13f03a17ff6879a205b05bef847c30 Mon Sep 17 00:00:00 2001 From: Kouichi Kishikami Date: Wed, 22 Aug 2012 16:20:29 +0900 Subject: [PATCH] Fix that error ActionView::Template::Error (Invalid CSS after " &": expected "{", was "hover {" --- app/assets/stylesheets/base.scss | 6 +++--- app/assets/stylesheets/header.scss | 4 ++-- app/assets/stylesheets/rails.scss | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/base.scss b/app/assets/stylesheets/base.scss index b9cbd4bb2b..842eaad0c1 100644 --- a/app/assets/stylesheets/base.scss +++ b/app/assets/stylesheets/base.scss @@ -54,9 +54,9 @@ ul li { //------------------------------------------------------------------------------ a { text-decoration: none; - &link, &visited { + &:link, &:visited { color: $color_link; } - &hover { + &:hover { background: $color_link_hover_background; color: $color_link_hover; } img { @@ -70,7 +70,7 @@ a { border-bottom: 1px dotted darkcyan; color: darkcyan; text-decoration: none; - &hover { + &:hover { background: $color_body; border-bottom: 1px dotted darkblue; color: darkblue; } } } diff --git a/app/assets/stylesheets/header.scss b/app/assets/stylesheets/header.scss index bed38550bf..214a1e3cba 100644 --- a/app/assets/stylesheets/header.scss +++ b/app/assets/stylesheets/header.scss @@ -46,7 +46,7 @@ $color_footer: grey; color: lightyellow; padding: 1px 4px 2px 4px; text-decoration: none; - &hover { + &:hover { background: $color_header_background; color: yellow; } } a.selected { @@ -75,7 +75,7 @@ $color_footer: grey; padding: 0px 0px 4px 0px; &.selected { color: navy; } - &hover { + &:hover { background: steelblue; } } } #jumpbox_label { color: white; } diff --git a/app/assets/stylesheets/rails.scss b/app/assets/stylesheets/rails.scss index 73d35e60c1..9f78acf486 100644 --- a/app/assets/stylesheets/rails.scss +++ b/app/assets/stylesheets/rails.scss @@ -125,7 +125,7 @@ div { text-decoration: none; color: #105cb6; border: 1px solid #9aafe5; - &hover, &focus { + &.hover, &.focus { color: navy; background: lightyellow; border-color: navy; } }