1
0
Fork 0
forked from OpenNeo/impress

use grayscale to better illustrate deactivated species on items#show

This commit is contained in:
Emi Matchu 2013-02-06 13:35:10 -06:00
parent 923335b8da
commit 7c57a3a207
2 changed files with 66 additions and 54 deletions

View file

@ -1,3 +1,12 @@
=grayscale
// http://www.karlhorky.com/2012/06/cross-browser-image-grayscale-with-css.html
filter: url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'grayscale\'><feColorMatrix type=\'matrix\' values=\'0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0\'/></filter></svg>#grayscale")
filter: gray
// Cheap hack: https://github.com/chriseppstein/compass/issues/811
$percent: 100%
-webkit-filter: unquote('grayscale(#{$percent})')
body.items-show body.items-show
#item-header #item-header
border-bottom: 1px solid $module-border-color border-bottom: 1px solid $module-border-color
@ -43,11 +52,11 @@ body.items-show
background: $module-bg-color background: $module-bg-color
outline: 1px solid $module-border-color outline: 1px solid $module-border-color
&.deactivated &.deactivated
+opacity(0.5) img
background: $error_bg_color +grayscale
//background: #fff; +opacity(0.5)
//background: rgba(255, 255, 255, .5);
&.current &.current
background: transparent
outline-color: $error_border_color outline-color: $error_border_color
#item-preview-error #item-preview-error

View file

