Subversion Repositories wimsdev

Rev

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

  1.  
  2. .main_body>.ui-dialog{
  3.   /* moves jquery-ui dialog box over everything else (even jmol applet) */
  4.   z-index: 10001;
  5. }
  6.  
  7. /* OEF STYLES */
  8. #oef_intro_params {
  9.   border-color: #BBB gray gray #BBB;
  10.   border-radius: 10px;
  11.   border-style: solid;
  12.   border-width: 1px;
  13.   padding: 0;
  14. }
  15.  
  16. @media print, 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. #oef_intro_params label{font-weight: bold;}
  28. #oef_intro_params .field {
  29.   /*margin: 1em 0;*/
  30.   padding: .5em 1em;
  31. }
  32. #oef_intro_params select#exo{width: 100%;}
  33.  
  34. .oef_intro_buttons{text-align: center;}
  35. #oef_devel_mode{font-size: small;}
  36. .oefform .send_answer, #oef_actions{text-align: center;}
  37. .send_answer{margin-top: .5em;}
  38. #oef_actions{margin: 1em 0;}
  39. #oef_actions p{margin: .2em;}
  40.  
  41. /*.oefhint {padding-top: 2px;}*/
  42.  
  43. .oefreply {margin: 1em;}
  44. /*.oefanswer {}
  45. .oef_modulescore { }
  46. .oef_congratulations { }*/
  47.  
  48. .oefanswer table {
  49.   font-size: .9em;
  50.   border-collapse: collapse;
  51. }
  52. .wims_oef_input {
  53.   padding-top: 2px;
  54.   padding-right: 1px;
  55.   padding-bottom: 2px;
  56.   padding-left: 1px;
  57.   font-weight: bold;
  58.   font-size: 1.2em;
  59. }
  60. .oefanswername {font-size: 125%;}
  61. .oefstatement{
  62.   border: 1px groove ThreeDFace;
  63.   padding: 5px;
  64.   margin-bottom: 3px;
  65. }
  66. .oefstatement table {border-collapse: collapse;}
  67.  
  68. .oefstatement sub{bottom: -.5em;}
  69. .oefstatement sup{top: -1em;}
  70. .oefstatement sup, .oefstatement sub{line-height: 3em;}
  71.  
  72. .oef_enterreply{font-size: 1.25rem;}
  73.  
  74. .answer_analysis {
  75.   margin-bottom: 1em;
  76.   border: 1px groove ThreeDFace;
  77.   border-bottom-left-radius: 10px;
  78.   border-bottom-right-radius: 10px;
  79. }
  80. .legend{
  81.   margin-top: 0;
  82.   padding: .5em 1em;
  83.   border-bottom: 1px groove ThreeDFace;
  84.   text-align: center;
  85.   font-weight: bold;
  86. }
  87. .answer_analysis .content {padding:1em;}
  88. .oefform {padding: .5em;}
  89. .oefnameexo {display: inline; font-style: italic;}
  90.  
  91. /* OEF Colors legend */
  92. .oef_indlegend ul { padding-left: 1em; }
  93. .oef_indlegend li { list-style: none; }
  94. .oef_indlegend li:first-letter{text-transform: capitalize}
  95. .oef_indlegend li:before {
  96.   content: "\00B7";
  97.   font-size: 70px;
  98.   vertical-align: text-bottom;
  99.   line-height: 1.5rem;
  100. }
  101.  
  102. /* this class must stay empty  */
  103. .oef_empty { }
  104.  
  105. /* for exercice modules in preparation (not OEF)*/
  106. /*.module_score { }
  107. .statement { }
  108. .congratulations { }*/
  109.  
  110. /* for latex solution in print version */
  111. /*div.wims_solution {}*/
  112. /* table of questions in case of noembedding */
  113. .oefnoembed td {
  114.   min-width: 70px;
  115.   margin-top: 5px; margin-bottom:5px;
  116. }
  117.  
  118. ul.oef_filter {list-style:none}
  119. /* link in the help on the oef special method help must be left to the exercise*/
  120. /*.oef_specialhelp { }*/
  121.  
  122. /*** ANSTYPES ***/
  123.  
  124. /** dragfill/clickfill **/
  125.  
  126. /* replace the old "table" with a flexbox div */
  127. .wims_fill_object{
  128.   display: flex;
  129.   align-items: center;
  130.   height: 100%;
  131. }
  132.  
  133. .drag_label{
  134.   display: flex;
  135.   align-items: center;
  136.   padding:2px;
  137.   border:1px solid #999;
  138.   box-sizing: border-box;
  139.   margin:1px;
  140.   background-color:#b3ddef;
  141.   overflow: auto;
  142. }
  143. .fill_container{
  144.   display: inline-flex;
  145.   flex-flow: row wrap;
  146.   font-family:sans-serif;
  147.   background-color:#ffd080;
  148.   margin:2px;
  149. }
  150. .wims_grabbable{
  151.   background-color:#87ceeb;
  152.   cursor: move; /* fallback if grab cursor is unsupported */
  153.   cursor: grab;
  154. }
  155. /* Apply a "closed-hand" cursor during drag operation. */
  156. .wims_grabbable:active {
  157.   cursor: grabbing;
  158. }
  159. .wims_droppable{
  160.   cursor: pointer;
  161.   background-color:#ffd080;
  162. }
  163. .wims_grabbable:hover, .wims_droppable:hover{
  164.   border-color:#004077;
  165. }
  166. .wims_droppable:hover{
  167.   font-weight:700;
  168. }
  169. /** prevent selecting text while grabbing **/
  170. .wims_grabbable, .wims_droppable{
  171.   user-select: none;
  172.   -webkit-user-select: none;
  173.   transition: border-color .5s;
  174.   border:1px solid transparent;
  175.   box-sizing: border-box;
  176. }
  177.  
  178. /* Used in multipleclick OEF answer */
  179. .ans_label{
  180.   display: flex;
  181.   align-items: center;
  182.   justify-content: center;
  183.   box-sizing: border-box;
  184.   height: 100%;
  185. }
  186. a.ans_label:hover{
  187.   background-color:rgba(255,255,255,.2);
  188. }
  189. .answeranalysis .ans_label{
  190.   border-width:2px;
  191.   border-style:solid;
  192. }
  193. .ans_label.oef_indgood,.feedback.oef_indgood{border-color:var(--oef_indgood);}
  194. .ans_label.oef_indbad,.feedback.oef_indbad{border-color:var(--oef_indbad);}
  195. .ans_label.oef_indforget,.feedback.oef_indforget{border-color:var(--oef_indforget);}
  196. .ans_label.oef_indneutral,.feedback.oef_indneutral{color:#999;border-color:#999;}
  197. .feedback.oef_indpartial{border-color:var(--oef_indpartial);}
  198.  
  199. /*.ans_multipleclick a{display:flex;height:100%;align-items: center;justify-content: center;}*/
  200.  
  201. /** Add text icons to ans_multipleclick answered labels **/
  202. .ans_multipleclick .ans_label{
  203.   flex-wrap: wrap;
  204. }
  205. .ans_multipleclick .ans_label:before{
  206.   width: 100%;
  207.   text-align: center;
  208. }
  209. .legend_multipleclick>li:before{
  210.   font-size: 1.5em;
  211.   vertical-align:  middle;
  212.   margin-right:  .5em;
  213. }
  214. .ans_multipleclick .ans_label.oef_indbad:before,
  215. .legend_multipleclick>.oef_indbad:before{
  216.   content: "X";
  217. }
  218. .ans_multipleclick .ans_label.oef_indgood:before,
  219. .legend_multipleclick>.oef_indgood:before{
  220.   /* Check mark */
  221.   content: "\02713";
  222. }
  223. .ans_multipleclick .ans_label.oef_indforget:before,
  224. .legend_multipleclick>.oef_indforget:before{
  225.   /* empty set */
  226.   content: "\02205";
  227. }
  228.  
  229. .feedback.oef_indgood,.feedback.oef_indbad,
  230. .feedback.oef_indpartial,.feedback.oef_indforget{
  231.   color:#000;
  232.   font-weight: normal;
  233. }
  234.  
  235. /** change the drag_label & ans_label colors when it indicates a feedback **/
  236. .oef_indgood .drag_label,
  237. .ans_label.oef_indgood,
  238. .feedback.oef_indgood{background-color:#e1faea;}
  239. .oef_indbad .drag_label,
  240. .ans_label.oef_indbad,
  241. .feedback.oef_indbad{background-color:#f7e4e1;}
  242. .oef_indpartial .drag_label,
  243. .ans_label.oef_indpartial,
  244. .feedback.oef_indpartial{background-color:#fff3d9;}
  245. .ans_label.oef_indforget,
  246. .feedback.oef_indforget{background-color:#d9f3ff;}
  247.