You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

365 lines
11 KiB

2 years ago
  1. /*
  2. Uniform Theme: Uniform Default
  3. Version: 1.8
  4. By: Josh Pyles
  5. License: MIT License
  6. ---
  7. For use with the Uniform plugin:
  8. http://uniformjs.com/
  9. */
  10. /* General settings */
  11. div.selector, div.selector span, div.checker span, div.radio span, div.uploader, div.uploader span.action, div.button, div.button span {
  12. background-image: url("../images/sprite.png");
  13. background-repeat: no-repeat;
  14. -webkit-font-smoothing: antialiased; }
  15. div.selector, div.checker, div.button, div.radio, div.uploader {
  16. display: -moz-inline-box;
  17. display: inline-block;
  18. *display: inline;
  19. zoom: 1;
  20. vertical-align: middle;
  21. /* Keeping this as :focus to remove browser styles */ }
  22. div.selector:focus, div.checker:focus, div.button:focus, div.radio:focus, div.uploader:focus {
  23. outline: 0; }
  24. div.selector, div.selector *, div.radio, div.radio *, div.checker, div.checker *, div.uploader, div.uploader *, div.button, div.button * {
  25. margin: 0;
  26. padding: 0; }
  27. .highContrastDetect {
  28. background: url("../images/bg-input.png") repeat-x 0 0;
  29. width: 0px;
  30. height: 0px; }
  31. /* Input & Textarea */
  32. input.uniform-input,
  33. select.uniform-multiselect,
  34. textarea.uniform {
  35. padding: 3px;
  36. background: url("../images/bg-input.png") repeat-x 0 0;
  37. outline: 0; }
  38. input.uniform-input.active,
  39. select.uniform-multiselect.active,
  40. textarea.uniform.active {
  41. background: url("../images/bg-input-focus.png") repeat-x 0 0; }
  42. /* Remove default webkit and possible mozilla .search styles.
  43. * Keeping this as :active to remove browser styles */
  44. div.checker input,
  45. input[type="search"],
  46. input[type="search"]:active {
  47. -moz-appearance: none;
  48. -webkit-appearance: none; }
  49. /* Select */
  50. div.selector {
  51. background-position: 0 -130px;
  52. line-height: 26px;
  53. height: 26px;
  54. padding: 0 0 0 10px;
  55. position: relative;
  56. overflow: hidden; }
  57. div.selector span {
  58. text-overflow: ellipsis;
  59. display: block;
  60. overflow: hidden;
  61. white-space: nowrap;
  62. background-position: right 0;
  63. height: 26px;
  64. line-height: 26px;
  65. padding-right: 25px;
  66. cursor: pointer;
  67. width: 100%;
  68. display: block; }
  69. div.selector.fixedWidth {
  70. width: 190px; }
  71. div.selector.fixedWidth span {
  72. width: 155px; }
  73. div.selector select {
  74. opacity: 0;
  75. filter: alpha(opacity=0);
  76. -moz-opacity: 0;
  77. border: none;
  78. background: none;
  79. position: absolute;
  80. height: 22px;
  81. top: 2px;
  82. left: 0px;
  83. width: 100%; }
  84. div.selector.active {
  85. background-position: 0 -156px; }
  86. div.selector.active span {
  87. background-position: right -26px; }
  88. div.selector.hover, div.selector.focus {
  89. background-position: 0 -182px; }
  90. div.selector.hover span, div.selector.focus span {
  91. background-position: right -52px; }
  92. div.selector.hover.active, div.selector.focus.active {
  93. background-position: 0 -208px; }
  94. div.selector.hover.active span, div.selector.focus.active span {
  95. background-position: right -78px; }
  96. div.selector.disabled, div.selector.disabled.active {
  97. background-position: 0 -234px; }
  98. div.selector.disabled span, div.selector.disabled.active span {
  99. background-position: right -104px; }
  100. /* Checkbox */
  101. div.checker {
  102. position: relative; }
  103. div.checker, div.checker span, div.checker input {
  104. width: 19px;
  105. height: 19px; }
  106. div.checker span {
  107. display: -moz-inline-box;
  108. display: inline-block;
  109. *display: inline;
  110. zoom: 1;
  111. text-align: center;
  112. background-position: 0 -260px; }
  113. div.checker span.checked {
  114. background-position: -76px -260px; }
  115. div.checker input {
  116. opacity: 0;
  117. filter: alpha(opacity=0);
  118. -moz-opacity: 0;
  119. border: none;
  120. background: none;
  121. display: -moz-inline-box;
  122. display: inline-block;
  123. *display: inline;
  124. zoom: 1; }
  125. div.checker.active span {
  126. background-position: -19px -260px; }
  127. div.checker.active span.checked {
  128. background-position: -95px -260px; }
  129. div.checker.hover span, div.checker.focus span {
  130. background-position: -38px -260px; }
  131. div.checker.hover span.checked, div.checker.focus span.checked {
  132. background-position: -114px -260px; }
  133. div.checker.hover.active span, div.checker.focus.active span {
  134. background-position: -57px -260px; }
  135. div.checker.hover.active span.checked, div.checker.focus.active span.checked {
  136. background-position: -133px -260px; }
  137. div.checker.disabled, div.checker.disabled.active {
  138. background-position: -152px -260px; }
  139. div.checker.disabled span.checked, div.checker.disabled.active span.checked {
  140. background-position: -171px -260px; }
  141. /* Radio */
  142. div.radio {
  143. position: relative; }
  144. div.radio, div.radio span, div.radio input {
  145. width: 18px;
  146. height: 18px; }
  147. div.radio span {
  148. display: -moz-inline-box;
  149. display: inline-block;
  150. *display: inline;
  151. zoom: 1;
  152. text-align: center;
  153. background-position: 0 -279px; }
  154. div.radio span.checked {
  155. background-position: -72px -279px; }
  156. div.radio input {
  157. opacity: 0;
  158. filter: alpha(opacity=0);
  159. -moz-opacity: 0;
  160. border: none;
  161. background: none;
  162. display: -moz-inline-box;
  163. display: inline-block;
  164. *display: inline;
  165. zoom: 1;
  166. text-align: center; }
  167. div.radio.active span {
  168. background-position: -18px -18px -279px; }
  169. div.radio.active span.checked {
  170. background-position: -90px -279px; }
  171. div.radio.hover span, div.radio.focus span {
  172. background-position: -36px -36px -279px; }
  173. div.radio.hover span.checked, div.radio.focus span.checked {
  174. background-position: -108px -279px; }
  175. div.radio.hover.active span, div.radio.focus.active span {
  176. background-position: -54px -279px; }
  177. div.radio.hover.active span.checked, div.radio.focus.active span.checked {
  178. background-position: -126px -279px; }
  179. div.radio.disabled span, div.radio.disabled.active span {
  180. background-position: -144px -279px; }
  181. div.radio.disabled span.checked, div.radio.disabled.active span.checked {
  182. background-position: -162px -279px; }
  183. /* Uploader */
  184. div.uploader {
  185. background-position: 0 -297px;
  186. height: 28px;
  187. width: 190px;
  188. cursor: pointer;
  189. position: relative;
  190. overflow: hidden; }
  191. div.uploader span.action {
  192. background-position: right -409px;
  193. height: 28px;
  194. line-height: 28px;
  195. width: 82px;
  196. text-align: center;
  197. float: left;
  198. display: inline;
  199. overflow: hidden;
  200. cursor: pointer; }
  201. div.uploader span.filename {
  202. text-overflow: ellipsis;
  203. display: block;
  204. overflow: hidden;
  205. white-space: nowrap;
  206. float: left;
  207. cursor: default;
  208. height: 24px;
  209. margin: 2px 0 2px 2px;
  210. line-height: 24px;
  211. width: 85px;
  212. padding: 0 10px; }
  213. div.uploader input {
  214. opacity: 0;
  215. filter: alpha(opacity=0);
  216. -moz-opacity: 0;
  217. border: none;
  218. background: none;
  219. position: absolute;
  220. top: 0;
  221. right: 0;
  222. float: right;
  223. cursor: default;
  224. width: 100%;
  225. height: 100%; }
  226. div.uploader.active span.action {
  227. background-position: right -465px; }
  228. div.uploader.hover, div.uploader.focus {
  229. background-position: 0 -353px; }
  230. div.uploader.hover span.action, div.uploader.focus span.action {
  231. background-position: right -437px; }
  232. div.uploader.hover.active span.action, div.uploader.focus.active span.action {
  233. background-position: right -493px; }
  234. div.uploader.disabled, div.uploader.disabled.active {
  235. background-position: 0 -325px; }
  236. div.uploader.disabled span.action, div.uploader.disabled.active span.action {
  237. background-position: right -381px; }
  238. /* Buttons */
  239. div.button {
  240. background-position: 0 -641px;
  241. height: 30px;
  242. cursor: pointer;
  243. position: relative;
  244. /* Keep buttons barely visible so they can get focus */ }
  245. div.button a, div.button button, div.button input {
  246. opacity: 0.01;
  247. filter: alpha(opacity=1);
  248. -moz-opacity: 0.01;
  249. display: block;
  250. top: 0;
  251. left: 0;
  252. right: 0;
  253. bottom: 0;
  254. position: absolute; }
  255. div.button span {
  256. display: -moz-inline-box;
  257. display: inline-block;
  258. *display: inline;
  259. zoom: 1;
  260. line-height: 22px;
  261. text-align: center;
  262. background-position: right -521px;
  263. height: 22px;
  264. margin-left: 13px;
  265. padding: 8px 15px 0 2px; }
  266. div.button.active {
  267. background-position: 0 -671px; }
  268. div.button.active span {
  269. background-position: right -551px;
  270. cursor: default; }
  271. div.button.hover, div.button.focus {
  272. background-position: 0 -701px; }
  273. div.button.hover span, div.button.focus span {
  274. background-position: right -581px; }
  275. div.button.disabled, div.button.disabled.active {
  276. background-position: 0 -731px; }
  277. div.button.disabled span, div.button.disabled.active span {
  278. background-position: right -611px;
  279. cursor: default; }
  280. /* INPUT & TEXTAREA */
  281. input.uniform-input,
  282. select.uniform-multiselect,
  283. textarea.uniform {
  284. font-size: 12px;
  285. font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  286. font-weight: normal;
  287. color: #777;
  288. border-top: solid 1px #aaaaaa;
  289. border-left: solid 1px #aaaaaa;
  290. border-bottom: solid 1px #cccccc;
  291. border-right: solid 1px #cccccc;
  292. -webkit-border-radius: 3px;
  293. -moz-border-radius: 3px;
  294. border-radius: 3px; }
  295. input.uniform-input.hover, input.uniform-input.focus,
  296. select.uniform-multiselect.hover,
  297. select.uniform-multiselect.focus,
  298. textarea.uniform.hover,
  299. textarea.uniform.focus {
  300. -webkit-box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
  301. -moz-box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
  302. box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.3);
  303. border-color: #999; }
  304. /* PRESENTATION */
  305. /* Buttons */
  306. div.button span {
  307. font-weight: bold;
  308. font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  309. font-size: 12px;
  310. letter-spacing: 1px;
  311. text-transform: uppercase; }
  312. div.button.hover span, div.button.focus span {
  313. color: #555; }
  314. div.button.disabled span, div.button.disabled.active span {
  315. color: #bbb; }
  316. /* Select */
  317. div.selector {
  318. font-size: 12px; }
  319. div.selector span {
  320. color: #666;
  321. text-shadow: 0 1px 0 white; }
  322. div.selector select {
  323. font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  324. font-size: 12px; }
  325. div.selector.disabled span, div.selector.disabled.active span {
  326. color: #bbb; }
  327. /* Checker */
  328. div.checker {
  329. margin-right: 5px; }
  330. /* Radio */
  331. div.radio {
  332. margin-right: 3px; }
  333. /* Uploader */
  334. div.uploader span.action {
  335. text-shadow: white 0px 1px 0px;
  336. background-color: #fff;
  337. font-size: 11px;
  338. font-weight: bold; }
  339. div.uploader span.filename {
  340. color: #777;
  341. border-right: solid 1px #bbbbbb;
  342. font-size: 11px; }
  343. div.uploader.disabled span.action, div.uploader.disabled.active span.action {
  344. color: #aaa; }
  345. div.uploader.disabled span.filename, div.uploader.disabled.active span.filename {
  346. border-color: #ddd;
  347. color: #aaa; }
  348. input.uniform-input, input.uniform-input:focus {
  349. background-color: #fff; }