component.css 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. /* General styles for all menus */
  2. .cbp-spmenu {
  3. background: #47a3da;
  4. position: fixed;
  5. }
  6. .cbp-spmenu h3 {
  7. color: #afdefa;
  8. font-size: 1.9em;
  9. padding: 20px;
  10. margin: 0;
  11. font-weight: 300;
  12. background: #0d77b6;
  13. }
  14. /*.cbp-spmenu a {*/
  15. /* display: block;*/
  16. /* color: #fff;*/
  17. /* font-size: 1.1em;*/
  18. /* font-weight: 300;*/
  19. /*}*/
  20. /*.cbp-spmenu a:hover {*/
  21. /* background: #258ecd;*/
  22. /*}*/
  23. /*.cbp-spmenu a:active {*/
  24. /* background: #afdefa;*/
  25. /* color: #47a3da;*/
  26. /*}*/
  27. /* Orientation-dependent styles for the content of the menu */
  28. .cbp-spmenu-vertical {
  29. width: 300px;
  30. height: 100%;
  31. top: 0;
  32. z-index: 1000;
  33. }
  34. .cbp-spmenu-vertical a {
  35. border-bottom: 1px solid #258ecd;
  36. padding: 1em;
  37. }
  38. .cbp-spmenu-horizontal {
  39. width: 100%;
  40. height: 150px;
  41. left: 0;
  42. z-index: 1000;
  43. overflow: hidden;
  44. }
  45. /*.cbp-spmenu-horizontal h3 {*/
  46. /* height: 100%;*/
  47. /* width: 20%;*/
  48. /* float: left;*/
  49. /*}*/
  50. /*.cbp-spmenu-horizontal a {*/
  51. /* float: left;*/
  52. /* width: 20%;*/
  53. /* padding: 0.8em;*/
  54. /* border-left: 1px solid #258ecd;*/
  55. /*}*/
  56. /* Vertical menu that slides from the left or right */
  57. .cbp-spmenu-left {
  58. left: -300px;
  59. }
  60. .cbp-spmenu-right {
  61. right: -300px;
  62. }
  63. .cbp-spmenu-left.cbp-spmenu-open {
  64. left: 0px;
  65. }
  66. .cbp-spmenu-right.cbp-spmenu-open {
  67. right: 0px;
  68. }
  69. /* Horizontal menu that slides from the top or bottom */
  70. .cbp-spmenu-top {
  71. top: -150px;
  72. }
  73. .cbp-spmenu-bottom {
  74. bottom: -150px;
  75. }
  76. .cbp-spmenu-top.cbp-spmenu-open {
  77. top: 0px;
  78. }
  79. .cbp-spmenu-bottom.cbp-spmenu-open {
  80. bottom: 0px;
  81. }
  82. /* Push classes applied to the body */
  83. .cbp-spmenu-push {
  84. overflow-x: hidden;
  85. position: relative;
  86. left: 0;
  87. }
  88. .cbp-spmenu-push-toright {
  89. left: 240px;
  90. }
  91. .cbp-spmenu-push-toleft {
  92. left: -240px;
  93. }
  94. /* Transitions */
  95. .cbp-spmenu,
  96. .cbp-spmenu-push {
  97. -webkit-transition: all 0.3s ease;
  98. -moz-transition: all 0.3s ease;
  99. transition: all 0.3s ease;
  100. }
  101. /* Example media queries */
  102. @media screen and (max-width: 55.1875em){
  103. .cbp-spmenu-horizontal {
  104. font-size: 75%;
  105. height: 110px;
  106. }
  107. .cbp-spmenu-top {
  108. top: -110px;
  109. }
  110. .cbp-spmenu-bottom {
  111. bottom: -110px;
  112. }
  113. }
  114. @media screen and (max-height: 26.375em){
  115. .cbp-spmenu-vertical {
  116. font-size: 90%;
  117. width: 190px;
  118. }
  119. .cbp-spmenu-left,
  120. .cbp-spmenu-push-toleft {
  121. left: -190px;
  122. }
  123. .cbp-spmenu-right {
  124. right: -190px;
  125. }
  126. .cbp-spmenu-push-toright {
  127. left: 190px;
  128. }
  129. }