communityrule.scss 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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: center;
  69. min-height: 50px;
  70. }
  71. .module {
  72. border: 1px solid gray;
  73. color: black;
  74. background-color: lightgray;
  75. text-align: center;
  76. border-radius: 10px;
  77. padding: 5px;
  78. margin: 5px;
  79. display: inline-block;
  80. font-size: .8em;
  81. cursor: pointer;
  82. }
  83. .module:hover {
  84. border-color: gray;
  85. }
  86. .module a:hover {
  87. }
  88. .delete-module {
  89. cursor: pointer;
  90. }
  91. /* pushButton
  92. These are the major functional buttons*/
  93. .pushButton {
  94. border: 1px solid gray;
  95. color: gray;
  96. background-color: white;
  97. text-align: center;
  98. border-radius: 6px;
  99. padding: 5px;
  100. font-size: 1.2em;
  101. }
  102. .pushButton:hover {
  103. background-color: lightgray;
  104. }
  105. .plus { /* The maximize/minimize button */
  106. font-size: 1em;
  107. }
  108. .icons {
  109. /* icons are from https://github.com/tabler/tabler-icons */
  110. margin: 0 5px 0 0;
  111. }
  112. /* link fields
  113. Enabling users to add links*/
  114. .linkbox {
  115. position: relative;
  116. display: block;
  117. border: 1px solid lightgray;
  118. background-color: white;
  119. border-radius: 6px;
  120. padding: 10px 0px 10px 0px;
  121. margin-bottom: 15px;
  122. text-align: center;
  123. }
  124. .link-text {
  125. width: 40%;
  126. border-top: 0px;
  127. border-right: 0px;
  128. border-left: 0px;
  129. font-size: 1em;
  130. }
  131. .link-divider {
  132. margin: 0 20px 0 20px;
  133. display: inline;
  134. }
  135. .link-url {
  136. border-top: 0px;
  137. border-right: 0px;
  138. border-left: 1px;
  139. width: 40%;
  140. font-size: 1em;
  141. }
  142. #authorship {
  143. margin: 40px 0 0 0;
  144. }
  145. #authorship-words {
  146. display: none;
  147. }
  148. #authorship-result {
  149. display: none;
  150. }
  151. /* VARIOUS IDs */
  152. #rulebox {
  153. border: 1px solid lightgray;
  154. padding: 20px;
  155. margin: 20px 0 30px 0;
  156. }
  157. #rulebox h2 {
  158. font-family: serif;
  159. }
  160. #communityname {
  161. font-weight: bold;
  162. }
  163. #editToggle {
  164. float: right;
  165. clear: both;
  166. }
  167. #toggleDisplayMode {
  168. margin: 0 0 10px 0;
  169. display: none;
  170. }
  171. #publishRule {
  172. margin: 0 0 10px 0;
  173. }
  174. #structure {
  175. font-size: 1.3em;
  176. }
  177. #attribution {
  178. font-family: serif;
  179. font-size: .8em;
  180. text-align: right;
  181. }
  182. #trash {
  183. display: none;
  184. }