project-list-react.less 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758
  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. }
  8. .container:before {
  9. content: '';
  10. display: block;
  11. float: left;
  12. height: 100%;
  13. }
  14. .fill {
  15. position: relative;
  16. &:after {
  17. content: '';
  18. display: block;
  19. clear: left;
  20. }
  21. }
  22. .project-list-wrapper {
  23. display: flex;
  24. align-items: stretch;
  25. min-height: calc(~'100vh -' @header-height);
  26. }
  27. .project-list-sidebar-wrapper-react {
  28. position: relative;
  29. background-color: @sidebar-bg;
  30. flex: @project-list-sidebar-wrapper-flex;
  31. min-height: calc(~'100vh -' @header-height);
  32. max-width: 320px;
  33. min-width: 200px;
  34. .project-list-sidebar-subwrapper {
  35. display: flex;
  36. flex-direction: column;
  37. height: 100%;
  38. .project-list-sidebar-react {
  39. flex-grow: 1;
  40. padding-left: 15px;
  41. padding-right: 15px;
  42. -ms-overflow-style: -ms-autohiding-scrollbar;
  43. padding-top: @content-margin-vertical;
  44. padding-bottom: @content-margin-vertical;
  45. color: @sidebar-color;
  46. .small {
  47. color: @sidebar-color;
  48. }
  49. button {
  50. white-space: normal;
  51. word-wrap: anywhere;
  52. // prevents buttons from expanding sidebar width
  53. }
  54. > .dropdown {
  55. width: 100%;
  56. .new-project-button {
  57. width: 100%;
  58. }
  59. }
  60. }
  61. }
  62. }
  63. .project-list-welcome-wrapper {
  64. width: 100%;
  65. }
  66. .project-list-main-react {
  67. max-width: 100%;
  68. overflow-x: hidden;
  69. padding: @content-margin-vertical @grid-gutter-width / 2;
  70. }
  71. ul.project-list-filters {
  72. margin: @margin-sm @folders-menu-margin;
  73. .subdued {
  74. color: @gray-light;
  75. }
  76. > li {
  77. cursor: pointer;
  78. position: relative;
  79. > button {
  80. display: block;
  81. width: 100%;
  82. font-weight: normal;
  83. text-align: left;
  84. color: @sidebar-link-color;
  85. background-color: transparent;
  86. border-radius: unset;
  87. border: none;
  88. border-bottom: solid 1px transparent;
  89. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  90. &:hover {
  91. background-color: @sidebar-hover-bg;
  92. text-decoration: @sidebar-hover-text-decoration;
  93. }
  94. &:focus {
  95. text-decoration: none;
  96. outline: none;
  97. }
  98. }
  99. &.separator {
  100. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  101. cursor: auto;
  102. }
  103. }
  104. > li.active {
  105. border-radius: @sidebar-active-border-radius;
  106. > button {
  107. background-color: @sidebar-active-bg;
  108. font-weight: @sidebar-active-font-weight;
  109. color: @sidebar-active-color;
  110. .subdued {
  111. color: @sidebar-active-color;
  112. }
  113. }
  114. }
  115. h2 {
  116. margin-top: @folders-title-margin-top;
  117. margin-bottom: @folders-title-margin-bottom;
  118. font-size: @folders-title-font-size;
  119. color: @folders-title-color;
  120. text-transform: @folders-title-text-transform;
  121. padding: @folders-title-padding;
  122. font-weight: @folders-title-font-weight;
  123. font-family: @font-family-sans-serif;
  124. }
  125. > li.tag {
  126. &.active {
  127. .tag-menu > button {
  128. color: white;
  129. border-color: white;
  130. &:hover {
  131. background-color: @folders-tag-menu-active-hover;
  132. }
  133. }
  134. }
  135. &.untagged {
  136. button.tag-name {
  137. span.name {
  138. font-style: italic;
  139. padding-left: 0;
  140. }
  141. }
  142. }
  143. &:hover {
  144. &:not(.active) {
  145. background-color: @folders-tag-hover;
  146. }
  147. .tag-menu {
  148. display: block;
  149. }
  150. }
  151. &:not(.active) {
  152. .tag-menu > a:hover {
  153. background-color: @folders-tag-menu-hover;
  154. }
  155. }
  156. button.tag-name {
  157. position: relative;
  158. padding: @folders-tag-padding;
  159. display: @folders-tag-display;
  160. word-wrap: anywhere;
  161. span.name {
  162. padding-left: 0.5em;
  163. line-height: @folders-tag-line-height;
  164. }
  165. }
  166. }
  167. .tag-menu {
  168. button.dropdown-toggle {
  169. border: 1px solid @folders-tag-border-color;
  170. border-radius: @border-radius-small;
  171. background-color: transparent;
  172. color: @folders-tag-menu-color;
  173. display: block;
  174. width: 16px;
  175. height: 16px;
  176. position: relative;
  177. .caret {
  178. position: absolute;
  179. top: 6px;
  180. left: 1px;
  181. }
  182. }
  183. display: none;
  184. width: auto;
  185. position: absolute;
  186. top: 50%;
  187. margin-top: -8px; // Half the element height.
  188. right: 4px;
  189. &.open {
  190. display: block;
  191. }
  192. button.tag-action {
  193. border-radius: unset;
  194. width: 100%;
  195. background-color: transparent;
  196. border-color: transparent;
  197. color: @gray-dark;
  198. text-align: left;
  199. font-weight: normal;
  200. &:hover {
  201. color: @white;
  202. background-color: @ol-green;
  203. }
  204. &:active {
  205. outline: none;
  206. }
  207. }
  208. }
  209. }
  210. .project-dash-table {
  211. width: 100%;
  212. table-layout: fixed;
  213. tr {
  214. border-bottom: 1px solid @structured-list-border-color;
  215. }
  216. th,
  217. td {
  218. padding: (@line-height-computed / 4) @line-height-computed / 2;
  219. vertical-align: top;
  220. }
  221. tr {
  222. th:first-child,
  223. td:first-child,
  224. th:last-child,
  225. td:last-child {
  226. padding-right: @line-height-computed - (@grid-gutter-width / 2);
  227. }
  228. &:hover {
  229. &:not(.no-projects) {
  230. background-color: @structured-list-hover-color;
  231. }
  232. }
  233. }
  234. thead {
  235. tr:hover {
  236. background-color: transparent;
  237. }
  238. }
  239. tbody {
  240. tr:last-child {
  241. border-bottom: 0 none;
  242. }
  243. }
  244. .table-header-sort-btn {
  245. border: 0;
  246. text-align: left;
  247. color: @ol-type-color;
  248. padding: 0;
  249. font-weight: bold;
  250. &:hover,
  251. &:focus {
  252. color: @ol-type-color;
  253. text-decoration: none;
  254. }
  255. }
  256. .dash-cell-checkbox {
  257. width: 5%;
  258. input[type='checkbox'] {
  259. margin-top: 5px;
  260. }
  261. }
  262. .dash-cell-name {
  263. width: 50%;
  264. overflow: hidden;
  265. text-overflow: ellipsis;
  266. }
  267. .dash-cell-owner {
  268. width: 20%;
  269. overflow: hidden;
  270. text-overflow: ellipsis;
  271. }
  272. .dash-cell-date {
  273. width: 25%;
  274. overflow: hidden;
  275. text-overflow: ellipsis;
  276. }
  277. .dash-cell-actions {
  278. display: none;
  279. text-align: right;
  280. white-space: nowrap;
  281. }
  282. .dash-cell-date-owner {
  283. font-size: 14px;
  284. .text-overflow();
  285. }
  286. .dash-cell-tag {
  287. .tag-label {
  288. padding: 14px 0;
  289. cursor: pointer;
  290. &:not(.tag-label-close-hover) {
  291. &:hover,
  292. &:focus {
  293. .label.tag-label-name {
  294. color: @tag-color;
  295. background-color: @tag-bg-hover-color;
  296. outline-width: 0;
  297. }
  298. }
  299. }
  300. &:first-child {
  301. margin-left: initial;
  302. }
  303. }
  304. }
  305. @media (min-width: @screen-xs) {
  306. .dash-cell-checkbox {
  307. width: 4%;
  308. }
  309. .dash-cell-name {
  310. width: 50%;
  311. }
  312. .dash-cell-owner {
  313. width: 21%;
  314. }
  315. .dash-cell-date {
  316. width: 25%;
  317. }
  318. .dash-cell-actions {
  319. width: 0%;
  320. }
  321. }
  322. @media (min-width: @screen-sm) {
  323. .dash-cell-checkbox {
  324. width: 3%;
  325. }
  326. .dash-cell-name {
  327. width: 48%;
  328. }
  329. .dash-cell-owner {
  330. width: 13%;
  331. }
  332. .dash-cell-date {
  333. width: 15%;
  334. }
  335. .dash-cell-actions {
  336. display: table-cell;
  337. width: 21%;
  338. }
  339. .project-tools {
  340. float: none;
  341. }
  342. }
  343. @media (min-width: @screen-md) {
  344. .dash-cell-checkbox {
  345. width: 3%;
  346. }
  347. .dash-cell-name {
  348. width: 50%;
  349. }
  350. .dash-cell-owner {
  351. width: 13%;
  352. }
  353. .dash-cell-date {
  354. width: 16%;
  355. }
  356. .dash-cell-actions {
  357. width: 18%;
  358. }
  359. }
  360. @media (min-width: @screen-lg) {
  361. .dash-cell-checkbox {
  362. width: 3%;
  363. }
  364. .dash-cell-name {
  365. width: 50%;
  366. }
  367. .dash-cell-owner {
  368. width: 15%;
  369. }
  370. .dash-cell-date {
  371. width: 19%;
  372. }
  373. .dash-cell-actions {
  374. width: 13%;
  375. }
  376. }
  377. @media (min-width: 1440px) {
  378. .dash-cell-checkbox {
  379. width: 2%;
  380. }
  381. .dash-cell-name {
  382. width: 50%;
  383. }
  384. .dash-cell-owner {
  385. width: 16%;
  386. }
  387. .dash-cell-date {
  388. width: 19%;
  389. }
  390. .dash-cell-actions {
  391. width: 13%;
  392. }
  393. }
  394. @media (max-width: @screen-xs-max) {
  395. @actions-btn-size: 48px;
  396. tr {
  397. position: relative;
  398. display: flex;
  399. flex-direction: column;
  400. td {
  401. padding-top: @line-height-computed / 6;
  402. padding-bottom: @line-height-computed / 6;
  403. }
  404. td:not(.dash-cell-actions) {
  405. padding-right: @actions-btn-size + 12.5px;
  406. }
  407. }
  408. .dash-cell-name,
  409. .dash-cell-owner,
  410. .dash-cell-date,
  411. .dash-cell-tag,
  412. .dash-cell-actions {
  413. display: block;
  414. width: auto;
  415. }
  416. .dash-cell-actions {
  417. position: absolute;
  418. top: 0;
  419. right: 0;
  420. padding: 0 !important;
  421. .dropdown-toggle {
  422. padding: 13px 15px;
  423. border-radius: 0;
  424. font-size: 14px;
  425. }
  426. }
  427. }
  428. }
  429. .loading-container {
  430. display: flex;
  431. align-items: center;
  432. min-height: calc(~'100vh -' @header-height);
  433. .loading-screen-brand-container {
  434. margin: 0 auto;
  435. }
  436. }
  437. @media (max-width: @screen-xs-max) {
  438. .project-tools {
  439. float: left;
  440. }
  441. }
  442. .projects-toolbar,
  443. .tag-item {
  444. display: flex;
  445. align-items: center;
  446. }
  447. .projects-toolbar {
  448. .dropdown,
  449. .dropdown-toggle {
  450. max-width: 100%;
  451. }
  452. .dropdown {
  453. min-width: 0;
  454. }
  455. .dropdown-toggle {
  456. display: inline-flex;
  457. align-items: baseline;
  458. }
  459. }
  460. .projects-sort-dropdown {
  461. flex-shrink: 0;
  462. margin-left: auto;
  463. }
  464. #projects-types-dropdown {
  465. font-family: @font-family-serif;
  466. & + .projects-dropdown-menu {
  467. min-width: 226px;
  468. }
  469. }
  470. #projects-sort-dropdown {
  471. & + .projects-dropdown-menu {
  472. min-width: 156px;
  473. }
  474. }
  475. .projects-dropdown-menu {
  476. .dropdown-header {
  477. padding: 14px 20px;
  478. font-size: 13px;
  479. text-transform: uppercase;
  480. }
  481. }
  482. .projects-types-menu-item {
  483. .menu-item-button-icon {
  484. left: 10px;
  485. }
  486. &.projects-types-menu-tag-item {
  487. display: flex;
  488. .edit-btn {
  489. padding: 12px 14px;
  490. }
  491. }
  492. }
  493. .projects-sort-menu-item {
  494. .menu-item-button-icon {
  495. left: 14px;
  496. }
  497. }
  498. .projects-action-menu-item {
  499. .menu-item-button-icon {
  500. left: 11px;
  501. }
  502. }
  503. }
  504. .current-plan {
  505. vertical-align: middle;
  506. line-height: @line-height-base;
  507. a.current-plan-label {
  508. text-decoration: none;
  509. color: @text-color;
  510. }
  511. }
  512. .project-list-upload-project-modal-uppy-dashboard .uppy-Root {
  513. .uppy-Dashboard-AddFiles-title {
  514. display: flex;
  515. flex-direction: column;
  516. color: @ol-blue-gray-3;
  517. white-space: pre-line;
  518. button.uppy-Dashboard-browse {
  519. background-color: @ol-green;
  520. color: @white;
  521. margin-bottom: @margin-md;
  522. padding: 4px 16px 5px;
  523. height: 46px;
  524. border-radius: 23px;
  525. font-weight: 700;
  526. display: flex;
  527. justify-content: center;
  528. align-items: center;
  529. font-size: @font-size-large;
  530. font-family: @font-family-sans-serif;
  531. }
  532. }
  533. }
  534. .btn-transparent {
  535. box-shadow: none !important;
  536. background: none !important;
  537. border-radius: 0 !important;
  538. color: inherit !important;
  539. font-weight: 400;
  540. &:hover {
  541. box-shadow: none !important;
  542. background: none !important;
  543. color: inherit !important;
  544. }
  545. }
  546. .menu-item-button,
  547. #new-project-button-projects-table + .dropdown-menu [role='menuitem'] {
  548. padding: 12px 20px;
  549. }
  550. .menu-item-button {
  551. position: relative;
  552. width: 100%;
  553. border: none;
  554. box-shadow: none;
  555. background: inherit;
  556. color: @ol-blue-gray-5;
  557. text-align: left;
  558. .menu-item-button-text {
  559. padding-left: 14px;
  560. }
  561. .menu-item-button-icon {
  562. position: absolute;
  563. top: 50%;
  564. transform: translateY(-50%);
  565. }
  566. }
  567. .project-list-load-more {
  568. display: flex;
  569. flex-direction: column;
  570. justify-content: center;
  571. align-items: center;
  572. }
  573. .project-list-load-more-button {
  574. margin-bottom: @margin-sm;
  575. }
  576. .tag-dropdown-button {
  577. display: block;
  578. width: 100%;
  579. font-weight: normal;
  580. font-size: @font-size-base;
  581. text-align: left;
  582. color: @gray-dark;
  583. background-color: transparent;
  584. border-radius: unset;
  585. border: none;
  586. border-bottom: solid 1px transparent;
  587. padding: 3px 20px;
  588. &:active,
  589. &:focus {
  590. color: @gray-dark;
  591. background-color: transparent;
  592. text-decoration: none;
  593. outline: none;
  594. }
  595. &:hover {
  596. color: @white;
  597. background-color: @ol-green;
  598. }
  599. }
  600. .project-list-sidebar-survey-wrapper {
  601. position: sticky;
  602. bottom: 0;
  603. .alert-info-alt {
  604. font-size: @font-size-small;
  605. margin-bottom: 0;
  606. a {
  607. text-decoration: none;
  608. }
  609. }
  610. @media (max-width: @screen-xs-max) {
  611. position: static;
  612. margin-top: @margin-sm;
  613. .alert-info-alt {
  614. font-size: unset;
  615. &:before {
  616. display: none;
  617. }
  618. .project-list-sidebar-survey-link {
  619. display: block;
  620. align-items: center;
  621. min-width: @mobile-action-element-width;
  622. min-height: @mobile-action-element-height;
  623. padding-top: @padding-md;
  624. }
  625. }
  626. }
  627. }