project-list-react.less 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008
  1. @project-list-sidebar-wrapper-flex: 0 0 15%;
  2. .project-list-react {
  3. body > .content& {
  4. padding-top: @header-height;
  5. padding-bottom: 0;
  6. min-height: calc(~'100vh -' @header-height);
  7. display: flex;
  8. flex-direction: column;
  9. }
  10. .container:before {
  11. content: '';
  12. display: block;
  13. float: left;
  14. height: 100%;
  15. }
  16. .fill {
  17. position: relative;
  18. &:after {
  19. content: '';
  20. display: block;
  21. clear: left;
  22. }
  23. }
  24. .project-list-wrapper {
  25. display: flex;
  26. align-items: stretch;
  27. width: 100%;
  28. min-height: calc(~'100vh -' @header-height);
  29. }
  30. .project-list-sidebar-wrapper-react {
  31. position: relative;
  32. background-color: @sidebar-bg;
  33. flex: @project-list-sidebar-wrapper-flex;
  34. min-height: calc(~'100vh -' @header-height);
  35. max-width: 320px;
  36. min-width: 200px;
  37. .project-list-sidebar-subwrapper {
  38. display: flex;
  39. flex-direction: column;
  40. height: 100%;
  41. .project-list-sidebar-react {
  42. flex-grow: 1;
  43. padding-left: 15px;
  44. padding-right: 15px;
  45. -ms-overflow-style: -ms-autohiding-scrollbar;
  46. padding-top: @content-margin-vertical;
  47. padding-bottom: @content-margin-vertical;
  48. color: @sidebar-color;
  49. .small {
  50. color: @sidebar-color;
  51. }
  52. button {
  53. white-space: normal;
  54. word-wrap: anywhere;
  55. // prevents buttons from expanding sidebar width
  56. }
  57. > .dropdown {
  58. width: 100%;
  59. .new-project-button {
  60. width: 100%;
  61. }
  62. }
  63. }
  64. }
  65. }
  66. .project-list-welcome-wrapper {
  67. width: 100%;
  68. padding-bottom: 25px;
  69. .welcome-new-wrapper {
  70. .welcome-title {
  71. font-size: 32px;
  72. }
  73. .welcome-message-cards-wrapper {
  74. display: flex;
  75. flex-direction: column;
  76. justify-content: space-between;
  77. align-items: center;
  78. margin-top: 50px;
  79. @media (min-width: @screen-md-min) {
  80. flex-direction: row;
  81. justify-content: center;
  82. }
  83. }
  84. .welcome-message-card {
  85. border: 1px solid @neutral-20;
  86. border-radius: 16px;
  87. display: flex;
  88. flex-direction: column;
  89. align-items: center;
  90. justify-content: space-between;
  91. padding: 24px 16px;
  92. margin: @margin-sm 0;
  93. width: 280px;
  94. height: 200px;
  95. position: relative;
  96. cursor: pointer;
  97. @media (min-width: @screen-md-min) {
  98. margin: 0 15px;
  99. height: 240px;
  100. }
  101. &:hover {
  102. background-color: @ol-blue-gray-0;
  103. }
  104. .welcome-message-card-img {
  105. @media (min-width: @screen-md-min) {
  106. margin-bottom: 20px;
  107. }
  108. }
  109. .create-new-project-dropdown {
  110. border: 1px solid @neutral-20;
  111. position: absolute;
  112. top: 100%;
  113. left: 5%;
  114. width: 90%;
  115. margin-top: 8px;
  116. padding: 0;
  117. border-radius: 3px;
  118. z-index: 1;
  119. text-align: left;
  120. button,
  121. a,
  122. .dropdown-header {
  123. padding: 5px 10px;
  124. }
  125. > button {
  126. background-color: white;
  127. border: none;
  128. box-shadow: none;
  129. display: flex;
  130. align-items: center;
  131. width: 100%;
  132. &:hover {
  133. background-color: @ol-blue-gray-0;
  134. }
  135. }
  136. > a {
  137. color: @ol-blue-gray-3;
  138. display: block;
  139. &:hover {
  140. text-decoration: none;
  141. background-color: @ol-blue-gray-0;
  142. }
  143. }
  144. hr {
  145. margin-top: 6px;
  146. margin-bottom: 6px;
  147. }
  148. }
  149. }
  150. .welcome-message-card-link {
  151. &,
  152. &:hover {
  153. text-decoration: none;
  154. color: @ol-blue-gray-3;
  155. }
  156. }
  157. }
  158. }
  159. .project-list-main-react {
  160. flex: 1;
  161. overflow-x: hidden;
  162. padding: @content-margin-vertical @grid-gutter-width / 2;
  163. }
  164. .project-list-header-row {
  165. display: flex;
  166. align-items: center;
  167. margin-bottom: @margin-sm;
  168. min-height: 36px;
  169. }
  170. .project-list-title {
  171. min-width: 0;
  172. color: @content-secondary;
  173. font-family: Lato, sans-serif;
  174. font-size: @font-size-large;
  175. line-height: 28px;
  176. font-weight: bold;
  177. }
  178. ul.project-list-filters {
  179. margin: @margin-sm @folders-menu-margin;
  180. .dropdown-header {
  181. margin-top: @folders-title-margin-top;
  182. margin-bottom: @folders-title-margin-bottom;
  183. font-size: @folders-title-font-size;
  184. color: @folders-title-color;
  185. text-transform: @folders-title-text-transform;
  186. padding: 12.5px 16px;
  187. font-weight: @folders-title-font-weight;
  188. font-family: @font-family-sans-serif;
  189. text-transform: uppercase;
  190. }
  191. .subdued {
  192. color: @gray-light;
  193. }
  194. > li {
  195. cursor: pointer;
  196. position: relative;
  197. > button {
  198. display: block;
  199. width: 100%;
  200. font-weight: normal;
  201. text-align: left;
  202. color: @sidebar-link-color;
  203. background-color: transparent;
  204. border-radius: unset;
  205. border: none;
  206. border-bottom: solid 1px transparent;
  207. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  208. &:hover {
  209. background-color: @sidebar-hover-bg;
  210. text-decoration: @sidebar-hover-text-decoration;
  211. }
  212. &:focus {
  213. text-decoration: none;
  214. outline: none;
  215. }
  216. }
  217. &.separator {
  218. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  219. cursor: auto;
  220. }
  221. }
  222. > li.active {
  223. border-radius: @sidebar-active-border-radius;
  224. > button {
  225. background-color: @sidebar-active-bg;
  226. font-weight: @sidebar-active-font-weight;
  227. color: @sidebar-active-color;
  228. .subdued {
  229. color: @sidebar-active-color;
  230. }
  231. }
  232. }
  233. > li.tag {
  234. &.active {
  235. .tag-menu > button {
  236. color: white;
  237. border-color: white;
  238. &:hover {
  239. background-color: @folders-tag-menu-active-hover;
  240. }
  241. }
  242. }
  243. &.untagged {
  244. button.tag-name {
  245. span.name {
  246. font-style: italic;
  247. padding-left: 0;
  248. }
  249. }
  250. }
  251. &:hover {
  252. &:not(.active) {
  253. background-color: @folders-tag-hover;
  254. }
  255. .tag-menu {
  256. display: block;
  257. }
  258. }
  259. &:not(.active) {
  260. .tag-menu > a:hover {
  261. background-color: @folders-tag-menu-hover;
  262. }
  263. }
  264. button.tag-name {
  265. position: relative;
  266. padding: @folders-tag-padding;
  267. display: @folders-tag-display;
  268. align-items: center;
  269. word-wrap: anywhere;
  270. .tag-list-icon {
  271. vertical-align: sub;
  272. font-weight: bold;
  273. }
  274. span.name {
  275. padding-left: 0.5em;
  276. line-height: @folders-tag-line-height;
  277. }
  278. }
  279. }
  280. .tag-menu {
  281. button.dropdown-toggle {
  282. border: 1px solid @folders-tag-border-color;
  283. border-radius: @border-radius-small;
  284. background-color: transparent;
  285. color: @folders-tag-menu-color;
  286. display: block;
  287. width: 16px;
  288. height: 16px;
  289. position: relative;
  290. .caret {
  291. position: absolute;
  292. top: 6px;
  293. left: 1px;
  294. }
  295. }
  296. display: none;
  297. width: auto;
  298. position: absolute;
  299. top: 50%;
  300. margin-top: -8px; // Half the element height.
  301. right: 4px;
  302. &.open {
  303. display: block;
  304. }
  305. button.tag-action {
  306. border-radius: unset;
  307. width: 100%;
  308. background-color: transparent;
  309. border-color: transparent;
  310. color: @gray-dark;
  311. text-align: left;
  312. font-weight: normal;
  313. &:hover {
  314. color: @white;
  315. background-color: @ol-green;
  316. }
  317. &:active {
  318. outline: none;
  319. }
  320. }
  321. }
  322. }
  323. .project-tools {
  324. flex-shrink: 0;
  325. margin-left: auto;
  326. }
  327. .project-dash-table {
  328. width: 100%;
  329. table-layout: fixed;
  330. tr {
  331. border-bottom: 1px solid @structured-list-border-color;
  332. }
  333. th,
  334. td {
  335. padding: (@line-height-computed / 4) @line-height-computed / 2;
  336. vertical-align: top;
  337. }
  338. tr {
  339. th:first-child,
  340. td:first-child,
  341. th:last-child,
  342. td:last-child {
  343. padding-right: @line-height-computed - (@grid-gutter-width / 2);
  344. }
  345. }
  346. tbody {
  347. tr:not(.no-projects):hover {
  348. background-color: @structured-list-hover-color;
  349. }
  350. tr:last-child {
  351. border-bottom: 0 none;
  352. }
  353. }
  354. .table-header-sort-btn {
  355. border: 0;
  356. text-align: left;
  357. color: @ol-type-color;
  358. background-color: transparent;
  359. padding: 0;
  360. font-weight: bold;
  361. max-width: 100%;
  362. overflow: hidden;
  363. text-overflow: ellipsis;
  364. text-decoration: none;
  365. &:hover,
  366. &:focus {
  367. color: @ol-type-color;
  368. text-decoration: none;
  369. }
  370. }
  371. .dash-cell-checkbox {
  372. width: 5%;
  373. line-height: 1.55;
  374. input[type='checkbox'] {
  375. margin-top: 5px;
  376. }
  377. .dash-cell-checkbox-wrapper {
  378. label {
  379. display: block;
  380. margin: 0;
  381. line-height: 1;
  382. }
  383. }
  384. }
  385. .dash-cell-name {
  386. hyphens: auto;
  387. width: 50%;
  388. word-break: break-word;
  389. }
  390. .dash-cell-owner {
  391. width: 20%;
  392. }
  393. .dash-cell-date {
  394. width: 25%;
  395. }
  396. .dash-cell-actions {
  397. display: none;
  398. text-align: right;
  399. }
  400. .dash-cell-date-owner {
  401. font-size: 14px;
  402. .text-overflow();
  403. }
  404. .dash-cell-tag,
  405. .clone-project-tag {
  406. .tag-label {
  407. padding: 14px 0;
  408. cursor: pointer;
  409. &:not(.tag-label-close-hover) {
  410. &:hover,
  411. &:focus {
  412. .label.tag-label-name {
  413. color: @tag-color;
  414. background-color: @tag-bg-hover-color;
  415. outline-width: 0;
  416. }
  417. }
  418. }
  419. &:first-child {
  420. margin-left: initial;
  421. }
  422. }
  423. }
  424. @media (min-width: @screen-xs) {
  425. .dash-cell-checkbox {
  426. width: 4%;
  427. }
  428. .dash-cell-name {
  429. width: 50%;
  430. }
  431. .dash-cell-owner {
  432. width: 21%;
  433. }
  434. .dash-cell-date {
  435. width: 25%;
  436. }
  437. .dash-cell-actions {
  438. width: 0%;
  439. }
  440. }
  441. @media (min-width: @screen-sm) {
  442. .dash-cell-checkbox {
  443. width: 3%;
  444. }
  445. .dash-cell-name {
  446. width: 45%;
  447. }
  448. .dash-cell-owner {
  449. width: 16%;
  450. }
  451. .dash-cell-date {
  452. width: 21%;
  453. }
  454. .dash-cell-actions {
  455. display: table-cell;
  456. width: 15%;
  457. }
  458. .project-tools {
  459. float: none;
  460. }
  461. }
  462. @media (min-width: @screen-md) {
  463. .dash-cell-checkbox {
  464. width: 3%;
  465. }
  466. .dash-cell-name {
  467. width: 46%;
  468. }
  469. .dash-cell-owner {
  470. width: 13%;
  471. }
  472. .dash-cell-date {
  473. width: 16%;
  474. }
  475. .dash-cell-actions {
  476. width: 22%;
  477. }
  478. tbody {
  479. .dash-cell-actions {
  480. white-space: nowrap;
  481. }
  482. }
  483. }
  484. @media (min-width: @screen-lg) {
  485. .dash-cell-checkbox {
  486. width: 3%;
  487. }
  488. .dash-cell-name {
  489. width: 46%;
  490. }
  491. .dash-cell-owner {
  492. width: 15%;
  493. }
  494. .dash-cell-date {
  495. width: 19%;
  496. }
  497. .dash-cell-actions {
  498. width: 17%;
  499. }
  500. }
  501. @media (min-width: 1440px) {
  502. .dash-cell-checkbox {
  503. width: 2%;
  504. }
  505. .dash-cell-name {
  506. width: 49%;
  507. }
  508. .dash-cell-owner {
  509. width: 16%;
  510. }
  511. .dash-cell-date {
  512. width: 19%;
  513. }
  514. .dash-cell-actions {
  515. width: 14%;
  516. }
  517. }
  518. @media (max-width: @screen-xs-max) {
  519. @actions-btn-size: 48px;
  520. tr {
  521. position: relative;
  522. display: flex;
  523. flex-direction: column;
  524. td {
  525. padding-top: @line-height-computed / 6;
  526. padding-bottom: @line-height-computed / 6;
  527. }
  528. td:not(.dash-cell-actions) {
  529. padding-right: @actions-btn-size + 12.5px;
  530. }
  531. }
  532. .dash-cell-name,
  533. .dash-cell-owner,
  534. .dash-cell-date,
  535. .dash-cell-tag,
  536. .dash-cell-actions {
  537. display: block;
  538. width: auto;
  539. }
  540. .dash-cell-actions {
  541. position: absolute;
  542. top: 0;
  543. right: 0;
  544. padding: 0 !important;
  545. .dropdown-toggle {
  546. padding: 13px 15px;
  547. border-radius: 0;
  548. font-size: 14px;
  549. }
  550. }
  551. }
  552. }
  553. .loading-container {
  554. display: flex;
  555. flex-direction: column;
  556. justify-content: center;
  557. align-items: center;
  558. min-height: calc(~'100vh -' @header-height);
  559. .loading-screen-brand-container {
  560. margin: 0 auto;
  561. }
  562. }
  563. @media (max-width: @screen-xs-max) {
  564. .project-tools {
  565. float: left;
  566. margin-left: initial;
  567. }
  568. }
  569. .projects-toolbar,
  570. .tag-item {
  571. display: flex;
  572. align-items: center;
  573. }
  574. .projects-toolbar {
  575. .dropdown,
  576. .dropdown-toggle {
  577. max-width: 100%;
  578. }
  579. .dropdown {
  580. min-width: 0;
  581. }
  582. .dropdown-toggle {
  583. display: inline-flex;
  584. align-items: baseline;
  585. }
  586. }
  587. .projects-sort-dropdown {
  588. flex-shrink: 0;
  589. margin-left: auto;
  590. }
  591. #projects-types-dropdown {
  592. font-family: @font-family-serif;
  593. & + .projects-dropdown-menu {
  594. min-width: 226px;
  595. }
  596. }
  597. #projects-sort-dropdown {
  598. & + .projects-dropdown-menu {
  599. min-width: 156px;
  600. }
  601. }
  602. .projects-dropdown-menu {
  603. &.dropdown-menu {
  604. // Avoid line breaks for labels in menu items.
  605. // There is enough space for these on mobile devices (checked DE and EN translations).
  606. white-space: nowrap;
  607. }
  608. }
  609. .projects-types-menu-item {
  610. .menu-item-button-icon {
  611. left: 10px;
  612. }
  613. &.projects-types-menu-tag-item {
  614. display: flex;
  615. .edit-btn {
  616. padding: 12px 14px;
  617. }
  618. }
  619. }
  620. .projects-sort-menu-item {
  621. .menu-item-button-icon {
  622. left: 14px;
  623. }
  624. }
  625. .projects-action-menu-item {
  626. .menu-item-button-icon {
  627. left: 11px;
  628. }
  629. }
  630. }
  631. .current-plan {
  632. vertical-align: middle;
  633. line-height: @line-height-base;
  634. a.current-plan-label {
  635. text-decoration: none;
  636. color: @text-color;
  637. }
  638. }
  639. .project-list-upload-project-modal-uppy-dashboard .uppy-Root {
  640. .uppy-Dashboard-AddFiles-title {
  641. display: flex;
  642. flex-direction: column;
  643. color: @ol-blue-gray-3;
  644. white-space: pre-line;
  645. button.uppy-Dashboard-browse {
  646. background-color: @ol-green;
  647. color: @white;
  648. margin-bottom: @margin-md;
  649. padding: 4px 16px 5px;
  650. height: 46px;
  651. border-radius: 23px;
  652. font-weight: 700;
  653. display: flex;
  654. justify-content: center;
  655. align-items: center;
  656. font-size: @font-size-large;
  657. font-family: @font-family-sans-serif;
  658. }
  659. }
  660. }
  661. .btn-transparent {
  662. box-shadow: none !important;
  663. background: none !important;
  664. border-radius: 0 !important;
  665. color: inherit !important;
  666. font-weight: 400;
  667. &:hover {
  668. box-shadow: none !important;
  669. background: none !important;
  670. color: inherit !important;
  671. }
  672. }
  673. .menu-item-button,
  674. #new-project-button-projects-table + .dropdown-menu [role='menuitem'] {
  675. padding: 12px 20px;
  676. }
  677. .menu-item-button {
  678. position: relative;
  679. width: 100%;
  680. border: none;
  681. box-shadow: none;
  682. background: inherit;
  683. color: @ol-blue-gray-5;
  684. text-align: left;
  685. .menu-item-button-text {
  686. padding-left: 14px;
  687. }
  688. .menu-item-button-icon {
  689. position: absolute;
  690. top: 50%;
  691. transform: translateY(-50%);
  692. &.fa-spinner {
  693. top: 30%;
  694. }
  695. }
  696. }
  697. .project-list-load-more-button {
  698. margin-bottom: @margin-sm;
  699. }
  700. .tag-dropdown-button {
  701. display: block;
  702. width: 100%;
  703. font-weight: normal;
  704. font-size: @font-size-base;
  705. text-align: left;
  706. color: @gray-dark;
  707. background-color: transparent;
  708. border-radius: unset;
  709. border: none;
  710. border-bottom: solid 1px transparent;
  711. padding: 3px 20px;
  712. &:active,
  713. &:focus {
  714. color: @gray-dark;
  715. background-color: transparent;
  716. text-decoration: none;
  717. outline: none;
  718. }
  719. &:hover {
  720. color: @white;
  721. background-color: @ol-green;
  722. }
  723. .tag-checkbox {
  724. width: 16px;
  725. }
  726. .tag-dot {
  727. display: inline-block;
  728. position: relative;
  729. border: 1px solid #ffffff;
  730. width: 14px;
  731. height: 14px;
  732. border-radius: 7px;
  733. text-align: center;
  734. top: 1px;
  735. }
  736. }
  737. .project-list-sidebar-survey-wrapper {
  738. position: sticky;
  739. bottom: 0;
  740. .alert-info-alt {
  741. font-size: @font-size-small;
  742. margin-bottom: 0;
  743. a {
  744. text-decoration: none;
  745. }
  746. }
  747. @media (max-width: @screen-xs-max) {
  748. position: static;
  749. margin-top: @margin-sm;
  750. .alert-info-alt {
  751. font-size: unset;
  752. &:before {
  753. display: none;
  754. }
  755. .project-list-sidebar-survey-link {
  756. display: block;
  757. align-items: center;
  758. min-width: @mobile-action-element-width;
  759. min-height: @mobile-action-element-height;
  760. padding-top: @padding-md;
  761. }
  762. }
  763. }
  764. }
  765. .color-picker-item {
  766. height: 28px;
  767. width: 28px;
  768. cursor: pointer;
  769. position: relative;
  770. outline: none;
  771. border-radius: 4px;
  772. margin: 0 14px 0 0;
  773. display: inline-block;
  774. vertical-align: middle;
  775. &:focus-visible {
  776. box-shadow:
  777. 0 0 0 2px @white,
  778. 0 0 0 3px @blue-50,
  779. 0 0 0 5px @blue-30;
  780. }
  781. &.more-button {
  782. border: 1px solid @gray-dark;
  783. .color-picker-more {
  784. color: @gray-dark;
  785. margin: 3px;
  786. font-weight: bold;
  787. @media (max-width: @screen-xs-max) {
  788. margin: 5px;
  789. }
  790. }
  791. .color-picker-more-open {
  792. color: @gray-dark;
  793. margin: 3px;
  794. font-weight: bold;
  795. @media (max-width: @screen-xs-max) {
  796. margin: 5px;
  797. }
  798. }
  799. }
  800. .color-picker-item-icon {
  801. margin: 4px;
  802. color: @white;
  803. font-weight: bold;
  804. }
  805. @media (max-width: @screen-xs-max) {
  806. height: 32px;
  807. width: 32px;
  808. margin: 24px 24px;
  809. .color-picker-item-icon {
  810. margin: 6px;
  811. color: @white;
  812. }
  813. }
  814. }
  815. .color-picker-more-wrapper {
  816. position: relative;
  817. display: inline-block;
  818. .custom-picker {
  819. position: absolute;
  820. user-select: none;
  821. @media (max-width: @screen-xs-max) {
  822. top: 56px;
  823. left: 24px;
  824. }
  825. }
  826. .popover-backdrop {
  827. position: fixed;
  828. top: 0;
  829. right: 0;
  830. bottom: 0;
  831. left: 0;
  832. }
  833. }
  834. .clone-project-tag {
  835. display: flex;
  836. &:hover .label.tag-label-name {
  837. background-color: @tag-bg-color;
  838. }
  839. }