communityrule.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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 { /* 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. /* VARIOUS IDs */
  77. #rulebox {
  78. border: 1px solid lightgray;
  79. padding: 20px;
  80. margin: 20px 0 30px 0;
  81. }
  82. #rulebox h2 {
  83. font-family: serif;
  84. }
  85. #communityname {
  86. font-weight: bold;
  87. }
  88. #editToggle {
  89. float: right;
  90. clear: both;
  91. }
  92. #toggleDisplayMode {
  93. margin: 0 0 10px 0;
  94. display: none;
  95. }
  96. #publishRule {
  97. margin: 0 0 10px 0;
  98. }
  99. #structure {
  100. font-size: 1.3em;
  101. }
  102. #attribution {
  103. font-family: serif;
  104. font-size: .8em;
  105. text-align: right;
  106. }
  107. #trash {
  108. display: none;
  109. }