project-list-react.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688
  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. }
  422. .projects-toolbar,
  423. .tag-item {
  424. display: flex;
  425. align-items: center;
  426. }
  427. .projects-toolbar {
  428. flex-wrap: wrap;
  429. }
  430. #projects-types-dropdown {
  431. font-family: @font-family-serif;
  432. & + .projects-dropdown-menu {
  433. min-width: 226px;
  434. }
  435. }
  436. #projects-sort-dropdown {
  437. & + .projects-dropdown-menu {
  438. min-width: 156px;
  439. }
  440. }
  441. .projects-dropdown-menu {
  442. .dropdown-header {
  443. padding: 14px 20px;
  444. font-size: 13px;
  445. text-transform: uppercase;
  446. }
  447. }
  448. .projects-types-menu-item {
  449. .menu-item-button-icon {
  450. left: 10px;
  451. }
  452. &.projects-types-menu-tag-item {
  453. display: flex;
  454. .edit-btn {
  455. padding: 12px 14px;
  456. }
  457. }
  458. }
  459. .projects-sort-menu-item {
  460. .menu-item-button-icon {
  461. left: 14px;
  462. }
  463. }
  464. .projects-action-menu-item {
  465. .menu-item-button-icon {
  466. left: 11px;
  467. }
  468. }
  469. }
  470. .project-list-react.container,
  471. .project-list-react .project-list-sidebar-wrapper,
  472. .project-list-react .project-list-main {
  473. height: 100%;
  474. }
  475. .current-plan {
  476. vertical-align: middle;
  477. line-height: @line-height-base;
  478. a.current-plan-label {
  479. text-decoration: none;
  480. color: @text-color;
  481. }
  482. }
  483. .project-list-upload-project-modal-uppy-dashboard .uppy-Root {
  484. .uppy-Dashboard-AddFiles-title {
  485. display: flex;
  486. flex-direction: column;
  487. color: @ol-blue-gray-3;
  488. white-space: pre-line;
  489. button.uppy-Dashboard-browse {
  490. background-color: @ol-green;
  491. color: @white;
  492. margin-bottom: @margin-md;
  493. padding: 4px 16px 5px;
  494. height: 46px;
  495. border-radius: 23px;
  496. font-weight: 700;
  497. display: flex;
  498. justify-content: center;
  499. align-items: center;
  500. font-size: @font-size-large;
  501. font-family: @font-family-sans-serif;
  502. }
  503. }
  504. }
  505. .btn-transparent {
  506. box-shadow: none !important;
  507. background: none !important;
  508. border-radius: 0 !important;
  509. color: inherit !important;
  510. font-weight: 400;
  511. &:hover {
  512. box-shadow: none !important;
  513. background: none !important;
  514. color: inherit !important;
  515. }
  516. }
  517. .menu-item-button,
  518. #new-project-button-projects-table + .dropdown-menu [role='menuitem'] {
  519. padding: 12px 20px;
  520. }
  521. .menu-item-button {
  522. position: relative;
  523. width: 100%;
  524. border: none;
  525. box-shadow: none;
  526. background: inherit;
  527. color: @ol-blue-gray-5;
  528. text-align: left;
  529. .menu-item-button-text {
  530. padding-left: 14px;
  531. }
  532. .menu-item-button-icon {
  533. position: absolute;
  534. top: 50%;
  535. transform: translateY(-50%);
  536. }
  537. }
  538. .project-list-load-more {
  539. display: flex;
  540. flex-direction: column;
  541. justify-content: center;
  542. align-items: center;
  543. }
  544. .project-list-load-more-button {
  545. margin-bottom: @margin-sm;
  546. }
  547. .tag-dropdown-button {
  548. display: block;
  549. width: 100%;
  550. font-weight: normal;
  551. font-size: @font-size-base;
  552. text-align: left;
  553. color: @gray-dark;
  554. background-color: transparent;
  555. border-radius: unset;
  556. border: none;
  557. border-bottom: solid 1px transparent;
  558. padding: 3px 20px;
  559. &:active,
  560. &:focus {
  561. color: @gray-dark;
  562. background-color: transparent;
  563. text-decoration: none;
  564. outline: none;
  565. }
  566. &:hover {
  567. color: @white;
  568. background-color: @ol-green;
  569. }
  570. }