communityrule.scss 3.3 KB

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