project-list-react.less 13 KB

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