communityrule.scss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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. right: 100%;
  47. }
  48. .button:hover {
  49. background-color: lightgray;
  50. }
  51. .button:hover .tooltiptext {
  52. visibility: visible;
  53. }
  54. /* pushButton
  55. These are the major functional buttons*/
  56. .pushButton {
  57. border: 1px solid gray;
  58. color: gray;
  59. background-color: white;
  60. text-align: center;
  61. border-radius: 6px;
  62. padding: 5px;
  63. font-size: 1.2em;
  64. }
  65. .pushButton:hover {
  66. background-color: lightgray;
  67. }
  68. .plus { /* The maximize/minimize button */
  69. font-size: 1em;
  70. }
  71. .icons {
  72. /* icons are from https://github.com/tabler/tabler-icons */
  73. margin: 0 5px 0 0;
  74. }
  75. /* VARIOUS IDs */
  76. #rulebox {
  77. border: 1px solid lightgray;
  78. padding: 20px;
  79. margin: 20px 0 30px 0;
  80. }
  81. #rulebox h2 {
  82. font-family: serif;
  83. }
  84. #communityname {
  85. font-weight: bold;
  86. }
  87. #editToggle {
  88. float: right;
  89. clear: both;
  90. }
  91. #toggleDisplayMode {
  92. margin: 0 0 10px 0;
  93. display: none;
  94. }
  95. #publishRule {
  96. margin: 0 0 10px 0;
  97. }
  98. #structure {
  99. font-size: 1.3em;
  100. }
  101. #attribution {
  102. font-family: serif;
  103. font-size: .8em;
  104. text-align: right;
  105. }
  106. #trash {
  107. display: none;
  108. }