system.base.css 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. /**
  2. * @file
  3. * Generic theme-independent base styles.
  4. */
  5. /**
  6. * Autocomplete.
  7. *
  8. * @see autocomplete.js
  9. */
  10. /* Suggestion list */
  11. #autocomplete {
  12. border: 1px solid;
  13. overflow: hidden;
  14. position: absolute;
  15. z-index: 100;
  16. }
  17. #autocomplete ul {
  18. list-style: none;
  19. list-style-image: none;
  20. margin: 0;
  21. padding: 0;
  22. }
  23. #autocomplete li {
  24. background: #fff;
  25. color: #000;
  26. cursor: default;
  27. white-space: pre;
  28. zoom: 1; /* IE7 */
  29. }
  30. /* Animated throbber */
  31. html.js input.form-autocomplete {
  32. background-image: url(../../misc/throbber.gif);
  33. background-position: 100% 2px; /* LTR */
  34. background-repeat: no-repeat;
  35. }
  36. html.js input.throbbing {
  37. background-position: 100% -18px; /* LTR */
  38. }
  39. /**
  40. * Collapsible fieldsets.
  41. *
  42. * @see collapse.js
  43. */
  44. html.js fieldset.collapsed {
  45. border-bottom-width: 0;
  46. border-left-width: 0;
  47. border-right-width: 0;
  48. height: 1em;
  49. }
  50. html.js fieldset.collapsed .fieldset-wrapper {
  51. display: none;
  52. }
  53. fieldset.collapsible {
  54. position: relative;
  55. }
  56. fieldset.collapsible .fieldset-legend {
  57. display: block;
  58. }
  59. /**
  60. * Resizable textareas.
  61. *
  62. * @see textarea.js
  63. */
  64. .form-textarea-wrapper textarea {
  65. display: block;
  66. margin: 0;
  67. width: 100%;
  68. -moz-box-sizing: border-box;
  69. -webkit-box-sizing: border-box;
  70. box-sizing: border-box;
  71. }
  72. .resizable-textarea .grippie {
  73. background: #eee url(../../misc/grippie.png) no-repeat center 2px;
  74. border: 1px solid #ddd;
  75. border-top-width: 0;
  76. cursor: s-resize;
  77. height: 9px;
  78. overflow: hidden;
  79. }
  80. /**
  81. * TableDrag behavior.
  82. *
  83. * @see tabledrag.js
  84. */
  85. body.drag {
  86. cursor: move;
  87. }
  88. .draggable a.tabledrag-handle {
  89. cursor: move;
  90. float: left; /* LTR */
  91. height: 1.7em;
  92. margin-left: -1em; /* LTR */
  93. overflow: hidden;
  94. text-decoration: none;
  95. }
  96. a.tabledrag-handle:hover {
  97. text-decoration: none;
  98. }
  99. a.tabledrag-handle .handle {
  100. background: url(../../misc/draggable.png) no-repeat 6px 9px;
  101. height: 13px;
  102. margin: -0.4em 0.5em; /* LTR */
  103. padding: 0.42em 0.5em; /* LTR */
  104. width: 13px;
  105. }
  106. a.tabledrag-handle-hover .handle {
  107. background-position: 6px -11px;
  108. }
  109. div.indentation {
  110. float: left; /* LTR */
  111. height: 1.7em;
  112. margin: -0.4em 0.2em -0.4em -0.4em; /* LTR */
  113. padding: 0.42em 0 0.42em 0.6em; /* LTR */
  114. width: 20px;
  115. }
  116. div.tree-child {
  117. background: url(../../misc/tree.png) no-repeat 11px center; /* LTR */
  118. }
  119. div.tree-child-last {
  120. background: url(../../misc/tree-bottom.png) no-repeat 11px center; /* LTR */
  121. }
  122. div.tree-child-horizontal {
  123. background: url(../../misc/tree.png) no-repeat -11px center;
  124. }
  125. .tabledrag-toggle-weight-wrapper {
  126. text-align: right; /* LTR */
  127. }
  128. /**
  129. * TableHeader behavior.
  130. *
  131. * @see tableheader.js
  132. */
  133. table.sticky-header {
  134. background-color: #fff;
  135. margin-top: 0;
  136. }
  137. /**
  138. * Progress behavior.
  139. *
  140. * @see progress.js
  141. */
  142. /* Bar */
  143. .progress .bar {
  144. background-color: #fff;
  145. border: 1px solid;
  146. }
  147. .progress .filled {
  148. background-color: #000;
  149. height: 1.5em;
  150. width: 5px;
  151. }
  152. .progress .percentage {
  153. float: right; /* LTR */
  154. }
  155. /* Throbber */
  156. .ajax-progress {
  157. display: inline-block;
  158. }
  159. .ajax-progress .throbber {
  160. background: transparent url(../../misc/throbber.gif) no-repeat 0px -18px;
  161. float: left; /* LTR */
  162. height: 15px;
  163. margin: 2px;
  164. width: 15px;
  165. }
  166. .ajax-progress .message {
  167. padding-left: 20px;
  168. }
  169. tr .ajax-progress .throbber {
  170. margin: 0 2px;
  171. }
  172. .ajax-progress-bar {
  173. width: 16em;
  174. }
  175. /**
  176. * Inline items.
  177. */
  178. .container-inline div,
  179. .container-inline label {
  180. display: inline;
  181. }
  182. /* Fieldset contents always need to be rendered as block. */
  183. .container-inline .fieldset-wrapper {
  184. display: block;
  185. }
  186. /**
  187. * Prevent text wrapping.
  188. */
  189. .nowrap {
  190. white-space: nowrap;
  191. }
  192. /**
  193. * For anything you want to hide on page load when JS is enabled, so
  194. * that you can use the JS to control visibility and avoid flicker.
  195. */
  196. html.js .js-hide {
  197. display: none;
  198. }
  199. /**
  200. * Hide elements from all users.
  201. *
  202. * Used for elements which should not be immediately displayed to any user. An
  203. * example would be a collapsible fieldset that will be expanded with a click
  204. * from a user. The effect of this class can be toggled with the jQuery show()
  205. * and hide() functions.
  206. */
  207. .element-hidden {
  208. display: none;
  209. }
  210. /**
  211. * Hide elements visually, but keep them available for screen-readers.
  212. *
  213. * Used for information required for screen-reader users to understand and use
  214. * the site where visual display is undesirable. Information provided in this
  215. * manner should be kept concise, to avoid unnecessary burden on the user.
  216. * "!important" is used to prevent unintentional overrides.
  217. */
  218. .element-invisible {
  219. position: absolute !important;
  220. clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  221. clip: rect(1px, 1px, 1px, 1px);
  222. overflow: hidden;
  223. height: 1px;
  224. }
  225. /**
  226. * The .element-focusable class extends the .element-invisible class to allow
  227. * the element to be focusable when navigated to via the keyboard.
  228. */
  229. .element-invisible.element-focusable:active,
  230. .element-invisible.element-focusable:focus {
  231. position: static !important;
  232. clip: auto;
  233. overflow: visible;
  234. height: auto;
  235. }
  236. /**
  237. * Markup free clearing.
  238. *
  239. * @see http://perishablepress.com/press/2009/12/06/new-clearfix-hack
  240. */
  241. .clearfix:after {
  242. content: ".";
  243. display: block;
  244. height: 0;
  245. clear: both;
  246. visibility: hidden;
  247. }
  248. /* IE6 */
  249. * html .clearfix {
  250. height: 1%;
  251. }
  252. /* IE7 */
  253. *:first-child + html .clearfix {
  254. min-height: 1%;
  255. }