Subversion Repositories wimsdev

Rev

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. div[class^="oef_ind"] .jxgbox{
  191.   border-width:2px;
  192.   border-style:solid;
  193. }
  194. .ans_label.oef_indgood,.feedback.oef_indgood,.oef_indgood .jxgbox{border-color:var(--oef_indgood);}
  195. .ans_label.oef_indbad,.feedback.oef_indbad,.oef_indbad .jxgbox{border-color:var(--oef_indbad);}
  196. .ans_label.oef_indforget,.feedback.oef_indforget,.oef_indforget .jxgbox{border-color:var(--oef_indforget);}
  197. .ans_label.oef_indneutral,.feedback.oef_indneutral,.oef_indneutral .jxgbox{color:#999;border-color:#999;}
  198. .feedback.oef_indpartial,.oef_indpartial .jxgbox{border-color:var(--oef_indpartial);}
  199.  
  200. /*.ans_multipleclick a{display:flex;height:100%;align-items: center;justify-content: center;}*/
  201.  
  202. /** Add text icons to ans_multipleclick answered labels **/
  203. .ans_multipleclick .ans_label{
  204.   flex-wrap: wrap;
  205. }
  206. .ans_multipleclick .ans_label:before{
  207.   width: 100%;
  208.   text-align: center;
  209. }
  210. div[class^='oef_ind'] .jsxwrap:before,
  211. .legend_multipleclick>li:before{
  212.   font-size: 1.5em;
  213. }
  214. div[class^='oef_ind'] .jsxwrap:before{
  215.   text-align: center;
  216.   width: 100%;
  217.   display: block;
  218. }
  219. .legend_multipleclick>li:before{
  220.   vertical-align: middle;
  221.   margin-right:  .5em;
  222. }
  223.  
  224. .ans_multipleclick .ans_label.oef_indbad:before,
  225. .legend_multipleclick>.oef_indbad:before,
  226. .oef_indbad .jsxwrap:before{
  227.   content: "X";
  228. }
  229. .ans_multipleclick .ans_label.oef_indgood:before,
  230. .legend_multipleclick>.oef_indgood:before,
  231. .oef_indgood .jsxwrap:before{
  232.   /* Check mark */
  233.   content: "\02713";
  234. }
  235. .ans_multipleclick .ans_label.oef_indforget:before,
  236. .legend_multipleclick>.oef_indforget:before,
  237. .oef_indforget .jsxwrap:before{
  238.   /* empty set */
  239.   content: "\02205";
  240. }
  241.  
  242. .ans_multipleclick .ans_label.oef_indpartial:before,
  243. .legend_multipleclick>.oef_indpartial:before,
  244. .oef_indpartial .jsxwrap:before{
  245.   /* CIRCLE WITH UPPER RIGHT QUADRANT */
  246.   content: "\025D4";
  247. }
  248.  
  249. .feedback.oef_indgood,.feedback.oef_indbad,
  250. .feedback.oef_indpartial,.feedback.oef_indforget{
  251.   color:#000;
  252.   font-weight: normal;
  253. }
  254.  
  255. /** change the drag_label & ans_label colors when it indicates a feedback **/
  256. .oef_indgood .drag_label,
  257. .ans_label.oef_indgood,
  258. .feedback.oef_indgood{background-color:#e1faea;}
  259. .oef_indbad .drag_label,
  260. .ans_label.oef_indbad,
  261. .feedback.oef_indbad{background-color:#f7e4e1;}
  262. .oef_indpartial .drag_label,
  263. .ans_label.oef_indpartial,
  264. .feedback.oef_indpartial{background-color:#fff3d9;}
  265. .ans_label.oef_indforget,
  266. .feedback.oef_indforget{background-color:#d9f3ff;}
  267.  
  268. /* #CANVASDRAW **/
  269. div:not(.wims_scrollable)>.canvas_wrapper{
  270.   width:100% !important;
  271.   height: auto !important;
  272. }
  273. .canvas_wrapper{
  274.   margin-left:auto;
  275.   margin-right:auto;
  276.   position:relative;
  277. }
  278. .canvas_wrapper>canvas{
  279.   width: 100%;
  280. }
  281. .tooltip_placeholder{
  282.   display: none;
  283. }
  284. .canvasdraw_xml{
  285.   position: absolute;
  286. }
  287. .canvas_center{
  288.   display: flex;
  289.   align-items: center;
  290.   justify-content: center;
  291.   left: 0;
  292.   top: 0;
  293.   width: 100%;
  294.   height: 100%;
  295. }
  296. .canvas_draggable{
  297.   cursor: grab;
  298. }
  299. .canvas_draggable:hover{
  300.   opacity: .8;
  301.   background-color:  #CCC5;
  302. }
  303. .canvas_dragging{
  304.   cursor:  grabbing;
  305.   box-shadow: 4px 4px 4px #CCC;
  306. }
  307.