navigation.php 10.0 KB

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