Advertisement
Guest User

Character Sheet CSS

a guest
Jan 29th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 9.05 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. .charsheet input.sheet-tab5:checked ~ div.sheet-section-notes{
  45.     display: block;
  46. }
  47.  
  48. .charsheet input.sheet-tab99:checked ~ div[class^="sheet-section"] {    
  49.     display: block;
  50. }
  51.  
  52. /*this hides the radio button for each tab, makes it 100px wide and 40px tall and makes sure it's above everything else*/
  53. .charsheet input.sheet-tab {
  54.         width: 100px;
  55.         height: 40px;
  56.         cursor: pointer;   
  57.     position: relative;
  58.     opacity: 0;
  59.     z-index: 9999;
  60. }
  61.  
  62. /*this styles the span with the tab information and slides to the left, so it appears underneath the radio button*/
  63. .charsheet span.sheet-tab {
  64.     text-align: center;
  65.         display: inline-block;
  66.     font-size: 13px;   
  67.     background: #c7c3b0;
  68.     color: black;
  69.     font-weight: bold;
  70.     border-radius: 4px;
  71.    
  72.     width: 100px;
  73.         height: 40px;
  74.         cursor: pointer;   
  75.     position: relative;
  76.     vertical-align: middle;
  77.     margin-left: -101px;/*originally 91px*/
  78. }
  79.  
  80. /*this modifies the span color once the radio button is selected so you know which tab is selected*/
  81. .charsheet input.sheet-tab1:checked + span.sheet-tab1,
  82. .charsheet input.sheet-tab2:checked + span.sheet-tab2,
  83. .charsheet input.sheet-tab3:checked + span.sheet-tab3,
  84. .charsheet input.sheet-tab4:checked + span.sheet-tab4,
  85. .charsheet input.sheet-tab5:checked + span.sheet-tab5,
  86. .charsheet input.sheet-tab6:checked + span.sheet-tab6,
  87. .charsheet input.sheet-tab7:checked + span.sheet-tab7,
  88. .charsheet input.sheet-tab8:checked + span.sheet-tab8,
  89. .charsheet input.sheet-tab99:checked + span.sheet-tab99 {
  90.    
  91.         background: #2c424e;
  92.         color: #bfc4c6;
  93.     border-radius: 4px;
  94. }
  95. /*----------- End Tab Setup -----------*/
  96.  
  97. .sheet-bold {
  98.     font-weight: 900;
  99. }
  100.  
  101. .sheet-italic {
  102.     font-style: italic;
  103. }
  104.  
  105. .sheet-inline {
  106.     display: inline-block;
  107. }
  108.  
  109. .sheet-insanities-row {
  110.     border: 1px solid black;
  111. }
  112.  
  113. .sheet-sanity-sheet-row {
  114.     border: 1px solid black;
  115. }
  116.  
  117. .sheet-collapse {
  118.     display: none;
  119. }
  120.  
  121. .sheet-collapse-show:checked ~.sheet-collapse {
  122.     display: block;
  123. }
  124.  
  125. .sheet-collapse1 {
  126.     display: none;
  127. }
  128.  
  129. .sheet-collapse-show1:checked ~.sheet-collapse1 {
  130.     display: block;
  131. }
  132.  
  133. .sheet-collapse2 {
  134.     display: none;
  135. }
  136.  
  137. .sheet-collapse-show2:checked ~.sheet-collapse2 {
  138.     display: block;
  139. }
  140.  
  141. .sheet-collapse3 {
  142.     display: none;
  143. }
  144.  
  145. .sheet-collapse-show3:checked ~.sheet-collapse3 {
  146.     display: block;
  147. }
  148.  
  149. .sheet-collapse4 {
  150.     display: none;
  151. }
  152.  
  153. .sheet-collapse-show4:checked ~.sheet-collapse4 {
  154.     display: block;
  155. }
  156.  
  157. .sheet-collapse5 {
  158.     display: none;
  159. }
  160.  
  161. .sheet-collapse-show5:checked ~.sheet-collapse5 {
  162.     display: block;
  163. }
  164.  
  165. .sheet-collapse6 {
  166.     display: none;
  167. }
  168.  
  169. .sheet-collapse-show6:checked ~.sheet-collapse6 {
  170.     display: block;
  171. }
  172.  
  173. .sheet-textarea1 {
  174.   width: 90%;
  175.   height: 100px;
  176.   padding: 12px 20px;
  177.   box-sizing: border-box;
  178.   border: 2px solid #ccc;
  179.   border-radius: 4px;
  180.   background-color: #f8f8f8;
  181. }
  182.  
  183. .sheet-textarea2 {
  184.   width: 90%;
  185.   height: 100px;
  186.   padding: 12px 20px;
  187.   box-sizing: border-box;
  188.   border: 2px solid #ccc;
  189.   border-radius: 4px;
  190.   background-color: #f8f8f8;
  191. }
  192.  
  193. .sheet-container {
  194.     width: 1000px;
  195.     position: relative;
  196. }
  197.  
  198.  
  199. .sheet-buttonwidth {
  200.   max-width: 186px;
  201. }
  202. texarea.sheet-notes-box {
  203.     height: 75px;
  204. }
  205. .sheet-notes-box2 {
  206.   width: 95%;
  207.   height: 300px;
  208.   padding: 12px 20px;
  209.   box-sizing: border-box;
  210.   border: 2px solid #ccc;
  211.   border-radius: 4px;
  212.   background-color: #f8f8f8;
  213. }
  214.  
  215.  
  216. /* rolltemplate skill rolls*/
  217. .sheet-rolltemplate-ataw table {
  218.     width: 100%;
  219.     border: 1px solid black;
  220.     color: black;
  221.     background: #FFFFFF;
  222. }
  223. .sheet-rolltemplate-ataw caption {
  224.     text-align: center;
  225.     background: black;
  226.     color: white;
  227.     font-weight: bold;
  228.     padding: 2px;
  229.   border: 1px solid black;
  230.   line-height: 1.6em;
  231. }
  232. .sheet-rolltemplate-ataw td {
  233.   padding: 2px;
  234.   border-bottom: 1px solid black;
  235. }
  236. .sheet-rolltemplate-ataw td.sheet-template_label {
  237.     font-weight: bold;
  238. }
  239. .sheet-rolltemplate-ataw td.sheet-template_value {
  240.     text-align: center;
  241. }
  242. .sheet-rolltemplate-ataw .inlinerollresult  {
  243.   display: inline-block;
  244.   min-width: 1.5em;
  245.   text-align: center;
  246.   border: 2px solid black;
  247.     background: #BEBEBE;
  248. }
  249. .sheet-rolltemplate-ataw .inlinerollresult.fullcrit {
  250.   border: 2px solid black;
  251.     background: #BEBEBE;
  252. }
  253. .sheet-rolltemplate-ataw .inlinerollresult.fullfail {
  254.   border: 2px solid black;
  255.     background: #BEBEBE;
  256. }
  257. .sheet-rolltemplate-ataw .inlinerollresult.importantroll {
  258.   border: 2px solid black;
  259.     background: #BEBEBE;
  260. }
  261. /* rolltemplate stat rolls*/
  262. .sheet-rolltemplate-stat table {
  263.     width: 100%;
  264.     border: 1px solid black;
  265.     color: black;
  266.     background: #FFFFFF;
  267. }
  268. .sheet-rolltemplate-stat caption {
  269.     text-align: center;
  270.     background: #FFA500;
  271.     color: black;
  272.     font-weight: bold;
  273.     padding: 2px;
  274.   border: 1px solid black;
  275.   line-height: 1.6em;
  276. }
  277. .sheet-rolltemplate-stat td {
  278.   padding: 2px;
  279.   border-bottom: 1px solid black;
  280. }
  281. .sheet-rolltemplate-stat td.sheet-template_label {
  282.     font-weight: bold;
  283. }
  284. .sheet-rolltemplate-stat td.sheet-template_value {
  285.     text-align: center;
  286. }
  287. .sheet-rolltemplate-stat .inlinerollresult  {
  288.   display: inline-block;
  289.   min-width: 1.5em;
  290.   text-align: center;
  291.   border: 2px solid black;
  292.     background: #BEBEBE;
  293. }
  294. .sheet-rolltemplate-stat .inlinerollresult.fullcrit {
  295.   border: 2px solid black;
  296.     background: #BEBEBE;
  297. }
  298. .sheet-rolltemplate-stat .inlinerollresult.fullfail {
  299.   border: 2px solid black;
  300.     background: #BEBEBE;
  301. }
  302. .sheet-rolltemplate-stat .inlinerollresult.importantroll {
  303.   border: 2px solid black;
  304.     background: #BEBEBE;
  305. }
  306.  
  307. /* rolltemplate stat2 rolls*/
  308. .sheet-rolltemplate-stat2 table {
  309.     width: 100%;
  310.     border: 1px solid black;
  311.     color: black;
  312.     background: #FFFFFF;
  313. }
  314. .sheet-rolltemplate-stat2 caption {
  315.     text-align: center;
  316.     background: #FFA500;
  317.     color: black;
  318.     font-weight: bold;
  319.     padding: 2px;
  320.   border: 1px solid black;
  321.   line-height: 1.6em;
  322. }
  323. .sheet-rolltemplate-stat2 td {
  324.   padding: 2px;
  325.   border-bottom: 1px solid black;
  326. }
  327. .sheet-rolltemplate-stat2 td.sheet-template_label {
  328.     font-weight: bold;
  329. }
  330. .sheet-rolltemplate-stat2 td.sheet-template_value {
  331.     text-align: center;
  332. }
  333. .sheet-rolltemplate-stat2 .inlinerollresult  {
  334.   display: inline-block;
  335.   min-width: 1.5em;
  336.   text-align: center;
  337.   border: 2px solid black;
  338.     background: #BEBEBE;
  339. }
  340. .sheet-rolltemplate-stat2 .inlinerollresult.fullcrit {
  341.   border: 2px solid black;
  342.     background: #BEBEBE;
  343. }
  344. .sheet-rolltemplate-stat2 .inlinerollresult.fullfail {
  345.   border: 2px solid black;
  346.     background: #BEBEBE;
  347. }
  348. .sheet-rolltemplate-stat2 .inlinerollresult.importantroll {
  349.   border: 2px solid black;
  350.     background: #BEBEBE;
  351. }
  352. /* rolltemplate spell rolls*/
  353. .sheet-rolltemplate-spell table {
  354.     width: 100%;
  355.     border: 1px solid black;
  356.     color: black;
  357.     background: #FFFFFF;
  358. }
  359. .sheet-rolltemplate-spell caption {
  360.     text-align: center;
  361.     background: #9400D3;
  362.     color: #DCDCDC;
  363.     font-weight: bold;
  364.     padding: 2px;
  365.   border: 1px solid black;
  366.   line-height: 1.6em;
  367. }
  368. .sheet-rolltemplate-spell td {
  369.   padding: 2px;
  370.   border-bottom: 1px solid black;
  371. }
  372. .sheet-rolltemplate-spell td.sheet-template_label {
  373.     font-weight: bold;
  374. }
  375. .sheet-rolltemplate-spell td.sheet-template_value {
  376.     text-align: center;
  377. }
  378. .sheet-rolltemplate-spell .inlinerollresult  {
  379.   display: inline-block;
  380.   min-width: 1.5em;
  381.   text-align: center;
  382.   border: 2px solid black;
  383.     background: #BEBEBE;
  384. }
  385. .sheet-rolltemplate-spell .inlinerollresult.fullcrit {
  386.   border: 2px solid black;
  387.     background: #BEBEBE;
  388. }
  389. .sheet-rolltemplate-spell .inlinerollresult.fullfail {
  390.   border: 2px solid black;
  391.     background: #BEBEBE;
  392. }
  393. .sheet-rolltemplate-spell .inlinerollresult.importantroll {
  394.   border: 2px solid black;
  395.     background: #BEBEBE;
  396. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement