project-list-react.less 13 KB

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