stu-leader.scss 15 KB

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