PageRenderTime 2195ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/descry/Obesity/Obesity.Web/css/main.css

#
CSS | 297 lines | 251 code | 11 blank | 35 comment | 0 complexity | 5c8af16fc9be743dd1e1f6019abd178f MD5 | raw file
  1. /* ****************************************************************************
  2. *
  3. * Copyright (c) Microsoft Corporation.
  4. *
  5. * This source code is subject to terms and conditions of the Microsoft Public License. A
  6. * copy of the license can be found at http://go.microsoft.com/fwlink/?LinkID=131993. If
  7. * you cannot locate the Microsoft Public License, please send an email to
  8. * mixon@microsoft.com. By using this source code in any fashion, you are agreeing to
  9. * be bound by the terms of the Microsoft Public License.
  10. *
  11. * You must not remove this notice, or any other, from this software.
  12. *
  13. *
  14. * ***************************************************************************/
  15. /*************************************
  16. MIX ONLINE - PROJECT DESCRY
  17. http://www.visitmix.com/lab/descry
  18. This file contains all styles for the
  19. corresponding infographic. Feel free
  20. to employ the techniques used in this
  21. CSS file. A link back to us is always
  22. appreciated but not required.
  23. *************************************/
  24. /********** GENERAL STYLES ***********/
  25. body {
  26. text-align: center; /*IE5*/
  27. font-family: Arial, Helvetica, sans-serif;
  28. color: #D92F26;
  29. background: url(../img/title_bg.gif) repeat-x;
  30. }
  31. h1 {
  32. font-size: 2.5em;
  33. margin: 0 0 .2em 0;
  34. font-weight: lighter;
  35. }
  36. h2 {
  37. font-size: 1.4em;
  38. margin: 0 0 .2em 0;
  39. font-weight: normal;
  40. }
  41. p {
  42. line-height: 1.6em;
  43. font-size: 1.0em;
  44. }
  45. p.intro {
  46. color: #333;
  47. font-size: 1.2em;
  48. line-height: 1.4em;
  49. }
  50. a {
  51. text-decoration: none;
  52. color: #D92F26;
  53. }
  54. ul {
  55. margin: 0;
  56. padding: 0;
  57. list-style: none;
  58. }
  59. li {
  60. display: block;
  61. width: 100%;
  62. margin: 0px;
  63. padding: 0px;
  64. height: 31px;
  65. }
  66. a:link, a:visited {
  67. background-color: #EC9793;
  68. padding: .1em .3em .1em .3em;
  69. }
  70. a:hover, a:active {
  71. background-color: #D92F26;
  72. color: #EC9793;
  73. padding: .1em .3em .1em .3em;
  74. }
  75. table, tr, td {
  76. border: none;
  77. background: #CCCCCC;
  78. }
  79. /********** PAGE STRUCTURE ***********/
  80. #container {
  81. width: 960px;
  82. margin: 0 auto;
  83. text-align: left;
  84. }
  85. #visualization {
  86. width: 945px;
  87. height: 600px;
  88. }
  89. #bar-chart {
  90. width: 945px;
  91. }
  92. /********** PAGE ELEMENTS ***********/
  93. /* Upsell bar at top of page */
  94. #upsell {
  95. color: #fff;
  96. font-family: Arial, "Lucida Sans", Helvetica, Verdana, sans-serif;
  97. font-size: .9em;
  98. height: 2em;
  99. }
  100. #upsell a {
  101. background-color: #ff0000;
  102. display: block;
  103. text-decoration: none;
  104. color: #fff;
  105. font-weight: bold;
  106. }
  107. #upsell a:link, #upsell a:visited {
  108. background-color: #EC9793;
  109. color: #D92F26;
  110. }
  111. #upsell a:hover, #upsell a:active {
  112. background-color: #D92F26;
  113. color: #EC9793;
  114. }
  115. #upsell a span {
  116. display: block;
  117. width: 960px;
  118. text-align: right;
  119. margin: 0 auto;
  120. padding: .5em 0 .5em 0;
  121. }
  122. /* Title "The Obesity Epidemic" */
  123. #title {
  124. margin: 2em 0 0 0;
  125. height: 320px;
  126. }
  127. #title h1 {
  128. float: left;
  129. width: 500px;
  130. text-align: right;
  131. font-weight: bold;
  132. line-height: 1em;
  133. }
  134. #title span {
  135. display: block;
  136. }
  137. #title .the {
  138. font-size: .9em;
  139. color: #E6756F;
  140. }
  141. #title .obesity {
  142. font-size: 1.8em;
  143. line-height: .7em;
  144. color: #DF524A;
  145. }
  146. #title .epidemic {
  147. font-size: 2.6em;
  148. line-height: .9em;
  149. color: #B52720;
  150. }
  151. #title p {
  152. float: right;
  153. width: 420px;
  154. font-size: .869em;
  155. font-weight: bold;
  156. }
  157. #title a {
  158. font-weight: normal;
  159. }
  160. /* Year & Legend */
  161. #year {
  162. font-weight: bold;
  163. color: #333;
  164. font-size: 1.4em;
  165. margin-bottom: 10px;
  166. float: left;
  167. display: block;
  168. }
  169. #legend {
  170. float: right;
  171. color: #ccc;
  172. font-weight: bold;
  173. margin-right: 17px;
  174. margin-top: 3px;
  175. }
  176. #legend li.legend, #legend li.obese, #legend li.normal, #legend li.overweight {
  177. float: left;
  178. padding: 1px 3px 1px 3px;
  179. margin-right: 1px;
  180. font-size: .69em;
  181. height: auto;
  182. width: auto;
  183. }
  184. /* Bar Chart styles */
  185. #bar-chart {
  186. color: #ccc;
  187. margin: 0px;
  188. padding: 0px;
  189. clear: both;
  190. }
  191. .state, .obese, .normal, .overweight, .nodata {
  192. display: block;
  193. float: left;
  194. padding: 5px;
  195. font-size: .8em;
  196. }
  197. .bar {
  198. display: block;
  199. }
  200. .state {
  201. width: 20%;
  202. text-align: right;
  203. background: #999;
  204. margin-right: 5px;
  205. font-weight: bold;
  206. margin-bottom: 5px
  207. }
  208. .state-abbr {
  209. color: #fff;
  210. }
  211. .selected {
  212. background-color: #333;
  213. }
  214. .obese {
  215. background-color: #F2BAB7;
  216. color: #DF544D;
  217. font-weight: bold;
  218. }
  219. .overweight {
  220. background-color: #F0E69B;
  221. color: #AC9B26;
  222. font-weight: bold;
  223. }
  224. .normal {
  225. background-color: #D1EE7B;
  226. color: #82A615;
  227. font-weight: bold;
  228. }
  229. .nodata {
  230. background-color: #ddd;
  231. color: #666;
  232. font-weight: bold;
  233. }
  234. /* Tooltip */
  235. a.tt {
  236. position: relative;
  237. z-index: 24;
  238. }
  239. a.tt:link, a.tt:visited, a.tt:hover, a.tt:active {
  240. background-color: #fff;
  241. padding: 0;
  242. }
  243. a.tt span {
  244. display: none;
  245. }
  246. a.tt:hover {
  247. z-index: 25;
  248. }
  249. a.tt:hover span.tooltip {
  250. display: block;
  251. top: 0;
  252. padding: 0px 20px 20px 10px;
  253. font-size: .6em;
  254. line-height: 1em;
  255. position: absolute;
  256. text-align: left;
  257. left: 0;
  258. width: 245px;
  259. }
  260. a.tt:hover span.content {
  261. background-color: #333;
  262. color: #fff;
  263. display: block;
  264. padding: 5px;
  265. }
  266. /* No Silverlight */
  267. #getsilverlight {
  268. font-family: "Lucida Sans", Arial, Helvetica, Verdana, sans-serif;
  269. text-align: center;
  270. padding: 20px;
  271. line-height: 1.4em;
  272. background-color: #eeb7b7;
  273. margin-bottom: 20px;
  274. color: #ee2f2f;
  275. }
  276. /* Footer */
  277. #footer {
  278. color: #aaa;
  279. font-size: .7em;
  280. margin: 40px 0 30px 0;
  281. float: left;
  282. text-align: left;
  283. line-height: 1.5em;
  284. }