project-list-react.less 12 KB

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