top.scss 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. $height:64px;
  2. .avue-top {
  3. padding: 0 20px;
  4. position: relative;
  5. box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.15);
  6. color: rgba(0, 0, 0, .65);
  7. font-size: 28px;
  8. height: $height;
  9. line-height: $height;
  10. box-sizing: border-box;
  11. white-space: nowrap;
  12. .el-menu-item{
  13. i,span{
  14. font-size: 13px;
  15. }
  16. }
  17. .el-menu--horizontal>.el-menu-item {
  18. height: $height;
  19. line-height: $height;
  20. }
  21. }
  22. .avue-breadcrumb {
  23. height: 100%;
  24. i{
  25. font-size: 24px !important;
  26. }
  27. &--active {
  28. transform:rotate(90deg);
  29. }
  30. }
  31. .top-menu {
  32. box-sizing: border-box;
  33. .el-menu-item {
  34. padding: 0 10px;
  35. border:none !important;
  36. }
  37. }
  38. .top-search {
  39. line-height: $height;
  40. position: absolute !important;
  41. left: 20px;
  42. top:0;
  43. width: 400px !important;
  44. .el-input__inner {
  45. font-size: 13px;
  46. border: none;
  47. background-color: transparent;
  48. }
  49. }
  50. .top-bar__img {
  51. margin: 0 2px 0 5px;
  52. padding: 2px;
  53. width: 28px;
  54. height: 28px;
  55. border-radius: 100%;
  56. box-sizing: border-box;
  57. border: 1px solid #eee;
  58. vertical-align: middle;
  59. }
  60. .top-bar__left,
  61. .top-bar__right {
  62. height: $height;
  63. position: absolute;
  64. top: 4px;
  65. i{
  66. line-height: $height;
  67. }
  68. }
  69. .top-bar__left {
  70. left: 20px;
  71. }
  72. .top-bar__right {
  73. right: 20px;
  74. display: flex;
  75. align-items: center;
  76. }
  77. .top-bar__item {
  78. position: relative;
  79. display: inline-block;
  80. height: $height;
  81. margin:0 10px;
  82. font-size: 16px;
  83. &--show {
  84. display: inline-block !important;
  85. }
  86. .el-badge__content.is-fixed{
  87. top:12px;
  88. right: 5px;
  89. }
  90. }
  91. .top-bar__title {
  92. height: 100%;
  93. padding:0 40px;
  94. box-sizing: border-box;
  95. overflow: hidden;
  96. text-overflow: ellipsis;
  97. white-space: nowrap;
  98. font-size: inherit;
  99. font-weight: 400;
  100. }