7c4f961fcfac9b2d19e8cdd01e064a10435ccd5e.svn-base 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512
  1. $heightBase: 11.6vh;
  2. $widthBase: 20%;
  3. $fontSizeNormal:.8vw;
  4. //所有div基础样式
  5. @mixin divBase {
  6. background: rgba(226,250,255,1);
  7. box-shadow: 0px 1px 10px 0px rgba(160, 170, 199, 0.15);
  8. border-radius: 2px;
  9. margin-top: 10px;
  10. &:first-child {
  11. margin-top: 0px;
  12. }
  13. }
  14. //保持暗色主题添加border后 div高度一致
  15. @mixin divBaseHeight ($divSelfHeight){
  16. [data-theme="dark"] & {
  17. height: $divSelfHeight * .99;
  18. }
  19. }
  20. //暗色主题 div透明背景
  21. @mixin divBase_dark{
  22. [data-theme="dark"] & {
  23. background:transparent;
  24. box-shadow: none;
  25. border: 1px solid rgba(54, 162, 252, 1);
  26. }
  27. }
  28. //暗色主题白色字体
  29. @mixin fontColor_dark{
  30. [data-theme="dark"] & {
  31. color:#fff;
  32. }
  33. }
  34. //暗色主题浅灰色字体
  35. @mixin fontColor_dark_gray{
  36. [data-theme="dark"] & {
  37. color:rgba(177, 210, 254, 1);
  38. }
  39. }
  40. //左上用户在线情况和bar的暗色无边框
  41. @mixin border_delete_dark{
  42. [data-theme="dark"] & {
  43. border:none;
  44. }
  45. }
  46. //右上问题个数统计暗色无图片加虚线底边框
  47. @mixin background_deletePic {
  48. [data-theme="dark"] & {
  49. background-image: none;
  50. border-bottom: 1px dashed rgba(255,255,255,0.5);
  51. }
  52. }
  53. //用户情况内部样式
  54. @mixin systemStatus ($backgroundColor) {
  55. float: left;
  56. width: 9.2vw;
  57. height: $heightBase * .83;
  58. background: $backgroundColor;
  59. border-radius: 6px;
  60. margin-top: 1vh;
  61. margin-left: .5vw;
  62. .icon {
  63. width: 40%;
  64. height: 100%;
  65. float: left;
  66. img {
  67. float: left;
  68. padding: 2.5vh 1vh;
  69. width: 5vh;
  70. }
  71. }
  72. .text {
  73. width: 60%;
  74. height: 100%;
  75. font-size: medium;
  76. float: left;
  77. color: #fff;
  78. div {
  79. margin: 2vh 0 .5vh 0;
  80. &:last-child {
  81. margin: 0;
  82. }
  83. }
  84. }
  85. }
  86. //!左右小div头部样式
  87. @mixin simpleHeader {
  88. .simple_header {
  89. height: $heightBase / 3;
  90. .simple_header_icon {
  91. background-color: rgba(46, 101, 253, 1);
  92. width: 4px;
  93. height: 2vh;
  94. border-radius: 4px;
  95. float: left;
  96. margin: .6vw;
  97. }
  98. .simple_header_text {
  99. float: left;
  100. color: rgba(49, 63, 102, 1);
  101. font-size: .9vw;
  102. padding: .5vw 0;
  103. font-weight: bold;
  104. @include fontColor_dark;
  105. }
  106. .simple_header_control {
  107. float: left;
  108. padding: .5vw 0;
  109. text-align: right;
  110. width: 14.6vw;
  111. }
  112. }
  113. }
  114. @mixin checked($boxShaDowDolor) {
  115. box-shadow: 0 0 10px $boxShaDowDolor;
  116. }
  117. @mixin bar ($image) {
  118. margin-left: .4vw;
  119. color: #fff;
  120. cursor: pointer;
  121. width: 11.1vw;
  122. height: 9.7vh;
  123. padding: 0vw;
  124. margin-top: 1vh;
  125. float: left;
  126. background: {
  127. image: url($image);
  128. repeat: no-repeat;
  129. size: 100% 100%;
  130. }
  131. .content {
  132. width: 70%;
  133. height: 100%;
  134. .content_top {
  135. padding: 2.2vh 1vh .8vh 1vh;
  136. span {
  137. margin-left: .4vw;
  138. font-size: .9vw;
  139. }
  140. }
  141. .content_bottom {
  142. .content_bottom_num {
  143. margin-left: 1vw;
  144. font-size: 1.5vw;
  145. }
  146. .content_bottom_dw {
  147. font-size: .8vw;
  148. }
  149. }
  150. }
  151. }
  152. //左侧div
  153. .left {
  154. width: $widthBase;
  155. float: left;
  156. //左侧div中的Systemstatus组件样式
  157. .left_user {
  158. @include divBase;
  159. @include divBase_dark;
  160. @include border_delete_dark;
  161. height: $heightBase;
  162. .left_user_left {
  163. @include systemStatus(rgba(105, 176, 255, 1));
  164. }
  165. .left_user_right {
  166. @include systemStatus(rgba(131, 172, 255, 1));
  167. }
  168. }
  169. //左侧div中的QuestionCount组件样式
  170. .left_qus {
  171. @include divBase;
  172. @include divBase_dark;
  173. height: $heightBase * 1.6;
  174. @include divBaseHeight (($heightBase * 1.6));
  175. .header {
  176. height: $heightBase / 3;
  177. background-image: url('/src/assets/img/wentidikuang.png');
  178. .header_icon {
  179. img {
  180. float: left;
  181. width: 1.5vw;
  182. padding: .1vw 0 0 .3vw;
  183. }
  184. }
  185. .header_text {
  186. float: left;
  187. color: #fff;
  188. font-size: .9vw;
  189. padding: .3vw 0;
  190. font-weight: bold;
  191. }
  192. }
  193. .content {
  194. text-align: center;
  195. .top_text {
  196. padding: 3vh 0;
  197. font-size: .9vw;
  198. color: rgba(86, 108, 146, .8);
  199. font-weight: bold;
  200. }
  201. .bottom_text {
  202. span {
  203. font-size: 1.1vw;
  204. color: rgba(254, 178, 58, 1);
  205. font-weight: bold;
  206. &:last-child {
  207. font-size: .8vw;
  208. color: rgba(86, 108, 146, 1)
  209. }
  210. }
  211. }
  212. }
  213. }
  214. //左侧div中的QuestionLineChart组件样式
  215. .left_qusLineChart {
  216. @include divBase;
  217. @include divBase_dark;
  218. height: $heightBase * 4.3;
  219. @include divBaseHeight (($heightBase* 4.3));
  220. @include simpleHeader;
  221. .left_PublicSentiment_content{
  222. height: $heightBase * 4.4;;
  223. }
  224. }
  225. //左侧div中的Notices组件样式
  226. .left_notices {
  227. @include divBase;
  228. @include divBase_dark;
  229. height: $heightBase * 2.2;
  230. @include divBaseHeight (($heightBase * 2.2));
  231. @include simpleHeader;
  232. .left_Notices_content {
  233. font-size: 12px;
  234. color: #606266;
  235. max-height: $heightBase * 1.75;
  236. overflow-y: auto;
  237. width: 100%;
  238. ul {
  239. // padding: 0;
  240. margin: 0;
  241. padding: 0 1vw;
  242. }
  243. li {
  244. margin: 0;
  245. height: 3.1vh;
  246. line-height: 3.1vh;
  247. list-style: none;
  248. border-bottom: 1px solid rgba(109, 118, 236, 0.2);
  249. a {
  250. color: #606266;
  251. text-decoration: none;
  252. @include fontColor_dark_gray;
  253. &:hover {
  254. color: #51afea;
  255. }
  256. }
  257. }
  258. span {
  259. float: right;
  260. @include fontColor_dark_gray;
  261. }
  262. }
  263. }
  264. }
  265. //中部div
  266. .middle {
  267. width: $widthBase * 2.94;
  268. float: left;
  269. margin-left: 10px;
  270. .middle_button {
  271. @include divBase;
  272. @include divBase_dark;
  273. @include border_delete_dark;
  274. height: $heightBase;
  275. span {
  276. // font-size: $fontSizeNormal;
  277. font-size: $fontSizeNormal;
  278. color: rgba(51, 51, 51, 1);
  279. @include fontColor_dark_gray;
  280. }
  281. .time {
  282. text-align: right;
  283. padding: 3vh 0;
  284. width: 25%;
  285. float: left;
  286. height: 100%;
  287. }
  288. .button {
  289. width: 100%;
  290. float: left;
  291. height: 100%;
  292. .dcz {
  293. @include bar('/src/assets/img/duchazu.png');
  294. }
  295. .dcz_checked {
  296. @include bar('/src/assets/img/duchazu.png');
  297. @include checked(#51afea);
  298. }
  299. .dcry {
  300. @include bar('/src/assets/img/ducharenyuan.png');
  301. }
  302. .dcry_checked {
  303. @include bar('/src/assets/img/ducharenyuan.png');
  304. @include checked(#ff9780);
  305. }
  306. .dcdx {
  307. @include bar('/src/assets/img/duchaduixiang.png');
  308. }
  309. .dcdx_checked {
  310. @include bar('/src/assets/img/duchaduixiang.png');
  311. @include checked(#76e9c0);
  312. }
  313. .fxwt {
  314. @include bar('/src/assets/img/faxianwenti.png');
  315. }
  316. .fxwt_checked {
  317. @include bar('/src/assets/img/faxianwenti.png');
  318. @include checked(#b87cf6);
  319. }
  320. .jbyywt {
  321. @include bar('/src/assets/img/specialQus.png');
  322. }
  323. }
  324. }
  325. .middle_map {
  326. @include divBase;
  327. @include divBase_dark;
  328. height: $heightBase * 4.9;
  329. span {
  330. // font-size: $fontSizeNormal;
  331. font-size: 12px;
  332. cursor: pointer;
  333. // color: rgba(51, 51, 51, 1);
  334. @include fontColor_dark_gray;
  335. }
  336. .time {
  337. text-align: right;
  338. padding: 0;
  339. width: 100%;
  340. float: right;
  341. height: 100%;
  342. }
  343. .superviseObject{
  344. margin-top: 2vh;
  345. font-size: 12px;
  346. height: ($heightBase * 2.93) - 50;
  347. overflow-y: auto;
  348. width: 100%;
  349. ul {
  350. padding: 0;
  351. margin: 0;
  352. li{
  353. cursor: pointer;
  354. // padding: 0 0vw;
  355. margin: 0;
  356. height: 3vh;
  357. line-height: 3vh;
  358. list-style: none;
  359. margin-top: 1vh;
  360. &:first-child{
  361. margin-top: 0
  362. }
  363. span{
  364. // background-color: transparent;
  365. }
  366. }
  367. }
  368. }
  369. }
  370. .middle_bar {
  371. @include divBase;
  372. @include divBase_dark;
  373. height: $heightBase * 1.6;
  374. @include simpleHeader;
  375. }
  376. }
  377. //右侧div
  378. .right {
  379. width: $widthBase;
  380. float: left;
  381. margin-left: 10px;
  382. .right_qus {
  383. @include divBase;
  384. @include divBase_dark;
  385. height: $heightBase;
  386. @include divBaseHeight (($heightBase));
  387. .header {
  388. height: $heightBase / 3;
  389. background-image: url('/src/assets/img/wentidikuang.png');
  390. @include background_deletePic;
  391. .header_icon {
  392. img {
  393. float: left;
  394. width: 1.5vw;
  395. padding: .1vw 0 0 .3vw;
  396. }
  397. }
  398. .header_text {
  399. float: left;
  400. color: #fff;
  401. font-size: .9vw;
  402. padding: .3vw 0;
  403. font-weight: bold;
  404. }
  405. }
  406. .content {
  407. text-align: center;
  408. .top_text {
  409. padding: .5vh 0;
  410. font-size: .9vw;
  411. color: rgba(86, 108, 146, .8);
  412. font-weight: bold;
  413. @include fontColor_dark_gray;
  414. }
  415. .bottom_text {
  416. span {
  417. font-size: 1.1vw;
  418. color: rgba(254, 178, 58, 1);
  419. font-weight: bold;
  420. &:last-child {
  421. font-size: .8vw;
  422. color: rgba(86, 108, 146, 1);
  423. @include fontColor_dark_gray;
  424. }
  425. }
  426. }
  427. }
  428. }
  429. //右侧div中的PublicSentiment组件样式
  430. .right_line {
  431. @include divBase;
  432. @include divBase_dark;
  433. height: $heightBase * 2;
  434. @include divBaseHeight (($heightBase * 2));
  435. @include simpleHeader;
  436. }
  437. //右侧div中的QuestionLineChart组件样式
  438. .right_pie_dcdx {
  439. @include divBase;
  440. @include divBase_dark;
  441. height: $heightBase * 2.2;
  442. @include divBaseHeight (($heightBase * 2.2));
  443. @include simpleHeader;
  444. }
  445. //右侧div中的QuestionLineChart组件样式
  446. .right_pie_wtfb {
  447. @include divBase;
  448. @include divBase_dark;
  449. height: $heightBase * 2.2;
  450. @include divBaseHeight (($heightBase * 2.2));
  451. @include simpleHeader;
  452. }
  453. }