0cb83a4ebdc8e83ec190df7109c19f2a49843d39.svn-base 9.0 KB

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