@ -1760,14 +1760,14 @@ body.items-index #species-search-links img {
width: 80px; width: 80px;
} }
/* line 2, ../../../app/stylesheets/items/_show.sass */ /* line 11, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-header { body.items-show #item-header {
border-bottom: 1px solid #006600; border-bottom: 1px solid #006600;
display: block; display: block;
margin-bottom: 1em; margin-bottom: 1em;
padding: 1em 0; padding: 1em 0;
} }
/* line 8, ../../../app/stylesheets/items/_show.sass */ /* line 17, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-header div, body.items-show #item-header img { body.items-show #item-header div, body.items-show #item-header img {
display: -moz-inline-box; display: -moz-inline-box;
-moz-box-orient: vertical; -moz-box-orient: vertical;
@ -1779,27 +1779,27 @@ body.items-show #item-header div, body.items-show #item-header img {
body.items-show #item-header div, body.items-show #item-header img { body.items-show #item-header div, body.items-show #item-header img {
*display: inline; *display: inline;
} }
/* line 11, ../../../app/stylesheets/items/_show.sass */ /* line 20, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-header div { body.items-show #item-header div {
text-align: left; text-align: left;
} }
/* line 14, ../../../app/stylesheets/items/_show.sass */ /* line 23, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-header a { body.items-show #item-header a {
font-size: 75%; font-size: 75%;
margin-left: 1em; margin-left: 1em;
} }
/* line 18, ../../../app/stylesheets/items/_show.sass */ /* line 27, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-thumbnail { body.items-show #item-thumbnail {
border: 1px solid #006600; border: 1px solid #006600;
height: 80px; height: 80px;
margin-right: 0.5em; margin-right: 0.5em;
width: 80px; width: 80px;
} }
/* line 24, ../../../app/stylesheets/items/_show.sass */ /* line 33, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-name { body.items-show #item-name {
margin-bottom: 0; margin-bottom: 0;
} }
/* line 27, ../../../app/stylesheets/items/_show.sass */ /* line 36, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-preview { body.items-show #item-preview {
overflow: hidden; overflow: hidden;
display: inline-block; display: inline-block;
@ -1808,20 +1808,20 @@ body.items-show #item-preview {
body.items-show #item-preview { body.items-show #item-preview {
display: block; display: block;
} }
/* line 30, ../../../app/stylesheets/items/_show.sass */ /* line 39, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-preview div { body.items-show #item-preview div {
float: left; float: left;
} }
/* line 33, ../../../app/stylesheets/items/_show.sass */ /* line 42, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-preview-species { body.items-show #item-preview-species {
width: 400px; width: 400px;
} }
/* line 36, ../../../app/stylesheets/items/_show.sass */ /* line 45, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-preview-species a, body.items-show #item-preview-species img { body.items-show #item-preview-species a, body.items-show #item-preview-species img {
height: 50px; height: 50px;
width: 50px; width: 50px;
} }
/* line 40, ../../../app/stylesheets/items/_show.sass */ /* line 49, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-preview-species a { body.items-show #item-preview-species a {
display: -moz-inline-box; display: -moz-inline-box;
-moz-box-orient: vertical; -moz-box-orient: vertical;
@ -1833,76 +1833,79 @@ body.items-show #item-preview-species a {
body.items-show #item-preview-species a { body.items-show #item-preview-species a {
*display: inline; *display: inline;
} }
/* line 42, ../../../app/stylesheets/items/_show.sass */ /* line 51, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-preview-species a.current { body.items-show #item-preview-species a.current {
background: #eeffee; background: #eeffee;
outline: 1px solid #006600; outline: 1px solid #006600;
} }
/* line 45, ../../../app/stylesheets/items/_show.sass */ /* line 55, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-preview-species a.deactivated { body.items-show #item-preview-species a.deactivated img {
filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale");
filter: gray;
-webkit-filter: grayscale(100%);
-moz-opacity: 0.5; -moz-opacity: 0.5;
-webkit-opacity: 0.5; -webkit-opacity: 0.5;
-o-opacity: 0.5; -o-opacity: 0.5;
-khtml-opacity: 0.5; -khtml-opacity: 0.5;
background: #fbe3e4;
} }
/* line 50, ../../../app/stylesheets/items/_show.sass */ /* line 58, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-preview-species a.deactivated.current { body.items-show #item-preview-species a.deactivated.current {
background: transparent;
outline-color: #fbc2c4; outline-color: #fbc2c4;
} }
/* line 53, ../../../app/stylesheets/items/_show.sass */ /* line 62, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-preview-error { body.items-show #item-preview-error {
display: none; display: none;
padding: 20px 10px 0; padding: 20px 10px 0;
width: 380px; width: 380px;
} }
/* line 58, ../../../app/stylesheets/items/_show.sass */ /* line 67, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-preview-swf { body.items-show #item-preview-swf {
height: 300px; height: 300px;
overflow: hidden; overflow: hidden;
width: 300px; width: 300px;
} }
/* line 63, ../../../app/stylesheets/items/_show.sass */ /* line 72, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-zones { body.items-show #item-zones {
font-family: "Droid Serif", Georgia, "Times New Roman", Times, serif; font-family: "Droid Serif", Georgia, "Times New Roman", Times, serif;
font-size: 85%; font-size: 85%;
margin-bottom: 1em; margin-bottom: 1em;
} }
/* line 69, ../../../app/stylesheets/items/_show.sass */ /* line 78, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-zones p { body.items-show #item-zones p {
display: inline; display: inline;
} }
/* line 72, ../../../app/stylesheets/items/_show.sass */ /* line 81, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-zones p:first-child { body.items-show #item-zones p:first-child {
margin-right: 1em; margin-right: 1em;
} }
/* line 75, ../../../app/stylesheets/items/_show.sass */ /* line 84, ../../../app/stylesheets/items/_show.sass */
body.items-show #trade-hangers { body.items-show #trade-hangers {
font-size: 85%; font-size: 85%;
margin-bottom: 3em; margin-bottom: 3em;
text-align: left; text-align: left;
} }
/* line 80, ../../../app/stylesheets/items/_show.sass */ /* line 89, ../../../app/stylesheets/items/_show.sass */
body.items-show #trade-hangers p { body.items-show #trade-hangers p {
position: relative; position: relative;
} }
/* line 83, ../../../app/stylesheets/items/_show.sass */ /* line 92, ../../../app/stylesheets/items/_show.sass */
body.items-show #trade-hangers p:first-child { body.items-show #trade-hangers p:first-child {
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
/* line 87, ../../../app/stylesheets/items/_show.sass */ /* line 96, ../../../app/stylesheets/items/_show.sass */
body.items-show #trade-hangers p.overflows .toggle { body.items-show #trade-hangers p.overflows .toggle {
display: block; display: block;
} }
/* line 92, ../../../app/stylesheets/items/_show.sass */ /* line 101, ../../../app/stylesheets/items/_show.sass */
body.items-show #trade-hangers p.showing-more .toggle .less { body.items-show #trade-hangers p.showing-more .toggle .less {
display: block; display: block;
} }
/* line 95, ../../../app/stylesheets/items/_show.sass */ /* line 104, ../../../app/stylesheets/items/_show.sass */
body.items-show #trade-hangers p.showing-more .toggle .more { body.items-show #trade-hangers p.showing-more .toggle .more {
display: none; display: none;
} }
/* line 98, ../../../app/stylesheets/items/_show.sass */ /* line 107, ../../../app/stylesheets/items/_show.sass */
body.items-show #trade-hangers .toggle { body.items-show #trade-hangers .toggle {
background: white; background: white;
bottom: 0; bottom: 0;
@ -1913,15 +1916,15 @@ body.items-show #trade-hangers .toggle {
position: absolute; position: absolute;
right: 0; right: 0;
} }
/* line 108, ../../../app/stylesheets/items/_show.sass */ /* line 117, ../../../app/stylesheets/items/_show.sass */
body.items-show #trade-hangers .toggle:hover { body.items-show #trade-hangers .toggle:hover {
text-decoration: underline; text-decoration: underline;
} }
/* line 111, ../../../app/stylesheets/items/_show.sass */ /* line 120, ../../../app/stylesheets/items/_show.sass */
body.items-show #trade-hangers .toggle .less { body.items-show #trade-hangers .toggle .less {
display: none; display: none;
} }
/* line 114, ../../../app/stylesheets/items/_show.sass */ /* line 123, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-contributors { body.items-show #item-contributors {
border-color: #aaddaa; border-color: #aaddaa;
border-style: solid; border-style: solid;
@ -1934,17 +1937,17 @@ body.items-show #item-contributors {
margin-bottom: 0; margin-bottom: 0;
margin-top: 2em; margin-top: 2em;
} }
/* line 121, ../../../app/stylesheets/items/_show.sass */ /* line 130, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-contributors header { body.items-show #item-contributors header {
display: inline; display: inline;
font-weight: bold; font-weight: bold;
margin-right: 0.25em; margin-right: 0.25em;
} }
/* line 126, ../../../app/stylesheets/items/_show.sass */ /* line 135, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-contributors footer { body.items-show #item-contributors footer {
display: inline; display: inline;
} }
/* line 129, ../../../app/stylesheets/items/_show.sass */ /* line 138, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-contributors ul { body.items-show #item-contributors ul {
list-style-type: none; list-style-type: none;
} }
@ -1962,15 +1965,15 @@ body.items-show #item-contributors ul li:after {
body.items-show #item-contributors ul li:last-child:after, body.items-show #item-contributors ul li.last:after { body.items-show #item-contributors ul li:last-child:after, body.items-show #item-contributors ul li.last:after {
content: ""; content: "";
} }
/* line 132, ../../../app/stylesheets/items/_show.sass */ /* line 141, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-contributors ul li:last-child::after { body.items-show #item-contributors ul li:last-child::after {
content: "."; content: ".";
} }
/* line 135, ../../../app/stylesheets/items/_show.sass */ /* line 144, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-preview-header { body.items-show #item-preview-header {
clear: both; clear: both;
} }
/* line 138, ../../../app/stylesheets/items/_show.sass */ /* line 147, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-preview-header h3, body.items-show #item-preview-header a { body.items-show #item-preview-header h3, body.items-show #item-preview-header a {
display: -moz-inline-box; display: -moz-inline-box;
-moz-box-orient: vertical; -moz-box-orient: vertical;
@ -1982,17 +1985,17 @@ body.items-show #item-preview-header h3, body.items-show #item-preview-header a
body.items-show #item-preview-header h3, body.items-show #item-preview-header a { body.items-show #item-preview-header h3, body.items-show #item-preview-header a {
*display: inline; *display: inline;
} }
/* line 140, ../../../app/stylesheets/items/_show.sass */ /* line 149, ../../../app/stylesheets/items/_show.sass */
body.items-show #item-preview-header a { body.items-show #item-preview-header a {
font-size: 85%; font-size: 85%;
margin: -1.5em 0 0 1em; margin: -1.5em 0 0 1em;
} }
/* line 144, ../../../app/stylesheets/items/_show.sass */ /* line 153, ../../../app/stylesheets/items/_show.sass */
body.items-show .nc-icon { body.items-show .nc-icon {
height: 16px; height: 16px;
width: 16px; width: 16px;
} }
/* line 148, ../../../app/stylesheets/items/_show.sass */ /* line 157, ../../../app/stylesheets/items/_show.sass */
body.items-show #closet-hangers { body.items-show #closet-hangers {
border: 1px solid #006600; border: 1px solid #006600;
float: right; float: right;
@ -2004,13 +2007,13 @@ body.items-show #closet-hangers {
position: relative; position: relative;
z-index: 2; z-index: 2;
} }
/* line 161, ../../../app/stylesheets/items/_show.sass */ /* line 170, ../../../app/stylesheets/items/_show.sass */
body.items-show #closet-hangers h3 { body.items-show #closet-hangers h3 {
font-size: 150%; font-size: 150%;
font-weight: bold; font-weight: bold;
margin-bottom: 0.25em; margin-bottom: 0.25em;
} }
/* line 166, ../../../app/stylesheets/items/_show.sass */ /* line 175, ../../../app/stylesheets/items/_show.sass */
body.items-show #closet-hangers #closet-hangers-ownership-groups { body.items-show #closet-hangers #closet-hangers-ownership-groups {
overflow: hidden; overflow: hidden;
display: inline-block; display: inline-block;
@ -2020,41 +2023,41 @@ body.items-show #closet-hangers #closet-hangers-ownership-groups {
body.items-show #closet-hangers #closet-hangers-ownership-groups { body.items-show #closet-hangers #closet-hangers-ownership-groups {
display: block; display: block;
} }
/* line 170, ../../../app/stylesheets/items/_show.sass */ /* line 179, ../../../app/stylesheets/items/_show.sass */
body.items-show #closet-hangers #closet-hangers-ownership-groups div { body.items-show #closet-hangers #closet-hangers-ownership-groups div {
float: left; float: left;
margin: 0 5%; margin: 0 5%;
text-align: left; text-align: left;
width: 40%; width: 40%;
} }
/* line 176, ../../../app/stylesheets/items/_show.sass */ /* line 185, ../../../app/stylesheets/items/_show.sass */
body.items-show #closet-hangers #closet-hangers-ownership-groups div li { body.items-show #closet-hangers #closet-hangers-ownership-groups div li {
list-style: none; list-style: none;
word-wrap: break-word; word-wrap: break-word;
} }
/* line 180, ../../../app/stylesheets/items/_show.sass */ /* line 189, ../../../app/stylesheets/items/_show.sass */
body.items-show #closet-hangers #closet-hangers-ownership-groups div li label.unlisted { body.items-show #closet-hangers #closet-hangers-ownership-groups div li label.unlisted {
font-style: italic; font-style: italic;
} }
/* line 183, ../../../app/stylesheets/items/_show.sass */ /* line 192, ../../../app/stylesheets/items/_show.sass */
body.items-show #closet-hangers form { body.items-show #closet-hangers form {
padding: 0.5em 0; padding: 0.5em 0;
} }
/* line 186, ../../../app/stylesheets/items/_show.sass */ /* line 195, ../../../app/stylesheets/items/_show.sass */
body.items-show #closet-hangers select { body.items-show #closet-hangers select {
width: 9em; width: 9em;
} }
/* line 189, ../../../app/stylesheets/items/_show.sass */ /* line 198, ../../../app/stylesheets/items/_show.sass */
body.items-show #closet-hangers input[type=number] { body.items-show #closet-hangers input[type=number] {
margin-right: 0.5em; margin-right: 0.5em;
width: 3em; width: 3em;
} }
/* line 195, ../../../app/stylesheets/items/_show.sass */ /* line 204, ../../../app/stylesheets/items/_show.sass */
body.items-show.js #trade-hangers p { body.items-show.js #trade-hangers p {
max-height: 3em; max-height: 3em;
overflow: hidden; overflow: hidden;
} }
/* line 199, ../../../app/stylesheets/items/_show.sass */ /* line 208, ../../../app/stylesheets/items/_show.sass */
body.items-show.js #trade-hangers p.showing-more { body.items-show.js #trade-hangers p.showing-more {
max-height: none; max-height: none;
} }