stu-leader.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. body {
  2. --mc: #11998e;
  3. }
  4. .body {
  5. background: #f3f3f3;
  6. display: flex;
  7. flex-direction: column;
  8. height: 100vh;
  9. width: 100vw;
  10. box-sizing: padding-box;
  11. padding: 30px;
  12. }
  13. .select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[aria-selected]:hover {
  14. background-color: var(--mc);
  15. color: #eee;
  16. outline:none;
  17. &:focus,&:active {
  18. outline: none;
  19. }
  20. }
  21. .select2-container--default .select2-results__option[aria-selected=true] {
  22. background-color: var(--mc);
  23. color: #fff;
  24. }
  25. .select2-search {
  26. display: none;
  27. }
  28. .box {
  29. width: 100%;
  30. background: #fff;
  31. border-radius: 8px;
  32. padding: 15px 30px;
  33. .btn {
  34. cursor:pointer;
  35. &.btn-submit {
  36. background: var(--mc);
  37. color: #fff;
  38. &:hover {
  39. background-image: linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))
  40. }
  41. }
  42. &.btn-lg {
  43. width: 120px;
  44. font-size: 20px !important;
  45. }
  46. }
  47. .left-box, .right-box {
  48. display: flex;
  49. flex-direction: row;
  50. justify-content: flex-start;
  51. align-items: center;
  52. height: 100%;
  53. }
  54. &.title-box {
  55. height: 80px;
  56. display: flex;
  57. flex-direction: row;
  58. align-items: center;
  59. justify-content: space-between;
  60. .line {
  61. width: 5px;
  62. height: 100%;
  63. background: var(--mc);
  64. border-radius: 3px;
  65. }
  66. .title {
  67. font-size: 30px;
  68. font-weight: 600;
  69. color: var(--mc);
  70. padding-left: 15px;
  71. }
  72. }
  73. }
  74. .box {
  75. &.group-box {
  76. margin-top: 20px;
  77. height: 160px;
  78. display: flex;
  79. flex-direction: row;
  80. justify-content: space-between;
  81. align-items: center;
  82. .group-info {
  83. display: flex;
  84. flex-direction: column;
  85. justify-content: space-between;
  86. align-items: center;
  87. margin-right: 20px;
  88. height: 100%;
  89. position: relative;
  90. .img-box {
  91. width: 100px;
  92. height: 100px;
  93. border-radius: 5px;
  94. border: 3px solid #bfbfbf;
  95. display: flex;
  96. justify-content: center;
  97. align-items: center;
  98. transition: all 0.3s ease-in-out;
  99. .img {
  100. width: 60px;
  101. height: 60px;
  102. /*width: 64px;
  103. height: 66px;*/
  104. overflow: hidden;
  105. /*.img {
  106. width: 100%;
  107. height: 100%;
  108. }*/
  109. img{
  110. width:100%;
  111. height:100%;
  112. }
  113. }
  114. }
  115. .name {
  116. font-weight: 600;
  117. color: #bfbfbf;
  118. font-size: 16px;
  119. }
  120. .gou {
  121. position: absolute;
  122. top: 6px;
  123. left: 6px;
  124. width: 18px;
  125. height: 14px;
  126. overflow: hidden;
  127. }
  128. &.active, &.check {
  129. .img-box {
  130. border-color: var(--mc);
  131. background: #f3f3f3;
  132. /*.img{}*/
  133. /*.img .img {
  134. position: relative;
  135. left: -64px;
  136. border-right: 64px solid transparent;
  137. filter: drop-shadow(64px 0 var(--mc));
  138. }*/
  139. }
  140. .name {
  141. color: var(--mc);
  142. }
  143. }
  144. &.active {
  145. .img-box {
  146. background: #f3fbf9;
  147. }
  148. }
  149. &.check {
  150. .gou {
  151. .img {
  152. width: 100%;
  153. height: 100%;
  154. /*position: relative;
  155. left: -18px;
  156. border-right: 18px solid transparent;
  157. filter: drop-shadow(18px 0 var(--mc));*/
  158. background-image: url('../../Content/Image/Stu/zhb/gou.png');
  159. background-size:100% 100%;
  160. }
  161. }
  162. }
  163. }
  164. &.stu {
  165. .group-info {
  166. .gou {
  167. display: none;
  168. }
  169. &.active {
  170. .img-box {
  171. border-color: var(--mc);
  172. background: #f3f3f3;
  173. .img .img {
  174. position: relative;
  175. left: -64px;
  176. border-right: 64px solid transparent;
  177. filter: drop-shadow(64px 0 var(--mc));
  178. }
  179. }
  180. .name {
  181. color: var(--mc);
  182. }
  183. }
  184. }
  185. }
  186. }
  187. &.role-box {
  188. margin-top: 10px;
  189. height: calc(100vh - 310px);
  190. overflow: hidden;
  191. position: relative;
  192. .content-box {
  193. height: calc(100% - 30px);
  194. width: calc(100% - 60px);
  195. position: absolute;
  196. .role-content {
  197. position: absolute;
  198. top: -200%;
  199. width: 100%;
  200. height: 100%;
  201. display: flex;
  202. flex-direction: column;
  203. justify-content: center;
  204. align-items: center;
  205. display: flex;
  206. flex-wrap: wrap;
  207. opacity: 0;
  208. transition: all 1s ease-in-out;
  209. &.active {
  210. top: 0;
  211. display: flex;
  212. opacity: 1;
  213. transition: all 1s ease-in-out;
  214. }
  215. .top {
  216. width: 100%;
  217. height: 50px;
  218. line-height: 50px;
  219. font-size: 20px;
  220. color: #3c3c3c;
  221. border-bottom: 2px solid #bfbfbf;
  222. span {
  223. color: #bfbfbf;
  224. padding-left: 15px;
  225. }
  226. }
  227. &.check {
  228. .top {
  229. color: var(--mc);
  230. border-bottom-color: var(--mc);
  231. }
  232. }
  233. .bottom {
  234. width: 100%;
  235. height: calc(100% - 80px);
  236. padding: 15px 0;
  237. float: left;
  238. position: relative;
  239. }
  240. &.self {
  241. .bottom {
  242. height: 100%;
  243. }
  244. }
  245. .role-info {
  246. position: relative;
  247. display: flex;
  248. flex-direction: column;
  249. justify-content: space-between;
  250. align-items: center;
  251. height: 120px;
  252. width: 120px;
  253. border: 1px solid var(--mc);
  254. border-radius: 10px;
  255. background: #f3fbf9;
  256. padding: 10px 5px 15px;
  257. margin-bottom: 10px;
  258. margin-right: 20px;
  259. float: left;
  260. .name {
  261. height: 30px;
  262. color: var(--mc);
  263. text-align: center;
  264. white-space: normal;
  265. font-size: 14px;
  266. }
  267. .user-icon {
  268. display: flex;
  269. width: 50px;
  270. height: 50px;
  271. justify-content: center;
  272. align-items: center;
  273. background-image: url('../../Content/Image/Stu/zhb/user.png');
  274. background-size: 100% 100%;
  275. }
  276. .add-icon {
  277. width: 50px;
  278. height: 50px;
  279. border-radius:50px;
  280. overflow: hidden;
  281. /*.add {
  282. width: 100%;
  283. height: 100%;
  284. background: url('../../Content/Image/Stu/zhb/add.png');
  285. /*&.add-dl {
  286. position: relative;
  287. left: -50px;
  288. border-right: 50px solid transparent;
  289. filter: drop-shadow(50px 0 var(--mc));
  290. }
  291. }*/
  292. }
  293. .close {
  294. position: absolute;
  295. right: 5px;
  296. top: 0;
  297. color: var(--mc);
  298. }
  299. &.add-box {
  300. display: none;
  301. left: calc(50% - 150px);
  302. top: 100px;
  303. padding: 25px 20px 20px;
  304. position: absolute;
  305. width: 300px;
  306. }
  307. input {
  308. width: 90%;
  309. padding: 5px 10px;
  310. font-size: 14px;
  311. border: 1px solid var(--mc);
  312. border-radius: 4px;
  313. outline: none;
  314. &:active, &:focus {
  315. border: 1px solid var(--mc);
  316. outline: none;
  317. }
  318. }
  319. }
  320. }
  321. }
  322. &.stu {
  323. .top {
  324. display: none;
  325. }
  326. .bottom {
  327. height: 100%;
  328. }
  329. }
  330. }
  331. &.role-box.build {
  332. margin-top: 20px;
  333. height: calc(100vh - 160px);
  334. .content-box {
  335. .role-content {
  336. display: flex;
  337. flex-direction: row;
  338. justify-content: flex-start;
  339. top: 0;
  340. opacity: 1;
  341. }
  342. }
  343. }
  344. }
  345. .box {
  346. &.handle-box {
  347. margin-top: 20px;
  348. display: flex;
  349. flex-direction: column;
  350. height: calc(100vh - 130px);
  351. .form-box {
  352. display: flex;
  353. flex-direction: column;
  354. position: relative;
  355. padding: 5px 10px;
  356. height: 50%;
  357. &:not(:first-child) {
  358. margin-top: 10px;
  359. }
  360. .role {
  361. /*width: 250px;*/
  362. display: flex;
  363. justify-content: center;
  364. align-items: center;
  365. .select2-container .select2-selection--single {
  366. height: 38px;
  367. border:2px solid var(--mc);
  368. margin-bottom:8px;
  369. }
  370. .select2-container--default .select2-selection--single .select2-selection__arrow {
  371. top: 6px;
  372. }
  373. }
  374. .form-control {
  375. width: 100%;
  376. padding: 8px 10px;
  377. border: 2px solid var(--mc);
  378. border-radius: 5px;
  379. font-size: 1rem;
  380. margin: 8px 0;
  381. &.txt {
  382. padding: 8px 15px;
  383. height: 100%;
  384. }
  385. }
  386. .btn {
  387. width: 100px;
  388. position: absolute;
  389. right: 25px;
  390. bottom: 20px;
  391. }
  392. }
  393. }
  394. }
  395. .box {
  396. &.leader-box {
  397. margin-top: 20px;
  398. display: flex;
  399. flex-direction: column;
  400. height: calc(100vh - 130px);
  401. .table {
  402. tr {
  403. td, th {
  404. text-align: center;
  405. border: none;
  406. font-size: 14px;
  407. padding: 0;
  408. height: 45px;
  409. }
  410. th {
  411. background: var(--mc);
  412. color: #fff;
  413. font-size: 16px;
  414. line-height: 45px;
  415. }
  416. }
  417. tbody {
  418. tr {
  419. color: #bfbfbf;
  420. &:nth-of-type(2n+1) {
  421. background: #fafafa;
  422. }
  423. &:nth-of-type(2n) {
  424. background: #f3fbf9;
  425. }
  426. &.wait {
  427. color: #262626;
  428. .state {
  429. color: var(--mc);
  430. font-weight: 600;
  431. }
  432. }
  433. td.action {
  434. .btn.btn-submit {
  435. cursor:pointer;
  436. width: 90px;
  437. padding: 5px;
  438. border-radius: 25px;
  439. font-size: 10px !important;
  440. }
  441. }
  442. &.empty {
  443. font-size: 16px;
  444. font-weight: 600;
  445. color: var(--mc);
  446. }
  447. }
  448. }
  449. }
  450. }
  451. }
  452. @keyframes fadeIn{
  453. from {
  454. visibility: hidden;
  455. /*opacity: 1;*/
  456. }
  457. to {
  458. visibility: visible;
  459. /*opacity: 0;*/
  460. }
  461. }