style.css 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. /** @file progrecss/style.css
  2. * @brief Default stylesheets for progrecss plugin
  3. * @author Luis Machuca Bezzaza <luis [dot] machuca [at] gulix [dot] cl>
  4. * @version 1.8
  5. * @license GPL v2
  6. */
  7. /** This file provides three (3) default styles for the "progrecss"
  8. * (CSS-based progress bars) plugin for Dokuwiki.
  9. */
  10. /**
  11. * -------------------------------------------------------
  12. * PROGRECSS_DEFAULT: default bar model
  13. * -------------------------------------------------------
  14. *
  15. * Features a block box themed with the link and background colors
  16. * defined by the current theme; the gauge uses the color for
  17. * existing links, and the caption is shown in small size font.
  18. * Support : pretty much all browsers since 2005 should
  19. * display this correctly.
  20. */
  21. .progrecss_default {
  22. display: inline-block;
  23. margin-right: 10px;
  24. margin-bottom: 5px;
  25. }
  26. .progrecss_default .border {
  27. display: block;
  28. height: 1.2em;
  29. background-color: __text_alt__;
  30. padding: 0;
  31. border: 2px solid __text__;
  32. border-radius: 4px;
  33. }
  34. .progrecss_default .border .bar {
  35. display: block;
  36. height: 0.8em;
  37. margin: 0;
  38. padding: 0;
  39. vertical-align: text-top;
  40. background-color: __existing__;
  41. border: 1px transparent __existing__;
  42. border-bottom: 2px solid __existing__;
  43. border-radius: 0 2px 2px 0 / 0 50% 50% 0;
  44. color: #ffffff;
  45. font-size: 66%;
  46. }
  47. .progrecss_default .border .bar.inside {
  48. text-align: center;
  49. vertical-align: top;
  50. }
  51. .progrecss_default .border .bar.before {
  52. text-align: left;
  53. padding-left: 1em;
  54. }
  55. .progrecss_default .border .bar.after {
  56. text-align: right;
  57. padding-right: 1em;
  58. }
  59. .progrecss_default .caption {
  60. display: inline-block;
  61. margin-left: 4px;
  62. margin-right: 4px;
  63. font-family: Helvetica, Arial;
  64. font-size: 75%;
  65. text-align: center;
  66. }
  67. /**
  68. * -------------------------------------------------------
  69. * PROGRECSS_GAUGE: rounder bar with label model
  70. * -------------------------------------------------------
  71. *
  72. * Features a rounded box using the "missing link" colors for
  73. * the current theme, plus a black background and white face.
  74. * The caption is shown as a popup under the gauge when it is focused.
  75. *
  76. * Support : Firefox will support this flawlessly at least from
  77. * version 2.0 onwards. Other browsers (except IE) may have
  78. * minor presentation variances, such as Opera not supporting
  79. * "rounded" or IE displaying the caption below the gauge
  80. * and in a block of its own.
  81. */
  82. .progrecss_gauge {
  83. position: relative;
  84. display: block;
  85. margin-top: 0;
  86. margin-bottom: 0;
  87. border: 2px solid __missing__;
  88. padding-left: 4px;
  89. padding-right: 4px;
  90. background-color: #eeeeee;
  91. }
  92. .progrecss_gauge .border {
  93. display: inline-block;
  94. height: 1.2em;
  95. margin: 0;
  96. padding: 2px;
  97. background-color: #ffffff;
  98. }
  99. .progrecss_gauge .border .bar {
  100. display: block;
  101. height: 1.4em;
  102. margin-top: -0.2em;
  103. padding: 0;
  104. background-color: #222222;
  105. text-align: center;
  106. font-size: 0.75em;
  107. color: white;
  108. }
  109. .progrecss_gauge .caption {
  110. display: none;
  111. }
  112. .progrecss_gauge:hover .caption {
  113. position: inline-block;
  114. display: block;
  115. z-index: 99;
  116. left: 0;
  117. font-family: Helvetica, Arial, sans-serif;
  118. font-size: 75%;
  119. text-align: center;
  120. margin-left: 1em;
  121. margin-right: 1em;
  122. background-color: __background_alt__;
  123. border: 1px dotted black;
  124. }
  125. /**
  126. * -------------------------------------------------------
  127. * PROGRECSS_INLINE: inline bar model
  128. * -------------------------------------------------------
  129. *
  130. * Features a bar running inline (thanks to "inline-block"), with the
  131. * gauge located "on top" of the text using the combination of colors
  132. * for existing/missing links, percentage is shown below.
  133. * Caption is not displayed with this mode.
  134. *
  135. * Support : Opera 9.2 and later seem to be OK with this style, albeit
  136. * breaking lines strangely when an inline-block is last element of
  137. * the line. Firefox prior to 2.0 require a CSS fix but otherwise
  138. * seem to be OK. IE's support is untested but we all _know_ it is
  139. * completely broken (if any), and it is unsupported anyways.
  140. */
  141. .progrecss_inline {
  142. position: relative;
  143. display: inline-block;
  144. margin-top: 0;
  145. margin-left: 1px;
  146. margin-right: 1px;
  147. line-height: 1.3em;
  148. }
  149. .progrecss_inline .border {
  150. display: inline-block;
  151. height: 0.3em;
  152. margin-top: 0em; /* this will break with very packed paragraphs */
  153. margin-bottom: 0;
  154. background-color: __missing__;
  155. border: 0px solid inherit;
  156. border-radius: 2px;
  157. }
  158. .progrecss_inline .border .bar {
  159. display: inline-block;
  160. height: 0.1em;
  161. background-color: __existing__;
  162. border: 0;
  163. text-align: center;
  164. font-size: 75%;
  165. color: gray;
  166. }
  167. .progrecss_inline .caption {
  168. display: block;
  169. height: 1em;
  170. visibility: hidden;
  171. }
  172. .progrecss_inline:hover .caption {
  173. display: block;
  174. visibility: visible;
  175. left: 0;
  176. top: 0;
  177. height: 100%;
  178. padding: 4px;
  179. padding-bottom: 0;
  180. background-color: __background_alt__ !important;
  181. border: 1px dotted __missing__;
  182. color: __existing__ !important;
  183. line-height: 1.1em;
  184. font-size: 75%;
  185. }
  186. /**
  187. * end file
  188. */