core.less 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269
  1. /** core.less */
  2. /** Page layout CSS starts **/
  3. .layout-option-noheader #page-header,
  4. .layout-option-nonavbar #page-navbar,
  5. .layout-option-nofooter #page-footer,
  6. .layout-option-nocourseheader .course-content-header,
  7. .layout-option-nocoursefooter .course-content-footer {
  8. display: none;
  9. }
  10. .editing.used-region-side-post.used-region-side-pre {
  11. #region-main {
  12. .make-sm-column(4);
  13. .make-md-column(6);
  14. .make-sm-column-push(4);
  15. .make-md-column-push(3);
  16. }
  17. #block-region-side-post {
  18. .make-sm-column(4);
  19. .make-md-column(3);
  20. min-height: 100px;
  21. }
  22. #block-region-side-pre {
  23. .make-sm-column(4);
  24. .make-md-column(3);
  25. .make-sm-column-pull(4);
  26. .make-md-column-pull(6);
  27. min-height: 100px;
  28. }
  29. }
  30. /** Page layout CSS ends **/
  31. .mdl-left {
  32. text-align: left;
  33. }
  34. .mdl-right {
  35. text-align: right;
  36. }
  37. #add,
  38. #remove,
  39. .centerpara,
  40. .mdl-align {
  41. text-align: center;
  42. }
  43. a.dimmed,
  44. a.dimmed:link,
  45. a.dimmed:visited,
  46. a.dimmed_text,
  47. a.dimmed_text:link,
  48. a.dimmed_text:visited,
  49. .dimmed_text,
  50. .dimmed_text a,
  51. .dimmed_text a:link,
  52. .dimmed_text a:visited,
  53. .usersuspended,
  54. .usersuspended a,
  55. .usersuspended a:link,
  56. .usersuspended a:visited,
  57. .dimmed_category,
  58. .dimmed_category a {
  59. .text-muted
  60. }
  61. a.disabled:hover,
  62. a.disabled {
  63. text-decoration: none;
  64. cursor: default;
  65. font-style: italic;
  66. .text-muted;
  67. }
  68. .activity.label .dimmed_text {
  69. .opacity(.5)
  70. }
  71. .unlist,
  72. .unlist li,
  73. .inline-list,
  74. .inline-list li,
  75. .block .list,
  76. .block .list li,
  77. .section li.activity,
  78. .section li.movehere,
  79. .tabtree li {
  80. &:extend(.list-unstyled);
  81. }
  82. .inline,
  83. .inline-list li {
  84. display: inline;
  85. }
  86. .notifytiny {
  87. font-size: @font-size-small;
  88. }
  89. .notifytiny li,
  90. .notifytiny td {
  91. font-size: 100%;
  92. }
  93. .reportlink {
  94. text-align: right;
  95. }
  96. a.autolink.glossary:hover {
  97. cursor: help;
  98. }
  99. /* Block which is hidden if javascript enabled, prevents fickering visible when JS from footer used! */
  100. .collapsibleregioncaption {
  101. white-space: nowrap;
  102. img {
  103. vertical-align: middle;
  104. }
  105. }
  106. .jsenabled {
  107. .hiddenifjs {
  108. display: none;
  109. }
  110. .visibleifjs {
  111. display: inline;
  112. }
  113. .collapsibleregion {
  114. overflow: hidden;
  115. }
  116. .collapsed {
  117. .collapsibleregioninner {
  118. visibility: hidden;
  119. }
  120. }
  121. .collapsible-actions {
  122. display: block;
  123. }
  124. }
  125. .visibleifjs {
  126. display: none;
  127. }
  128. .collapsible-actions {
  129. display: none;
  130. }
  131. .collapsible-actions {
  132. text-align: right;
  133. .collapseexpand {
  134. padding-left: 20px;
  135. background-image: url([[pix:t/collapsed]]);
  136. background-position: left;
  137. background-repeat: no-repeat;
  138. }
  139. }
  140. .collapsible-actions .collapse-all {
  141. background-image: url([[pix:t/expanded]]);
  142. }
  143. .yui-overlay {
  144. .yui-widget-bd {
  145. background-color: #ffee69;
  146. border: 1px solid #a6982b;
  147. border-top-color: #d4c237;
  148. color: #000;
  149. left: 0;
  150. padding: 2px 5px;
  151. position: relative;
  152. top: 0;
  153. z-index: 1;
  154. }
  155. }
  156. .clearer {
  157. background: transparent;
  158. border-width: 0;
  159. clear: both;
  160. display: block;
  161. height: 1px;
  162. margin: 0;
  163. padding: 0;
  164. }
  165. .bold,.errorbox .title,.pagingbar .title,.pagingbar .thispage {
  166. font-weight: bold;
  167. }
  168. img.resize {
  169. height: 1em;
  170. width: 1em;
  171. }
  172. .block img.resize,.breadcrumb img.resize {
  173. height: 0.9em;
  174. width: 0.8em;
  175. }
  176. /* Icon styles */
  177. img.icon {
  178. height: 16px;
  179. vertical-align: text-bottom;
  180. width: 16px;
  181. margin-right: 6px;
  182. }
  183. img.iconsmall {
  184. height: 12px;
  185. margin-right: 3px;
  186. vertical-align: middle;
  187. width: 12px;
  188. }
  189. img.iconhelp,
  190. .helplink img {
  191. height: 16px;
  192. margin-left: 3px;
  193. width: 16px;
  194. }
  195. h1 img.iconhelp, h1 img.icon,
  196. h2 img.iconhelp, h2 img.icon,
  197. h3 img.iconhelp, h3 img.icon,
  198. h4 img.iconhelp, h4 img.icon,
  199. h5 img.iconhelp, h5 img.icon,
  200. h6 img.iconhelp, h6 img.icon {
  201. vertical-align: middle;
  202. margin: 4px;
  203. }
  204. img.iconlarge {
  205. height: 24px;
  206. width: 24px;
  207. vertical-align: middle;
  208. }
  209. img.iconsort {
  210. vertical-align: text-bottom;
  211. padding-left: .3em;
  212. margin-bottom: .15em;
  213. }
  214. img.icontoggle {
  215. height: 17px;
  216. vertical-align: middle;
  217. width: 50px;
  218. }
  219. img.iconkbhelp {
  220. height: 17px;
  221. width: 49px;
  222. }
  223. img.icon-pre {
  224. padding-right: 3px;
  225. padding-left: 0;
  226. }
  227. img.icon-post {
  228. padding-left: 3px;
  229. padding-right: 0;
  230. }
  231. .boxaligncenter {
  232. margin-left: auto;
  233. margin-right: auto;
  234. }
  235. .boxalignright {
  236. margin-left: auto;
  237. margin-right: 0;
  238. }
  239. .boxalignleft {
  240. margin-left: 0;
  241. margin-right: auto;
  242. }
  243. .boxwidthnarrow {
  244. width: 30%;
  245. }
  246. .boxwidthnormal {
  247. width: 50%;
  248. }
  249. .boxwidthwide {
  250. width: 80%;
  251. }
  252. .headermain {
  253. font-weight: bold;
  254. }
  255. #maincontent {
  256. display: block;
  257. height: 1px;
  258. overflow: hidden;
  259. }
  260. img.uihint {
  261. cursor: help;
  262. }
  263. img.emoticon {
  264. vertical-align: middle;
  265. width: 15px;
  266. height: 15px;
  267. }
  268. form.popupform,
  269. form.popupform div {
  270. display: inline;
  271. }
  272. .arrow_button input {
  273. overflow: hidden;
  274. }
  275. .action-icon img.smallicon {
  276. vertical-align: text-bottom;
  277. margin: 0 0.3em;
  278. }
  279. .no-overflow {
  280. margin-bottom: (@line-height-computed * 0.75);
  281. overflow-y: hidden;
  282. overflow-x: auto;
  283. -ms-overflow-style: -ms-autohiding-scrollbar;
  284. -webkit-overflow-scrolling: touch;
  285. }
  286. // .pagelayout-report .no-overflow {
  287. // overflow: visible;
  288. // }
  289. .no-overflow > .generaltable {
  290. margin-bottom: 0;
  291. }
  292. /** Accessibility features **/
  293. span.hide,
  294. div.hide {
  295. display: none;
  296. }
  297. .accesshide,
  298. a.skip-block,
  299. a.skip {
  300. &:extend(.sr-only); // screen-reader-only
  301. }
  302. a.skip-block:focus,
  303. a.skip-block:active,
  304. a.skip:focus,
  305. a.skip:active {
  306. position: static;
  307. display: block;
  308. }
  309. .skip-block-to {
  310. display: block;
  311. height: 1px;
  312. overflow: hidden;
  313. }
  314. /** Blogs **/
  315. .addbloglink {
  316. text-align: center;
  317. }
  318. .blog_entry .audience {
  319. text-align: right;
  320. padding-right: 4px;
  321. }
  322. .blog_entry .tags {
  323. margin-top: 15px;
  324. }
  325. .blog_entry .tags .action-icon img.smallicon {
  326. height: 16px;
  327. width: 16px;
  328. }
  329. .blog_entry .content {
  330. margin-left: 43px;
  331. }
  332. /** Group **/
  333. #page-group-index #groupeditform {
  334. text-align: center;
  335. }
  336. #doc-contents h1 {
  337. margin: 1em 0 0 0;
  338. }
  339. #doc-contents ul {
  340. margin: 0;
  341. padding: 0;
  342. width: 90%;
  343. }
  344. #doc-contents ul li {
  345. list-style-type: none;
  346. }
  347. .groupmanagementtable td {
  348. vertical-align: top;
  349. }
  350. .groupmanagementtable #existingcell,
  351. .groupmanagementtable #potentialcell {
  352. width: 42%;
  353. }
  354. .groupmanagementtable #buttonscell {
  355. width: 16%;
  356. }
  357. .groupmanagementtable #buttonscell p.arrow_button input {
  358. width: auto;
  359. min-width: 80%;
  360. margin: 0 auto;
  361. }
  362. #group-usersummary {
  363. width: 14em;
  364. }
  365. .groupselector {
  366. margin-top: 3px;
  367. margin-bottom: 3px;
  368. display: inline-block;
  369. }
  370. .groupselector label {
  371. display: inline-block;
  372. }
  373. /** Notes **/
  374. .notepost {
  375. margin-bottom: 1em;
  376. }
  377. .notepost .userpicture {
  378. float: left;
  379. margin-right: 5px;
  380. }
  381. .notepost .content,
  382. .notepost .footer {
  383. clear: both;
  384. }
  385. .notesgroup {
  386. margin-left: 20px;
  387. }
  388. /** My Moodle **/
  389. .path-my .coursebox .overview {
  390. margin: 15px 30px 10px 30px;
  391. }
  392. .path-my .coursebox .info {
  393. float: none;
  394. margin: 0;
  395. }
  396. /** Modules **/
  397. .mod_introbox {
  398. padding: 10px;
  399. }
  400. /** Comments **/
  401. .comment-ctrl {
  402. font-size: 12px;
  403. display: none;
  404. margin: 0;
  405. padding: 0;
  406. }
  407. .comment-ctrl h5 {
  408. margin: 0;
  409. padding: 5px;
  410. }
  411. .comment-area {
  412. max-width: 400px;
  413. padding: 5px;
  414. }
  415. .comment-area textarea {
  416. width: 100%;
  417. overflow: auto;
  418. }
  419. .comment-area .fd {
  420. text-align: right;
  421. }
  422. .comment-meta span {
  423. color: gray;
  424. }
  425. .comment-link img {
  426. vertical-align: text-bottom;
  427. }
  428. .comment-list {
  429. font-size: 11px;
  430. overflow: auto;
  431. list-style: none;
  432. padding: 0;
  433. margin: 0;
  434. }
  435. .comment-list li {
  436. margin: 2px;
  437. list-style: none;
  438. margin-bottom: 5px;
  439. clear: both;
  440. padding: .3em;
  441. position: relative;
  442. }
  443. .comment-list li.first {
  444. display: none
  445. }
  446. .comment-paging{
  447. text-align: center;
  448. }
  449. .comment-paging .pageno{
  450. padding: 2px;
  451. }
  452. .comment-paging .curpage{
  453. border: 1px solid #ccc;
  454. }
  455. .comment-message .picture {
  456. width: 20px;
  457. float: left;
  458. }
  459. .comment-message .text {
  460. margin: 0;
  461. padding: 0;
  462. }
  463. .comment-message .text p {
  464. padding: 0;
  465. margin: 0 18px 0 0;
  466. }
  467. .comment-delete {
  468. position: absolute;
  469. top: 0;
  470. right: 0;
  471. margin: .3em;
  472. }
  473. .comment-delete-confirm {
  474. background: #eee;
  475. padding: 2px;
  476. width: 5em;
  477. text-align: center;
  478. }
  479. .comment-container {
  480. float: left;
  481. margin: 4px;
  482. }
  483. .comment-report-selectall{
  484. display: none
  485. }
  486. .comment-link {
  487. display: none
  488. }
  489. .jsenabled .comment-link {
  490. display: block
  491. }
  492. .jsenabled .showcommentsnonjs{
  493. display: none
  494. }
  495. .jsenabled .comment-report-selectall{
  496. display: inline
  497. }
  498. /**
  499. * Completion progress report
  500. */
  501. .completion-expired {
  502. background: @alert-danger-bg;
  503. }
  504. .completion-expected {
  505. font-size: @font-size-small;
  506. }
  507. .completion-sortchoice,
  508. .completion-identifyfield {
  509. font-size: @font-size-small;
  510. vertical-align: bottom;
  511. }
  512. .completion-progresscell {
  513. text-align: right;
  514. }
  515. .completion-expired .completion-expected {
  516. font-weight: bold;
  517. }
  518. /**
  519. * Web Service
  520. */
  521. #webservice-doc-generator td {
  522. text-align: left;
  523. border: 0 solid black;
  524. }
  525. /**
  526. * Smart Select Element
  527. */
  528. .smartselect {
  529. position: absolute;
  530. }
  531. .smartselect .smartselect_mask {
  532. background-color: #fff;
  533. }
  534. .smartselect ul {
  535. padding: 0;
  536. margin: 0;
  537. }
  538. .smartselect ul li {
  539. list-style: none;
  540. }
  541. .smartselect .smartselect_menu {
  542. margin-right: 5px;
  543. }
  544. .safari .smartselect .smartselect_menu {
  545. margin-left: 2px;
  546. }
  547. .smartselect .smartselect_menu,
  548. .smartselect .smartselect_submenu {
  549. border: 1px solid #000;
  550. background-color: #fff;
  551. display: none;
  552. }
  553. .smartselect .smartselect_menu.visible,
  554. .smartselect .smartselect_submenu.visible {
  555. display: block;
  556. }
  557. .smartselect .smartselect_menu_content ul li {
  558. position: relative;
  559. padding: 2px 5px;
  560. }
  561. .smartselect .smartselect_menu_content ul li a {
  562. color: #333;
  563. text-decoration: none;
  564. }
  565. .smartselect .smartselect_menu_content ul li a.selectable {
  566. color: inherit;
  567. }
  568. .smartselect .smartselect_submenuitem {
  569. background-image: url([[pix:t/collapsed]]);
  570. background-repeat: no-repeat;
  571. background-position: 100%;
  572. }
  573. /** Spanning mode */
  574. .smartselect.spanningmenu .smartselect_submenu {
  575. position: absolute;
  576. top: -1px;
  577. left: 100%;
  578. }
  579. .smartselect.spanningmenu .smartselect_submenu a {
  580. white-space: nowrap;
  581. padding-right: 16px;
  582. }
  583. .smartselect.spanningmenu .smartselect_menu_content ul li a.selectable:hover {
  584. text-decoration: underline;
  585. }
  586. /** Compact mode */
  587. .smartselect.compactmenu .smartselect_submenu {
  588. position: relative;
  589. margin: 2px -3px;
  590. margin-left: 10px;
  591. display: none;
  592. border-width: 0;
  593. z-index: 1010;
  594. }
  595. .smartselect.compactmenu .smartselect_submenu.visible {
  596. display: block;
  597. }
  598. .smartselect.compactmenu .smartselect_menu {
  599. z-index: 1000;
  600. overflow: hidden;
  601. }
  602. .smartselect.compactmenu .smartselect_submenu .smartselect_submenu {
  603. z-index: 1020;
  604. }
  605. .smartselect.compactmenu .smartselect_submenuitem:hover > .smartselect_menuitem_label {
  606. font-weight: bold;
  607. }
  608. .corelightbox {
  609. background-color: #ccc;
  610. position: absolute;
  611. top: 0;
  612. left: 0;
  613. width: 100%;
  614. height: 100%;
  615. text-align: center;
  616. }
  617. .corelightbox img {
  618. position: fixed;
  619. top: 50%;
  620. left: 50%;
  621. }
  622. .mod-indent-outer {
  623. display: table;
  624. }
  625. .mod-indent {
  626. display: table-cell;
  627. }
  628. .mod-indent-1 {
  629. width: 30px;
  630. }
  631. .mod-indent-2 {
  632. width: 60px;
  633. }
  634. .mod-indent-3 {
  635. width: 90px;
  636. }
  637. .mod-indent-4 {
  638. width: 120px;
  639. }
  640. .mod-indent-5 {
  641. width: 150px;
  642. }
  643. .mod-indent-6 {
  644. width: 180px;
  645. }
  646. .mod-indent-7 {
  647. width: 210px;
  648. }
  649. .mod-indent-8 {
  650. width: 240px;
  651. }
  652. .mod-indent-9 {
  653. width: 270px;
  654. }
  655. .mod-indent-10 {
  656. width: 300px;
  657. }
  658. .mod-indent-11 {
  659. width: 330px;
  660. }
  661. .mod-indent-12 {
  662. width: 360px;
  663. }
  664. .mod-indent-13 {
  665. width: 390px;
  666. }
  667. .mod-indent-14 {
  668. width: 420px;
  669. }
  670. .mod-indent-15,
  671. .mod-indent-huge {
  672. width: 420px;
  673. }
  674. /* Audio player size in 'block' mode (can only change width, height is hardcoded in JS) */
  675. .resourcecontent .mediaplugin_mp3 object {
  676. height: 25px;
  677. width: 600px
  678. }
  679. .resourcecontent audio.mediaplugin_html5audio {
  680. width: 600px
  681. }
  682. /** Large resource images should avoid hidden overflow **/
  683. .resourceimage {
  684. max-width: 100%;
  685. }
  686. /* Audio player size in 'inline' mode (can only change width, as above) */
  687. .mediaplugin_mp3 object {
  688. height: 15px;
  689. width: 300px
  690. }
  691. audio.mediaplugin_html5audio {
  692. width: 300px
  693. }
  694. /* TinyMCE moodle media preview frame should not have padding */
  695. .core_media_preview.pagelayout-embedded #content {
  696. padding: 0;
  697. }
  698. .core_media_preview.pagelayout-embedded #maincontent {
  699. height: 0;
  700. }
  701. body#page-lib-editor-tinymce-plugins-moodlemedia-preview {
  702. padding: 0;
  703. margin: 0;
  704. min-width: 0;
  705. background: none;
  706. }
  707. .initialbar {
  708. a, strong {
  709. padding-left: 3px;
  710. padding-right: 3px;
  711. }
  712. }
  713. /* Moodle Dialogue Settings (moodle-core-dialogue) */
  714. .moodle-dialogue-base .moodle-dialogue-lightbox {
  715. background-color: #aaa;
  716. }
  717. .moodle-dialogue-base .hidden,
  718. .moodle-dialogue-base .moodle-dialogue-hidden {
  719. display: none;
  720. }
  721. .no-scrolling {
  722. overflow: hidden;
  723. }
  724. .moodle-dialogue-base .moodle-dialogue-fullscreen {
  725. left: 0px;
  726. top: 0px;
  727. right: 0px;
  728. bottom: -50px;
  729. position: fixed;
  730. }
  731. .moodle-dialogue-base .moodle-dialogue-fullscreen .moodle-dialogue-content {
  732. overflow: auto;
  733. }
  734. .moodle-dialogue-base .moodle-dialogue-fullscreen .closebutton {
  735. width: 28px;
  736. height: 16px;
  737. background-size: 100%;
  738. }
  739. .moodle-dialogue-base .moodle-dialogue {
  740. padding: 0;
  741. margin: 0;
  742. background: none;
  743. border: none;
  744. z-index: 600;
  745. outline: #000 dotted 0;
  746. }
  747. .moodle-dialogue-base .moodle-dialogue-wrap {
  748. margin-top: -3px;
  749. margin-left: -3px;
  750. background-color: #fff;
  751. border: 1px solid #ccc;
  752. border-radius: 10px;
  753. box-shadow: 5px 5px 20px 0 #666;
  754. }
  755. .moodle-dialogue-base .moodle-dialogue-wrap .moodle-dialogue-hd,
  756. .moodle-dialogue-base .moodle-dialogue-wrap .moodle-dialogue-hd.yui3-widget-hd {
  757. margin: 0;
  758. padding: 5px;
  759. font-size: 12px;
  760. font-weight: normal;
  761. letter-spacing: 1px;
  762. color: #333;
  763. text-align: center;
  764. text-shadow: 1px 1px 1px #fff;
  765. border-radius: 10px 10px 0 0;
  766. border-bottom: 1px solid #bbb;
  767. background: #ccc;
  768. #gradient > .vertical(#fff, #ccc);
  769. filter: 0;
  770. }
  771. .moodle-dialogue-base .moodle-dialogue-wrap .moodle-dialogue-hd h1 {
  772. margin: 0;
  773. padding: 0;
  774. display: inline;
  775. font-size: 100%;
  776. font-weight: bold;
  777. }
  778. .moodle-dialogue-base .moodle-dialogue-wrap .moodle-dialogue-hd .yui3-widget-buttons {
  779. padding: 5px;
  780. }
  781. .moodle-dialogue-base .closebutton {
  782. width: 25px;
  783. height: 15px;
  784. float: right;
  785. vertical-align: middle;
  786. display: inline-block;
  787. cursor: pointer;
  788. padding: 0;
  789. background-image: url([[pix:theme|sprite]]);
  790. background-repeat: no-repeat;
  791. border-style: none;
  792. }
  793. .moodle-dialogue-base .moodle-dialogue .moodle-dialogue-bd {
  794. padding: 1em;
  795. line-height: 2em;
  796. color: #555;
  797. font-size: 12px;
  798. }
  799. .moodle-dialogue-base .moodle-dialogue-wrap .moodle-dialogue-content {
  800. padding: 0;
  801. background: #fff;
  802. }
  803. .moodle-dialogue-base .moodle-dialogue-fullscreen .moodle-dialogue-hd {
  804. padding: 10px;
  805. font-size: 16px;
  806. }
  807. .moodle-dialogue-base .moodle-dialogue-fullscreen .moodle-dialogue-content {
  808. overflow: auto;
  809. position: absolute;
  810. top: 0px;
  811. bottom: 50px;
  812. left: 0px;
  813. right: 0px;
  814. margin: 0px;
  815. border: 0px;
  816. }
  817. .moodle-dialogue-base .moodle-dialogue-fullscreen .moodle-dialogue-hd,
  818. .moodle-dialogue-base .moodle-dialogue-fullscreen .moodle-dialogue-wrap {
  819. border-radius: 0;
  820. }
  821. .moodle-dialogue-confirm .confirmation-dialogue {
  822. text-align: center;
  823. }
  824. .moodle-dialogue-confirm .confirmation-dialogue input {
  825. text-align: center;
  826. }
  827. .moodle-dialogue-exception .moodle-exception-message {
  828. text-align: center
  829. }
  830. .moodle-dialogue-exception .moodle-exception-param label {
  831. font-weight: bold;
  832. }
  833. .moodle-dialogue-exception .param-stacktrace label {
  834. background-color: #eee;
  835. border: 1px solid #ccc;
  836. border-bottom-width: 0;
  837. }
  838. .moodle-dialogue-exception .param-stacktrace pre {
  839. border: 1px solid #ccc;
  840. background-color: #fff;
  841. }
  842. .moodle-dialogue-exception .param-stacktrace .stacktrace-file {
  843. color: navy;
  844. font-size: @font-size-small;
  845. }
  846. .moodle-dialogue-exception .param-stacktrace .stacktrace-line {
  847. color: @alert-danger-text;
  848. font-size: @font-size-small;
  849. }
  850. .moodle-dialogue-exception .param-stacktrace .stacktrace-call {
  851. color: #333;
  852. font-size: 90%;
  853. border-bottom: 1px solid #eee;
  854. }
  855. .moodle-dialogue-base .moodle-dialogue .moodle-dialogue-content .moodle-dialogue-ft {
  856. padding: 0;
  857. margin: 0.7em 1em;
  858. text-align: right;
  859. background-color: #fff;
  860. font-size: 12px;
  861. }
  862. .moodle-dialogue-confirm .confirmation-message {
  863. margin: 0.5em 1em;
  864. }
  865. .moodle-dialogue-confirm .confirmation-dialogue input {
  866. min-width: 80px
  867. }
  868. .moodle-dialogue-exception .moodle-exception-message {
  869. margin: 1em;
  870. }
  871. .moodle-dialogue-exception .moodle-exception-param {
  872. margin-bottom: 0.5em;
  873. }
  874. .moodle-dialogue-exception .moodle-exception-param label {
  875. width: 150px;
  876. }
  877. .moodle-dialogue-exception .param-stacktrace label {
  878. display: block;
  879. margin: 0;
  880. padding: 4px 1em;
  881. }
  882. .moodle-dialogue-exception .param-stacktrace pre {
  883. display: block;
  884. height: 200px;
  885. overflow: auto;
  886. }
  887. .moodle-dialogue-exception .param-stacktrace .stacktrace-file {
  888. display: inline-block;
  889. margin: 4px 0;
  890. }
  891. .moodle-dialogue-exception .param-stacktrace .stacktrace-line {
  892. display: inline-block;
  893. width: 50px;
  894. margin: 4px 1em;
  895. }
  896. .moodle-dialogue-exception .param-stacktrace .stacktrace-call {
  897. padding-left: 25px;
  898. margin-bottom: 4px;
  899. padding-bottom: 4px;
  900. }
  901. .moodle-dialogue .moodle-dialogue-bd .content-lightbox {
  902. .opacity(.75);
  903. width: 100%;
  904. height: 100%;
  905. top: 0;
  906. left: 0;
  907. background-color: white;
  908. text-align: center;
  909. padding: 10% 0;
  910. }
  911. /* Apply a default max-height on tooltip text */
  912. .moodle-dialogue .tooltiptext {
  913. max-height: 300px;
  914. }
  915. .moodle-dialogue-base .moodle-dialogue.moodle-dialogue-tooltip {
  916. z-index: 3001;
  917. .moodle-dialogue-bd {
  918. overflow: auto;
  919. }
  920. }
  921. /**
  922. * Chooser Dialogues (moodle-core-chooserdialogue)
  923. *
  924. * This CSS belong to the chooser dialogue which should work both with, and
  925. * without javascript enabled
  926. */
  927. /* Hide the dialog and it's title */
  928. .chooserdialoguebody,
  929. .choosertitle {
  930. display: none;
  931. }
  932. .moodle-dialogue.chooserdialogue .moodle-dialogue-content .moodle-dialogue-ft {
  933. margin: 0;
  934. }
  935. .chooserdialogue .moodle-dialogue-wrap .moodle-dialogue-bd {
  936. padding: 0;
  937. background: #f2f2f2;
  938. .border-bottom-radius(10px);
  939. }
  940. /* Center the submit buttons within the area */
  941. .choosercontainer #chooseform .submitbuttons {
  942. margin: 0.7em 0;
  943. text-align: center;
  944. }
  945. .choosercontainer #chooseform .submitbuttons input {
  946. min-width: 100px;
  947. margin: 0 0.5em;
  948. }
  949. /* Various settings for the options area */
  950. .choosercontainer #chooseform .options {
  951. position: relative;
  952. border-bottom: 1px solid #bbb;
  953. }
  954. /* Only set these options if we're showing the js container */
  955. .jsenabled .choosercontainer #chooseform .alloptions {
  956. overflow-x: hidden;
  957. overflow-y: auto;
  958. max-width: 20.3em;
  959. box-shadow: inset 0 0 30px 0px #ccc;
  960. }
  961. /* Settings for option rows and option subtypes */
  962. .choosercontainer #chooseform .moduletypetitle,
  963. .choosercontainer #chooseform .option,
  964. .choosercontainer #chooseform .nonoption {
  965. margin-bottom: 0;
  966. padding: 0 1.6em 0 1.6em;
  967. }
  968. .choosercontainer #chooseform .moduletypetitle {
  969. text-transform: uppercase;
  970. padding-top: 1.2em;
  971. padding-bottom: 0.4em;
  972. }
  973. .choosercontainer #chooseform .option .typename,
  974. .choosercontainer #chooseform .option span.modicon img.icon,
  975. .choosercontainer #chooseform .nonoption .typename,
  976. .choosercontainer #chooseform .nonoption span.modicon img.icon {
  977. padding: 0 0 0 0.5em;
  978. }
  979. .choosercontainer #chooseform .option span.modicon img.icon,
  980. .choosercontainer #chooseform .nonoption span.modicon img.icon {
  981. height: 24px;
  982. width: 24px;
  983. }
  984. .choosercontainer #chooseform .option input[type=radio],
  985. .choosercontainer #chooseform .option span.typename,
  986. .choosercontainer #chooseform .option span.modicon {
  987. vertical-align: middle;
  988. }
  989. .choosercontainer #chooseform .option label {
  990. display: block;
  991. padding: 0.3em 0 0.1em 0;
  992. border-bottom: 1px solid #fff;
  993. }
  994. .choosercontainer #chooseform .nonoption {
  995. padding-left: 2.7em;
  996. padding-top: 0.3em;
  997. padding-bottom: 0.1em;
  998. }
  999. .choosercontainer #chooseform .subtype {
  1000. margin-bottom: 0;
  1001. padding: 0 1.6em 0 3.2em;
  1002. }
  1003. .choosercontainer #chooseform .subtype .typename {
  1004. margin: 0 0 0 0.2em;
  1005. }
  1006. /* The instruction/help area */
  1007. .jsenabled .choosercontainer #chooseform .instruction,
  1008. .jsenabled .choosercontainer #chooseform .typesummary {
  1009. display: none;
  1010. position: absolute;
  1011. top: 0;
  1012. right: 0;
  1013. bottom: 0;
  1014. left: 20.3em;
  1015. margin: 0;
  1016. padding: 1.6em;
  1017. background-color: @body-bg;
  1018. overflow-x: hidden;
  1019. overflow-y: auto;
  1020. line-height: 2em;
  1021. }
  1022. /* Selected option settings */
  1023. .jsenabled .choosercontainer #chooseform .instruction,
  1024. .choosercontainer #chooseform .selected .typesummary {
  1025. display: block;
  1026. }
  1027. .choosercontainer #chooseform .selected {
  1028. background-color: @body-bg;
  1029. box-shadow: 0px 0 10px 0 #ccc;
  1030. }
  1031. .section-modchooser-link img.smallicon {
  1032. padding: 3px;
  1033. }
  1034. /* Form element: listing */
  1035. .formlistingradio {
  1036. padding-bottom: 25px;
  1037. padding-right: 10px;
  1038. }
  1039. .formlistinginputradio {
  1040. float: left;
  1041. }
  1042. .formlistingmain {
  1043. min-height: 225px;
  1044. }
  1045. .formlisting {
  1046. position: relative;
  1047. margin: 15px 0;
  1048. padding: 1px 19px 14px;
  1049. background-color: white;
  1050. border: 1px solid #ddd;
  1051. border-radius: 4px;
  1052. }
  1053. .formlistingmore {
  1054. position: absolute;
  1055. cursor: pointer;
  1056. bottom: -1px;
  1057. right: -1px;
  1058. padding: 3px 7px;
  1059. font-size: 12px;
  1060. font-weight: bold;
  1061. background-color: whiteSmoke;
  1062. border: 1px solid #ddd;
  1063. color: #9da0a4;
  1064. border-radius: 4px 0 4px 0;
  1065. }
  1066. .formlistingall {
  1067. margin: 15px 0;
  1068. padding: 0;
  1069. border-radius: 4px;
  1070. }
  1071. .formlistingrow {
  1072. cursor: pointer;
  1073. border-bottom: 1px solid;
  1074. border-color: #e1e1e8;
  1075. border-left: 1px solid #e1e1e8;
  1076. border-right: 1px solid #e1e1e8;
  1077. background-color: #f7f7f9;
  1078. border-radius: 0 0 4px 4px;
  1079. padding: 6px;
  1080. top: 50%;
  1081. left: 50%;
  1082. min-height: 34px;
  1083. float: left;
  1084. width: 150px;
  1085. }
  1086. body.jsenabled .formlistingradio {
  1087. display: none;
  1088. }
  1089. body.jsenabled .formlisting {
  1090. display: block;
  1091. }
  1092. .breadcrumb-nav {
  1093. float: left;
  1094. margin-bottom: 10px;
  1095. }
  1096. .breadcrumb-button .singlebutton div {
  1097. margin-right: 0;
  1098. }
  1099. .breadcrumb-nav .breadcrumb {
  1100. margin: 0;
  1101. }
  1102. /** Action menu component styles **/
  1103. .moodle-actionmenu,
  1104. .moodle-actionmenu > ul,
  1105. .moodle-actionmenu > ul > li {
  1106. display: inline-block;
  1107. }
  1108. .moodle-actionmenu ul {
  1109. padding: 0;
  1110. margin: 0;
  1111. list-style-type: none;
  1112. line-height: 30px;
  1113. }
  1114. .moodle-actionmenu .toggle-display,
  1115. .moodle-actionmenu .menu-action-text {
  1116. display: none; /** Hidden by default, display none so that we don't take up space. **/
  1117. }
  1118. .jsenabled {
  1119. .moodle-actionmenu[data-enhance] {
  1120. display: block;
  1121. .menu {
  1122. display:none;
  1123. }
  1124. .toggle-display {
  1125. display: inline; /** JS is enabled, we'll be using it so return display to normal **/
  1126. .opacity(.5);
  1127. }
  1128. .toggle-display.textmenu {
  1129. .btn;
  1130. .btn-default;
  1131. .btn-sm;
  1132. display: block;
  1133. margin-left: 4px;
  1134. padding-left: 4px;
  1135. padding-right: 4px;
  1136. .iconsmall {
  1137. margin: 4px 4px 4px 0px;
  1138. padding: 8px 4px 0px 2px;
  1139. vertical-align: text-bottom;
  1140. }
  1141. .caret {
  1142. // margin-top: 8px;
  1143. // margin-left: 2px;
  1144. // border-top-color: @navbar-default-link-color;
  1145. // &:hover,
  1146. // &:active {
  1147. // border-top-color: @navbar-default-link-active-color;
  1148. // }
  1149. }
  1150. }
  1151. }
  1152. .moodle-actionmenu[data-enhanced] {
  1153. .toggle-display {
  1154. .opacity(1);
  1155. }
  1156. .menu-action-text {
  1157. display:inline;
  1158. white-space: normal;
  1159. }
  1160. }
  1161. }
  1162. .moodle-actionmenu[data-enhanced].show {
  1163. position: relative;
  1164. .menu {
  1165. .dropdown-menu;
  1166. display: block;
  1167. text-align: left;
  1168. a {
  1169. display: block;
  1170. white-space: nowrap;
  1171. color: @dropdown-link-color;
  1172. padding: 3px 20px;
  1173. line-height: @line-height-base;
  1174. &:hover,
  1175. &:focus {
  1176. color: @dropdown-link-active-color;
  1177. background-color: @dropdown-link-active-bg;
  1178. text-decoration: none;
  1179. }
  1180. }
  1181. a.hidden {
  1182. display:none;
  1183. }
  1184. img {
  1185. vertical-align: middle;
  1186. }
  1187. .iconsmall {
  1188. margin: 4px 4px 4px -10px;
  1189. }
  1190. > li {
  1191. display:block;
  1192. }
  1193. /** bottom left of button **/
  1194. &.align-tl-bl {top: 100%;left:0;margin-top: 4px;}
  1195. &.align-tr-bl {top: 100%;right: 100%;}
  1196. &.align-bl-bl {bottom: 100%;left:0;}
  1197. &.align-br-bl {bottom: 100%;right: 100%;}
  1198. /** bottom right of button **/
  1199. &.align-tl-br {top: 100%;left:100%;}
  1200. &.align-tr-br {top: 100% !important;right: 0;margin-top: 4px;}
  1201. &.align-bl-br {bottom: 100%;left:100%;}
  1202. &.align-br-br {bottom: 100%;right: 0;}
  1203. /** top left of button **/
  1204. &.align-tl-tl {top: 0;left:0;}
  1205. &.align-tr-tl {top: 0;right: 100%;margin-right: 4px;}
  1206. &.align-bl-tl {bottom: 100%;left:0;margin-bottom: 4px;}
  1207. &.align-br-tl {bottom: 100%;right: 100%;}
  1208. /** top right of button **/
  1209. &.align-tl-tr {top: 0;left:100%;margin-left: 4px;}
  1210. &.align-tr-tr {top: 0;right: 0;}
  1211. &.align-bl-tr {bottom: 100%;left:100%;}
  1212. &.align-br-tr {bottom: 100%;right: 0;margin-bottom: 4px;}
  1213. }
  1214. }
  1215. .block .moodle-actionmenu {
  1216. text-align: right;
  1217. }
  1218. ul.dragdrop-keyboard-drag li {
  1219. list-style-type: none;
  1220. }
  1221. .block-control-actions .moodle-core-dragdrop-draghandle img {
  1222. width: 12px;
  1223. height: 12px;
  1224. }