project-list-react.less 14 KB

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