communityrule.scss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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: 5px 0;
  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. /* pushButton
  56. These are the major functional buttons*/
  57. .pushButton {
  58. border: 1px solid gray;
  59. color: gray;
  60. background-color: white;
  61. text-align: center;
  62. border-radius: 6px;
  63. padding: 5px;
  64. font-size: 1.2em;
  65. }
  66. .pushButton:hover {
  67. background-color: lightgray;
  68. }
  69. .plus { /* The maximize/minimize button */
  70. font-size: 1em;
  71. }
  72. .icons {
  73. /* icons are from https://github.com/tabler/tabler-icons */
  74. margin: 0 5px 0 0;
  75. }
  76. /* link fields
  77. Enabling users to add links*/
  78. .linkbox {
  79. position: relative;
  80. display: block;
  81. border: 1px solid gray;
  82. background-color: white;
  83. border-radius: 6px;
  84. padding: 10px 0px 10px 0px;
  85. margin-bottom: 15px;
  86. text-align: center;
  87. }
  88. .link-text {
  89. width: 40%;
  90. border-top: 0px;
  91. border-right: 0px;
  92. border-left: 0px;
  93. font-size: 1em;
  94. }
  95. .link-divider {
  96. margin: 0 20px 0 20px;
  97. display: inline;
  98. }
  99. .link-url {
  100. border-top: 0px;
  101. border-right: 0px;
  102. border-left: 1px;
  103. width: 40%;
  104. font-size: 1em;
  105. }
  106. #authorship {
  107. margin: 40px 0 0 0;
  108. }
  109. #authorship-words {
  110. display: none;
  111. }
  112. #authorship-result {
  113. display: none;
  114. }
  115. /* VARIOUS IDs */
  116. #rulebox {
  117. border: 1px solid lightgray;
  118. padding: 20px;
  119. margin: 20px 0 30px 0;
  120. }
  121. #rulebox h2 {
  122. font-family: serif;
  123. }
  124. #communityname {
  125. font-weight: bold;
  126. }
  127. #editToggle {
  128. float: right;
  129. clear: both;
  130. }
  131. #toggleDisplayMode {
  132. margin: 0 0 10px 0;
  133. display: none;
  134. }
  135. #publishRule {
  136. margin: 0 0 10px 0;
  137. }
  138. #structure {
  139. font-size: 1.3em;
  140. }
  141. #attribution {
  142. font-family: serif;
  143. font-size: .8em;
  144. text-align: right;
  145. }
  146. #trash {
  147. display: none;
  148. }