Project.less 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743
  1. @import "~assets/less/variable";
  2. .wrapper{
  3. width: 100%;
  4. height: 100%;
  5. display: flex;
  6. flex-direction: column;
  7. overflow-y: auto;
  8. .toolbar {
  9. width: 100%;
  10. height: 54px;
  11. flex-shrink: 0;
  12. background-color: @white;
  13. display: flex;
  14. align-items: center;
  15. .menu {
  16. display: flex;
  17. width: 42%;
  18. padding: 0 5%;
  19. .selectMenu {
  20. color: @blue;
  21. border-bottom: 1px solid @blue;
  22. }
  23. p {
  24. margin-right: 30px;
  25. padding: 4px 0;
  26. cursor: pointer;
  27. }
  28. }
  29. .searchs {
  30. width: 42%;
  31. position: relative;
  32. input {
  33. height: 32px;
  34. padding: 0 36px 0 18px;
  35. outline: none;
  36. border: none;
  37. background-color: #F5F5F5;
  38. width: 320px;
  39. border-radius: 100px 100px;
  40. &::placeholder{
  41. color: #CCCCCC;
  42. font-weight: 500;
  43. }
  44. }
  45. .searchButton{
  46. background-size: 16px 16px;
  47. border: 0;
  48. border-radius: 0 3px 3px 0;
  49. -moz-context-properties: fill;
  50. fill: rgba(249, 249, 250, 0.6);
  51. height: 100%;
  52. offset-inline-end: 0;
  53. position: absolute;
  54. left: 290px;
  55. visibility: middle;
  56. width: 36px;
  57. &:focus, &:hover {
  58. color: rgba(12, 12, 13, 0.9);
  59. cursor: pointer;
  60. }
  61. &:active {
  62. color: rgba(12, 12, 13, 0.3);
  63. }
  64. i{
  65. display: inline-block;
  66. line-height: 32px;
  67. }
  68. }
  69. }
  70. .create {
  71. flex: 1 0 auto;
  72. text-align: center;
  73. }
  74. }
  75. .content {
  76. flex: 1;
  77. margin: 24px 5%;
  78. .noprojects {
  79. height: 100%;
  80. margin-bottom: -16px;
  81. background-color: #fff;
  82. display: flex;
  83. justify-content: center;
  84. align-items: center;
  85. .desc{
  86. font-size: 24px;
  87. font-weight: 700;
  88. }
  89. }
  90. .flex{
  91. margin-bottom: -16px;
  92. .unit {
  93. height: 134px;
  94. background-color: #fff;
  95. margin-right: 16px;
  96. margin-bottom: 16px;
  97. border-radius: 2px;
  98. box-shadow: @block-box-shadow;
  99. cursor: pointer;
  100. transform: translate3d(0, 0, 0);
  101. transition: transform 200ms linear,
  102. box-shadow 200ms linear,
  103. background-size 500ms linear;
  104. &:hover {
  105. box-shadow: @block-active-box-shadow;
  106. }
  107. .thumbnail {
  108. height: 100px;
  109. background-color: #fff;
  110. background-repeat: no-repeat;
  111. background-size: 100%;
  112. background-position: center center;
  113. transform: translate3d(0, 0, 0);
  114. transition: transform 200ms linear,
  115. box-shadow 200ms linear,
  116. background-size 500ms linear;
  117. position: relative;
  118. &:hover {
  119. background-size: 110%;
  120. transform: translate3d(0, -5px, 0);
  121. .createIcon {
  122. color: @blue;
  123. }
  124. .createText {
  125. color: @blue;
  126. }
  127. }
  128. header {
  129. background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 100%);
  130. border-radius: 2px 2px 0 0;
  131. }
  132. .tags {
  133. text-align: right;
  134. height: 24px;
  135. // padding: 4px;
  136. padding-top: 4px;
  137. .tag {
  138. font-size: 10px;
  139. padding: 1px 4px;
  140. border-radius: 2px;
  141. color: @white;
  142. margin-right: 4px;
  143. }
  144. .create {
  145. background-color: #108EE9;
  146. }
  147. .fork {
  148. background-color: #F24724;
  149. }
  150. .favorite {
  151. background-color: #F24724;
  152. }
  153. .join {
  154. background-color: #FA8C15;
  155. }
  156. }
  157. .title {
  158. padding: 2px 80px 0 12px;
  159. color: @white;
  160. font-size: 1.15em;
  161. font-weight: normal;
  162. .ellipsis;
  163. }
  164. .descs {
  165. padding: 8px 12px 24px;
  166. color: @white;
  167. font-size: .85em;
  168. .ellipsis;
  169. }
  170. }
  171. .itemToolbar {
  172. height: 34px;
  173. background-color: @white;
  174. display: flex;
  175. padding: 0 6px 0 8px;
  176. justify-content: space-between;
  177. align-items: center;
  178. .stars {
  179. align-self: center;
  180. }
  181. .others {
  182. align-self: center;
  183. }
  184. i {
  185. margin-left: 8px;
  186. }
  187. }
  188. }
  189. }
  190. }
  191. .searchListWrapper{
  192. margin: 0 auto 16px auto;
  193. flex-shrink: 0;
  194. z-index: 9;
  195. .listPadding{
  196. padding: 0 12px 12px 12px;
  197. }
  198. }
  199. }
  200. .starWrapperPosition {
  201. position: absolute;
  202. right: 6px;
  203. bottom: 6px;
  204. }
  205. .overflowY {
  206. overflow-y: auto;
  207. }
  208. .createIcon {
  209. font-size: 28px;
  210. color: #a6a6a6;
  211. }
  212. .createText {
  213. font-size: 16px;
  214. color: #a6a6a6;
  215. }
  216. .formWrapper {
  217. padding: 16px;
  218. text-align: left;
  219. .header {
  220. .title{
  221. font-size: 24px;
  222. color:@rich-text;
  223. font-weight: 600;
  224. }
  225. .desc{
  226. margin-top: 4px;
  227. font-size: 14px;
  228. color:@light-text-color;
  229. }
  230. }
  231. .body {
  232. margin: 16px auto;
  233. }
  234. .footer{
  235. button {
  236. margin-right: 6px;
  237. }
  238. }
  239. }
  240. .selectOption {
  241. display: flex;
  242. justify-content: space-between;
  243. align-items: center;
  244. .title{
  245. display: flex;
  246. align-items: center;
  247. }
  248. .owner{
  249. // color: @rich-text;
  250. font-size: 18px;
  251. font-weight: 600;
  252. margin-right: 8px;
  253. }
  254. }
  255. .groupList {
  256. padding: 8px 24px 8px 18px;
  257. box-shadow: 0 -1px 0 @grey-line-color;
  258. display: flex;
  259. justify-content: space-between;
  260. cursor: pointer;
  261. &:hover {
  262. color: @blue;
  263. }
  264. .orgHeader {
  265. display: flex;
  266. .avatar {
  267. display: flex;
  268. align-items: center;
  269. img {
  270. vertical-align: top;
  271. }
  272. }
  273. .name {
  274. display: flex;
  275. flex-direction: column;
  276. margin-left: 14px;
  277. .title {}
  278. .desc {
  279. font-size: 12px;
  280. color: @light-text-color;
  281. }
  282. }
  283. }
  284. .setting {
  285. align-self: center;
  286. font-size: 18px;
  287. cursor: pointer;
  288. }
  289. }
  290. .searchList {
  291. padding: 8px 18px 8px 18px;
  292. // box-shadow: 0 -1px 0 @grey-line-color;
  293. border: 1px solid rgba(0, 0, 0, 0.15);
  294. border-radius: 2px;
  295. display: flex;
  296. justify-content: space-between;
  297. margin-bottom: 16px;
  298. cursor: pointer;
  299. &:hover {
  300. color: @blue;
  301. }
  302. .orgHeader {
  303. display: flex;
  304. .avatar {
  305. display: flex;
  306. align-items: center;
  307. img {
  308. vertical-align: top;
  309. }
  310. }
  311. .name {
  312. display: flex;
  313. flex-direction: column;
  314. margin-left: 14px;
  315. .title {
  316. font-weight: 400;
  317. font-size: 14px;
  318. }
  319. .desc {
  320. font-size: 12px;
  321. color: @light-text-color;
  322. }
  323. }
  324. }
  325. .others{
  326. position: relative;
  327. .star {
  328. position: absolute;
  329. right: -9px;
  330. top: 16px;
  331. }
  332. }
  333. }
  334. .projectItemWrap{
  335. padding: 8px 8px;
  336. margin-top: 16px;
  337. border-radius: 4px;
  338. border: 1px solid #ccc;
  339. display: flex;
  340. &:hover {
  341. background-size: 110%;
  342. box-shadow: @block-active-box-shadow;
  343. transform: translate3d(0, -5px, 0);
  344. }
  345. .avatarWrapper{
  346. width: 260px;
  347. height: 120px;
  348. margin-right: 20px;
  349. background-color: @body-background;
  350. background-repeat: no-repeat;
  351. background-size: 100%;
  352. background-position: center center;
  353. border-radius: 2px;
  354. box-shadow: @block-box-shadow;
  355. transform: translate3d(0, 0, 0);
  356. transition: transform 200ms linear,
  357. box-shadow 200ms linear,
  358. background-size 500ms linear;
  359. position: relative;
  360. }
  361. .detailWrapper {
  362. display: flex;
  363. flex-direction: column;
  364. .title {
  365. font-size: 18px;
  366. font-weight: 600;
  367. margin-bottom: 16px;
  368. color: @blue;
  369. cursor: pointer;
  370. }
  371. .desc {
  372. font-size: 12px;
  373. color: @light-text-color;
  374. margin-bottom: 8px;
  375. }
  376. .tag {
  377. margin-bottom: 8px;
  378. span {
  379. font-size: 12px;
  380. }
  381. }
  382. .others {
  383. display: flex;
  384. .updateTime {
  385. color: @rich-text;
  386. margin-right: 32px;
  387. .label {
  388. color: @light-text-color;
  389. margin-right: 8px;
  390. }
  391. }
  392. .stars {
  393. margin-right: 32px;
  394. cursor: pointer;
  395. color: @rich-text;
  396. }
  397. .delete {
  398. cursor: pointer;
  399. }
  400. }
  401. }
  402. }
  403. .mask {
  404. position: fixed;
  405. top: 0;
  406. right: 0;
  407. left: 0;
  408. bottom: 0;
  409. background-color: #373737;
  410. background-color: rgba(55, 55, 55, 0.55);
  411. height: 100%;
  412. z-index: 6;
  413. filter: blur(10px);
  414. backdrop-filter: blur(10px);
  415. }
  416. @media only screen and (min-width: 1601px) {
  417. .wrap {
  418. width: 1570px;
  419. }
  420. .search, .searchListWrapper, .searchKeywords{
  421. width: 1570px;
  422. }
  423. .mime{
  424. margin: 0 16px 16px 0;
  425. }
  426. }
  427. @media only screen and (max-width: 1600px) and (min-width: 1400px) {
  428. .wrap {
  429. width: 1246px;
  430. }
  431. .search, .searchListWrapper, .searchKeywords{
  432. width: 1246px;
  433. }
  434. .mime, .join{
  435. margin: 0 16px 16px 0;
  436. }
  437. }
  438. @media only screen and (min-width: 1200px) and (max-width: 1400px) {
  439. .wrapper {
  440. .toolbar{
  441. .menu {
  442. p {
  443. margin-right: 22px;
  444. }
  445. }
  446. .searchs {
  447. input {
  448. width: 320px;
  449. }
  450. .searchButton{
  451. left: 290px;
  452. }
  453. }
  454. }
  455. }
  456. }
  457. @media only screen and (max-width: 1199px) and (min-width: 991px) {
  458. .wrapper {
  459. .toolbar{
  460. .menu {
  461. p {
  462. margin-right: 30px;
  463. }
  464. }
  465. .searchs {
  466. input {
  467. width: 320px;
  468. }
  469. .searchButton{
  470. left: 290px;
  471. }
  472. }
  473. }
  474. }
  475. }
  476. @media only screen and (max-width: 990px) and (min-width: 870px) {
  477. .wrapper {
  478. .toolbar{
  479. .menu {
  480. width: 46%;
  481. p {
  482. margin-right: 30px;
  483. }
  484. }
  485. .searchs {
  486. width: 38%;
  487. input {
  488. width: 320px;
  489. }
  490. .searchButton{
  491. left: 290px;
  492. }
  493. }
  494. }
  495. }
  496. }
  497. @media only screen and (max-width: 870px) and (min-width: 768px) {
  498. .wrapper {
  499. .toolbar{
  500. .menu {
  501. width: 48%;
  502. p {
  503. margin-right: 28px;
  504. }
  505. }
  506. .searchs {
  507. width: 36%;
  508. input {
  509. width: 270px;
  510. }
  511. .searchButton{
  512. left: 245px;
  513. }
  514. }
  515. }
  516. }
  517. }
  518. @media only screen and (max-width: 767px) and (min-width: 640px) {
  519. .wrapper {
  520. .toolbar{
  521. .menu {
  522. width: 48%;
  523. p {
  524. margin-right: 19px;
  525. }
  526. }
  527. .searchs {
  528. width: 36%;
  529. input {
  530. width: 224px;
  531. }
  532. .searchButton{
  533. left: 198px;
  534. }
  535. }
  536. }
  537. }
  538. }
  539. @media only screen and (max-width: 640px) and (min-width: 300px) {
  540. .wrapper {
  541. .toolbar{
  542. .menu {
  543. width: 54%;
  544. p {
  545. margin-right: 13px;
  546. }
  547. }
  548. .searchs {
  549. width: 30%;
  550. input {
  551. width: 140px;
  552. }
  553. .searchButton{
  554. left: 114px;
  555. }
  556. }
  557. }
  558. }
  559. }
  560. .filterConfig {
  561. height: 540px;
  562. margin: -24px;
  563. display: flex;
  564. flex-direction: row;
  565. :global(.ant-menu-inline), :global(.ant-menu-vertical), :global(.ant-menu-vertical-left) {
  566. border-right: none;
  567. }
  568. :global(.ant-menu) {
  569. :global(li) {
  570. margin-top: 0;
  571. margin-bottom: 0
  572. }
  573. }
  574. :global(.ant-menu-item:not(:last-child)){
  575. margin-top: 0;
  576. margin-bottom: 0;
  577. }
  578. .left {
  579. flex-shrink: 0;
  580. display: flex;
  581. flex-direction: column;
  582. width: 160px;
  583. border-right: 1px solid @border-color-split;
  584. }
  585. .center {
  586. flex: 1;
  587. display: flex;
  588. overflow-y: auto;
  589. flex-direction: column;
  590. }
  591. // .bottom {
  592. // min-height: 90px;
  593. // border-top: 1px solid @border-color-split;
  594. // display: flex;
  595. // flex-direction: column;
  596. // }
  597. }
  598. .basic {
  599. padding: 24px;
  600. .owner {
  601. margin-top: 16px;
  602. .title {
  603. font-weight: 500;
  604. font-size: 14px;
  605. }
  606. .button {
  607. font-weight: 600;
  608. font-size: 18px;
  609. color: @blue;
  610. }
  611. }
  612. .save {
  613. margin-top: 16px;
  614. }
  615. .Zone{
  616. .title {
  617. font-weight: 500;
  618. font-size: 14px;
  619. margin: 24px auto 16px auto;
  620. }
  621. .titleDesc {
  622. width: 210px;
  623. padding: 16px;
  624. border-radius: 4px;
  625. border: 1px solid #ccc;
  626. display: inline-block;
  627. .button {
  628. font-weight: 600;
  629. font-size: 18px;
  630. color: @rich-text;
  631. }
  632. .desc{
  633. .label {
  634. display: inline-block;
  635. min-width: 58px;
  636. padding: 0 4px;
  637. border-radius: 2px;
  638. font-weight: 300px;
  639. }
  640. margin-bottom: 8px;
  641. font-size: 12px;
  642. }
  643. }
  644. }
  645. .dangerZone{
  646. .title {
  647. font-weight: 500;
  648. font-size: 14px;
  649. margin: 24px auto 16px auto;
  650. color: crimson;
  651. }
  652. .titleDesc {
  653. padding: 16px;
  654. border-radius: 4px;
  655. border: 1px solid crimson;
  656. display: inline-block;
  657. .button {
  658. font-weight: 600;
  659. font-size: 18px;
  660. color: @rich-text;
  661. }
  662. .desc{
  663. margin-bottom: 8px;
  664. font-size: 12px;
  665. color: crimson;
  666. }
  667. }
  668. }
  669. :global(.ant-form-item) {
  670. margin-bottom: 4px;
  671. }
  672. }
  673. .crimson {
  674. color :crimson;
  675. }
  676. .crimsonBorder {
  677. border: 1px solid crimson;
  678. }
  679. .role {
  680. padding: 24px;
  681. .tableWrap {
  682. padding: 24px 0px 8px 0px;
  683. }
  684. }
  685. .admin{
  686. padding: 24px;
  687. .tableWrap {
  688. padding: 24px 0px 8px 0px;
  689. }
  690. }
  691. .auth {
  692. padding: 8px;
  693. .module {
  694. margin: 8px auto 24px auto;
  695. .title {
  696. margin-bottom: 8px;
  697. font-weight: 600;
  698. font-size: 15px;
  699. }
  700. }
  701. .dv{
  702. margin: 8px auto 24px auto;
  703. .title {
  704. margin-bottom: 8px;
  705. font-weight: 600;
  706. font-size: 15px;
  707. }
  708. }
  709. }
  710. .ft16 {
  711. font-size: 16px;
  712. }
  713. .mainColor {
  714. color: @blue;
  715. }