Advertisement
CA7746

SimpleBox_CSS_for_Twine2_Harlowe

Sep 20th, 2015
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. /*
  2. * Based on L's "Simple Box" template.
  3. * https://www.glorioustrainwrecks.com/node/5163
  4. *
  5. * Which looks like this
  6. * http://i.imgur.com/HwtpPYe.png
  7. *
  8. * (Modified to work with Twine 2.x Harlowe.)
  9. */
  10.  
  11. body {
  12. /* Vertical color gradient */
  13. background-image: linear-gradient(to bottom, gainsboro, silver);
  14. background-image: -webkit-linear-gradient(top, gainsboro, silver);
  15. background-attachment: fixed;
  16.  
  17. /* Fallback color */
  18. background-color: silver;
  19. }
  20.  
  21. tw-story {
  22. /* Box background (white with 70% opacity) */
  23. background-color: rgba(255, 255, 255, 0.7);
  24.  
  25. /* Border */
  26. border: 2px solid white;
  27.  
  28. /* Rounded corners */
  29. border-radius: 1em;
  30.  
  31. /* Box width */
  32. width: 60%;
  33.  
  34. /* Center the box */
  35. display: block;
  36. min-height: 40%;
  37. margin-left:auto;
  38. margin-right:auto;
  39. margin-bottom: 5%;
  40. padding: 0px;
  41. }
  42.  
  43. tw-passage {
  44. margin: 0px;
  45. /* Inner margin within the box */
  46. padding: 2em;
  47.  
  48. /* Text formatting */
  49. color: black;
  50. font-size: 100%;
  51. text-align:justify;
  52. }
  53.  
  54. /* This hides ("none") or shows ("inline") the back button. */
  55. tw-sidebar {
  56. display:none;
  57. }
  58.  
  59. tw-link {
  60. color: royalblue
  61. }
  62.  
  63. tw-link:hover {
  64. color: deepskyblue;
  65. text-decoration: none;
  66. }
  67.  
  68. /* Shrink the page when viewed on devices with a low screen width. */
  69. @media screen and (max-width: 960px) {
  70. tw-story { width: 70%; }
  71. tw-passage { font-size: 90%;}
  72. }
  73. @media screen and (max-width: 840px) {
  74. tw-story { width: 80%; }
  75. tw-passage { font-size: 87.5%; }
  76. }
  77. @media screen and (max-width: 720px) {
  78. tw-story { width: 90%; }
  79. tw-passage { font-size: 75%; }
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement