Subversion Repositories wimsdev

Rev

Rev 16883 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. .main_body>.ui-dialog {
  2.   /* moves jquery-ui dialog box over everything else (even jmol applet) */
  3.   z-index: 10001;
  4. }
  5.  
  6. /* OEF STYLES */
  7. #oef_intro_params {
  8.   border-color: #BBB gray gray #BBB;
  9.   border-radius: 10px;
  10.   border-style: solid;
  11.   border-width: 1px;
  12.   padding: 0;
  13. }
  14.  
  15. @media print,
  16. screen and (min-width: 40em) {
  17.   #oef_intro_params {
  18.     margin: 1em auto;
  19.     width: 80%;
  20.   }
  21. }
  22.  
  23. #oef_intro_params .legend {
  24.   border-top-left-radius: 10px;
  25.   border-top-right-radius: 10px;
  26. }
  27.  
  28. #oef_intro_params label {
  29.   font-weight: bold;
  30. }
  31.  
  32. #oef_intro_params .field {
  33.   /*margin: 1em 0;*/
  34.   padding: .5em 1em;
  35. }
  36.  
  37. #oef_intro_params select#exo {
  38.   width: 100%;
  39. }
  40.  
  41. .oef_intro_buttons {
  42.   text-align: center;
  43. }
  44.  
  45. #oef_devel_mode {
  46.   font-size: small;
  47. }
  48.  
  49. .oefform .send_answer,
  50. #oef_actions {
  51.   text-align: center;
  52. }
  53.  
  54. .send_answer {
  55.   margin-top: .5em;
  56. }
  57.  
  58. #oef_actions {
  59.   margin: 1em 0;
  60. }
  61.  
  62. #oef_actions p {
  63.   margin: .2em;
  64. }
  65.  
  66. /*.oefhint {padding-top: 2px;}*/
  67.  
  68. .oefreply {
  69.   margin: 1em;
  70. }
  71.  
  72. /*.oefanswer {}
  73. .oef_modulescore { }
  74. .oef_congratulations { }*/
  75.  
  76. .oefanswer table {
  77.   font-size: .9em;
  78.   border-collapse: collapse;
  79. }
  80.  
  81. .wims_oef_input {
  82.   padding-top: 2px;
  83.   padding-right: 1px;
  84.   padding-bottom: 2px;
  85.   padding-left: 1px;
  86.   font-weight: bold;
  87.   font-size: 1.2em;
  88. }
  89.  
  90. .oefanswername {
  91.   font-size: 125%;
  92. }
  93.  
  94. .oefstatement {
  95.   border: 1px groove ThreeDFace;
  96.   padding: 5px;
  97.   margin-bottom: 3px;
  98. }
  99.  
  100. .oefstatement table {
  101.   border-collapse: collapse;
  102. }
  103.  
  104. .oefstatement sub {
  105.   bottom: -.5em;
  106. }
  107.  
  108. .oefstatement sup {
  109.   top: -1em;
  110. }
  111.  
  112. .oefstatement sup,
  113. .oefstatement sub {
  114.   line-height: 3em;
  115. }
  116.  
  117. .oef_enterreply {
  118.   font-size: 1.25rem;
  119. }
  120.  
  121. .answer_analysis {
  122.   margin-bottom: 1em;
  123.   border: 1px groove ThreeDFace;
  124.   border-bottom-left-radius: 10px;
  125.   border-bottom-right-radius: 10px;
  126. }
  127.  
  128. .legend {
  129.   margin-top: 0;
  130.   padding: .5em 1em;
  131.   border-bottom: 1px groove ThreeDFace;
  132.   text-align: center;
  133.   font-weight: bold;
  134. }
  135.  
  136. .answer_analysis .content {
  137.   padding: 1em;
  138. }
  139.  
  140. .oefform {
  141.   padding: .5em;
  142. }
  143.  
  144. .oefnameexo {
  145.   display: inline;
  146.   font-style: italic;
  147. }
  148.  
  149. /* OEF Colors legend */
  150. .oef_indlegend ul {
  151.   padding-left: 1em;
  152. }
  153.  
  154. .oef_indlegend li {
  155.   list-style: none;
  156. }
  157.  
  158. .oef_indlegend li:first-letter {
  159.   text-transform: capitalize
  160. }
  161.  
  162. .oef_indlegend li:before {
  163.   content: "\00B7";
  164.   font-size: 70px;
  165.   vertical-align: text-bottom;
  166.   line-height: 1.5rem;
  167. }
  168.  
  169. /* this class must stay empty  */
  170. .oef_empty {}
  171.  
  172. /* for exercice modules in preparation (not OEF)*/
  173. /*.module_score { }
  174. .statement { }
  175. .congratulations { }*/
  176.  
  177. /* for latex solution in print version */
  178. /*div.wims_solution {}*/
  179. /* table of questions in case of noembedding */
  180. .oefnoembed td {
  181.   min-width: 70px;
  182.   margin-top: 5px;
  183.   margin-bottom: 5px;
  184. }
  185.  
  186. ul.oef_filter {
  187.   list-style: none
  188. }
  189.  
  190. /* link in the help on the oef special method help must be left to the exercise*/
  191. /*.oef_specialhelp { }*/
  192.  
  193. /*** ANSTYPES ***/
  194.  
  195. :root {
  196.   --oef-drag-color: #b3ddef;
  197.   --oef-grab-color: #87ceeb;
  198. }
  199.  
  200. /** dragfill/clickfill **/
  201.  
  202. /* replace the old "table" with a flexbox div */
  203. .wims_fill_object {
  204.   display: flex;
  205.   align-items: center;
  206.   height: 100%;
  207. }
  208.  
  209. .drag_label {
  210.   display: flex;
  211.   align-items: center;
  212.   padding: 2px;
  213.   border: 1px solid #999;
  214.   box-sizing: border-box;
  215.   margin: 1px;
  216.   background-color: var(--oef-drag-color);
  217.   overflow: auto;
  218. }
  219.  
  220. .fill_container {
  221.   display: inline-flex;
  222.   flex-flow: row wrap;
  223.   font-family: sans-serif;
  224.   background-color: #ffd080;
  225.   margin: 2px;
  226. }
  227.  
  228. .wims_grabbable {
  229.   background-color: var(--oef-grab-color);
  230.   cursor: move;
  231.   /* fallback if grab cursor is unsupported */
  232.   cursor: grab;
  233. }
  234.  
  235. /* Apply a "closed-hand" cursor during drag operation. */
  236. .wims_grabbable:active {
  237.   cursor: grabbing;
  238. }
  239.  
  240. .wims_droppable {
  241.   cursor: pointer;
  242.   background-color: #ffd080;
  243. }
  244.  
  245. .wims_grabbable:hover,
  246. .wims_droppable:hover {
  247.   border-color: #004077;
  248. }
  249.  
  250. .wims_droppable:hover {
  251.   font-weight: 700;
  252. }
  253.  
  254. /** prevent selecting text while grabbing **/
  255. .wims_grabbable,
  256. .wims_droppable {
  257.   user-select: none;
  258.   -webkit-user-select: none;
  259.   transition: border-color .5s;
  260.   border: 1px solid transparent;
  261.   box-sizing: border-box;
  262. }
  263.  
  264. /* Used in multipleclick OEF answer */
  265. .ans_label {
  266.   display: flex;
  267.   align-items: center;
  268.   justify-content: center;
  269.   box-sizing: border-box;
  270.   height: 100%;
  271. }
  272.  
  273. a.ans_label:hover {
  274.   background-color: rgba(255, 255, 255, .2);
  275. }
  276.  
  277. .answeranalysis .ans_label,
  278. div[class^="oef_ind"] .jxgbox {
  279.   border-width: 2px;
  280.   border-style: solid;
  281. }
  282.  
  283. .ans_label.oef_indgood,
  284. .feedback.oef_indgood,
  285. .oef_indgood .jxgbox {
  286.   border-color: var(--oef_indgood);
  287. }
  288.  
  289. .ans_label.oef_indbad,
  290. .feedback.oef_indbad,
  291. .oef_indbad .jxgbox {
  292.   border-color: var(--oef_indbad);
  293. }
  294.  
  295. .ans_label.oef_indforget,
  296. .feedback.oef_indforget,
  297. .oef_indforget .jxgbox {
  298.   border-color: var(--oef_indforget);
  299. }
  300.  
  301. .ans_label.oef_indneutral,
  302. .feedback.oef_indneutral,
  303. .oef_indneutral .jxgbox {
  304.   color: #999;
  305.   border-color: #999;
  306. }
  307.  
  308. .feedback.oef_indpartial,
  309. .oef_indpartial .jxgbox {
  310.   border-color: var(--oef_indpartial);
  311. }
  312.  
  313. /*.ans_multipleclick a{display:flex;height:100%;align-items: center;justify-content: center;}*/
  314.  
  315. /** Add text icons to ans_multipleclick answered labels **/
  316. .ans_multipleclick .ans_label {
  317.   flex-wrap: wrap;
  318. }
  319.  
  320. .ans_multipleclick .ans_label:before {
  321.   width: 100%;
  322.   text-align: center;
  323. }
  324.  
  325. div[class^='oef_ind'] .jsxwrap:before,
  326. .legend_multipleclick>li:before {
  327.   font-size: 1.5em;
  328. }
  329.  
  330. div[class^='oef_ind'] .jsxwrap:before {
  331.   text-align: center;
  332.   width: 100%;
  333.   display: block;
  334. }
  335.  
  336. .legend_multipleclick>li:before {
  337.   vertical-align: middle;
  338.   margin-right: .5em;
  339. }
  340.  
  341. .ans_multipleclick .ans_label.oef_indbad:before,
  342. .legend_multipleclick>.oef_indbad:before,
  343. .oef_indbad .jsxwrap:before {
  344.   content: "X";
  345. }
  346.  
  347. .ans_multipleclick .ans_label.oef_indgood:before,
  348. .legend_multipleclick>.oef_indgood:before,
  349. .oef_indgood .jsxwrap:before {
  350.   /* Check mark */
  351.   content: "\02713";
  352. }
  353.  
  354. .ans_multipleclick .ans_label.oef_indforget:before,
  355. .legend_multipleclick>.oef_indforget:before,
  356. .oef_indforget .jsxwrap:before {
  357.   /* empty set */
  358.   content: "\02205";
  359. }
  360.  
  361. .ans_multipleclick .ans_label.oef_indpartial:before,
  362. .legend_multipleclick>.oef_indpartial:before,
  363. .oef_indpartial .jsxwrap:before {
  364.   /* CIRCLE WITH UPPER RIGHT QUADRANT */
  365.   content: "\025D4";
  366. }
  367.  
  368. .feedback.oef_indgood,
  369. .feedback.oef_indbad,
  370. .feedback.oef_indpartial,
  371. .feedback.oef_indforget {
  372.   color: #000;
  373.   font-weight: normal;
  374. }
  375.  
  376. /** change the drag_label & ans_label colors when it indicates a feedback **/
  377. .oef_indgood .drag_label,
  378. .ans_label.oef_indgood,
  379. .feedback.oef_indgood {
  380.   background-color: #e1faea;
  381. }
  382.  
  383. .oef_indbad .drag_label,
  384. .ans_label.oef_indbad,
  385. .feedback.oef_indbad {
  386.   background-color: #f7e4e1;
  387. }
  388.  
  389. .oef_indpartial .drag_label,
  390. .ans_label.oef_indpartial,
  391. .feedback.oef_indpartial {
  392.   background-color: #fff3d9;
  393. }
  394.  
  395. .ans_label.oef_indforget,
  396. .feedback.oef_indforget {
  397.   background-color: #d9f3ff;
  398. }
  399.  
  400. /* #CANVASDRAW **/
  401. div:not(.wims_scrollable)>.canvas_wrapper {
  402.   width: 100% !important;
  403.   height: auto !important;
  404. }
  405.  
  406. .canvas_wrapper {
  407.   margin-left: auto;
  408.   margin-right: auto;
  409.   position: relative;
  410. }
  411.  
  412. .canvas_wrapper>canvas {
  413.   width: 100%;
  414. }
  415.  
  416. .tooltip_placeholder {
  417.   display: none;
  418. }
  419.  
  420. .canvasdraw_xml {
  421.   position: absolute;
  422. }
  423.  
  424. .canvas_center {
  425.   display: flex;
  426.   align-items: center;
  427.   justify-content: center;
  428.   left: 0;
  429.   top: 0;
  430.   width: 100%;
  431.   height: 100%;
  432. }
  433.  
  434. .canvas_draggable {
  435.   cursor: grab;
  436. }
  437.  
  438. .canvas_draggable:hover {
  439.   opacity: .8;
  440.   background-color: #CCC5;
  441. }
  442.  
  443. .canvas_dragging {
  444.   cursor: grabbing;
  445.   box-shadow: 4px 4px 4px #CCC;
  446. }
  447.  
  448. .canvas_placeable {
  449.   display: flex;
  450.   cursor: pointer;
  451.   padding: 2px;
  452.   border: 1px solid #dfdfdf;
  453.   box-sizing: border-box;
  454.   transition: border-color .5s, background-color .5s;
  455. }
  456.  
  457. .canvas_placeable:hover,.canvas_placeable:focus {
  458.   border-color: var(--oef-grab-color);
  459. }
  460.  
  461. .canvas_placeable.selected {
  462.   background-color: var(--oef-drag-color);
  463. }