project-list-react.less 12 KB

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