communityrule.scss 3.5 KB

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