1.全局配置

src/css/app.css

  1. // app global css in SCSS form
  2. @import "src/css/restcss.css";
  3. :root {
  4. color: #fff;
  5. background-color: #001b41;
  6. }
  7. $scadaMaxHeight: 288px;
  8. $scadaMinHeight: 188px;
  9. $scadaHeadBorderBottom: 15px;
  10. $scadaHeadBorderColor: #f0f3f5;
  11. $scadaBackColor: #001b41;
  12. @mixin whiteNowrap() {
  13. white-space: nowrap;
  14. text-overflow: ellipsis;
  15. overflow: hidden;
  16. }
  17. @mixin flexDirection($dir: column) {
  18. display: flex;
  19. flex-direction: $dir;
  20. }
  21. @mixin flexLayout($justify: center, $align: center) {
  22. justify-content: $justify;
  23. align-items: $align;
  24. }
  25. @mixin scadaBorder($width: 15px, $style: solid, $color: #f0f3f5) {
  26. border: $width $style $color;
  27. }
  28. @mixin scadaBorderTop($width: 15px, $style: solid, $color: #f0f3f5) {
  29. border-bottom: $width $style $color;
  30. }
  31. @mixin scadaBorderRight($width: 15px, $style: solid, $color: #f0f3f5) {
  32. border-right: $width $style $color;
  33. }
  34. @mixin scadaBorderBottom($width: 15px, $style: solid, $color: #f0f3f5) {
  35. border-bottom: $width $style $color;
  36. }
  37. @mixin scadaBorderLeft($width: 15px, $style: solid, $color: #f0f3f5) {
  38. border-left: $width $style $color;
  39. }