Advertisement
Guest User

Night Witches CharSheet CSS

a guest
May 25th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. /* Set the min-width so that when the window is resized the look will stay consistant */
  2.  
  3. .charsheet {
  4. background-color: #FFF;
  5. min-width: 850px;
  6. max-width: 850px;
  7. }
  8.  
  9. /* Universal styling applied to all elements of these types */
  10.  
  11. h2 {
  12. font-size: 2em;
  13. margin-bottom: 10px;
  14. text-align: center;
  15. }
  16.  
  17. label {
  18. display: inline-block;
  19. width: 41%;
  20. }
  21.  
  22. input {
  23. display: inline-block;
  24. width: 55%;
  25. }
  26.  
  27. img {
  28. max-height: 106px;
  29. }
  30.  
  31. textarea {
  32. resize: vertical;
  33. }
  34.  
  35. /* Targetted styling that only effects elements with these classes */
  36. input.sheet-short {
  37. width: 17%;
  38. }
  39.  
  40. select.sheet-dtype {
  41. vertical-align: top;
  42. width: 60px;
  43. }
  44. span.sheet-dee {
  45. font-size: 1.4em;
  46. font-weight: bold;
  47. left: -36%;
  48. padding-right: 4px;
  49. position: relative;
  50. top: 3px;
  51. }
  52.  
  53. /* Targetted styling that only effects elements contained within the stated class */
  54. .sheet-stats h3 {
  55. display: inline-block;
  56. text-align: left;
  57. }
  58.  
  59. .sheet-stats h3:first-child {
  60. margin-left: 35%;
  61. margin-right: 15%;
  62. }
  63.  
  64. .sheet-stats input {
  65. margin-right: 8%;
  66. width: 17%;
  67. }
  68.  
  69.  
  70. .sheet-rolltemplate-wod table {
  71. width: 189px;
  72. height: 65px;
  73. padding: 0px;
  74. background: url(https://i.imgur.com/UXV3B7X.jpg) top left;
  75. background-size: 189px 65px;
  76. background-repeat: no-repeat;
  77. font-family: "Courier New", Courier, monospace;
  78. font-weight: bold;
  79. border-spacing: 0;
  80. }
  81.  
  82. .sheet-rolltemplate-wod th {
  83. color: #000000;
  84. padding: 4px 0px 0px 10px;
  85. line-height: 1.0em;
  86. font-size: 1.2em;
  87. text-align: left;
  88. }
  89.  
  90.  
  91. .sheet-rolltemplate-wod td {
  92. padding-left: 120px;
  93. font-size: 1.0em;
  94. vertical-align: top;
  95. }
  96.  
  97. .sheet-rolltemplate-wod .sheet-result {
  98. font-size: 1.5em;
  99. text-align: center;
  100. vertical-align: top;
  101. color: rgb(112, 0, 0);
  102. }
  103.  
  104. .sheet-rolltemplate-wod .inlinerollresult {
  105. background-color: transparent;
  106. color: rgb(112, 0, 0);
  107. border: none;
  108. }
  109.  
  110. .sheet-rolltemplate-wod .inlinerollresult.fullcrit {
  111. color: #3FB315;
  112. border: none;
  113. }
  114.  
  115. .sheet-rolltemplate-wod .inlinerollresult.fullfail {
  116. color: #ff0000;
  117. border: none;
  118. }
  119.  
  120. .sheet-rolltemplate-wod .inlinerollresult.importantroll {
  121. color: #3FB315;
  122. border: none;
  123. }
  124.  
  125.  
  126. /* Hide actual radio */
  127. input[type="radio"] {
  128. opacity: 0;
  129. width: 16px;
  130. height: 16px;
  131. position: relative;
  132. top: 5px;
  133. left: 6px;
  134. margin: -10px;
  135. cursor: pointer;
  136. z-index: 1;
  137. }
  138.  
  139. /* Fake radio */
  140. input[type="radio"] + span::before {
  141. margin-right: 4px;
  142. border: solid 1px #a8a8a8;
  143. line-height: 14px;
  144. text-align: center;
  145. display: inline-block;
  146. vertical-align: middle;
  147. box-shadow: 0 0 2px #ccc;
  148. background: #f6f6f6;
  149. background: radial-gradient(#f6f6f6, #dfdfdf);
  150. content: "•";
  151. width: 12px;
  152. height: 12px;
  153. font-size: 24px;
  154. border-radius: 50%;
  155. }
  156.  
  157. /* Remove dot from all radios _after_ selected one */
  158. input[type="radio"]:checked ~ input[type="radio"] + span::before {
  159. content: "";
  160. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement