communityrule.scss 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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 5px 0 5px;
  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-hover {
  41. float: right;
  42. position: relative;
  43. margin-left: 10px;
  44. }
  45. #module-menu {
  46. }
  47. .button .tooltiptext {
  48. visibility: hidden;
  49. width: 400px;
  50. overflow:scroll;
  51. height:400px;
  52. border: 1px solid black;
  53. background-color: white;
  54. text-align: center;
  55. border-radius: 6px;
  56. padding: 10px;
  57. /* Position the tooltip */
  58. position: absolute;
  59. z-index: 1;
  60. top: -5px;
  61. right: 100%;
  62. }
  63. .button:hover {
  64. background-color: lightgray;
  65. }
  66. .button:hover .tooltiptext {
  67. visibility: visible;
  68. }
  69. /* Modules */
  70. #module-input {
  71. overflow: hidden;
  72. border: 1px solid lightgray;
  73. border-radius: 6px;
  74. padding: 10px 10px 10px 10px;
  75. margin: 0 0 15px 0;
  76. text-align: left;
  77. min-height: 100px;
  78. }
  79. .module {
  80. display: block;
  81. border: 1px solid gray;
  82. color: black;
  83. background-color: lightgray;
  84. text-align: center;
  85. border-radius: 10px;
  86. padding: 8px;
  87. margin: 5px;
  88. display: inline-block;
  89. font-size: .8em;
  90. cursor: pointer;
  91. }
  92. .module:hover {
  93. border-color: gray;
  94. }
  95. .module a:hover {
  96. }
  97. .delete-module {
  98. cursor: pointer;
  99. }
  100. .field-controls {
  101. float: right;
  102. font-size: .7em;
  103. }
  104. .field-controls a {
  105. cursor: pointer;
  106. }
  107. /* pushButton
  108. These are the major functional buttons*/
  109. .pushButton {
  110. border: 1px solid gray;
  111. color: gray;
  112. background-color: white;
  113. text-align: center;
  114. border-radius: 6px;
  115. padding: 5px;
  116. margin: 0 5px 0 5px;
  117. font-size: 1.2em;
  118. }
  119. .pushButton:hover {
  120. background-color: lightgray;
  121. }
  122. .chevrons { /* The maximize/minimize button */
  123. font-size: 1em;
  124. }
  125. .icons {
  126. /* icons are from https://github.com/tabler/tabler-icons */
  127. margin: 0 5px 0 0;
  128. }
  129. /* link fields
  130. Enabling users to add links*/
  131. .linkbox {
  132. position: relative;
  133. display: block;
  134. border: 1px solid lightgray;
  135. background-color: white;
  136. border-radius: 6px;
  137. padding: 10px 0px 10px 0px;
  138. margin-bottom: 15px;
  139. text-align: center;
  140. }
  141. .link-text {
  142. width: 40%;
  143. border-top: 0px;
  144. border-right: 0px;
  145. border-left: 0px;
  146. font-size: 1em;
  147. }
  148. .link-divider {
  149. margin: 0 20px 0 20px;
  150. display: inline;
  151. }
  152. .link-url {
  153. border-top: 0px;
  154. border-right: 0px;
  155. border-left: 1px;
  156. width: 40%;
  157. font-size: 1em;
  158. }
  159. #authorship {
  160. margin: 40px 0 0 0;
  161. }
  162. #authorship-words {
  163. display: none;
  164. }
  165. #authorship-result {
  166. display: none;
  167. }
  168. /* VARIOUS IDs */
  169. #rulebox {
  170. border: 1px solid lightgray;
  171. padding: 20px;
  172. margin: 20px 0 30px 0;
  173. }
  174. #rulebox h2 {
  175. font-family: serif;
  176. }
  177. #communityname {
  178. font-weight: bold;
  179. }
  180. #editToggle {
  181. float: right;
  182. clear: both;
  183. }
  184. #toggleDisplayMode {
  185. margin: 0 0 10px 0;
  186. display: none;
  187. }
  188. #publishRule {
  189. margin: 0 0 10px 0;
  190. }
  191. #structure {
  192. font-size: 1.3em;
  193. }
  194. #attribution {
  195. font-family: serif;
  196. font-size: .8em;
  197. text-align: right;
  198. }
  199. #trash {
  200. display: none;
  201. }