dcat-app.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. // ================================================================================================
  2. // File Name: dcat-bootstrap.scss
  3. // Description: Dcat Admin应用样式
  4. // ----------------------------------------------------------------------------------------------
  5. // Item name: Dcat Admin
  6. // Author: Jqh
  7. // Author URL: https://github.com/jqhph
  8. // ================================================================================================
  9. @import "../../sass/core/variables/variables";
  10. @import "./variables";
  11. // 进度条
  12. @import "./nprogress/NProgress";
  13. // sweetalert弹窗
  14. @import "./sweetalert/sweetalert2";
  15. html body {
  16. background-color: $body-background;
  17. color: $font-color;
  18. }
  19. // 字体
  20. body, .header-navbar, .navigation, .breadcrumb, h1, h2, h3, h4, h5 {
  21. font-family: Nunito, Montserrat,system-ui,BlinkMacSystemFont,-apple-system,sans-serif;
  22. }
  23. body.vertical-layout.vertical-menu-modern.menu-expanded .main-menu .navigation > li > a > i:before {
  24. font-size: 1.3rem;
  25. }
  26. // 顶部导航栏
  27. .header-navbar.navbar-shadow {
  28. box-shadow: $shadow;
  29. }
  30. // 菜单
  31. .main-menu.menu-shadow {
  32. box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.05);
  33. }
  34. // 面包屑导航
  35. .breadcrumb {
  36. border-left: 0;
  37. }
  38. // 页面标题
  39. .content-header h1 {
  40. font-weight: 400;
  41. font-size: 24px;
  42. display: inline-block;
  43. font-family: Montserrat,Nunito,sans-serif;
  44. small {
  45. font-size: 15px;
  46. display: inline-block;
  47. padding-left: 5px;
  48. font-weight: 300;
  49. }
  50. }
  51. // code
  52. code {
  53. box-shadow: 0 1px 1px rgba(0,0,0,0.125);
  54. padding: 3px 5px;
  55. background: #f1f1f1;
  56. }
  57. pre {
  58. padding: 7px;
  59. }
  60. // 分页
  61. .pagination .page-item .page-link {
  62. font-weight: 600;
  63. }
  64. // data-list-view 表格
  65. table.data-list-view.dataTable tbody tr, table.data-thumb-view.dataTable tbody tr {
  66. box-shadow: $shadow;
  67. }
  68. table.data-list-view.dataTable thead th:first-child, table.data-thumb-view.dataTable thead th:first-child {
  69. padding-left: 1rem;
  70. }
  71. table.data-list-view.dataTable, table.data-thumb-view.dataTable {
  72. border-spacing: 0 .95rem;
  73. padding: 0;
  74. }
  75. table.data-list-view.dataTable tbody tr:hover, table.data-thumb-view.dataTable tbody tr:hover {
  76. transform: none;
  77. background: $dark20;
  78. }
  79. // 按钮
  80. .btn {
  81. padding: 0.9rem 1.4rem;
  82. /* font-size: 1rem; */
  83. line-height: .8;
  84. border-radius: 0.4rem;
  85. }
  86. .btn-sm, .btn-group-sm > .btn {
  87. padding: 0.5rem 1rem;
  88. font-size: 0.7rem;
  89. line-height: 1.4;
  90. }
  91. // 表格头
  92. .grid-column-header {
  93. a {
  94. color: $dark70;
  95. }
  96. a:hover, a.active {
  97. color: $primary-darker;
  98. }
  99. }
  100. // 排序图标
  101. .grid-sort {
  102. display: inline-block;
  103. margin: -4px -4px 0 3px;
  104. height: 17px;
  105. .up:before {
  106. font-family: "feather";
  107. padding-right: 0.3rem;
  108. font-size: 0.7rem;
  109. content: "\E845";
  110. }
  111. .down {
  112. margin: 6px 0 0 -1.17rem;
  113. }
  114. .down:after {
  115. font-family: "feather";
  116. content: "\E842";
  117. font-size: 0.7rem;
  118. }
  119. }
  120. // 下拉菜单
  121. .dropdown .dropdown-menu {
  122. box-shadow: $shadow;
  123. border: 1px solid rgba(0, 0, 0, 0.03)
  124. }
  125. .dropdown .dropdown-menu::before {
  126. border-top: 1px solid rgba(0, 0, 0, 0.07);
  127. border-left: 1px solid rgba(0, 0, 0, 0.07);
  128. }
  129. // checkbox
  130. .vs-checkbox-con {
  131. margin: 0;
  132. }
  133. .vs-checkbox-con .vs-checkbox.vs-checkbox-sm {
  134. width: 18px;
  135. height: 18px;
  136. }
  137. .vs-checkbox-con input:checked ~ .vs-checkbox.vs-checkbox-sm .vs-checkbox--check .vs-icon {
  138. font-size: 1rem;
  139. margin-top: -1px;
  140. }