main.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. /* ==========================================================================
  2. Author's custom styles
  3. ========================================================================== */
  4. a.nav-expander {
  5. background: none repeat scroll 0 0 #000000;
  6. color: #FFFFFF;
  7. display: block;
  8. font-size: 15px;
  9. font-weight: 400;
  10. height: 50px;
  11. margin-right: 0;
  12. padding: 1em 1.6em 2em;
  13. position: absolute;
  14. right: 0;
  15. text-decoration: none;
  16. text-transform: uppercase;
  17. top: 0;
  18. transition: right 0.3s ease-in-out 0s;
  19. width: 130px;
  20. z-index: 12;
  21. transition: right 0.3s ease-in-out 0s;
  22. -webkit-transition: right 0.3s ease-in-out 0s;
  23. -moz-transition: right 0.3s ease-in-out 0s;
  24. -o-transition: right 0.3s ease-in-out 0s;
  25. }
  26. a.nav-expander:hover {
  27. cursor: pointer;
  28. }
  29. a.nav-expander.fixed {
  30. position: fixed;
  31. }
  32. .nav-expanded a.nav-expander.fixed {
  33. right: 20em;
  34. }
  35. nav {
  36. background: #2d2f33;
  37. display: block;
  38. height: 100%;
  39. overflow: auto;
  40. position: fixed;
  41. right: -20em;
  42. font-size: 15px;
  43. top: 0;
  44. width: 20em;
  45. z-index: 2000;
  46. transition: right 0.3s ease-in-out 0s;
  47. -webkit-transition: right 0.3s ease-in-out 0s;
  48. -moz-transition: right 0.3s ease-in-out 0s;
  49. -o-transition: right 0.3s ease-in-out 0s;
  50. }
  51. .nav-expanded nav {
  52. right: 0;
  53. }
  54. body.nav-expanded {
  55. margin-left: 0em;
  56. transition: right 0.4s ease-in-out 0s;
  57. -webkit-transition: right 0.4s ease-in-out 0s;
  58. -moz-transition: right 0.4s ease-in-out 0s;
  59. -o-transition: right 0.4s ease-in-out 0s;
  60. }
  61. #nav-close {
  62. font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
  63. font-weight: 300;
  64. font-size: 24px;
  65. padding-right: 10px;
  66. }
  67. .main-menu {
  68. padding-top: 12px;
  69. }
  70. .main-menu li {
  71. border-bottom: 1px solid #323949;
  72. margin-left: 20px;
  73. font-size: 18px;
  74. padding: 12px;
  75. }
  76. .main-menu li a {
  77. color: #6F7D8C;
  78. text-decoration: none;
  79. }
  80. .main-menu li a:hover {
  81. color: #FFFFFF;
  82. text-decoration: none;
  83. }
  84. .main-menu li .sub-nav {
  85. border-bottom: 0px;
  86. padding: 4px;
  87. }
  88. .main-menu a .caret {
  89. width: 0;
  90. height: 0;
  91. display: inline-block;
  92. vertical-align: top;
  93. border-top: 4px solid #4f5963;
  94. border-right: 4px solid transparent;
  95. border-left: 4px solid transparent;
  96. content: "";
  97. margin-top: 8px;
  98. }
  99. .main-menu a:hover .caret {
  100. border-top-color: #4f5963;
  101. }
  102. .main-menu li.open > a > .caret {
  103. border-top: none;
  104. border-bottom: 4px solid #4f5963;
  105. border-right: 4px solid transparent;
  106. border-left: 4px solid transparent;
  107. }
  108. .main-menu li.open > a:hover > .caret {
  109. border-bottom-color: #4f5963;
  110. }
  111. .icon:before {
  112. font-family: 'FontAwesome';
  113. font-style: normal;
  114. font-variant: normal;
  115. font-weight: normal;
  116. line-height: 1;
  117. text-transform: none;
  118. content: '\f105';
  119. }
  120. .main-menu li > a > span.icon {
  121. float: right;
  122. margin: 0.1em 1.7em -0.1em 0;
  123. opacity: 0;
  124. -webkit-transition: all 0.2s ease-in-out;
  125. -moz-transition: all 0.2s ease-in-out;
  126. -o-transition: all 0.2s ease-in-out;
  127. transition: all 0.2s ease-in-out;
  128. }
  129. .main-menu li > a:hover > span.icon {
  130. float: right;
  131. margin: 0.1em 0.8em -0.1em 0;
  132. opacity: 1;
  133. }