_figures.scss 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // Sass partial for figure & image styles
  2. .fig {
  3. /* Default of italics to set apart figure captions */
  4. &cap {
  5. font-style: italic;
  6. }
  7. &desc {
  8. font-style: normal;
  9. }
  10. /* Use @frame to create frames on figures */
  11. &border {
  12. border-color: Silver;
  13. border-style: solid;
  14. border-width: 2px;
  15. margin-top: 1em;
  16. padding-left: 3px;
  17. padding-right: 3px;
  18. }
  19. &sides {
  20. border-color: Silver;
  21. border-left: 2px solid;
  22. border-right: 2px solid;
  23. margin-top: 1em;
  24. padding-left: 3px;
  25. padding-right: 3px;
  26. }
  27. &top {
  28. border-color: Silver;
  29. border-top: 2px solid;
  30. margin-top: 1em;
  31. }
  32. &bottom {
  33. border-bottom: 2px solid;
  34. border-color: Silver;
  35. }
  36. &topbot {
  37. border-bottom: 2px solid;
  38. border-color: Silver;
  39. border-top: 2px solid;
  40. margin-top: 1em;
  41. }
  42. }
  43. /* Align images based on @align on topic/image */
  44. div.imageleft {
  45. text-align: left;
  46. }
  47. div.imagecenter {
  48. text-align: center;
  49. }
  50. div.imageright {
  51. text-align: right;
  52. }
  53. div.imagejustify {
  54. text-align: justify;
  55. }