4d0632ddbffe1307c4448dd531dd2bcc50af0304.svn-base 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429
  1. $heightBase: 11.5vh ;
  2. $widthBase: 20% ;
  3. $fontSizeNormal:.8vw ;
  4. //所有div基础样式
  5. @mixin divBase {
  6. background: rgba(255, 255, 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. //用户情况内部样式
  15. @mixin systemStatus ($backgroundColor) {
  16. float: left;
  17. width: 9.1vw;
  18. height: $heightBase * .8;
  19. background: $backgroundColor;
  20. border-radius: 6px;
  21. margin-top: 1vh;
  22. margin-left: .5vw;
  23. .icon {
  24. width: 35%;
  25. height: 100%;
  26. float: left;
  27. img {
  28. float: left;
  29. padding: 2.5vh 1vh;
  30. width: 3.5vh;
  31. }
  32. }
  33. .text {
  34. width: 65%;
  35. height: 100%;
  36. font-size: medium;
  37. float: left;
  38. color: #fff;
  39. div {
  40. margin: 1vh 0 .5vh 0;
  41. &:last-child {
  42. margin: 0;
  43. }
  44. }
  45. }
  46. }
  47. //!左右小div头部样式
  48. @mixin simpleHeader {
  49. .simple_header {
  50. height: $heightBase / 3;
  51. .simple_header_icon {
  52. background-color: rgba(46, 101, 253, 1);
  53. width: 4px;
  54. height: 2vh;
  55. border-radius: 4px;
  56. float: left;
  57. margin: .6vw;
  58. }
  59. .simple_header_text {
  60. float: left;
  61. color: rgba(49, 63, 102, 1);
  62. font-size: .9vw;
  63. padding: .5vw 0;
  64. font-weight: bold;
  65. }
  66. .simple_header_control {
  67. float: left;
  68. padding: 0;
  69. text-align: right;
  70. width: 12.6vw;
  71. }
  72. }
  73. }
  74. @mixin checked($boxShaDowDolor) {
  75. box-shadow: 0 0 10px $boxShaDowDolor;
  76. }
  77. @mixin bar ($image) {
  78. margin-left: .6vw;
  79. color: #fff;
  80. cursor: pointer;
  81. width: 9.3vw;
  82. height: 10.3vh;
  83. padding: 0vw;
  84. margin-top: .5vh;
  85. float: left;
  86. background: {
  87. image: url($image);
  88. repeat: no-repeat;
  89. size: contain;
  90. }
  91. .content {
  92. width: 100%;
  93. height: 100%;
  94. .content_top {
  95. padding: 1vh 1vh 0vh 1vh;
  96. span {
  97. margin-left: .4vw;
  98. font-size: 1.5vw;
  99. }
  100. }
  101. .content_bottom {
  102. .content_bottom_num {
  103. margin-left: 1vw;
  104. font-size:2vw;
  105. }
  106. .content_bottom_dw {
  107. font-size: .9vw;
  108. }
  109. }
  110. }
  111. }
  112. //左侧div
  113. .left {
  114. //左侧div中的Systemstatus组件样式
  115. .left_user {
  116. @include divBase;
  117. height: $heightBase;
  118. .left_user_left {
  119. @include systemStatus(rgba(105, 176, 255, 1));
  120. }
  121. .left_user_right {
  122. @include systemStatus(rgba(131, 172, 255, 1));
  123. }
  124. }
  125. .middle_button {
  126. @include divBase;
  127. height: $heightBase;
  128. span {
  129. font-size: $fontSizeNormal;
  130. color: rgba(51, 51, 51, 1);
  131. }
  132. .time {
  133. text-align: right;
  134. padding: .5vh 0;
  135. width: 30%;
  136. float: left;
  137. height: 100%;
  138. }
  139. .button {
  140. width: 70%;
  141. float: left;
  142. height: 100%;
  143. .dcz {
  144. @include bar('/src/assets/img/duchazuPad.png');
  145. }
  146. .dcz_checked {
  147. @include bar('/src/assets/img/duchazuPad.png');
  148. @include checked(#51afea);
  149. }
  150. .dcry {
  151. @include bar('/src/assets/img/ducharenyuanPad.png');
  152. }
  153. .dcry_checked {
  154. @include bar('/src/assets/img/ducharenyuanPad.png');
  155. @include checked(#ff9780);
  156. }
  157. .dcdx {
  158. @include bar('/src/assets/img/duchaduixiangPad.png');
  159. }
  160. .dcdx_checked {
  161. @include bar('/src/assets/img/duchaduixiangPad.png');
  162. @include checked(#76e9c0);
  163. }
  164. .fxwt {
  165. @include bar('/src/assets/img/faxianwentiPad.png');
  166. }
  167. .fxwt_checked {
  168. @include bar('/src/assets/img/faxianwentiPad.png');
  169. @include checked(#b87cf6);
  170. }
  171. }
  172. }
  173. //左侧div中的QuestionCount组件样式
  174. .left_qus {
  175. @include divBase;
  176. height: $heightBase * 1.6;
  177. .header {
  178. height: $heightBase / 3;
  179. background-image: url('/src/assets/img/wentidikuang.png');
  180. .header_icon {
  181. img {
  182. float: left;
  183. width: 1.5vw;
  184. padding: .1vw 0 0 .3vw;
  185. }
  186. }
  187. .header_text {
  188. float: left;
  189. color: #fff;
  190. font-size: .9vw;
  191. padding: .3vw 0;
  192. font-weight: bold;
  193. }
  194. }
  195. .content {
  196. text-align: center;
  197. .top_text {
  198. padding: 3vh 0;
  199. font-size: .9vw;
  200. color: rgba(86, 108, 146, .8);
  201. font-weight: bold;
  202. }
  203. .bottom_text {
  204. span {
  205. font-size: 1.1vw;
  206. color: rgba(254, 178, 58, 1);
  207. font-weight: bold;
  208. &:last-child {
  209. font-size: .8vw;
  210. color: rgba(86, 108, 146, 1)
  211. }
  212. }
  213. }
  214. }
  215. }
  216. //左侧div中的QuestionLineChart组件样式
  217. .left_qusLineChart {
  218. @include divBase;
  219. height: $heightBase * 4.6;
  220. @include simpleHeader;
  221. .left_PublicSentiment_content{
  222. height: $heightBase * 4.4;;
  223. }
  224. }
  225. //左侧div中的Notices组件样式
  226. .left_notices {
  227. @include divBase;
  228. height: $heightBase * 2.82;
  229. @include simpleHeader;
  230. .left_Notices_content {
  231. font-size: 12px;
  232. color: #606266;
  233. max-height: $heightBase * 2;
  234. overflow-y: auto;
  235. width: 100%;
  236. ul {
  237. padding: 0;
  238. margin: 0;
  239. }
  240. li {
  241. padding: 0 1vw;
  242. margin: 0;
  243. height: 3vh;
  244. line-height: 3vh;
  245. list-style: none;
  246. a {
  247. color: #606266;
  248. text-decoration: none;
  249. &:hover {
  250. color: #51afea;
  251. }
  252. }
  253. }
  254. span {
  255. float: right;
  256. }
  257. }
  258. }
  259. }
  260. //中部div
  261. .middle {
  262. // width: $widthBase * 2.9;
  263. // float: left;
  264. // margin-left: 10px;
  265. .middle_map {
  266. @include divBase;
  267. height: $heightBase * 7.49;
  268. .superviseObject{
  269. margin-top: 2vh;
  270. font-size: 12px;
  271. color: #606266;
  272. height: ($heightBase * 2.93) - 50;
  273. overflow-y: auto;
  274. width: 100%;
  275. ul {
  276. padding: 0;
  277. margin: 0;
  278. li{
  279. cursor: pointer;
  280. padding: 0 0vw;
  281. margin: 0;
  282. height: 3vh;
  283. line-height: 3vh;
  284. list-style: none;
  285. margin-top: .5vh;
  286. &:first-child{
  287. margin-top: 0
  288. }
  289. }
  290. }
  291. }
  292. }
  293. }
  294. //右侧div
  295. .right {
  296. // width: $widthBase;
  297. // float: left;
  298. // margin-left: 10px;
  299. .right_qus {
  300. @include divBase;
  301. height: $heightBase;
  302. .header {
  303. height: $heightBase / 3;
  304. background-image: url('/src/assets/img/wentidikuang.png');
  305. .header_icon {
  306. img {
  307. float: left;
  308. width: 1.5vw;
  309. padding: .1vw 0 0 .3vw;
  310. }
  311. }
  312. .header_text {
  313. float: left;
  314. color: #fff;
  315. font-size: .9vw;
  316. padding: .3vw 0;
  317. font-weight: bold;
  318. }
  319. }
  320. .content {
  321. text-align: center;
  322. .top_text {
  323. padding: .5vh 0;
  324. font-size: .9vw;
  325. color: rgba(86, 108, 146, .8);
  326. font-weight: bold;
  327. }
  328. .bottom_text {
  329. span {
  330. font-size: 1.1vw;
  331. color: rgba(254, 178, 58, 1);
  332. font-weight: bold;
  333. &:last-child {
  334. font-size: .8vw;
  335. color: rgba(86, 108, 146, 1)
  336. }
  337. }
  338. }
  339. }
  340. }
  341. //右侧div中的PublicSentiment组件样式
  342. .right_line {
  343. @include divBase;
  344. height: $heightBase * 2.3;
  345. @include simpleHeader;
  346. .right_QuestionLineChart_content{
  347. width: 100%;
  348. height: ($heightBase * 2.3) - ($heightBase / 3);
  349. }
  350. }
  351. //右侧div中的QuestionLineChart组件样式
  352. .right_pie_dcdx {
  353. @include divBase;
  354. height: $heightBase * 2.3;
  355. @include simpleHeader;
  356. }
  357. //右侧div中的QuestionLineChart组件样式
  358. .right_pie_wtfb {
  359. @include divBase;
  360. height: $heightBase * 2.75;
  361. @include simpleHeader;
  362. .left_ProblemPieChart_content{
  363. width: 100%;
  364. height: ($heightBase * 3.2) - ($heightBase / 3);
  365. }
  366. // 29.51667vh
  367. }
  368. }