Subversion Repositories wimsdev

Rev

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

  1. /* Utilities.css  put an explanation for each line as it is used to generate help for css in createxo */
  2. /* check with css.pl when it is changed -> createxo help */
  3.  
  4. /* @text-right, align to the right */
  5. .text-right{text-align:right;}
  6. /* @text-left, align to the left */
  7. .text-left {text-align:left;}
  8.  
  9. /* @center, center */
  10. .center, .wimscenter{text-align:center;}
  11. /* @wimscenter, center with margins */
  12. div.wimscenter{ margin:.8em .5em .8em .5em; }
  13. /* */
  14. .wimscenter>.ggbapplet{margin:0 auto;}
  15. /* @blockcenter, center a block as a table */
  16. .blockcenter{
  17.   margin-right:auto;
  18.   margin-left: auto;
  19. }
  20.  
  21. /* */
  22. img.wimscenter { margin-left:auto;margin-right:auto;}
  23. /* @white,background in white */
  24. .white{background-color: white;}
  25. /* @float_right, text float on the right */
  26. .float_right{ float:right;}
  27. /* @float_left, text float on the left */
  28. .float_left{ float:left;}
  29. /* @clearall, use it to stop float for example with br/ */
  30. .clearall{clear: both;}
  31.  
  32. /* @clearfix, use it to contain floats without altering what's next.*/
  33. .clearfix::after {
  34.     content: "";
  35.     clear: both;
  36.     display: table;
  37. }
  38.  
  39. /* @small, text is smaller */
  40. .small { font-size: 90%;}
  41. /* @smaller, text smaller than small */
  42. .smaller { font-size: 70%;}
  43. /* @bold, text in bold */
  44. .bold { font-weight:bold;}
  45. /* @larger, text larger */
  46. .larger { font-size: 120%;}
  47.  
  48. /* @wims_emph, emphasis some part of the text */
  49. .wims_emph {font-style:italic;color:#2A67FF;font-weight:bold;}
  50.  
  51. /* @inline, text in line (if you put inline directly on li, there will be no margin)*/
  52. /*.inline{ }*/
  53. div.inline, li.inline {zoom:1;display:inline;display:inline-block;}
  54.  
  55. /* @inline, Inline general lists */
  56. .inline>li{margin-right:2em;}
  57.  
  58. /* @inline, Inline Ordered Lists*/
  59. ol.inline{overflow: auto;}
  60. /* */
  61. ol.inline>li {float:left;}
  62. /* */
  63. ol.inline::after {clear: both;}
  64.  
  65. /* @inline, Inline Unordered Lists */
  66. ul.inline>li{display:inline-block;}
  67.  
  68. /* @wims_nopuce, list without puce */
  69. .wims_nopuce {list-style-type:none}
  70.  
  71. /* @spacer, use spacer on div to add extra spaces */
  72. .spacer{
  73.   content: " ";
  74.   display: block;
  75.   padding-top: .6em;
  76.   /* on Mozilla, only margin is taken on <br> (not padding) */
  77.   margin-top: .6em;
  78.   margin-bottom: .6em;
  79. }
  80. /* @spacer,use spacer on lists (ul/ol) to add extra spaces on all li */
  81. ul.spacer>li,ol.spacer>li{
  82.   margin-bottom: .6em;
  83. }
  84.  
  85. /* @wims_audio, default for audio */
  86. audio.wims_audio {
  87.   width:150px;
  88.   margin:10px 0;
  89.   padding:5px;
  90. }
  91. /* style for emphasing results of the student */
  92.  
  93. /* @oef_indgood, emphasing results of the student: good answer */
  94. .oef_indgood { color:oef_indgood;font-weight:bold;}
  95. /* @oef_condgood, emphasing results of the student: good condition */
  96. .oef_condgood{ color:oef_condgood;font-weight:bold;}
  97. /* @oef_indbad, emphasing results of the student: bad answer */
  98. .oef_indbad { color:oef_indbad;font-weight:bold;}
  99. /* @oef_condbad, emphasing results of the student: bad condition */
  100. .oef_condbad { color:oef_condbad;font-weight:bold;}
  101. /* @oef_indforget, emphasing results of the student: forgotten item in the answer */
  102. .oef_indforget { color:oef_indforget;font-weight:bold;}
  103. /* @oef_indpartial, emphasing results of the student: partial answer */
  104. .oef_indpartial{ color:oef_indpartial;font-weight:bold;}
  105. /* @oef_indprec, emphasing results of the student: bad precision */
  106. .oef_indprec   { color:oef_indprec;font-weight:bold;}
  107. /* */
  108. .oef_indneutral{font-weight:bold;}
  109.  
  110. /* @jxgbox, style for including a jsxgraph figure */
  111. .jxgbox {margin-left:auto;margin-right:auto;}
  112. /* */
  113. .jsxgraph_button {text-align:center;}
  114. /* */
  115. .jxgboxchild {margin-left:auto;margin-right:auto;}
  116.  
  117. /* @wims_contribute, contributor citation or credits */
  118. /* @wims_credits, contributor citation or credits */
  119. .wims_contribute, .wims_credits  {
  120.   padding-top: 10px;
  121.   padding-right:20px;
  122.   text-align:right;
  123.   color:#555;
  124.   font-weight:bold;
  125.   font-size:.8em;
  126. }
  127.  
  128. /* @wims_instruction, Technical instructions in exercises for example*/
  129. .wims_instruction {
  130.    font-style: italic;font-size:small;
  131.    padding: 1rem;
  132.    margin: 0 auto 1rem auto;
  133.    color: rgb(100,100,100);
  134.    background-color: rgba(230,230,230,.3);
  135.    border: 1px solid silver;
  136. }
  137. /* */
  138. .wims_instruction>h2,.wims_smallhelp>h2{
  139.   display: inline-block;
  140.   padding: .4rem;
  141.   font-size: .8em;
  142.   margin : -.3rem .5em .3em 0;
  143.   background-color: silver;
  144.   color: rgb(80,80,80);
  145. }
  146. /* @wims_difficultylevel, Difficulty level of the exercise or any other hint on the level */
  147. .wims_difficultylevel {
  148.  font-style: italic;
  149.  font-size:small;
  150.  color: rgb(100,100,100);
  151.  background-color: rgba(230,230,230,.3);
  152.  padding: .1em 1px .1em;
  153. }
  154. /* @wims_smallhelp, small help */
  155. .wims_smallhelp {
  156.    font-style: italic;font-size:small;
  157.    margin: 1.5rem .5rem .2rem .5rem;
  158.    color: rgb(100,100,100);
  159.    background-color: rgba(230,230,230,.3);
  160.    border: 1px solid silver;
  161.    padding: 0 5px 1em;
  162. }
  163.  
  164. /* @wims_smallremark, remark in small */
  165. .wims_smallremark {font-size: small;}
  166.  
  167. /* @tt, tt*/
  168. .tt{
  169.   font-family: monospace, "Courier New";
  170.   border-left-width: 3px;
  171.   margin: 0;
  172.   padding: 0 3px;
  173. }
  174.  
  175.