A React interface for Ampache player.

Sidebar.scss 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. $background: #333;
  2. $hoverBackground: #222;
  3. $activeBackground: $hoverBackground;
  4. $foreground: white;
  5. $lightgrey: #eee;
  6. .sidebar {
  7. position: fixed;
  8. top: 0;
  9. bottom: 0;
  10. left: 0;
  11. z-index: 1000;
  12. display: block;
  13. padding: 20px;
  14. overflow-x: hidden;
  15. overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
  16. background-color: $background;
  17. color: white;
  18. border-right: 1px solid $lightgrey;
  19. }
  20. /* Sidebar elements */
  21. .link {
  22. color: $foreground;
  23. text-decoration: none;
  24. }
  25. .link:hover {
  26. color: $foreground;
  27. background-color: $hoverBackground !important;
  28. }
  29. .link:focus {
  30. color: $foreground;
  31. background-color: transparent !important;
  32. }
  33. .active {
  34. composes: link;
  35. background-color: $activeBackground !important;
  36. }
  37. .active:focus {
  38. background-color: $activeBackground !important;
  39. }
  40. .title {
  41. margin: 0;
  42. margin-bottom: 20px;
  43. font-size: 26px;
  44. }
  45. .imgTitle {
  46. height: 36px;
  47. }
  48. /* Sidebar navigation */
  49. .icon-navbar {
  50. background-color: #555;
  51. font-size: 1.2em;
  52. border: none;
  53. .container-fluid {
  54. padding-left: 0;
  55. padding-right: 0;
  56. }
  57. .nav {
  58. display: inline-block;
  59. float: none;
  60. vertical-align: top;
  61. text-align: center;
  62. li {
  63. float: left;
  64. }
  65. }
  66. }
  67. /*
  68. * Main content
  69. */
  70. .main-panel {
  71. padding: 20px;
  72. }
  73. /*
  74. * Media queries
  75. */
  76. @media (min-width: 992px) and (max-width: 1199px) {
  77. .icon-navbar {
  78. .nav {
  79. li {
  80. float: none;
  81. }
  82. }
  83. }
  84. .nav-list {
  85. text-align: right;
  86. }
  87. .nav {
  88. li {
  89. a {
  90. padding-left: 5px;
  91. padding-right: 5px;
  92. }
  93. }
  94. }
  95. }
  96. @media (max-width: 991px) {
  97. .sidebar {
  98. position: static;
  99. }
  100. }