communityrule.scss 3.0 KB

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