styles.scss 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /* use this to put borders around things... */
  2. .thin_border {
  3. border: 1px solid black;
  4. }
  5. .greenlink:hover {
  6. background-color: #67b168;
  7. color: white;
  8. text-decoration: none;
  9. }
  10. /* use this to put borders around things... */
  11. .crop-img {
  12. margin-bottom: 10px;
  13. max-height: 150px;
  14. max-width: 100%;
  15. }
  16. .large-img {
  17. margin-top: 10px;
  18. max-width: 100%;
  19. }
  20. /* This is the css for the chapter thumbnails. They are small boxes that show
  21. the first few lines of a chapter. There are several bits of css to make sure
  22. that they display properly.
  23. */
  24. .chapter-thumbnail {
  25. /* add a margin to look nice */
  26. margin-top: 10px;
  27. /* preserve the original line breaks and spacing (I need this because the
  28. content of the chapter is just text not HTML, so normally the line breaks
  29. would be ignored) */
  30. white-space: pre;
  31. /* don't show a scroll bar when the text is too big to fit in the box (which
  32. it always will be but we don't mind as it is just a thumbnail) */
  33. overflow: hidden;
  34. /* make sure that the box doesn't get too big */
  35. max-height: 150px;
  36. /* even if the text is big */
  37. height: 150px;
  38. /* rounded corners */
  39. border-radius: 10px;
  40. }
  41. #mainViewer {
  42. margin-top: 10px;
  43. /* preserve the original line breaks (see above)*/
  44. white-space: pre;
  45. }