menu.css 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. /* Menu */
  2. body > nav > ul:nth-child(2) li p.normal,
  3. body > nav > ul:nth-child(3) li p.normal {
  4. height: 6rem;
  5. line-height: 6.25rem;
  6. }
  7. body > nav > ul.list li > .primary ~ :not(.primary):not(.counter):not(.bubble):not(.control) {
  8. padding-left: 7rem;
  9. }
  10. body > nav > ul.list li > .primary {
  11. left: 0.5rem;
  12. }
  13. body > nav > ul.list li > .primary.bubble {
  14. left: 1rem;
  15. }
  16. body > nav.color.dark > ul a {
  17. color: white;
  18. }
  19. body > nav > ul.list li > p:nth-last-of-type(2) + p {
  20. color: gray;
  21. }
  22. body > nav > ul.list.active li:hover:not(.subheader),
  23. body > nav > ul.list.active li.active:not(.subheader) {
  24. background-color: rgba(255, 255, 255, 0.035);
  25. }
  26. ul.oppose {
  27. position: absolute;
  28. bottom: 0;
  29. left: 0;
  30. width: 100%;
  31. min-width: 10rem;
  32. }
  33. @media screen and (max-height: 500px) {
  34. ul.oppose {
  35. bottom: initial;
  36. }
  37. }
  38. /* Navigation */
  39. ul.navigation {
  40. display:flex;
  41. justify-content:center;
  42. }
  43. body > nav > ul.list.active li:not(.active) span.primary,
  44. ul.navigation li > span.primary {
  45. opacity: 0.5;
  46. }
  47. ul.navigation li {
  48. text-align: center;
  49. flex: 1;
  50. padding: 0.75rem;
  51. position: relative;
  52. }
  53. ul.navigation li:hover {
  54. background-color: rgba(0, 0, 0, 0.1);
  55. cursor: pointer;
  56. }
  57. ul.navigation li.active > span.primary,
  58. ul.navigation li:hover > span.primary {
  59. opacity: 1;
  60. }
  61. ul.navigation li > span.primary {
  62. line-height: 3.5rem;
  63. }
  64. ul.navigation li > p {
  65. display: block;
  66. list-style-type: none;
  67. font-size: 1.5rem;
  68. }
  69. ul.navigation li > span.counter {
  70. right: calc(50% - 3rem);
  71. font-size: 1.5rem;
  72. line-height: 1.5rem;
  73. min-width: 1.5rem;
  74. }