main-menu.component.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. @import "../../assets/scss/themes";
  2. @import "../../assets/scss/variables";
  3. @import "../../assets/scss/mixins";
  4. .mainMenu {
  5. position: absolute;
  6. text-align: left;
  7. background-color: white;
  8. padding: 9px 0px;
  9. z-index: 9999;
  10. max-width: 340px;
  11. overflow: hidden;
  12. border-radius: 3px;
  13. top: $base-header-height;
  14. right: 4px;
  15. @include set("box-shadow", "0 2px 5px 0 rgba(0,0,0,0.26), 0 2px 10px 0 rgba(0,0,0,0.16)");
  16. ul {
  17. margin: 0;
  18. list-style: none;
  19. padding: 0;
  20. color: #4b4b4b;
  21. li {
  22. > span {
  23. color: #444444;
  24. font-size: 1.1rem;
  25. height: 40px;
  26. padding: 6.5px 20px 0 20px;
  27. display: block;
  28. box-sizing: border-box;
  29. white-space: nowrap;
  30. cursor: pointer;
  31. &.no-action {
  32. cursor: default;
  33. }
  34. }
  35. &:hover {
  36. background-color: #f4f5f5;
  37. cursor: pointer;
  38. }
  39. &.inactive * {
  40. background-color: #f5f5f5;
  41. color: #ccc;
  42. cursor: default;
  43. }
  44. }
  45. }
  46. img.flag, .theme-item {
  47. height: 20px;
  48. width: 20px;
  49. border-radius: 100px;
  50. border: 1px solid #4E443C;
  51. display: inline-block;
  52. margin: 0px 4px;
  53. position: relative;
  54. cursor: pointer;
  55. opacity: .5;
  56. vertical-align: middle;
  57. &.active {
  58. cursor: default;
  59. opacity: 1;
  60. }
  61. &:hover {
  62. opacity: 1;
  63. }
  64. }
  65. .theme-item {
  66. @include themifySelf($themes) {
  67. background: themed('baseColorDark');
  68. }
  69. }
  70. }
  71. ::ng-deep .mainMenu {
  72. .icon {
  73. margin-right: 14px;
  74. min-width: 20px;
  75. float: left;
  76. }
  77. }