project-list-react.less 13 KB

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