communityrule.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. /* BEGIN COMMUNITYRULE-SPECIFIC CSS */
  2. /* CLASSES */
  3. .button {
  4. position: relative;
  5. display: inline;
  6. float: right;
  7. border: 0px solid gray;
  8. color: gray;
  9. background-color: white;
  10. text-align: center;
  11. border-radius: 6px;
  12. padding: 0;
  13. }
  14. .callout-text {
  15. font-family: serif;
  16. font-size:2em;
  17. margin:1.5em 0 1em 0;
  18. }
  19. .callout-icon {
  20. font-size:2em;
  21. margin:1.5em 0 1em 0;
  22. }
  23. .editable, input.editable { /* All editable fields */
  24. padding: 10px 10px 10px 10px;
  25. min-height: 1.5em;
  26. font-family: serif;
  27. border-bottom: 1px dashed gray;
  28. }
  29. .question {
  30. color: gray;
  31. }
  32. .metaheader {
  33. color: gray;
  34. margin-top: 30px;
  35. border-bottom: 1px solid lightgray;
  36. }
  37. /* Tooltip for Modules
  38. https://www.w3schools.com/css/tryit.asp?filename=trycss_tooltip_right
  39. This could bear substantial improvement. */
  40. #module-toggle {
  41. float: right;
  42. position: relative;
  43. margin-left: 10px;
  44. padding: 5px;
  45. }
  46. #module-menu {
  47. display: none;
  48. max-height: 200px;
  49. overflow: scroll;
  50. margin: 0 0 10px 0;
  51. }
  52. .button .tooltiptext {
  53. visibility: hidden;
  54. width: 400px;
  55. overflow:scroll;
  56. height:400px;
  57. border: 1px solid black;
  58. background-color: white;
  59. text-align: center;
  60. border-radius: 6px;
  61. padding: 10px;
  62. /* Position the tooltip */
  63. position: absolute;
  64. z-index: 1;
  65. top: -5px;
  66. right: 100%;
  67. }
  68. .button:hover {
  69. background-color: lightgray;
  70. }
  71. .button:hover .tooltiptext {
  72. visibility: visible;
  73. }
  74. /* Modules */
  75. #module-input {
  76. overflow: hidden;
  77. border: 1px solid lightgray;
  78. border-radius: 6px;
  79. padding: 10px 10px 10px 10px;
  80. margin: 0 0 15px 0;
  81. text-align: left;
  82. min-height: 100px;
  83. }
  84. .module {
  85. display: block;
  86. border: 1px solid gray;
  87. color: black;
  88. background-color: lightgray;
  89. text-align: center;
  90. border-radius: 10px;
  91. padding: 8px;
  92. margin: 5px;
  93. display: inline-block;
  94. font-size: .8em;
  95. cursor: pointer;
  96. }
  97. .module:hover {
  98. border-color: gray;
  99. }
  100. .module a:hover {
  101. }
  102. .delete-module {
  103. cursor: pointer;
  104. }
  105. .field-controls {
  106. float: right;
  107. font-size: .7em;
  108. }
  109. .field-controls a {
  110. cursor: pointer;
  111. }
  112. /* pushButton
  113. These are the major functional buttons*/
  114. .pushButton {
  115. border: 1px solid gray;
  116. color: gray;
  117. background-color: white;
  118. text-align: center;
  119. border-radius: 6px;
  120. padding: 5px;
  121. margin: 0 5px 0 5px;
  122. font-size: 1.2em;
  123. }
  124. .pushButton:hover {
  125. background-color: lightgray;
  126. }
  127. .chevrons { /* The maximize/minimize button */
  128. font-size: 1em;
  129. }
  130. .icons {
  131. /* icons are from https://github.com/tabler/tabler-icons */
  132. margin: 0 5px 0 0;
  133. }
  134. /* link fields
  135. Enabling users to add links*/
  136. .linkbox {
  137. position: relative;
  138. display: block;
  139. border: 1px solid lightgray;
  140. background-color: white;
  141. border-radius: 6px;
  142. padding: 10px 0px 10px 0px;
  143. margin-bottom: 15px;
  144. text-align: center;
  145. }
  146. .link-text {
  147. width: 40%;
  148. border-top: 0px;
  149. border-right: 0px;
  150. border-left: 0px;
  151. font-size: 1em;
  152. }
  153. .link-divider {
  154. margin: 0 20px 0 20px;
  155. display: inline;
  156. }
  157. .link-url {
  158. border-top: 0px;
  159. border-right: 0px;
  160. border-left: 1px;
  161. width: 40%;
  162. font-size: 1em;
  163. }
  164. #authorship {
  165. margin: 40px 0 0 0;
  166. }
  167. #authorship-words {
  168. display: none;
  169. }
  170. #authorship-result {
  171. display: none;
  172. }
  173. /* VARIOUS IDs */
  174. #rulebox {
  175. border: 1px solid lightgray;
  176. padding: 20px;
  177. margin: 20px 0 30px 0;
  178. }
  179. #rulebox h2 {
  180. font-family: serif;
  181. }
  182. #communityname {
  183. font-weight: bold;
  184. }
  185. #editToggle {
  186. float: right;
  187. clear: both;
  188. }
  189. #toggleDisplayMode {
  190. margin: 0 0 10px 0;
  191. display: none;
  192. }
  193. #publishRule {
  194. margin: 0 0 10px 0;
  195. }
  196. #structure {
  197. font-size: 1.3em;
  198. }
  199. #attribution {
  200. font-family: serif;
  201. font-size: .8em;
  202. text-align: right;
  203. }
  204. #trash {
  205. display: none;
  206. }