rulebox.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. // Styles for the rulebox module
  2. .rulebox {
  3. border: 1px solid $grey-color-light;
  4. padding: 20px;
  5. margin: 20px 0 30px 0;
  6. .prompt,
  7. .module-type-header {
  8. color: $grey-color-dark;
  9. font-family: $header-font-family;
  10. font-weight: bold;
  11. }
  12. .module-type-header {
  13. font-size: 1em;
  14. margin: 10px 5px 5px 5px;
  15. }
  16. .prompt,
  17. .delete-module,
  18. .rulebuilder_modules,
  19. .linkbox_input,
  20. .metadata_input {
  21. display: none;
  22. }
  23. .editable[contenteditable="true"] { /* active editable fields */
  24. border-bottom: 1px dashed $grey-color-dark;
  25. }
  26. .editable[contenteditable="false"] { /* inactive editable fields */
  27. border: none;
  28. }
  29. // TODO: module display is set within the spreadsheet
  30. .rulebuilder_input .module .delete-module {
  31. display: none !important;
  32. }
  33. .rulebuilder {}
  34. .rulebuilder_input {
  35. overflow: hidden;
  36. margin: 0 0 $spacing-unit;
  37. text-align: left;
  38. min-height: 1.5em;
  39. .prompt {
  40. color: $text-color;
  41. }
  42. .module .module-info {
  43. display: none;
  44. }
  45. }
  46. .rulebuilder_list {}
  47. .rulebuilder_modules {
  48. .module .delete-module {
  49. display: none;
  50. }
  51. }
  52. .metadata_input,
  53. .metadata_display {
  54. border: 1px solid $grey-color-light;
  55. background-color: white;
  56. margin: $spacing-unit 0 15px 0;
  57. padding: 10px;
  58. }
  59. .metadata_display {
  60. border-radius: 6px;
  61. text-align: center;
  62. }
  63. .metadata_input {
  64. input {
  65. margin-bottom: $spacing-unit / 2;
  66. }
  67. }
  68. &.rulebox-preview {
  69. // this class is toggled by toggleEditMode() in rule-scrips.html
  70. // when preview/customize button is pressed
  71. }
  72. &.rulebox-edit {
  73. // this class is toggled by toggleEditMode() in rule-scrips.html
  74. // when preview/customize button is pressed
  75. .prompt,
  76. .delete-module,
  77. .rulebuilder_modules,
  78. .metadata_input {
  79. display: block;
  80. }
  81. .linkbox_input {
  82. display: inline;
  83. }
  84. .metadata_display {
  85. display: none;
  86. }
  87. .rulebuilder_input .module .delete-module {
  88. display: inline !important;
  89. }
  90. .rulebuilder {}
  91. .rulebuilder_input {
  92. &.drag-target {
  93. background-color: $brand-yellow;
  94. border-style: solid;
  95. }
  96. border: 4px dashed $brand-yellow;
  97. color: $text-color;
  98. padding: 10px 10px 10px 10px;
  99. }
  100. }
  101. }