Subversion Repositories wimsdev

Rev

Rev 13291 | Rev 13725 | 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,.wimscenter>[id^="jmolApplet"]{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;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_video, default for HTML5 video player */
  86. .wims_video {
  87.   box-sizing: border-box;
  88.   max-width:100%;
  89.   margin:0;
  90.   background-color:#000;
  91.   box-shadow:2px 2px 2px gray;
  92.   white-space: nowrap;
  93. }
  94.  
  95. /* @wims_audio, default for audio */
  96. .wims_audio:not(.minimal_size) {
  97.   /** each browser has it's own audio player look.*/
  98.   /* audio width can't be below 87px */
  99.   width:50%;
  100.   margin:10px 0;
  101.   padding:0 5px;
  102. }
  103. .wims_audio{
  104.   min-width:87px;
  105.   white-space: nowrap;
  106. }
  107. audio.minimal_size{
  108.   margin:2px;
  109.   /* With Chrome, audio height is always 54px and can't be changed */
  110.   /*height:1.2em;*/
  111.   vertical-align:middle;
  112. }
  113. /* style for emphasing results of the student */
  114.  
  115. /* @oef_indgood, emphasing results of the student: good answer */
  116. .oef_indgood { color:oef_indgood;font-weight:bold;}
  117. /* @oef_condgood, emphasing results of the student: good condition */
  118. .oef_condgood{ color:oef_condgood;font-weight:bold;}
  119. /* @oef_indbad, emphasing results of the student: bad answer */
  120. .oef_indbad { color:oef_indbad;font-weight:bold;}
  121. /* @oef_condbad, emphasing results of the student: bad condition */
  122. .oef_condbad { color:oef_condbad;font-weight:bold;}
  123. /* @oef_indforget, emphasing results of the student: forgotten item in the answer */
  124. .oef_indforget { color:oef_indforget;font-weight:bold;}
  125. /* @oef_indpartial, emphasing results of the student: partial answer */
  126. .oef_indpartial{ color:oef_indpartial;font-weight:bold;}
  127. /* @oef_indprec, emphasing results of the student: bad precision */
  128. .oef_indprec   { color:oef_indprec;font-weight:bold;}
  129. /* */
  130. .oef_indneutral{font-weight:bold;}
  131.  
  132. /* @jxgbox, style for including a jsxgraph figure */
  133. .jxgbox {margin-left:auto;margin-right:auto;}
  134. /* */
  135. .jsxgraph_button {text-align:center;}
  136. /* */
  137. .jxgboxchild {margin-left:auto;margin-right:auto;}
  138.  
  139. /* @wims_contribute, contributor citation or credits */
  140. /* @wims_credits, contributor citation or credits */
  141. .wims_contribute, .wims_credits  {
  142.   padding-top: 10px;
  143.   padding-right:20px;
  144.   text-align:right;
  145.   color:#555;
  146.   font-weight:bold;
  147.   font-size:.8em;
  148. }
  149.  
  150. /* @wims_instruction, Technical instructions in exercises for example*/
  151. .wims_instruction {
  152.    font-style: italic;font-size:small;
  153.    padding: 1rem;
  154.    margin: 0 auto 1rem auto;
  155.    color: rgb(100,100,100);
  156.    background-color: rgba(230,230,230,.3);
  157.    border: 1px solid silver;
  158. }
  159. /* */
  160. .wims_instruction>h2,.wims_smallhelp>h2{
  161.   display: inline-block;
  162.   padding: .4rem;
  163.   font-size: .8em;
  164.   margin : -.3rem .5em .3em 0;
  165.   background-color: silver;
  166.   color: rgb(80,80,80);
  167. }
  168. /* @wims_difficultylevel, Difficulty level of the exercise or any other hint on the level */
  169. .wims_difficultylevel {
  170.  font-style: italic;
  171.  font-size:small;
  172.  color: rgb(100,100,100);
  173.  background-color: rgba(230,230,230,.3);
  174.  padding: .1em 1px .1em;
  175. }
  176. /* @wims_smallhelp, small help */
  177. .wims_smallhelp {
  178.    font-style: italic;font-size:small;
  179.    margin: 1.5rem .5rem .2rem .5rem;
  180.    color: rgb(100,100,100);
  181.    background-color: rgba(230,230,230,.3);
  182.    border: 1px solid silver;
  183.    padding: 0 5px 1em;
  184. }
  185.  
  186. /* @wims_smallremark, remark in small */
  187. .wims_smallremark {font-size: small;}
  188.  
  189. /* @tt, tt*/
  190. .tt{
  191.   font-family: monospace, "Courier New";
  192.   border-left-width: 3px;
  193.   margin: 0;
  194.   padding: 0 3px;
  195. }
  196.  
  197. /* Prevent text selection */
  198. .unselectable{
  199.   user-select: none;
  200.   -webkit-user-select: none;
  201. }
  202.