communityrule.scss 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. /* BEGIN COMMUNITYRULE-SPECIFIC CSS */
  2. @import "rulebox";
  3. /* CLASSES */
  4. .button {
  5. position: relative;
  6. display: inline;
  7. float: right;
  8. border: 0px solid gray;
  9. color: gray;
  10. background-color: white;
  11. text-align: center;
  12. border-radius: 6px;
  13. padding: 0;
  14. }
  15. .callout-text {
  16. font-family: $header-font-family;
  17. font-size:nth($header-font-size, 1);
  18. margin:1.5em 0 1em 0;
  19. }
  20. .callout-icon {
  21. font-size:2em;
  22. margin:1.5em 0 1em 0;
  23. }
  24. .editable, input.editable { /* All editable fields */
  25. padding: 10px 10px 10px 10px;
  26. min-height: 1.5em;
  27. border: none;
  28. border-bottom: 1px dashed gray;
  29. }
  30. .prompt {
  31. color: gray;
  32. }
  33. .page-type {
  34. color: gray;
  35. }
  36. .page-type a,.page-type a:visited {
  37. color: gray;
  38. }
  39. /* Modules */
  40. #module-toggle {
  41. float: right;
  42. position: relative;
  43. margin-left: 10px;
  44. padding: 5px;
  45. }
  46. #module-menu {
  47. /* max-height: 300px;
  48. overflow-y: scroll; */
  49. margin: 0 0 10px 0;
  50. padding: 10px;
  51. border: 1px solid lightgray;
  52. }
  53. .button:hover {
  54. background-color: lightgray;
  55. }
  56. #module-input {
  57. }
  58. .module {
  59. display: block;
  60. border: 2px solid #000;
  61. color: $text-color;
  62. background-color: #fff;
  63. text-align: center;
  64. padding: 5px;
  65. margin: 5px;
  66. display: inline-block;
  67. font-family: $header-font-family;
  68. font-size: .8em;
  69. cursor: pointer;
  70. }
  71. .delete-module {
  72. cursor: pointer;
  73. }
  74. .builder-list {
  75. margin-bottom: 2em;
  76. }
  77. .builder-list ul {
  78. //list-style-type: none;
  79. //list-style-image: url('/assets/tabler_icons/caret-right.svg');
  80. color: gray;
  81. margin-bottom: 0px;
  82. }
  83. .builder-list li {
  84. padding-bottom: .5em;
  85. }
  86. #custom-field-container {
  87. animation: blinker 1s linear 1;
  88. }
  89. @keyframes blinker {
  90. from {background-color: lightgray;}
  91. to {background-color: white;}
  92. }
  93. .field-controls {
  94. float: right;
  95. font-size: .7em;
  96. }
  97. .field-controls a {
  98. cursor: pointer;
  99. }
  100. /* MODULE PAGES */
  101. #module-summary {
  102. font-size: 1.3em;
  103. }
  104. /* pushButton
  105. These are the major functional buttons*/
  106. .pushButton {
  107. border: 1px solid gray;
  108. color: gray;
  109. background-color: white;
  110. text-align: center;
  111. border-radius: 6px;
  112. padding: 5px;
  113. margin: 0 5px 0 5px;
  114. font-family: $header-font-family;
  115. font-size: 1.2em;
  116. }
  117. .pushButton:hover {
  118. background-color: lightgray;
  119. }
  120. .chevrons { /* The maximize/minimize button */
  121. font-size: 1em;
  122. }
  123. .icons {
  124. /* icons are from https://github.com/tabler/tabler-icons */
  125. margin: 0 5px 0 0;
  126. }
  127. /* link fields
  128. Enabling users to add links*/
  129. .linkbox {
  130. }
  131. .link-text {
  132. width: 40%;
  133. border-top: 0px;
  134. border-right: 0px;
  135. border-left: 0px;
  136. font-size: 1em;
  137. }
  138. .link-divider {
  139. margin: 0 20px 0 20px;
  140. display: inline;
  141. }
  142. .link-url {
  143. border-top: 0px;
  144. border-right: 0px;
  145. border-left: 1px;
  146. width: 40%;
  147. font-size: 1em;
  148. }
  149. #authorship {
  150. }
  151. /* LIBRARY */
  152. #librarylist {
  153. margin: 50px 0 0 0;
  154. }
  155. .library-item {
  156. margin: 0 0 30px 0;
  157. }
  158. .library-rule-name {
  159. display: inline-block;
  160. margin: 0;
  161. font-size: 1.2em;
  162. font-weight: bold;
  163. }
  164. .library-rule-name img {
  165. max-width: 50px;
  166. margin: 0 15px 10px 0;
  167. }
  168. .library-rule-author {
  169. display: inline-block;
  170. margin: 0 0 0 10px;
  171. font-size: .8em;
  172. color: gray;
  173. }
  174. .library-rule-structure {
  175. margin: 0;
  176. }
  177. .library-module {
  178. font-size: .7em;
  179. padding: 1px 5px 1px 5px;
  180. margin: 0px;
  181. cursor: default;
  182. }
  183. /* VARIOUS IDs */
  184. #structure {
  185. font-size: 1.3em;
  186. }
  187. #rulewriter-box {
  188. margin:50px 0 50px 0;
  189. display: none;
  190. }
  191. #rulewriter {
  192. }
  193. #editToggle {
  194. float: right;
  195. clear: both;
  196. }
  197. #toggleDisplayMode, #fork {
  198. margin: 0 5px 10px 0;
  199. display: none;
  200. }
  201. #publishRule {
  202. margin: 0 0 10px 0;
  203. }
  204. #lineage {
  205. margin: 0 0 20px 0;
  206. display: none;
  207. }
  208. #attribution {
  209. font-family: serif;
  210. font-size: .8em;
  211. text-align: right;
  212. }
  213. #attributionMD {
  214. }
  215. #trash {
  216. display: none;
  217. }
  218. #discuss {
  219. margin: 20px 0 20px 0;
  220. }
  221. #discuss-button {
  222. display: none;
  223. }