navigation.php 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  1. <?php
  2. /**
  3. * Navigation
  4. *
  5. * @package Elgg.Core
  6. * @subpackage UI
  7. */
  8. ?>
  9. /* <style> /**/
  10. /* ***************************************
  11. PAGINATION
  12. *************************************** */
  13. .elgg-pagination {
  14. margin: 20px 0 10px;
  15. display: block;
  16. text-align: center;
  17. }
  18. .elgg-pagination li {
  19. display: inline;
  20. text-align: center;
  21. margin-left: -1px;
  22. }
  23. .elgg-pagination li:first-child a,
  24. .elgg-pagination li:first-child span {
  25. border-radius: 3px 0 0 3px;
  26. }
  27. .elgg-pagination li:last-child a,
  28. .elgg-pagination li:last-child span {
  29. border-radius: 0 3px 3px 0;
  30. }
  31. .elgg-pagination li:first-child a:before,
  32. .elgg-pagination li:first-child span:before {
  33. content: "\ab";
  34. margin-right: 6px;
  35. }
  36. .elgg-pagination li:last-child a:after,
  37. .elgg-pagination li:last-child span:after {
  38. content: "\bb";
  39. margin-left: 6px;
  40. }
  41. .elgg-pagination a,
  42. .elgg-pagination span {
  43. display: inline-block;
  44. padding: 6px 15px;
  45. color: #444;
  46. border: 1px solid #DCDCDC;
  47. }
  48. .elgg-pagination a:hover {
  49. color: #999;
  50. text-decoration: none;
  51. }
  52. .elgg-pagination .elgg-state-disabled span {
  53. color: #CCC;
  54. }
  55. .elgg-pagination .elgg-state-selected span {
  56. color: #999;
  57. }
  58. /* ***************************************
  59. TABS
  60. *************************************** */
  61. .elgg-tabs {
  62. margin-bottom: 5px;
  63. border-bottom: 1px solid #DCDCDC;
  64. display: table;
  65. width: 100%;
  66. }
  67. .elgg-tabs li {
  68. float: left;
  69. border: 1px solid #DCDCDC;
  70. border-bottom: 0;
  71. background: #eee;
  72. margin: 0 0 0 5px;
  73. border-radius: 3px 3px 0 0;
  74. }
  75. .elgg-tabs a {
  76. text-decoration: none;
  77. display: block;
  78. padding: 4px 15px 6px;
  79. text-align: center;
  80. height: auto;
  81. color: #666;
  82. }
  83. .elgg-tabs a:hover {
  84. background: #DEDEDE;
  85. color: #444;
  86. }
  87. .elgg-tabs .elgg-state-selected {
  88. border-color: #DCDCDC;
  89. background: #FFF;
  90. }
  91. .elgg-tabs .elgg-state-selected a {
  92. position: relative;
  93. top: 1px;
  94. background: #FFF;
  95. }
  96. /* ***************************************
  97. BREADCRUMBS
  98. *************************************** */
  99. .elgg-breadcrumbs {
  100. font-size: 100%;
  101. font-weight: normal;
  102. line-height: 1.4em;
  103. padding: 0 10px 1px 0;
  104. color: #BABABA;
  105. }
  106. .elgg-breadcrumbs > li {
  107. display: inline-block;
  108. }
  109. .elgg-breadcrumbs > li:after {
  110. content: "\003E";
  111. padding: 0 4px;
  112. font-weight: normal;
  113. }
  114. .elgg-breadcrumbs > li > a {
  115. display: inline-block;
  116. color: #999;
  117. }
  118. .elgg-breadcrumbs > li > a:hover {
  119. color: #0054a7;
  120. text-decoration: underline;
  121. }
  122. .elgg-main .elgg-breadcrumbs {
  123. position: relative;
  124. top: -1px;
  125. left: 0;
  126. }
  127. /* ***************************************
  128. TOPBAR MENU
  129. *************************************** */
  130. .elgg-menu-topbar {
  131. font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  132. float: left;
  133. }
  134. .elgg-menu-topbar > li {
  135. float: left;
  136. height: 33px;
  137. }
  138. .elgg-menu-topbar > li > a {
  139. padding-top: 5px;
  140. color: #EEE;
  141. margin: 0 15px;
  142. }
  143. .elgg-menu-topbar > li > a:hover {
  144. color: #60B8F7;
  145. text-decoration: none;
  146. }
  147. .elgg-menu-topbar-alt {
  148. float: right;
  149. }
  150. .elgg-menu-topbar .elgg-icon {
  151. vertical-align: middle;
  152. margin-top: -1px;
  153. }
  154. .elgg-menu-topbar > li > a.elgg-topbar-logo {
  155. margin-top: 0;
  156. padding-left: 5px;
  157. width: 38px;
  158. height: 20px;
  159. }
  160. .elgg-menu-topbar > li > a.elgg-topbar-avatar {
  161. width: 18px;
  162. height: 18px;
  163. padding-top: 7px;
  164. }
  165. /* ***************************************
  166. SITE MENU
  167. *************************************** */
  168. .elgg-menu-site {
  169. font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  170. float: left;
  171. left: 0;
  172. top: 0;
  173. position: relative;
  174. z-index: 1;
  175. }
  176. .elgg-menu-site > li {
  177. float: left;
  178. }
  179. .elgg-menu-site > li > a {
  180. color: #FFF;
  181. padding: 14px 18px;
  182. }
  183. .elgg-menu-site > li > a:hover {
  184. text-decoration: none;
  185. }
  186. .elgg-menu-site > .elgg-state-selected > a,
  187. .elgg-menu-site > li:hover > a {
  188. background-color: #60B8F7;
  189. color: #FFF;
  190. }
  191. .elgg-menu-site > li > ul {
  192. position: absolute;
  193. display: none;
  194. background-color: #FFF;
  195. border: 1px solid #DEDEDE;
  196. text-align: left;
  197. top: 47px;
  198. margin-left: 0;
  199. width: 180px;
  200. border-radius: 0 0 3px 3px;
  201. box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.25);
  202. }
  203. .elgg-menu-site > li:hover > ul {
  204. display: block;
  205. }
  206. .elgg-menu-site-more li {
  207. width: 180px;
  208. }
  209. .elgg-menu-site-more > li > a {
  210. padding: 10px 20px;
  211. background-color: #FFF;
  212. color: #444;
  213. }
  214. .elgg-menu-site-more > li:last-child > a,
  215. .elgg-menu-site-more > li:last-child > a:hover {
  216. border-radius: 3px;
  217. }
  218. .elgg-menu-site-more > li.elgg-state-selected > a,
  219. .elgg-menu-site-more > li > a:hover {
  220. background-color: #F0F0F0;
  221. color: #444;
  222. }
  223. .elgg-more {
  224. width: 182px;
  225. }
  226. .elgg-more > a:after {
  227. content: "\bb";
  228. margin-left: 6px;
  229. }
  230. /* ***************************************
  231. TITLE
  232. *************************************** */
  233. .elgg-menu-title {
  234. float: right;
  235. margin-top: -1px;
  236. }
  237. .elgg-menu-title > li {
  238. display: inline-block;
  239. margin-left: 4px;
  240. }
  241. /* ***************************************
  242. FILTER MENU
  243. *************************************** */
  244. .elgg-menu-filter {
  245. margin-bottom: 5px;
  246. border-bottom: 1px solid #DCDCDC;
  247. display: table;
  248. width: 100%;
  249. }
  250. .elgg-menu-filter > li {
  251. float: left;
  252. border: 1px solid #DCDCDC;
  253. border-bottom: 0;
  254. background: #eee;
  255. margin: 0 0 0 5px;
  256. border-radius: 3px 3px 0 0;
  257. }
  258. .elgg-menu-filter > li.elgg-state-selected a:hover {
  259. background: #FFFFFF;
  260. }
  261. .elgg-menu-filter > li > a {
  262. text-decoration: none;
  263. display: block;
  264. padding: 4px 15px 6px;
  265. text-align: center;
  266. height: auto;
  267. color: #666;
  268. }
  269. .elgg-menu-filter > li > a:hover {
  270. background: #DEDEDE;
  271. color: #444;
  272. }
  273. .elgg-menu-filter > .elgg-state-selected {
  274. border-color: #DCDCDC;
  275. background: #FFF;
  276. }
  277. .elgg-menu-filter > .elgg-state-selected > a {
  278. position: relative;
  279. top: 1px;
  280. background: #FFF;
  281. }
  282. /* ***************************************
  283. PAGE MENU
  284. *************************************** */
  285. .elgg-menu-page {
  286. margin-bottom: 15px;
  287. }
  288. .elgg-menu-page a {
  289. color: #444;
  290. display: block;
  291. margin: 3px 0 5px 0;
  292. padding: 2px 4px 2px 0;
  293. }
  294. .elgg-menu-page a:hover {
  295. color: #999;
  296. }
  297. .elgg-menu-page li.elgg-state-selected > a {
  298. color: #999;
  299. text-decoration: underline;
  300. }
  301. .elgg-menu-page .elgg-child-menu {
  302. display: none;
  303. margin-left: 15px;
  304. }
  305. .elgg-menu-page .elgg-state-selected > .elgg-child-menu {
  306. display: block;
  307. }
  308. .elgg-menu-page .elgg-menu-closed:before, .elgg-menu-opened:before {
  309. display: inline-block;
  310. padding-right: 4px;
  311. }
  312. .elgg-menu-page .elgg-menu-closed:before {
  313. content: "\25B8";
  314. }
  315. .elgg-menu-page .elgg-menu-opened:before {
  316. content: "\25BE";
  317. }
  318. /* ***************************************
  319. HOVER MENU
  320. *************************************** */
  321. .elgg-menu-hover {
  322. display: none;
  323. position: absolute;
  324. z-index: 10000;
  325. overflow: hidden;
  326. min-width: 180px;
  327. max-width: 250px;
  328. border: 1px solid #DEDEDE;
  329. background-color: #FFF;
  330. border-radius: 0 3px 3px 3px;
  331. box-shadow: 1px 3px 5px rgba(0, 0, 0, 0.25);
  332. }
  333. .elgg-menu-hover > li {
  334. border-bottom: 1px solid #ddd;
  335. }
  336. .elgg-menu-hover > li:last-child {
  337. border-bottom: none;
  338. }
  339. .elgg-menu-hover .elgg-heading-basic {
  340. display: block;
  341. }
  342. .elgg-menu-hover > li a {
  343. padding: 6px 18px;
  344. }
  345. .elgg-menu-hover a:hover {
  346. background-color: #F0F0F0;
  347. text-decoration: none;
  348. }
  349. .elgg-menu-hover-admin a {
  350. color: #FF0000;
  351. }
  352. .elgg-menu-hover-admin a:hover {
  353. color: #FFF;
  354. background-color: #FF0000;
  355. }
  356. /* ***************************************
  357. SITE FOOTER
  358. *************************************** */
  359. .elgg-menu-footer > li,
  360. .elgg-menu-footer > li > a {
  361. display: inline-block;
  362. color: #999;
  363. }
  364. .elgg-menu-footer > li:after {
  365. content: "\007C";
  366. padding: 0 6px;
  367. }
  368. .elgg-menu-footer-default {
  369. float: right;
  370. }
  371. .elgg-menu-footer-alt {
  372. float: left;
  373. }
  374. .elgg-menu-footer-meta {
  375. float: left;
  376. }
  377. /* ***************************************
  378. GENERAL MENU
  379. *************************************** */
  380. .elgg-menu-general > li,
  381. .elgg-menu-general > li > a {
  382. display: inline-block;
  383. color: #999;
  384. }
  385. .elgg-menu-general > li:after {
  386. content: "\007C";
  387. padding: 0 6px;
  388. }
  389. /* ***************************************
  390. ENTITY AND ANNOTATION
  391. *************************************** */
  392. <?php // height depends on line height/font size ?>
  393. .elgg-menu-entity, .elgg-menu-annotation {
  394. float: right;
  395. margin-left: 15px;
  396. font-size: 90%;
  397. color: #AAA;
  398. line-height: 16px;
  399. height: auto;
  400. }
  401. .elgg-menu-entity > li, .elgg-menu-annotation > li {
  402. margin-left: 15px;
  403. }
  404. .elgg-menu-entity > li > a, .elgg-menu-annotation > li > a {
  405. color: #AAA;
  406. }
  407. <?php // need to override .elgg-menu-hz ?>
  408. .elgg-menu-entity > li > a, .elgg-menu-annotation > li > a {
  409. display: block;
  410. }
  411. .elgg-menu-entity > li > span, .elgg-menu-annotation > li > span {
  412. vertical-align: baseline;
  413. }
  414. /* ***************************************
  415. OWNER BLOCK
  416. *************************************** */
  417. .elgg-menu-owner-block li a {
  418. display: block;
  419. margin: 3px 0 5px 0;
  420. padding: 2px 4px 2px 0;
  421. color: #444;
  422. }
  423. .elgg-menu-owner-block li a:hover {
  424. color: #999;
  425. }
  426. .elgg-menu-owner-block li.elgg-state-selected > a {
  427. color: #999;
  428. text-decoration: underline;
  429. }
  430. /* ***************************************
  431. LONGTEXT
  432. *************************************** */
  433. .elgg-menu-longtext {
  434. float: right;
  435. }
  436. /* ***************************************
  437. RIVER
  438. *************************************** */
  439. .elgg-menu-river {
  440. float: right;
  441. margin-left: 15px;
  442. font-size: 90%;
  443. color: #AAA;
  444. line-height: 16px;
  445. height: 16px;
  446. }
  447. .elgg-menu-river > li {
  448. display: inline-block;
  449. margin-left: 5px;
  450. }
  451. .elgg-menu-river > li > a {
  452. color: #AAA;
  453. height: 16px;
  454. }
  455. <?php // need to override .elgg-menu-hz ?>
  456. .elgg-menu-river > li > a {
  457. display: block;
  458. }
  459. .elgg-menu-river > li > span {
  460. vertical-align: baseline;
  461. }
  462. /* ***************************************
  463. SIDEBAR EXTRAS (rss, bookmark, etc)
  464. *************************************** */
  465. .elgg-menu-extras {
  466. margin-bottom: 15px;
  467. }
  468. .elgg-menu-extras li {
  469. padding-right: 5px;
  470. }
  471. /* ***************************************
  472. WIDGET MENU
  473. *************************************** */
  474. .elgg-menu-widget > li {
  475. position: absolute;
  476. top: 8px;
  477. display: inline-block;
  478. width: 18px;
  479. height: 18px;
  480. }
  481. .elgg-menu-widget > .elgg-menu-item-collapse {
  482. left: 10px;
  483. }
  484. .elgg-menu-widget > .elgg-menu-item-delete {
  485. right: 10px;
  486. }
  487. .elgg-menu-widget > .elgg-menu-item-settings {
  488. right: 32px;
  489. }