undo.less 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /* some very targetted corrections to roll back nameclashes between
  2. * Moodle and Bootstrap like .row, .label, .content, .controls
  3. *
  4. * Mostly relies on these styles being more specific than the Bootstrap
  5. * ones in order to overule them.
  6. */
  7. // .label vs .label
  8. li.activity.label,
  9. .file-picker td.label {
  10. background: inherit;
  11. color: inherit;
  12. border: inherit;
  13. text-shadow: none;
  14. padding: 8px;
  15. white-space: normal;
  16. display: block;
  17. font-size: inherit;
  18. line-height: inherit;
  19. }
  20. .file-picker td.label {
  21. display: table-cell;
  22. text-align: right;
  23. }
  24. // Some of this dialog is sized in ems so a different font size
  25. // effects the whole layout.
  26. .choosercontainer #chooseform .option label {
  27. font-size: 12px;
  28. }
  29. /* block.invisible vs .invisible
  30. * block.hidden vs .invisible
  31. *
  32. * uses .invisible where the rest of Moodle uses .dimmed
  33. * fixible in block renderer?
  34. *
  35. * There's seems to be even more naming confusion here since,
  36. * blocks can be actually 'visible' (or not) to students,
  37. * marked 'visible' but really just dimmed to indicate to editors
  38. * that students can't see them or 'visible' to the user who
  39. * collapses them, 'visible' if you have the right role and in
  40. * different circumstances different sections of a block can
  41. * be 'visible' or not.
  42. *
  43. * currently worked around in renderers.php function block{}
  44. * by rewriting the class name "invisible" to "dimmed",
  45. * though the blocks don't look particularly different apart
  46. * from their contents disappearing. Maybe try .muted? or
  47. * dimming all the edit icons apart from unhide, might be a
  48. * nice effect, though they'd still be active. Maybe reverse
  49. * it to white?
  50. */
  51. li.section.hidden,
  52. .block.hidden,
  53. .block.invisible {
  54. visibility: visible !important;
  55. display: block !important;
  56. }
  57. /* .row vs .row
  58. *
  59. * very tricky to track down this when it goes wrong,
  60. * since the styles are applied to generated content
  61. *
  62. * basically if you see things shifted left or right compared
  63. * with where they should be check for a .row
  64. */
  65. #turnitintool_style .row,
  66. .forumpost .row {
  67. margin-left: 0 !important;
  68. // not sure if this needs !important
  69. }
  70. #turnitintool_style .row:before,
  71. #turnitintool_style .row:after,
  72. .forumpost .row:before,
  73. .forumpost .row:after {
  74. content: none;
  75. }
  76. /* fieldset.hidden vs .hidden
  77. *
  78. * Moodle uses fieldset.hidden for mforms, to signify a collection of
  79. * form elements that don't have a box drawn round them. Bootstrap
  80. * uses hidden for stuff that is hidden in various responsive modes.
  81. *
  82. * Relatedly, there is also fieldset.invisiblefieldset which hides the
  83. * border and sets the display to inline.
  84. *
  85. * Originally this just set block and visible, but it is used
  86. * in random question dialogue in Quiz,
  87. * that dialogue is hidden and shown, so when hidden the
  88. * above workaround leaves you with a button floating around
  89. */
  90. fieldset.hidden {
  91. display: inherit !important;
  92. visibility: inherit !important;
  93. }
  94. /* .controls vs .controls
  95. *
  96. * in expanding course list, can be fixed in renderer though
  97. */
  98. /* .container vs .container
  99. *
  100. * bootstrap uses .container to set the width of the layout at 960px or so, Moodle uses it
  101. * in the Quiz to contain the questions to add. If you don't overule the Bootstrap code,
  102. * it becomes near unuseable.
  103. */
  104. #questionbank + .container {
  105. width: auto;
  106. }
  107. // In Moodle .hide is the eye icon
  108. // In Bootstrap it hides things
  109. // these were done originally in two different places,
  110. // by two different people, not sure if both needed
  111. img.hide {
  112. display: inherit;
  113. }
  114. img.icon.hide {
  115. display: inline-block !important;
  116. }