Advertisement
Guest User

Character Sheet CSS

a guest
Jan 28th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 7.65 KB | None | 0 0
  1. /* Tooltip container */
  2. .charsheet-tooltip {
  3.   position: relative;
  4.   display: inline-block;
  5.   border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
  6. }
  7.  
  8. /* Tooltip text */
  9. .sheet-tooltip .sheet-tooltiptext {
  10.   visibility: hidden;
  11.   width: 120px;
  12.   background-color: black;
  13.   color: #fff;
  14.   text-align: center;
  15.   padding: 5px 0;
  16.   border-radius: 6px;
  17.  
  18.   /* Position the tooltip text - see examples below! */
  19.   position: absolute;
  20.   z-index: 1;
  21.   width: 180px;
  22.   top: 85%;
  23.   left: 50%;
  24.   margin-left: -60px; /* Use half of the width (120/2 = 60), to center the tooltip */
  25. }
  26.  
  27. /* Show the tooltip text when you mouse over the tooltip container */
  28. .sheet-tooltip:hover .sheet-tooltiptext {
  29.   visibility: visible;
  30. }
  31.  
  32. /*----------- Tabs Setup -------------*/
  33.  
  34. /*this hides the contents of each tab by default*/
  35. .charsheet div[class^="sheet-section"] {    
  36.     display: none;
  37. }
  38.  
  39. /*this shows the tab content when the appropriate input field is selected*/
  40. .charsheet input.sheet-tab1:checked ~ div.sheet-section-core,
  41. .charsheet input.sheet-tab2:checked ~ div.sheet-section-skills,
  42. .charsheet input.sheet-tab3:checked ~ div.sheet-section-spells,
  43. .charsheet input.sheet-tab4:checked ~ div.sheet-section-gear {
  44.     display: block;
  45. }
  46.  
  47. .charsheet input.sheet-tab99:checked ~ div[class^="sheet-section"] {    
  48.     display: block;
  49. }
  50.  
  51. /*this hides the radio button for each tab, makes it 100px wide and 40px tall and makes sure it's above everything else*/
  52. .charsheet input.sheet-tab {
  53.         width: 100px;
  54.         height: 40px;
  55.         cursor: pointer;   
  56.     position: relative;
  57.     opacity: 0;
  58.     z-index: 9999;
  59. }
  60.  
  61. /*this styles the span with the tab information and slides to the left, so it appears underneath the radio button*/
  62. .charsheet span.sheet-tab {
  63.     text-align: center;
  64.         display: inline-block;
  65.     font-size: 13px;   
  66.     background: #c7c3b0;
  67.     color: black;
  68.     font-weight: bold;
  69.     border-radius: 4px;
  70.    
  71.     width: 100px;
  72.         height: 40px;
  73.         cursor: pointer;   
  74.     position: relative;
  75.     vertical-align: middle;
  76.     margin-left: -101px;/*originally 91px*/
  77. }
  78.  
  79. /*this modifies the span color once the radio button is selected so you know which tab is selected*/
  80. .charsheet input.sheet-tab1:checked + span.sheet-tab1,
  81. .charsheet input.sheet-tab2:checked + span.sheet-tab2,
  82. .charsheet input.sheet-tab3:checked + span.sheet-tab3,
  83. .charsheet input.sheet-tab4:checked + span.sheet-tab4,
  84. .charsheet input.sheet-tab5:checked + span.sheet-tab5,
  85. .charsheet input.sheet-tab6:checked + span.sheet-tab6,
  86. .charsheet input.sheet-tab7:checked + span.sheet-tab7,
  87. .charsheet input.sheet-tab8:checked + span.sheet-tab8,
  88. .charsheet input.sheet-tab99:checked + span.sheet-tab99 {
  89.    
  90.         background: #2c424e;
  91.         color: #bfc4c6;
  92.     border-radius: 4px;
  93. }
  94. /*----------- End Tab Setup -----------*/
  95.  
  96. .sheet-bold {
  97.     font-weight: 900;
  98. }
  99.  
  100. .sheet-italic {
  101.     font-style: italic;
  102. }
  103.  
  104. .sheet-inline {
  105.     display: inline-block;
  106. }
  107.  
  108. .sheet-insanities-row {
  109.     border: 1px solid black;
  110. }
  111.  
  112. .sheet-sanity-sheet-row {
  113.     border: 1px solid black;
  114. }
  115.  
  116. .sheet-collapse {
  117.     display: none;
  118. }
  119.  
  120. .sheet-collapse-show:checked ~.sheet-collapse {
  121.     display: block;
  122. }
  123.  
  124. .sheet-collapse1 {
  125.     display: none;
  126. }
  127.  
  128. .sheet-collapse-show1:checked ~.sheet-collapse1 {
  129.     display: block;
  130. }
  131.  
  132. .sheet-collapse2 {
  133.     display: none;
  134. }
  135.  
  136. .sheet-collapse-show2:checked ~.sheet-collapse2 {
  137.     display: block;
  138. }
  139.  
  140. .sheet-collapse3 {
  141.     display: none;
  142. }
  143.  
  144. .sheet-collapse-show3:checked ~.sheet-collapse3 {
  145.     display: block;
  146. }
  147.  
  148. .sheet-collapse4 {
  149.     display: none;
  150. }
  151.  
  152. .sheet-collapse-show4:checked ~.sheet-collapse4 {
  153.     display: block;
  154. }
  155.  
  156. .sheet-collapse5 {
  157.     display: none;
  158. }
  159.  
  160. .sheet-collapse-show5:checked ~.sheet-collapse5 {
  161.     display: block;
  162. }
  163.  
  164. .sheet-collapse6 {
  165.     display: none;
  166. }
  167.  
  168. .sheet-collapse-show6:checked ~.sheet-collapse6 {
  169.     display: block;
  170. }
  171.  
  172. .sheet-textarea1 {
  173.   width: 90%;
  174.   height: 100px;
  175.   padding: 12px 20px;
  176.   box-sizing: border-box;
  177.   border: 2px solid #ccc;
  178.   border-radius: 4px;
  179.   background-color: #f8f8f8;
  180. }
  181.  
  182. .sheet-textarea2 {
  183.   width: 90%;
  184.   height: 100px;
  185.   padding: 12px 20px;
  186.   box-sizing: border-box;
  187.   border: 2px solid #ccc;
  188.   border-radius: 4px;
  189.   background-color: #f8f8f8;
  190. }
  191.  
  192. .sheet-container {
  193.     width: 1000px;
  194.     position: relative;
  195. }
  196.  
  197.  
  198. .sheet-buttonwidth {
  199.   max-width: 186px;
  200. }
  201.  
  202. /* rolltemplate skill rolls*/
  203. .sheet-rolltemplate-ataw table {
  204.     width: 100%;
  205.     border: 1px solid black;
  206.     color: black;
  207.     background: #FFFFFF;
  208. }
  209. .sheet-rolltemplate-ataw caption {
  210.     text-align: center;
  211.     background: black;
  212.     color: white;
  213.     font-weight: bold;
  214.     padding: 2px;
  215.   border: 1px solid black;
  216.   line-height: 1.6em;
  217. }
  218. .sheet-rolltemplate-ataw td {
  219.   padding: 2px;
  220.   border-bottom: 1px solid black;
  221. }
  222. .sheet-rolltemplate-ataw td.sheet-template_label {
  223.     font-weight: bold;
  224. }
  225. .sheet-rolltemplate-ataw td.sheet-template_value {
  226.     text-align: center;
  227. }
  228. .sheet-rolltemplate-ataw .inlinerollresult  {
  229.   display: inline-block;
  230.   min-width: 1.5em;
  231.   text-align: center;
  232.   border: 2px solid black;
  233.     background: #BEBEBE;
  234. }
  235. .sheet-rolltemplate-ataw .inlinerollresult.fullcrit {
  236.   border: 2px solid black;
  237.     background: #BEBEBE;
  238. }
  239. .sheet-rolltemplate-ataw .inlinerollresult.fullfail {
  240.   border: 2px solid black;
  241.     background: #BEBEBE;
  242. }
  243. .sheet-rolltemplate-ataw .inlinerollresult.importantroll {
  244.   border: 2px solid black;
  245.     background: #BEBEBE;
  246. }
  247. /* rolltemplate stat rolls*/
  248. .sheet-rolltemplate-stat table {
  249.     width: 100%;
  250.     border: 1px solid black;
  251.     color: black;
  252.     background: #FFFFFF;
  253. }
  254. .sheet-rolltemplate-stat caption {
  255.     text-align: center;
  256.     background: #FFA500;
  257.     color: black;
  258.     font-weight: bold;
  259.     padding: 2px;
  260.   border: 1px solid black;
  261.   line-height: 1.6em;
  262. }
  263. .sheet-rolltemplate-stat td {
  264.   padding: 2px;
  265.   border-bottom: 1px solid black;
  266. }
  267. .sheet-rolltemplate-stat td.sheet-template_label {
  268.     font-weight: bold;
  269. }
  270. .sheet-rolltemplate-stat td.sheet-template_value {
  271.     text-align: center;
  272. }
  273. .sheet-rolltemplate-stat .inlinerollresult  {
  274.   display: inline-block;
  275.   min-width: 1.5em;
  276.   text-align: center;
  277.   border: 2px solid black;
  278.     background: #BEBEBE;
  279. }
  280. .sheet-rolltemplate-stat .inlinerollresult.fullcrit {
  281.   border: 2px solid black;
  282.     background: #BEBEBE;
  283. }
  284. .sheet-rolltemplate-stat .inlinerollresult.fullfail {
  285.   border: 2px solid black;
  286.     background: #BEBEBE;
  287. }
  288. .sheet-rolltemplate-stat .inlinerollresult.importantroll {
  289.   border: 2px solid black;
  290.     background: #BEBEBE;
  291. }
  292.  
  293. /* rolltemplate stat2 rolls*/
  294. .sheet-rolltemplate-stat2 table {
  295.     width: 100%;
  296.     border: 1px solid black;
  297.     color: black;
  298.     background: #FFFFFF;
  299. }
  300. .sheet-rolltemplate-stat2 caption {
  301.     text-align: center;
  302.     background: #FFA500;
  303.     color: black;
  304.     font-weight: bold;
  305.     padding: 2px;
  306.   border: 1px solid black;
  307.   line-height: 1.6em;
  308. }
  309. .sheet-rolltemplate-stat2 td {
  310.   padding: 2px;
  311.   border-bottom: 1px solid black;
  312. }
  313. .sheet-rolltemplate-stat2 td.sheet-template_label {
  314.     font-weight: bold;
  315. }
  316. .sheet-rolltemplate-stat2 td.sheet-template_value {
  317.     text-align: center;
  318. }
  319. .sheet-rolltemplate-stat2 .inlinerollresult  {
  320.   display: inline-block;
  321.   min-width: 1.5em;
  322.   text-align: center;
  323.   border: 2px solid black;
  324.     background: #BEBEBE;
  325. }
  326. .sheet-rolltemplate-stat2 .inlinerollresult.fullcrit {
  327.   border: 2px solid black;
  328.     background: #BEBEBE;
  329. }
  330. .sheet-rolltemplate-stat2 .inlinerollresult.fullfail {
  331.   border: 2px solid black;
  332.     background: #BEBEBE;
  333. }
  334. .sheet-rolltemplate-stat2 .inlinerollresult.importantroll {
  335.   border: 2px solid black;
  336.     background: #BEBEBE;
  337. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement