index.scss 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. @import './variables.module.scss';
  2. @import './mixin.scss';
  3. @import './transition.scss';
  4. @import './element-ui.scss';
  5. @import './sidebar.scss';
  6. @import './btn.scss';
  7. @import './ruoyi.scss';
  8. @import './map.scss';
  9. @import 'animate.css';
  10. @import 'element-plus/dist/index.css';
  11. @font-face {
  12. font-family: "YouSheBiaoTiHei";
  13. src: url('../font/youshebiaotihei.ttf');
  14. font-weight: normal;
  15. font-style: normal;
  16. }
  17. @font-face {
  18. font-family: "BEBAS-1";
  19. src: url('../font/BEBAS-1.ttf');
  20. font-weight: normal;
  21. font-style: normal;
  22. }
  23. @font-face {
  24. font-family: "SourceHanSansCN";
  25. src: url('../font/SourceHanSansCN.ttf');
  26. font-weight: normal;
  27. font-style: normal;
  28. }
  29. body {
  30. height: 100%;
  31. margin: 0;
  32. -moz-osx-font-smoothing: grayscale;
  33. -webkit-font-smoothing: antialiased;
  34. text-rendering: optimizeLegibility;
  35. font-family:
  36. Helvetica Neue,
  37. Helvetica,
  38. PingFang SC,
  39. Hiragino Sans GB,
  40. Microsoft YaHei,
  41. Arial,
  42. sans-serif;
  43. }
  44. label {
  45. font-weight: 700;
  46. }
  47. html {
  48. height: 100%;
  49. box-sizing: border-box;
  50. }
  51. html.dark .svg-icon,
  52. html.dark svg {
  53. fill: var(--el-text-color-regular);
  54. }
  55. #app {
  56. height: 100%;
  57. }
  58. *,
  59. *:before,
  60. *:after {
  61. box-sizing: inherit;
  62. }
  63. .no-padding {
  64. padding: 0px !important;
  65. }
  66. .padding-content {
  67. padding: 4px 0;
  68. }
  69. a:focus,
  70. a:active {
  71. outline: none;
  72. }
  73. a,
  74. a:focus,
  75. a:hover {
  76. cursor: pointer;
  77. color: inherit;
  78. text-decoration: none;
  79. }
  80. div:focus {
  81. outline: none;
  82. }
  83. .fr {
  84. float: right;
  85. }
  86. .fl {
  87. float: left;
  88. }
  89. .pr-5 {
  90. padding-right: 5px;
  91. }
  92. .pl-5 {
  93. padding-left: 5px;
  94. }
  95. .block {
  96. display: block;
  97. }
  98. .pointer {
  99. cursor: pointer;
  100. }
  101. .inlineBlock {
  102. display: block;
  103. }
  104. .clearfix {
  105. &:after {
  106. visibility: hidden;
  107. display: block;
  108. font-size: 0;
  109. content: ' ';
  110. clear: both;
  111. height: 0;
  112. }
  113. }
  114. aside {
  115. background: #eef1f6;
  116. padding: 8px 24px;
  117. margin-bottom: 20px;
  118. border-radius: 2px;
  119. display: block;
  120. line-height: 32px;
  121. font-size: 16px;
  122. font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
  123. sans-serif;
  124. color: #2c3e50;
  125. -webkit-font-smoothing: antialiased;
  126. -moz-osx-font-smoothing: grayscale;
  127. a {
  128. color: #337ab7;
  129. cursor: pointer;
  130. &:hover {
  131. color: rgb(32, 160, 255);
  132. }
  133. }
  134. }
  135. //main-container全局样式
  136. .app-container {
  137. padding: 20px;
  138. }
  139. // search面板样式
  140. .panel,
  141. .search {
  142. margin-bottom: 0.75rem;
  143. border-radius: 0.25rem;
  144. border: 1px solid var(--el-border-color-light);
  145. background-color: var(--el-bg-color-overlay);
  146. padding: 0.75rem;
  147. transition: all ease 0.3s;
  148. &:hover {
  149. box-shadow: 0 2px 12px #0000001a;
  150. transition: all ease 0.3s;
  151. }
  152. }
  153. .components-container {
  154. margin: 30px 50px;
  155. position: relative;
  156. }
  157. .pagination-container {
  158. margin-top: 30px;
  159. }
  160. .text-center {
  161. text-align: center;
  162. }
  163. .sub-navbar {
  164. height: 50px;
  165. line-height: 50px;
  166. position: relative;
  167. width: 100%;
  168. text-align: right;
  169. padding-right: 20px;
  170. transition: 600ms ease position;
  171. background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);
  172. .subtitle {
  173. font-size: 20px;
  174. color: #fff;
  175. }
  176. &.draft {
  177. background: #d0d0d0;
  178. }
  179. &.deleted {
  180. background: #d0d0d0;
  181. }
  182. }
  183. .link-type,
  184. .link-type:focus {
  185. color: #337ab7;
  186. cursor: pointer;
  187. &:hover {
  188. color: rgb(32, 160, 255);
  189. }
  190. }
  191. .filter-container {
  192. padding-bottom: 10px;
  193. .filter-item {
  194. display: inline-block;
  195. vertical-align: middle;
  196. margin-bottom: 10px;
  197. }
  198. }
  199. .gradient-text {
  200. /* 设置字体透明 */
  201. color: transparent;
  202. /* 设置线性渐变,从红色渐变到蓝色 */
  203. background-image: linear-gradient(to bottom, #ffffff 30%, #edf7fe 50%, #5cc4fa 70%, #40a2e7 100%);
  204. /* 使用 -webkit-background-clip 属性将背景剪裁至文本形状 */
  205. -webkit-background-clip: text;
  206. /* 非Webkit内核浏览器需要使用标准前缀 */
  207. background-clip: text;
  208. /* 把当前元素设置为行内块,以便能够应用背景 */
  209. display: inline-block;
  210. font-family: 'YouSheBiaoTiHei';
  211. }
  212. .gradient-text2 {
  213. /* 设置字体透明 */
  214. color: transparent;
  215. /* 设置线性渐变,从红色渐变到蓝色 */
  216. background-image: linear-gradient(to bottom, #fff 50%, #5CC4FA 70%, #40A2E7 100%);
  217. /* 使用 -webkit-background-clip 属性将背景剪裁至文本形状 */
  218. -webkit-background-clip: text;
  219. /* 非Webkit内核浏览器需要使用标准前缀 */
  220. background-clip: text;
  221. /* 把当前元素设置为行内块,以便能够应用背景 */
  222. display: inline-block;
  223. font-family: 'YouSheBiaoTiHei';
  224. }
  225. ::-webkit-scrollbar-thumb {
  226. background-color: #227dfe !important;
  227. }
  228. ::-webkit-scrollbar-track {
  229. background-color: transparent !important;
  230. }
  231. .common-btn-primary {
  232. width: 300px;
  233. height: 120px;
  234. background: url('@/assets/images/common/btnPrimary.png') no-repeat;
  235. background-size: 100% 100%;
  236. color: #ffffff;
  237. display: flex;
  238. justify-content: center;
  239. align-items: center;
  240. cursor: pointer;
  241. font-size: 38px;
  242. margin-top: -32px;
  243. }
  244. .common-btn-danger{
  245. width: 188px;
  246. height: 56px;
  247. background: url('@/assets/images/common/btnDanger.png') no-repeat;
  248. background-size: 100% 100%;
  249. color: #ffffff;
  250. display: flex;
  251. justify-content: center;
  252. align-items: center;
  253. cursor: pointer;
  254. font-size: 38px;
  255. }
  256. .common-btn {
  257. width: 140px;
  258. height: 56px;
  259. background: url('@/assets/images/common/btn.png') no-repeat;
  260. background-size: 100% 100%;
  261. color: #ffffff;
  262. display: flex;
  263. justify-content: center;
  264. align-items: center;
  265. cursor: pointer;
  266. font-size: 38px;
  267. }
  268. .common-table {
  269. margin-left: 28px;
  270. .table-header {
  271. width: 100%;
  272. background: url('@/assets/images/map/rightMenu/rainMonitor/header.png') no-repeat;
  273. background-size: 100% 100%;
  274. display: flex;
  275. align-items: center;
  276. padding: 0 10px;
  277. .td-cursor {
  278. cursor: pointer;
  279. }
  280. }
  281. .tr {
  282. width: 100%;
  283. background: url('@/assets/images/map/rightMenu/rainMonitor/tr.png') no-repeat;
  284. background-size: 100% 100%;
  285. display: flex;
  286. align-items: center;
  287. margin-top: 10px;
  288. padding: 22.26px 10px;
  289. .td {
  290. //white-space: nowrap;
  291. //overflow: hidden;
  292. //text-overflow: ellipsis;
  293. }
  294. }
  295. .td {
  296. font-size: 38px;
  297. color: #edfaff;
  298. display: flex;
  299. justify-content: center;
  300. align-items: center;
  301. flex: 1;
  302. }
  303. .down-icon {
  304. display: inline-block;
  305. width: 33px;
  306. height: 15px;
  307. background: url('@/assets/images/map/rightMenu/rainMonitor/down.png') no-repeat;
  308. cursor: pointer;
  309. margin-left: 8px;
  310. }
  311. .asc-icon {
  312. display: inline-block;
  313. width: 33px;
  314. height: 33px;
  315. background: url('@/assets/images/map/rightMenu/rainMonitor/asc.png') no-repeat;
  316. cursor: pointer;
  317. margin-left: 8px;
  318. }
  319. .desc-icon {
  320. display: inline-block;
  321. width: 33px;
  322. height: 33px;
  323. background: url('@/assets/images/map/rightMenu/rainMonitor/desc.png') no-repeat;
  324. cursor: pointer;
  325. margin-left: 8px;
  326. }
  327. }