modules.less 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. /* modules.less */
  2. // The home for small tweaks to modules that don't require
  3. // changes drastic enough to pull in the full module css
  4. // and replace it completely
  5. // Plus some misc. odds and ends
  6. select {
  7. width: auto;
  8. }
  9. // Forum
  10. .path-mod-forum .forumheaderlist,
  11. .path-mod-forum .forumheaderlist td {
  12. border: none;
  13. }
  14. .path-mod-forum .forumheaderlist {
  15. thead .header {
  16. white-space: normal;
  17. vertical-align: top;
  18. }
  19. thead .header.lastpost {
  20. text-align: right;
  21. }
  22. .discussion {
  23. .author, .replies, .lastpost {
  24. white-space: normal;
  25. }
  26. .replies {
  27. text-align: center;
  28. }
  29. .topic, .topic.starter, .picture, .author, .replies, .lastpost {
  30. vertical-align: top;
  31. }
  32. }
  33. }
  34. .path-mod-feedback .generalbox div table tbody img {
  35. height: 5px; // we should remove the bar height specification in core
  36. }
  37. .forumpost {
  38. &:extend(.panel);
  39. &:extend(.panel-default);
  40. padding: 6px;
  41. .header {
  42. margin-bottom: 3px;
  43. }
  44. .maincontent {
  45. .left {
  46. padding: 0 10px 0 10px;
  47. }
  48. }
  49. }
  50. .forumpost .row .left {
  51. width: auto;
  52. }
  53. .forumpost .options .commands {
  54. margin-left: 0;
  55. }
  56. .forumpost .subject {
  57. font-weight: bold;
  58. }
  59. // Override hardcoded forum modules styling
  60. .forumsearch input[type=text] {
  61. margin-bottom: 0 !important;
  62. }
  63. #page-mod-forum-discuss .discussioncontrol.displaymode {
  64. text-align: left;
  65. }
  66. #page-mod-forum-discuss .discussioncontrols .discussioncontrol {
  67. float: none;
  68. width: 100%;
  69. .singleselect {
  70. width: 100%;
  71. select.singleselect {
  72. .form-control;
  73. }
  74. }
  75. &.movediscussion {
  76. margin-top: 5px;
  77. select.urlselect {
  78. .form-control;
  79. width: auto;
  80. float: left;
  81. }
  82. &.movediscussion {
  83. float: left;
  84. }
  85. }
  86. }
  87. #page-footer {
  88. margin-top: 1em;
  89. padding: 1em 0;
  90. border-top: 2px solid @table-border-color;
  91. }
  92. .maincalendar .calendarmonth td,
  93. .maincalendar .calendarmonth th {
  94. border: 1px dotted @table-border-color;
  95. }
  96. .path-grade-report-grader h1 {
  97. text-align: inherit;
  98. }
  99. #page-mod-chat-gui_basic input#message {
  100. max-width: 100%;
  101. }
  102. #page-mod-data-view #singleimage {
  103. width: auto;
  104. }
  105. .path-mod-data form {
  106. margin-top: 10px;
  107. }
  108. .template_heading {
  109. margin-top: 10px;
  110. }
  111. .breadcrumb-button {
  112. float: right;
  113. margin-top: 4px;
  114. }
  115. .navbar-inverse .logininfo a {
  116. color: @navbar-inverse-link-color;
  117. }
  118. .navbar-inverse .logininfo a:hover {
  119. background-color: @navbar-inverse-link-hover-bg; // "transparent" is default to differentiate :hover/:focus from .active
  120. color: @navbar-inverse-link-hover-color;
  121. }
  122. .navbar-fixed-top,
  123. .navbar-fixed-bottom {
  124. z-index: 4030;
  125. }
  126. .langmenu form {
  127. margin: 0;
  128. }
  129. .container-fluid {
  130. max-width: 1680px;
  131. margin: 0 auto;
  132. }
  133. // contributed by Paul Hibbitts, see http://msdn.microsoft.com/en-us/library/ie/jj583807(v=vs.85).aspx
  134. canvas {
  135. -ms-touch-action: auto;
  136. }
  137. div#dock {
  138. display: none;
  139. }
  140. .path-mod-choice {
  141. .horizontal .choices {
  142. margin: 0;
  143. .option {
  144. display: inline-block;
  145. padding: 10px;
  146. }
  147. }
  148. .results .data {
  149. white-space: normal;
  150. }
  151. }
  152. .path-mod-lesson .firstpageoptions {
  153. margin: auto;
  154. min-width: 280px;
  155. width: 60%;
  156. }
  157. .path-mod-lesson .centerpadded {
  158. padding: 5px;
  159. text-align: center;
  160. }
  161. .path-mod-wiki .wiki_headingtitle,
  162. .path-mod-wiki .midpad,
  163. .path-mod-wiki .wiki_headingtime {
  164. text-align: inherit;
  165. }
  166. .path-mod-wiki .wiki_contentbox {
  167. width: 100%;
  168. }
  169. // Survey module
  170. .path-mod-survey {
  171. .surveytable {
  172. .r1 {background-color: @table-bg-accent}
  173. .rblock label {text-align: center;}
  174. }
  175. .resultgraph, .reportsummary, .studentreport, .reportbuttons, .centerpara {
  176. text-align:center;
  177. }
  178. }