global-alarm-push.scss 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. $color: #c0c4cc;
  2. $bgColor: #232526;
  3. .layout {
  4. .global_alarm_push {
  5. /* 滚动条样式 */
  6. ::-webkit-scrollbar {
  7. width: 1px;
  8. }
  9. ::-webkit-scrollbar-thumb {
  10. background-color: #303133;
  11. border-radius: 3px;
  12. }
  13. }
  14. #global_alarm_push {
  15. display: none;
  16. text-align: left;
  17. color: $color;
  18. position: relative;
  19. .close_btn {
  20. position: absolute;
  21. color: $color;
  22. text-align: center;
  23. height: 25px;
  24. line-height: 25px;
  25. font-size: 20px;
  26. width: 100%;
  27. border-bottom: 1px solid $color;
  28. display: flex;
  29. .close_layer {
  30. flex: 3;
  31. cursor: pointer;
  32. }
  33. .move_layer {
  34. flex: 1;
  35. border-right: 1px solid #606266;
  36. }
  37. }
  38. .main_box {
  39. position: absolute;
  40. flex: 1;
  41. top: 25px;
  42. height: 570px;
  43. max-height: 570px;
  44. padding: 0 3px;
  45. overflow-y: auto;
  46. .alarm_content {
  47. padding: 5px;
  48. margin: 5px 0;
  49. border-radius: 3px;
  50. border: 1px solid rgba(96, 98, 102, 0.5);
  51. box-shadow: 0 2px 12px 0 rgba(255, 255, 255, 0.1);
  52. position: relative;
  53. .alarm_count {
  54. position: absolute;
  55. top: 3px;
  56. right: 3px;
  57. /deep/ .el-badge__content{
  58. background-color: red;
  59. }
  60. }
  61. p {
  62. margin: 4px 0;
  63. color: #909399;
  64. b {
  65. color: $color;
  66. }
  67. .suojin {
  68. text-indent: 10px;
  69. }
  70. .el-link {
  71. padding-bottom: 4px;
  72. }
  73. }
  74. }
  75. .alarm_content:hover {
  76. border: 1px solid #606266;
  77. box-shadow: 0 2px 12px 0 rgba(255, 255, 255, 0.5);
  78. }
  79. }
  80. }
  81. .open_layer {
  82. position: fixed;
  83. color: red;
  84. font-size: 20px;
  85. bottom: 45%;
  86. z-index: 9999999;
  87. right: 2px;
  88. border: 1px solid #606266;
  89. border-right: none;
  90. border-radius: 3px;
  91. color: $color;
  92. background-color: #232526;
  93. height: 30px;
  94. width: 50px;
  95. line-height: 30px;
  96. cursor: pointer;
  97. }
  98. /deep/ .layui-layer {
  99. border-radius: 8px 8px 3px 3px;
  100. background-color: $bgColor !important;
  101. }
  102. // title
  103. /deep/ .layui-layer .layui-layer-title {
  104. height: 55px;
  105. line-height: 55px;
  106. font-size: 18px;
  107. background-color: transparent;
  108. color: $color;
  109. border-bottom: none;
  110. padding: 0;
  111. }
  112. }