forms.php 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. <?php
  2. /**
  3. * CSS form/input elements
  4. *
  5. * @package Elgg.Core
  6. * @subpackage UI
  7. */
  8. ?>
  9. /* <style> /**/
  10. /* ***************************************
  11. Form Elements
  12. *************************************** */
  13. fieldset > div {
  14. margin-bottom: 15px;
  15. }
  16. fieldset > div:last-child {
  17. margin-bottom: 0;
  18. }
  19. .elgg-form-alt > fieldset > .elgg-foot {
  20. border-top: 1px solid #CCC;
  21. padding: 10px 0;
  22. }
  23. label {
  24. font-weight: bold;
  25. color: #333;
  26. font-size: 110%;
  27. }
  28. label.elgg-state-disabled {
  29. opacity: 0.6;
  30. }
  31. input, textarea {
  32. border: 1px solid #ccc;
  33. color: #666;
  34. font: 120% Arial, Helvetica, sans-serif;
  35. padding: 5px;
  36. width: 100%;
  37. border-radius: 5px;
  38. -webkit-box-sizing: border-box;
  39. -moz-box-sizing: border-box;
  40. box-sizing: border-box;
  41. }
  42. input[type=email]:focus,
  43. input[type=password]:focus,
  44. input[type=text]:focus,
  45. input[type=url]:focus,
  46. textarea:focus {
  47. border: solid 1px #4690d6;
  48. background: #e4ecf5;
  49. color:#333;
  50. /* We remove outlines from specific input types so we can leave the browser
  51. defaults (like glows) for everything else */
  52. outline: 0 none;
  53. }
  54. .elgg-longtext-control {
  55. float: right;
  56. margin-left: 14px;
  57. font-size: 80%;
  58. cursor: pointer;
  59. }
  60. .elgg-input-access {
  61. margin:5px 0 0 0;
  62. }
  63. input[type="checkbox"],
  64. input[type="radio"] {
  65. margin:0 3px 0 0;
  66. padding:0;
  67. border:none;
  68. border-radius:0;
  69. width:auto;
  70. }
  71. .elgg-input-checkboxes.elgg-horizontal li,
  72. .elgg-input-radios.elgg-horizontal li {
  73. display: inline;
  74. padding-right: 10px;
  75. }
  76. .elgg-form-login, .elgg-form-account {
  77. max-width: 475px;
  78. margin: 0 auto;
  79. }
  80. /* ***************************************
  81. FRIENDS PICKER
  82. *************************************** */
  83. .friends-picker-main-wrapper {
  84. margin-bottom: 15px;
  85. }
  86. .friends-picker-container h3 {
  87. font-size:4em !important;
  88. text-align: left;
  89. margin:10px 0 20px !important;
  90. color:#999 !important;
  91. background: none !important;
  92. padding:0 !important;
  93. }
  94. .friends-picker .friends-picker-container .panel ul {
  95. text-align: left;
  96. margin: 0;
  97. padding:0;
  98. }
  99. .friends-picker-wrapper {
  100. margin: 0;
  101. padding:0;
  102. position: relative;
  103. width: 730px;
  104. }
  105. .friends-picker {
  106. position: relative;
  107. overflow: hidden;
  108. margin: 0;
  109. padding:0;
  110. width: 730px;
  111. height: auto;
  112. background-color: #dedede;
  113. border-radius: 8px;
  114. }
  115. .friendspicker-savebuttons {
  116. background: white;
  117. border-radius: 8px;
  118. margin:0 10px 10px;
  119. }
  120. .friends-picker .friends-picker-container { /* long container used to house end-to-end panels. Width is calculated in JS */
  121. position: relative;
  122. left: 0;
  123. top: 0;
  124. width: 100%;
  125. list-style-type: none;
  126. }
  127. .friends-picker .friends-picker-container .panel {
  128. float:left;
  129. height: 100%;
  130. position: relative;
  131. width: 730px;
  132. margin: 0;
  133. padding:0;
  134. }
  135. .friends-picker .friends-picker-container .panel .wrapper {
  136. margin: 0;
  137. padding:4px 10px 10px 10px;
  138. min-height: 230px;
  139. }
  140. .friends-picker-navigation {
  141. margin: 0 0 10px;
  142. padding:0 0 10px;
  143. border-bottom:1px solid #ccc;
  144. }
  145. .friends-picker-navigation ul {
  146. list-style: none;
  147. padding-left: 0;
  148. }
  149. .friends-picker-navigation ul li {
  150. float: left;
  151. margin:0;
  152. background:white;
  153. }
  154. .friends-picker-navigation a {
  155. font-weight: bold;
  156. text-align: center;
  157. background: white;
  158. color: #999;
  159. text-decoration: none;
  160. display: block;
  161. padding: 0;
  162. width:20px;
  163. border-radius: 4px;
  164. }
  165. .tabHasContent {
  166. background: white;
  167. color:#333 !important;
  168. }
  169. .friends-picker-navigation li a:hover {
  170. background: #333;
  171. color:white !important;
  172. }
  173. .friends-picker-navigation li a.current {
  174. background: #4690D6;
  175. color:white !important;
  176. }
  177. .friends-picker-navigation-l, .friends-picker-navigation-r {
  178. position: absolute;
  179. top: 46px;
  180. text-indent: -9000em;
  181. }
  182. .friends-picker-navigation-l a, .friends-picker-navigation-r a {
  183. display: block;
  184. height: 40px;
  185. width: 40px;
  186. }
  187. .friends-picker-navigation-l {
  188. right: 48px;
  189. z-index:1;
  190. }
  191. .friends-picker-navigation-r {
  192. right: 0;
  193. z-index:1;
  194. }
  195. .friends-picker-navigation-l {
  196. background: url("<?php echo elgg_get_site_url(); ?>_graphics/friendspicker.png") no-repeat left top;
  197. }
  198. .friends-picker-navigation-r {
  199. background: url("<?php echo elgg_get_site_url(); ?>_graphics/friendspicker.png") no-repeat -60px top;
  200. }
  201. .friends-picker-navigation-l:hover {
  202. background: url("<?php echo elgg_get_site_url(); ?>_graphics/friendspicker.png") no-repeat left -44px;
  203. }
  204. .friends-picker-navigation-r:hover {
  205. background: url("<?php echo elgg_get_site_url(); ?>_graphics/friendspicker.png") no-repeat -60px -44px;
  206. }
  207. .friendspicker-savebuttons .elgg-button-submit,
  208. .friendspicker-savebuttons .elgg-button-cancel {
  209. margin:5px 20px 5px 5px;
  210. }
  211. .friendspicker-members-table {
  212. background: #dedede;
  213. border-radius: 8px;
  214. margin:10px 0 0;
  215. padding:10px 10px 0;
  216. }
  217. /* ***************************************
  218. AUTOCOMPLETE
  219. *************************************** */
  220. <?php //autocomplete will expand to fullscreen without max-width ?>
  221. .ui-autocomplete {
  222. position: absolute;
  223. cursor: default;
  224. z-index: 10000;
  225. }
  226. .elgg-autocomplete-item .elgg-body {
  227. max-width: 600px;
  228. }
  229. .ui-autocomplete {
  230. background-color: white;
  231. border: 1px solid #ccc;
  232. overflow: hidden;
  233. border-radius: 5px;
  234. }
  235. .ui-autocomplete .ui-menu-item {
  236. padding: 0px 4px;
  237. border-radius: 5px;
  238. }
  239. .ui-autocomplete .ui-menu-item:hover {
  240. background-color: #eee;
  241. }
  242. .ui-autocomplete a:hover {
  243. text-decoration: none;
  244. color: #4690D6;
  245. }
  246. .ui-autocomplete a.ui-state-hover {
  247. background-color: #eee;
  248. display: block;
  249. }
  250. /* ***************************************
  251. USER PICKER
  252. *************************************** */
  253. .elgg-user-picker-list li:first-child {
  254. border-top: 1px dotted #ccc;
  255. margin-top: 5px;
  256. }
  257. .elgg-user-picker-list > li {
  258. border-bottom: 1px dotted #ccc;
  259. }
  260. .elgg-user-picker.elgg-state-disabled > input,
  261. .elgg-user-picker.elgg-state-disabled > label {
  262. display: none;
  263. }
  264. .elgg-user-picker-remove {
  265. cursor: pointer;
  266. }
  267. /* ***************************************
  268. DATE PICKER
  269. **************************************** */
  270. .ui-datepicker {
  271. display: none;
  272. margin-top: 3px;
  273. background-color: white;
  274. border: 1px solid #0054A7;
  275. border-radius: 6px;
  276. overflow: hidden;
  277. box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
  278. }
  279. .ui-datepicker-inline {
  280. box-shadow: none;
  281. }
  282. .ui-datepicker-header {
  283. position: relative;
  284. background: #4690D6;
  285. color: white;
  286. padding: 2px 0;
  287. border-bottom: 1px solid #0054A7;
  288. }
  289. .ui-datepicker-header a {
  290. color: white;
  291. }
  292. .ui-datepicker-prev, .ui-datepicker-next {
  293. position: absolute;
  294. top: 5px;
  295. cursor: pointer;
  296. }
  297. .ui-datepicker-prev {
  298. left: 6px;
  299. }
  300. .ui-datepicker-next {
  301. right: 6px;
  302. }
  303. .ui-datepicker-title {
  304. line-height: 1.8em;
  305. margin: 0 30px;
  306. text-align: center;
  307. font-weight: bold;
  308. }
  309. .ui-datepicker-calendar {
  310. margin: 4px;
  311. }
  312. .ui-datepicker th {
  313. color: #0054A7;
  314. border: none;
  315. font-weight: bold;
  316. padding: 5px 6px;
  317. text-align: center;
  318. }
  319. .ui-datepicker td {
  320. padding: 1px;
  321. }
  322. .ui-datepicker td span, .ui-datepicker td a {
  323. display: block;
  324. padding: 2px;
  325. line-height: 1.2em;
  326. text-align: right;
  327. text-decoration: none;
  328. }
  329. .ui-datepicker-calendar .ui-state-default {
  330. border: 1px solid #ccc;
  331. color: #4690D6;;
  332. background: #fafafa;
  333. }
  334. .ui-datepicker-calendar .ui-state-hover {
  335. border: 1px solid #aaa;
  336. color: #0054A7;
  337. background: #eee;
  338. }
  339. .ui-datepicker-calendar .ui-state-active,
  340. .ui-datepicker-calendar .ui-state-active.ui-state-hover {
  341. font-weight: bold;
  342. border: 1px solid #0054A7;
  343. color: #0054A7;
  344. background: #E4ECF5;
  345. }