visualize.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*plugin styles*/
  2. .visualize { border: 1px solid #888; position: relative; background: #fafafa; }
  3. .visualize canvas { position: absolute; }
  4. .visualize ul,.visualize li { margin: 0; padding: 0;}
  5. /*table title, key elements*/
  6. .visualize .visualize-info { padding: 3px 5px; background: #fafafa; border: 1px solid #888; position: absolute; top: -20px; right: 10px; opacity: .8; }
  7. .visualize .visualize-title { display: block; color: #333; margin-bottom: 3px; font-size: 1.1em; }
  8. .visualize ul.visualize-key { list-style: none; }
  9. .visualize ul.visualize-key li { list-style: none; float: left; margin-right: 10px; padding-left: 10px; position: relative;}
  10. .visualize ul.visualize-key .visualize-key-color { width: 6px; height: 6px; left: 0; position: absolute; top: 50%; margin-top: -3px; }
  11. .visualize ul.visualize-key .visualize-key-label { color: #000; }
  12. /*pie labels*/
  13. .visualize-pie .visualize-labels { list-style: none; }
  14. .visualize-pie .visualize-label-pos, .visualize-pie .visualize-label { position: absolute; margin: 0; padding:0; }
  15. .visualize-pie .visualize-label { display: block; color: #fff; font-weight: bold; font-size: 1em; }
  16. .visualize-pie-outside .visualize-label { color: #000; font-weight: normal; }
  17. /*line,bar, area labels*/
  18. .visualize-labels-x,.visualize-labels-y { position: absolute; left: 0; top: 0; list-style: none; }
  19. .visualize-labels-x li, .visualize-labels-y li { position: absolute; bottom: 0; }
  20. .visualize-labels-x li span.label, .visualize-labels-y li span.label { position: absolute; color: #555; }
  21. .visualize-labels-x li span.line, .visualize-labels-y li span.line { position: absolute; border: 0 solid #ccc; }
  22. .visualize-labels-x li { height: 100%; }
  23. .visualize-labels-x li span.label { top: 100%; margin-top: 5px; }
  24. .visualize-labels-x li span.line { border-left-width: 1px; height: 100%; display: block; }
  25. .visualize-labels-x li span.line { border: 0;} /*hide vertical lines on area, line, bar*/
  26. .visualize-labels-y li { width: 100%; }
  27. .visualize-labels-y li span.label { right: 100%; margin-right: 5px; display: block; width: 100px; text-align: right; }
  28. .visualize-labels-y li span.line { border-top-width: 1px; width: 100%; }
  29. .visualize-bar .visualize-labels-x li span.label { width: 100%; text-align: center; }
  30. body {
  31. margin-top: 50px;
  32. }
  33. table {
  34. display: none;
  35. }
  36. div.visualize {
  37. float: left;
  38. margin: 0 50px 70px 100px;
  39. }