course.less 26 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121
  1. /* course.less */
  2. /* COURSE CONTENT */
  3. .section_add_menus {
  4. text-align: right;
  5. optgroup {
  6. font-weight: normal;
  7. font-style: italic;
  8. }
  9. .urlselect {
  10. margin-left: .4em;
  11. select {
  12. margin-left: .2em;
  13. }
  14. img.iconhelp {
  15. padding: 0;
  16. margin: 0;
  17. vertical-align: text-bottom;
  18. }
  19. }
  20. }
  21. .section_add_menus .horizontal div,.section_add_menus .horizontal form {
  22. display: inline;
  23. }
  24. .site-topic ul.section,.course-content ul.section {
  25. margin: 1em;
  26. }
  27. .section {
  28. .spinner {
  29. height: 16px;
  30. width: 16px;
  31. }
  32. .label {
  33. text-align: left;
  34. }
  35. .activity {
  36. .spinner {
  37. left: 100%;
  38. position: absolute;
  39. vertical-align: text-bottom;
  40. }
  41. .editing_move {
  42. /* Move the move icon to the start of the line */
  43. position: absolute;
  44. left: 0;
  45. top: 0;
  46. }
  47. .mod-indent-outer {
  48. /**
  49. * Add appropriate padding such that nothing overlaps the
  50. * absolute positioned move icon.
  51. */
  52. //padding-left: 32px;
  53. }
  54. /* The command block for each activity */
  55. .actions {
  56. position: absolute;
  57. right: 0;
  58. top: 0;
  59. }
  60. .contentwithoutlink,
  61. .activityinstance {
  62. display: block;
  63. min-width: 40%;
  64. padding-right: 4px;
  65. min-height: 2em;
  66. .dimmed {
  67. img.activityicon {
  68. .opacity(.5);
  69. }
  70. }
  71. }
  72. }
  73. // Hide the filler, this makes edit buttons jump
  74. .filler {
  75. display: none;
  76. }
  77. .activity.editor_displayed {
  78. a.editing_title,
  79. .moodle-actionmenu {
  80. display: none;
  81. }
  82. div.activityinstance {
  83. padding-right: initial;
  84. input {
  85. margin-bottom: initial;
  86. padding-top: initial;
  87. padding-bottom: initial;
  88. vertical-align: text-bottom;
  89. }
  90. }
  91. }
  92. }
  93. .editing .section .activity .mod-indent-outer {
  94. padding-left: 32px;
  95. }
  96. .activity img.activityicon {
  97. margin-right: 6px;
  98. vertical-align: text-bottom;
  99. }
  100. .section .activity .activityinstance,
  101. .section .activity .activityinstance div {
  102. display: inline-block;
  103. }
  104. .editing {
  105. .section {
  106. .activity {
  107. .contentwithoutlink,
  108. .activityinstance {
  109. padding-right: 200px;
  110. }
  111. }
  112. }
  113. }
  114. .editing_show + .editing_assign,.editing_hide + .editing_assign {
  115. // if roles icon missing, add space
  116. margin-left: 20px;
  117. }
  118. .section {
  119. .activity {
  120. .commands {
  121. white-space: nowrap;
  122. display: inline !important;
  123. }
  124. .activityinstance {
  125. .groupinglabel {
  126. padding-left: 30px;
  127. }
  128. }
  129. .contentafterlink {
  130. p {
  131. margin: .5em 0;
  132. }
  133. }
  134. }
  135. .activity.modtype_label.label {
  136. font-weight: normal;
  137. padding: .2em;
  138. }
  139. li.activity {
  140. padding: .2em;
  141. clear: both;
  142. }
  143. img.movetarget {
  144. height: 16px;
  145. width: 80px;
  146. }
  147. }
  148. .section .activity .availabilityinfo,.section .activity .contentafterlink {
  149. margin-top: 0.5em;
  150. margin-left: 30px;
  151. }
  152. .editing .section .activity:hover,.editing .section .activity.action-menu-shown {
  153. background-color: @gray-lighter;
  154. }
  155. .course-content {
  156. margin-top: 0;
  157. .current {
  158. background-color: @state-info-bg;
  159. }
  160. .section-summary {
  161. border: 1px solid #ddd;
  162. margin-top: 5px;
  163. list-style: none;
  164. .section-title {
  165. margin: 2px 5px 10px 5px;
  166. }
  167. .summarytext {
  168. margin: 2px 5px 2px 5px;
  169. }
  170. .section-summary-activities {
  171. .activity-count {
  172. .text-muted;
  173. font-size: @font-size-small;
  174. margin: 3px;
  175. white-space: nowrap;
  176. display: inline-block;
  177. }
  178. }
  179. .summary {
  180. margin-top: 5px;
  181. }
  182. }
  183. .single-section {
  184. margin-top: 1em;
  185. .section-navigation {
  186. display: block;
  187. padding: 0.5em;
  188. margin-bottom: -0.5em;
  189. .title {
  190. font-weight: bold;
  191. font-size: 108%;
  192. clear: both;
  193. }
  194. .mdl-left {
  195. font-weight: normal;
  196. float: left;
  197. margin-right: 1em;
  198. .larrow {
  199. margin-right: 0.1em;
  200. }
  201. }
  202. .mdl-right {
  203. font-weight: normal;
  204. float: right;
  205. margin-left: 1em;
  206. .rarrow {
  207. margin-left: 0.1em;
  208. }
  209. }
  210. .mdl-bottom {
  211. margin-top: 0;
  212. }
  213. }
  214. }
  215. ul {
  216. li.section.main {
  217. border-bottom: 2px solid #eee;
  218. margin-top: 0;
  219. }
  220. li.section.hidden {
  221. .opacity(.5);
  222. }
  223. }
  224. ul.topics {
  225. li.section {
  226. padding-bottom: 20px;
  227. .summary {
  228. margin-left: 25px;
  229. }
  230. }
  231. }
  232. }
  233. .course-content ul.topics li.section .content,.course-content ul.weeks li.section .content {
  234. margin-right: 20px;
  235. margin-left: 20px;
  236. padding: 0;
  237. }
  238. .path-course-view {
  239. .completionprogress {
  240. margin-left: 25px;
  241. display: block;
  242. float: right;
  243. height: 20px;
  244. position: relative;
  245. z-index: 1000;
  246. text-align: right;
  247. }
  248. a.reduce-sections {
  249. padding-left: 0.2em;
  250. }
  251. .subscribelink {
  252. text-align: right;
  253. }
  254. .unread {
  255. margin-left: 30px;
  256. }
  257. .block.drag {
  258. .header {
  259. cursor: move;
  260. }
  261. }
  262. .single-section {
  263. .completionprogress {
  264. margin-right: 5px;
  265. }
  266. }
  267. .section {
  268. .summary {
  269. line-height: normal;
  270. }
  271. }
  272. li.activity {
  273. span.autocompletion {
  274. img {
  275. vertical-align: text-bottom;
  276. }
  277. }
  278. form.togglecompletion {
  279. img {
  280. max-width: none;
  281. }
  282. .ajaxworking {
  283. width: 16px;
  284. height: 16px;
  285. position: absolute;
  286. right: 22px;
  287. top: 3px;
  288. background: url([[pix:i/ajaxloader]]) no-repeat;
  289. }
  290. }
  291. }
  292. }
  293. #page-site-index {
  294. .subscribelink {
  295. text-align: right;
  296. }
  297. }
  298. #site-news-forum h2,#frontpage-course-list h2,#frontpage-category-names h2,#frontpage-category-combo h2 {
  299. margin-bottom: 9px;
  300. }
  301. .path-site li.activity &>div,.path-course-view li.activity &>div {
  302. position: relative;
  303. padding: 0 16px 0 0;
  304. }
  305. li.section.hidden span.commands a.editing_hide,li.section.hidden span.commands a.editing_show {
  306. cursor: default;
  307. }
  308. ul.weeks {
  309. h3.sectionname {
  310. white-space: nowrap;
  311. }
  312. }
  313. .editing {
  314. ul.weeks {
  315. h3.sectionname {
  316. white-space: normal;
  317. }
  318. }
  319. }
  320. .single-section {
  321. h3.sectionname {
  322. text-align: center;
  323. clear: both;
  324. }
  325. }
  326. input.titleeditor {
  327. width: 330px;
  328. vertical-align: text-bottom;
  329. }
  330. span.editinstructions {
  331. position: absolute;
  332. top: 0;
  333. margin-top: -22px;
  334. margin-left: 30px;
  335. line-height: 16px;
  336. font-size: @font-size-small;
  337. padding: .1em .4em;
  338. background-color: @state-info-bg;
  339. color: @state-info-text;
  340. text-decoration: none;
  341. z-index: 9999;
  342. box-shadow: 2px 2px 5px 1px #ccc;
  343. border: 1px solid @state-info-border;
  344. }
  345. #dndupload-status {
  346. position: absolute;
  347. top: @navbar-height + 2px;
  348. .alert;
  349. .alert-info;
  350. left: 50%;
  351. width: 30em;
  352. margin-left: -15em;
  353. box-shadow: 2px 2px 5px 1px rgba(0,0,0,0.2);
  354. .border-top-radius(0);
  355. z-index: -1; // to slide under navbar;
  356. }
  357. .dndupload-preview {
  358. color: #909090;
  359. border: 1px dashed #909090;
  360. list-style: none;
  361. margin-top: .2em;
  362. padding: .3em;
  363. img.icon {
  364. vertical-align: text-bottom;
  365. padding: 0;
  366. }
  367. }
  368. .dndupload-progress-outer {
  369. .progress;
  370. }
  371. .dndupload-progress-inner {
  372. .progress-bar;
  373. }
  374. .dndupload-hidden {
  375. display: none;
  376. }
  377. #page-course-pending .singlebutton,#page-course-index .singlebutton,#page-course-index-category .singlebutton,#page-course-editsection .singlebutton {
  378. text-align: center;
  379. }
  380. #page-admin-course-manage {
  381. #movecourses {
  382. td {
  383. img {
  384. margin: 0 .22em;
  385. vertical-align: text-bottom;
  386. }
  387. img.icon {
  388. padding: 0;
  389. }
  390. }
  391. }
  392. }
  393. #page-course-pending {
  394. .pendingcourserequests {
  395. margin-bottom: 1em;
  396. .singlebutton {
  397. display: inline;
  398. }
  399. .cell {
  400. padding: 0 5px;
  401. }
  402. .cell.c6 {
  403. white-space: nowrap;
  404. }
  405. }
  406. }
  407. .coursebox {
  408. position: relative;
  409. .courseimage img {
  410. .img-rounded;
  411. float: left;
  412. height: auto;
  413. margin-right: 10px;
  414. max-width: 240px;
  415. }
  416. .teachers {
  417. li {
  418. list-style-type:none;
  419. padding:0;
  420. margin:0;
  421. }
  422. }
  423. .coursebtn {
  424. position: absolute;
  425. right: 10px;
  426. bottom: 10px;
  427. }
  428. .boxfooter {
  429. clear: both;
  430. margin-bottom: 30px;
  431. }
  432. .enrolmenticons {
  433. float: right;
  434. img {
  435. padding: 0 5px;
  436. }
  437. }
  438. }
  439. // .coursebox {
  440. // .panel;
  441. // .panel-default;
  442. // .info {
  443. // .panel-heading;
  444. // padding: 10px 15px;
  445. // border-bottom: 1px solid transparent;
  446. // .border-top-radius(@panel-border-radius - 1);
  447. // .coursename {
  448. // .panel-title;
  449. // display: inline-block;
  450. // }
  451. // }
  452. // }
  453. .coursebox.remotehost {
  454. & > .info {
  455. & > .categoryname {
  456. a {
  457. background-image:url([[pix:moodle|i/mnethost]]);
  458. }
  459. }
  460. }
  461. }
  462. // .coursebox {
  463. // .content {
  464. // clear:both;
  465. // .teachers {
  466. // li {
  467. // list-style-type:none;
  468. // padding:0;
  469. // margin:0;
  470. // }
  471. // }
  472. // .coursecat {
  473. // text-align:right;
  474. // clear:right;
  475. // }
  476. // .courseimage {
  477. // img {
  478. // max-width:100px;
  479. // max-height:100px;
  480. // }
  481. // }
  482. // }
  483. // .enrolmenticons {
  484. // float:right;
  485. // }
  486. // .moreinfo {
  487. // padding:3px 0;
  488. // float:right;
  489. // }
  490. // }
  491. // .coursebox .enrolmenticons img,.coursebox .moreinfo img {
  492. // margin:0 .2em;
  493. // }
  494. // .coursebox.remotecoursebox {
  495. // .remotecourseinfo {
  496. // float:left;
  497. // width: 40%;
  498. // }
  499. // }
  500. // .coursebox .content .coursecat,.coursebox .content .summary,.coursebox .content .courseimage,.coursebox .content .coursefile,.coursebox .content .teachers,.coursebox.remotecoursebox .remotecourseinfo {
  501. // margin:3px 5px;
  502. // padding:0;
  503. // }
  504. .coursebox.collapsed {
  505. margin-bottom:0;
  506. & > .content {
  507. display:none;
  508. }
  509. }
  510. .courses {
  511. .coursebox.collapsed {
  512. border:1px solid #eee;
  513. padding:5px;
  514. }
  515. }
  516. .course_category_tree {
  517. .courses {
  518. & > .paging.paging-morelink:hover {
  519. background-color:#eee;
  520. }
  521. }
  522. .category {
  523. .numberofcourse {
  524. font-size: @font-size-small;
  525. }
  526. & > .info {
  527. .well;
  528. min-height:0;
  529. padding:0;
  530. margin:3px 0;
  531. margin-bottom:3px;
  532. clear: both;
  533. & > .categoryname {
  534. background-image: url([[pix:t/collapsed_empty]]);
  535. background-repeat: no-repeat;
  536. padding: 2px 18px;
  537. margin: 3px;
  538. background-position: left;
  539. }
  540. }
  541. & > .content {
  542. padding-left:16px;
  543. }
  544. }
  545. .controls {
  546. visibility: hidden;
  547. margin-bottom:5px;
  548. text-align:right;
  549. float:right;
  550. div {
  551. display:inline;
  552. cursor:pointer;
  553. padding-right:2em;
  554. font-size:75%;
  555. }
  556. }
  557. .category.with_children {
  558. & > .info {
  559. & > .categoryname {
  560. background-image: url([[pix:t/expanded]]);
  561. cursor: pointer;
  562. line-height: 30px;
  563. }
  564. }
  565. }
  566. .category.with_children.collapsed {
  567. & > .info {
  568. & > .categoryname {
  569. background-image: url([[pix:t/collapsed]]);
  570. }
  571. }
  572. }
  573. .category.collapsed {
  574. & > .content {
  575. display: none;
  576. }
  577. }
  578. .paging.paging-morelink {
  579. a {
  580. font-size: @font-size-small;
  581. }
  582. }
  583. }
  584. .jsenabled {
  585. .course_category_tree {
  586. .controls {
  587. visibility: visible;
  588. }
  589. }
  590. }
  591. .course_category_tree.frontpage-category-names {
  592. .category {
  593. & > .info {
  594. background:none;
  595. border:none;
  596. margin:0;
  597. }
  598. }
  599. }
  600. .course_category_tree .subcategories &>.paging,.courses &>.paging {
  601. margin:0;
  602. padding:5px;
  603. text-align:center;
  604. }
  605. .courses &>.paging.paging-morelink,.course_category_tree .subcategories &>.paging.paging-morelink {
  606. text-align:left;
  607. }
  608. #page-course-index-category {
  609. .generalbox.info {
  610. margin-bottom: 15px;
  611. border: 1px dotted #ddd;
  612. border-radius: 4px;
  613. padding: 5px;
  614. }
  615. .categorypicker {
  616. text-align: right;
  617. margin: 10px 0 20px;
  618. }
  619. }
  620. .section {
  621. .summary,
  622. .activity {
  623. .iconsmall {
  624. width: 16px;
  625. height: 16px;
  626. }
  627. }
  628. .editing_title {
  629. .iconsmall {
  630. width: 21px;
  631. height: 21px;
  632. margin: 8px 8px 0px 0;
  633. padding: 4px 8px 0px 0;
  634. vertical-align: text-bottom;
  635. }
  636. }
  637. .moodle-actionmenu {
  638. .iconsmall {
  639. max-width: none !important; /** reset sets 100% !important which breaks on IE8 without this !important */
  640. width:21px;
  641. height:21px;
  642. padding: 4px;
  643. vertical-align: bottom;
  644. }
  645. }
  646. .moodle-actionmenu[data-enhanced] {
  647. .menu {
  648. img {
  649. width: 21px;
  650. height: 21px;
  651. }
  652. }
  653. }
  654. }
  655. // colors updated from core, now
  656. // using table color variables mostly
  657. #course-category-listings {
  658. background-color: @table-bg;
  659. margin-bottom: 200px;
  660. /** Two column layout */
  661. &.columns-2 {
  662. > #course-listing > div {
  663. position: relative;
  664. left: -1px;
  665. }
  666. }
  667. /** Three column layout */
  668. &.columns-3 > #course-listing > div {
  669. height: 100%;
  670. }
  671. > div > div {
  672. min-height: 300px;
  673. border: 1px solid @table-border-color;
  674. > ul.ml > li:first-child > div {
  675. border-top: 0;
  676. }
  677. }
  678. h3 {
  679. margin: 0;
  680. padding: .4rem .6rem .3rem;
  681. background-color: @panel-default-heading-bg;
  682. color: @panel-default-text;
  683. border-bottom: 1px solid @panel-inner-border;
  684. }
  685. h4 {
  686. margin: 1rem 0 0;
  687. padding: .6rem 1rem .5rem;
  688. }
  689. .moodle-actionmenu {
  690. white-space: nowrap;
  691. }
  692. .moodle-actionmenu[data-enhance] {
  693. .toggle-display {
  694. img {
  695. width: auto;
  696. }
  697. &.textmenu {
  698. padding-right: 4px;
  699. .caret {
  700. margin-top: 12px;
  701. }
  702. }
  703. }
  704. }
  705. .listing-actions {
  706. text-align: center;
  707. padding: .4rem .3rem .3rem;
  708. line-height: 2.2em;
  709. > .moodle-actionmenu {
  710. display: inline-block;
  711. .menu a {
  712. padding-left: 1rem;
  713. }
  714. }
  715. .moodle-actionmenu:not([data-enhanced]) {
  716. li {
  717. line-height: normal;
  718. }
  719. > .menubar a {
  720. color: inherit;
  721. display: inline-block;
  722. > img {
  723. display: none;
  724. }
  725. .caret {
  726. display: none;
  727. }
  728. }
  729. > .menu .menu-action-text {
  730. display: inline-block;
  731. }
  732. }
  733. }
  734. ul.ml {
  735. list-style: none;
  736. margin: 1rem 0;
  737. ul.ml {
  738. margin: 0;
  739. }
  740. }
  741. li {
  742. line-height: 2.2em;
  743. > div {
  744. &:hover {
  745. background-color: @table-bg-hover;
  746. }
  747. }
  748. .tree-icon {
  749. margin: 2px 6px 0 0;
  750. width: 12px;
  751. vertical-align: inherit;
  752. }
  753. &[data-selected='1'] {
  754. > div {
  755. background-color: @state-info-bg;
  756. border-top-color: @table-border-color;
  757. border-bottom-color: @table-border-color;
  758. }
  759. li:first-of-type > div,
  760. &[data-expandable='0']+li > div {
  761. border-top-color: @table-border-color;
  762. }
  763. &:last-of-type > div {
  764. border-bottom-color: @table-border-color;
  765. }
  766. }
  767. // Tree item indenting to represent depth.
  768. .tree-icon {margin-left:0;}
  769. li .tree-icon {margin-left:1em;}
  770. li li .tree-icon {margin-left:2em;}
  771. li li li .tree-icon {margin-left:3em;}
  772. li li li li .tree-icon {margin-left:4em;}
  773. li li li li li .tree-icon {margin-left:4.5em;}
  774. li li li li li li .tree-icon {margin-left:5em;}
  775. li li li li li li li .tree-icon {margin-left:5.5em;}
  776. &+li > div,
  777. &:first-child > div {
  778. border-top-color: @table-border-color;
  779. }
  780. }
  781. .item-actions {
  782. margin-right:1em;
  783. display:inline-block;
  784. display:initial;
  785. img {
  786. margin: 0 4px;
  787. height:12px;
  788. padding: 0;
  789. vertical-align: inherit;
  790. }
  791. &.show .menu {
  792. a {
  793. padding:4px 1em 4px 4px;
  794. }
  795. img {
  796. width: 12px;
  797. max-width:none;
  798. }
  799. }
  800. .menu-action-text {
  801. vertical-align: inherit;
  802. }
  803. }
  804. .listitem {
  805. > div {
  806. > .float-left {
  807. float:left;
  808. }
  809. > .float-right {
  810. float:right;
  811. text-align:right;
  812. }
  813. .item-actions {
  814. .action-show {
  815. display:none;
  816. }
  817. .action-hide {
  818. display:inline;
  819. }
  820. }
  821. .without-actions {
  822. color: @text-color;
  823. }
  824. .idnumber {
  825. color:@text-color;
  826. margin-right:2em;
  827. }
  828. }
  829. // The category or course is hidden.
  830. &[data-visible="0"] {
  831. .text-muted;
  832. a.categoryname {
  833. .text-muted;
  834. }
  835. > div {
  836. > a {
  837. .text-muted;
  838. }
  839. .item-actions {
  840. .action-show {
  841. display:inline;
  842. }
  843. .action-hide {
  844. display:none;
  845. }
  846. }
  847. }
  848. > ul .item-actions.category-item-actions {
  849. // If the category is hidden hide both show and hide icons for sub categories.
  850. .action-hide,
  851. .action-show {
  852. display: none;
  853. }
  854. }
  855. }
  856. &.highlight {
  857. background-color:transparent;
  858. > div,
  859. > div:hover,
  860. &[data-selected='1'] > div {
  861. background-color: @state-success-bg;
  862. }
  863. }
  864. }
  865. #course-listing {
  866. .listitem {
  867. .categoryname {
  868. display: inline-block;
  869. margin-left: 1em;
  870. color: @text-color;
  871. }
  872. .coursename {
  873. display: inline-block;
  874. }
  875. > div {
  876. padding-left: 1rem;
  877. }
  878. }
  879. > .firstpage .listitem:first-child > div .item-actions .action-moveup,
  880. > .lastpage .listitem:last-child > div .item-actions .action-movedown {
  881. display: none;
  882. }
  883. .bulk-action-checkbox {
  884. margin: -2px 6px 0 0;
  885. }
  886. }
  887. #category-listing {
  888. .listitem.collapsed > ul.ml {
  889. display: none;
  890. }
  891. .listitem {
  892. > div {
  893. > .ba-checkbox {
  894. width: 2.2em;
  895. text-align: center;
  896. margin: -1px 0.5em 0 0;
  897. padding-top: 2px;
  898. }
  899. }
  900. &.highlight > div > .ba-checkbox {
  901. background-color: @state-success-bg;
  902. }
  903. &[data-selected='1'] > div > .ba-checkbox {
  904. margin: 0 0.5em 0 0;
  905. padding: 0;
  906. background-color: inherit;
  907. }
  908. &:first-child > div .item-actions .action-moveup,
  909. &:last-child > div .item-actions .action-movedown {
  910. display: none;
  911. }
  912. }
  913. .course-count {
  914. color: @text-color;
  915. margin-right: 2rem;
  916. min-width: 3.5em;
  917. display: inline-block;
  918. .smallicon {
  919. width: 12px;
  920. margin-left: 4px;
  921. vertical-align: inherit;
  922. }
  923. }
  924. .bulk-action-checkbox {
  925. margin-right: -3px;
  926. }
  927. .category-listing > ul > .listitem:first-child {
  928. position: relative;
  929. }
  930. .category-bulk-actions {
  931. margin: 0 0.5em 0.5em;
  932. position: relative;
  933. }
  934. }
  935. .detail-pair {
  936. border-bottom:1px solid @table-border-color;
  937. margin: 0 1rem;
  938. > * {
  939. display: inline-block;
  940. line-height: 2.2rem;
  941. }
  942. .pair-key {
  943. font-weight: bold;
  944. vertical-align: top;
  945. span {
  946. margin-right: 1rem;
  947. display: block;
  948. }
  949. }
  950. .pair-value select {
  951. max-width: 100%;
  952. }
  953. }
  954. .bulk-actions .detail-pair {
  955. > * {
  956. display: block;
  957. width: 100%;
  958. }
  959. }
  960. .listing-pagination {
  961. text-align: center;
  962. .yui3-button {
  963. background-color: @btn-default-bg;
  964. color: @btn-default-color;
  965. border: 0;
  966. margin: .4rem .2rem .45rem;
  967. font-size: 10.4px;
  968. &.active-page {
  969. background-color: @btn-primary-bg;
  970. color: @btn-primary-color;
  971. }
  972. }
  973. }
  974. .listing-pagination-totals {
  975. text-align: center;
  976. &.dimmed {
  977. .text-muted;
  978. margin: .4rem 1rem .45rem;
  979. }
  980. }
  981. .select-a-category .notifymessage,
  982. .select-a-category .alert {
  983. margin: 1em;
  984. }
  985. }
  986. #course-category-listings #course-listing .listitem .drag-handle {
  987. display: none;
  988. }
  989. .jsenabled #course-category-listings #course-listing .listitem .drag-handle {
  990. display: inline-block;
  991. margin: 0 6px 0 0;
  992. cursor: pointer;
  993. }
  994. /** Management header styling **/
  995. .coursecat-management-header {
  996. vertical-align: middle;
  997. h2 {
  998. display: inline-block;
  999. text-align: left;
  1000. }
  1001. > div {
  1002. display: inline-block;
  1003. float: right;
  1004. line-height: 40px;
  1005. > div {
  1006. margin-left: 1em;
  1007. margin: 10px 0;
  1008. display: inline-block;
  1009. }
  1010. }
  1011. select {
  1012. max-width: 300px;
  1013. cursor: pointer;
  1014. padding: 0.4em 0.5em 0.45em 1em;
  1015. vertical-align: baseline;
  1016. white-space: nowrap;
  1017. }
  1018. .view-mode-selector {
  1019. .moodle-actionmenu {
  1020. white-space: nowrap;
  1021. display: inline-block;
  1022. }
  1023. .moodle-actionmenu[data-enhanced].show .menu a {
  1024. padding-left: 1em;
  1025. }
  1026. }
  1027. }
  1028. .course-being-dragged-proxy {
  1029. border: 0;
  1030. color: @link-color;
  1031. vertical-align: middle;
  1032. padding: 0 0 0 4em;
  1033. }
  1034. .course-being-dragged {
  1035. .opacity(.5);
  1036. }
  1037. /**
  1038. * Display sizes:
  1039. * Large displays 1200 +
  1040. * Default displays 980 1199
  1041. * Tablets 768 979
  1042. * Small tablets and large phones 481 767
  1043. * Phones 0 480
  1044. */
  1045. @media (min-width: 1200px) and (max-width: 1600px) {
  1046. #course-category-listings.columns-3 {
  1047. background-color:transparent;
  1048. border:0;
  1049. #category-listing,
  1050. #course-listing {
  1051. width:50%;
  1052. }
  1053. #category-listing > div,
  1054. #course-listing > div,
  1055. #course-detail > div {
  1056. border:1px solid #e1e1e8;
  1057. background-color:#fff;
  1058. }
  1059. #course-detail {
  1060. width:100%;
  1061. margin-top:1em;
  1062. }
  1063. }
  1064. }
  1065. @media (max-width: 1199px) {
  1066. #course-category-listings.columns-2,
  1067. #course-category-listings.columns-3 {
  1068. background-color:transparent;
  1069. border:0;
  1070. #category-listing,
  1071. #course-listing,
  1072. #course-detail {
  1073. width:100%;
  1074. margin:0 0 1em;
  1075. }
  1076. #category-listing > div,
  1077. #course-listing > div,
  1078. #course-detail > div {
  1079. border:1px solid #e1e1e8;
  1080. background-color:#fff;
  1081. }
  1082. }
  1083. }