project-list.less 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648
  1. @import './list/v1-import-modal.less';
  2. @keyframes pulse {
  3. 0% {
  4. opacity: 0.7;
  5. }
  6. 100% {
  7. opacity: 0.9;
  8. }
  9. }
  10. @keyframes fade-in {
  11. 0% {
  12. opacity: 0;
  13. }
  14. 100% {
  15. opacity: 1;
  16. }
  17. }
  18. .project-list-page {
  19. position: absolute;
  20. top: @header-height;
  21. bottom: @footer-height;
  22. padding-bottom: 0;
  23. width: 100%;
  24. overflow-x: hidden;
  25. overflow-y: auto;
  26. // Specificity needed to override default `body > .content` values
  27. body > .content& {
  28. min-height: calc(~'100vh -' (@header-height + @footer-height));
  29. padding-top: 0;
  30. }
  31. }
  32. .project-list-content when (@is-overleaf) {
  33. margin: 0;
  34. height: 100%;
  35. overflow: hidden;
  36. }
  37. .project-list-content when (@is-overleaf = false) {
  38. .container;
  39. }
  40. .project-list-empty {
  41. height: 100%;
  42. overflow-y: scroll;
  43. }
  44. .project-list-empty-col {
  45. display: flex;
  46. height: 100%;
  47. flex-direction: column;
  48. flex-wrap: nowrap;
  49. .row:first-child {
  50. flex-grow: 1; /* fill vertical space so notifications are pushed to bottom */
  51. }
  52. }
  53. .sidebar-new-proj-btn when (@is-overleaf) {
  54. .btn-block;
  55. }
  56. .project-list-row when (@is-overleaf) {
  57. height: 100%;
  58. min-height: calc(~'100vh -' (@header-height + @footer-height));
  59. }
  60. .project-list-container when (@is-overleaf) {
  61. height: 100%;
  62. }
  63. .project-list-sidebar {
  64. background-color: @sidebar-bg;
  65. padding-top: @content-margin-vertical;
  66. padding-bottom: @content-margin-vertical;
  67. color: @sidebar-color;
  68. .small {
  69. color: @sidebar-color;
  70. }
  71. }
  72. .project-list-sidebar when (@is-overleaf) {
  73. overflow-x: hidden;
  74. overflow-y: auto;
  75. -ms-overflow-style: -ms-autohiding-scrollbar;
  76. }
  77. .project-list-main {
  78. padding-top: @content-margin-vertical;
  79. padding-bottom: @content-margin-vertical;
  80. height: 100%;
  81. margin-left: -(@grid-gutter-width / 2);
  82. overflow-y: auto;
  83. }
  84. .project-header {
  85. .btn-group > .btn {
  86. padding-left: @line-height-base / 2;
  87. padding-right: @line-height-base / 2;
  88. }
  89. }
  90. .project-search {
  91. margin: @line-height-base 0;
  92. }
  93. .project-tools {
  94. display: inline;
  95. float: right;
  96. }
  97. .tags-dropdown-menu {
  98. max-width: 50vw;
  99. &.dropdown-menu > li > a {
  100. overflow: hidden;
  101. text-overflow: ellipsis;
  102. }
  103. }
  104. .project-list-table {
  105. width: 100%;
  106. table-layout: fixed;
  107. }
  108. .project-list-table-header-row {
  109. border-bottom: 1px solid @structured-list-border-color;
  110. }
  111. .project-list-table-row {
  112. position: relative;
  113. border-bottom: 1px solid @structured-list-border-color;
  114. &:last-child {
  115. border-bottom: 0 none;
  116. }
  117. &:hover {
  118. background-color: @structured-list-hover-color;
  119. }
  120. &:first-child {
  121. border-bottom-color: @structured-header-border-color;
  122. &:hover {
  123. background-color: transparent;
  124. }
  125. }
  126. }
  127. .project-list-table-name-cell,
  128. .project-list-table-owner-cell,
  129. .project-list-table-lastupdated-cell,
  130. .project-list-table-actions-cell,
  131. .project-list-table-no-projects-cell {
  132. padding: (@line-height-computed / 4) 0;
  133. vertical-align: top;
  134. }
  135. .project-list-table-no-projects-cell {
  136. text-align: center;
  137. }
  138. .project-list-table-name-cell {
  139. width: 50%;
  140. padding-right: @line-height-computed / 2;
  141. @media (min-width: @screen-md) {
  142. width: 47%;
  143. }
  144. @media (min-width: @screen-lg) {
  145. width: 50%;
  146. }
  147. }
  148. .project-list-table-name-container {
  149. position: relative;
  150. overflow: hidden;
  151. text-overflow: ellipsis;
  152. }
  153. // Extra specificity needed to override Bootstrap's own specificity.
  154. input.project-list-table-select-item[type='checkbox'] {
  155. position: absolute;
  156. left: @line-height-computed - (@grid-gutter-width / 2);
  157. margin-top: 5px;
  158. }
  159. .project-list-table-v1-badge-container {
  160. position: absolute;
  161. }
  162. .project-list-table-name {
  163. display: inline-block;
  164. padding-left: @line-height-computed * 1.5;
  165. vertical-align: top;
  166. }
  167. .project-list-table-name-link {
  168. padding: 0;
  169. }
  170. .project-list-table-owner-cell {
  171. width: 23%;
  172. padding-right: @line-height-computed / 2;
  173. overflow: hidden;
  174. text-overflow: ellipsis;
  175. @media (min-width: @screen-sm) {
  176. width: 12%;
  177. }
  178. }
  179. .project-list-table-lastupdated-cell {
  180. width: 27%;
  181. padding-right: @line-height-computed / 2;
  182. overflow: hidden;
  183. text-overflow: ellipsis;
  184. @media (min-width: @screen-sm) {
  185. width: 14%;
  186. }
  187. }
  188. .project-list-table-actions-cell {
  189. display: none;
  190. padding-right: @line-height-computed - (@grid-gutter-width / 2);
  191. text-align: right;
  192. white-space: nowrap;
  193. @media (min-width: @screen-sm) {
  194. display: table-cell;
  195. width: 18%;
  196. }
  197. @media (min-width: @screen-md) {
  198. width: 11%;
  199. }
  200. @media (min-width: @screen-lg) {
  201. width: 10%;
  202. }
  203. }
  204. .action-btn {
  205. padding: 0 0.3em;
  206. margin-left: 0.2em;
  207. }
  208. .first-project {
  209. width: 127px;
  210. text-align: center;
  211. }
  212. .user-profile {
  213. .progress {
  214. height: @line-height-computed / 2;
  215. margin-bottom: @line-height-computed / 4;
  216. }
  217. p {
  218. margin-bottom: @line-height-computed / 4;
  219. }
  220. }
  221. .user-notifications {
  222. ul {
  223. margin-bottom: 0px;
  224. }
  225. .notification-entry {
  226. .alert {
  227. .box-shadow(2px 4px 6px rgba(0, 0, 0, 0.25));
  228. display: flex;
  229. flex-wrap: wrap;
  230. @media (min-width: @screen-sm-min) {
  231. flex-wrap: nowrap;
  232. }
  233. }
  234. }
  235. }
  236. .notification-body {
  237. flex-grow: 1;
  238. width: 90%;
  239. @media (min-width: @screen-sm-min) {
  240. width: auto;
  241. }
  242. }
  243. .notification-action {
  244. margin-top: (@line-height-computed / 2); // match paragraph padding
  245. order: 1;
  246. @media (min-width: @screen-sm-min) {
  247. margin-top: 0;
  248. order: 0;
  249. padding-left: @padding-sm;
  250. }
  251. }
  252. .notification-close {
  253. padding-left: @padding-sm;
  254. text-align: right;
  255. width: 10%;
  256. @media (min-width: @screen-sm-min) {
  257. width: auto;
  258. }
  259. }
  260. ul.folders-menu {
  261. margin: @folders-menu-margin;
  262. .subdued {
  263. color: @gray-light;
  264. }
  265. > li {
  266. cursor: pointer;
  267. position: relative;
  268. > a {
  269. display: block;
  270. color: @sidebar-link-color;
  271. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  272. border-bottom: solid 1px transparent;
  273. &:hover {
  274. background-color: @sidebar-hover-bg;
  275. text-decoration: @sidebar-hover-text-decoration;
  276. }
  277. &:focus {
  278. text-decoration: none;
  279. }
  280. }
  281. > a when (@is-overleaf = false) {
  282. font-size: 0.9rem;
  283. }
  284. &.separator {
  285. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  286. cursor: auto;
  287. }
  288. }
  289. > li.active {
  290. border-radius: @sidebar-active-border-radius;
  291. > a {
  292. background-color: @sidebar-active-bg;
  293. font-weight: @sidebar-active-font-weight;
  294. color: @sidebar-active-color;
  295. .subdued {
  296. color: @sidebar-active-color;
  297. }
  298. }
  299. }
  300. > li.folders-menu-item-with-tooltip {
  301. > a {
  302. padding-right: 1.5 * @folders-menu-item-h-padding +
  303. @folders-menu-tooltip-size;
  304. }
  305. }
  306. > li > a.small {
  307. color: @gray;
  308. }
  309. h2 {
  310. margin-top: @folders-title-margin-top;
  311. margin-bottom: @folders-title-margin-bottom;
  312. font-size: @folders-title-font-size;
  313. color: @folders-title-color;
  314. text-transform: @folders-title-text-transform;
  315. padding: @folders-title-padding;
  316. font-weight: @folders-title-font-weight;
  317. font-family: @font-family-sans-serif;
  318. }
  319. > li.tag {
  320. &.active {
  321. .tag-menu > a {
  322. color: white;
  323. border-color: white;
  324. &:hover {
  325. background-color: @folders-tag-menu-active-hover;
  326. }
  327. }
  328. }
  329. &.untagged {
  330. a.tag-name {
  331. span.name {
  332. font-style: italic;
  333. padding-left: 0;
  334. }
  335. }
  336. }
  337. &:hover {
  338. &:not(.active) {
  339. background-color: @folders-tag-hover;
  340. }
  341. .tag-menu {
  342. display: block;
  343. }
  344. }
  345. &:not(.active) {
  346. .tag-menu > a:hover {
  347. background-color: @folders-tag-menu-hover;
  348. }
  349. }
  350. a.tag-name {
  351. position: relative;
  352. padding: @folders-tag-padding;
  353. display: @folders-tag-display;
  354. span.name {
  355. padding-left: 0.5em;
  356. line-height: @folders-tag-line-height;
  357. }
  358. }
  359. .tag-menu {
  360. > a {
  361. border: 1px solid @folders-tag-border-color;
  362. border-radius: @border-radius-small;
  363. color: @folders-tag-menu-color;
  364. display: block;
  365. width: 16px;
  366. height: 16px;
  367. position: relative;
  368. .caret {
  369. position: absolute;
  370. top: 6px;
  371. left: 1px;
  372. }
  373. }
  374. display: none;
  375. position: absolute;
  376. top: 50%;
  377. margin-top: -8px; // Half the element height.
  378. right: 4px;
  379. &.open {
  380. display: block;
  381. }
  382. }
  383. }
  384. }
  385. .folders-menu-tooltip-trigger {
  386. display: none;
  387. position: absolute;
  388. top: 50%;
  389. right: @folders-menu-item-h-padding;
  390. width: @folders-menu-tooltip-size;
  391. height: @folders-menu-tooltip-size;
  392. margin-top: -(floor(@folders-menu-tooltip-size / 2));
  393. line-height: @folders-menu-tooltip-size;
  394. background-color: @folders-menu-tooltip-bg;
  395. font-family: @font-family-serif;
  396. color: #fff;
  397. font-style: italic;
  398. border-radius: ceil(@folders-menu-tooltip-size / 2);
  399. text-align: center;
  400. font-weight: 700;
  401. @media (min-width: @screen-sm-min) {
  402. display: block;
  403. }
  404. }
  405. .project-action-alert {
  406. display: flex;
  407. margin-bottom: 0;
  408. align-items: center;
  409. }
  410. .project-action-alert-msg {
  411. flex-grow: 1;
  412. padding-right: 10px;
  413. }
  414. form.project-search {
  415. .form-group {
  416. margin-bottom: 0;
  417. }
  418. }
  419. ul.structured-list {
  420. list-style-type: none;
  421. margin: 0;
  422. overflow: hidden;
  423. overflow-y: auto;
  424. -ms-overflow-style: -ms-autohiding-scrollbar;
  425. li {
  426. border-bottom: 1px solid @structured-list-border-color;
  427. padding: (@line-height-computed / 4) 0;
  428. &:last-child {
  429. border-bottom: 0 none;
  430. }
  431. &:hover {
  432. background-color: @structured-list-hover-color;
  433. }
  434. &:first-child {
  435. border-bottom-color: @structured-header-border-color;
  436. &:hover {
  437. background-color: transparent;
  438. }
  439. }
  440. a {
  441. color: @structured-list-link-color;
  442. }
  443. .header when (@is-overleaf = true) {
  444. font-weight: 600;
  445. }
  446. .header when (@is-overleaf = false) {
  447. text-transform: uppercase;
  448. }
  449. .select-item,
  450. .select-all {
  451. position: absolute;
  452. left: @line-height-computed;
  453. }
  454. .select-item + span,
  455. .select-all + span {
  456. display: inline-block;
  457. padding-left: @line-height-computed * 1.5;
  458. max-width: 100%;
  459. overflow: hidden;
  460. text-overflow: ellipsis;
  461. vertical-align: top;
  462. }
  463. }
  464. }
  465. .project-list-card when (@is-overleaf) {
  466. padding: 0 (@line-height-computed / 4);
  467. }
  468. ul.project-list {
  469. li {
  470. .last-modified when (@is-overleaf = false) {
  471. font-size: 0.8rem;
  472. }
  473. .owner when (@is-overleaf = false) {
  474. font-size: 0.8rem;
  475. }
  476. .owner when (@is-overleaf = false) {
  477. margin-right: 0;
  478. }
  479. .projectName {
  480. margin-right: @line-height-computed / 4;
  481. padding: 0;
  482. vertical-align: inherit;
  483. white-space: normal;
  484. text-align: left;
  485. }
  486. .v1-badge {
  487. margin-left: -4px;
  488. }
  489. .action-btn {
  490. padding: 0 0.3em;
  491. margin-left: 0.2em;
  492. }
  493. }
  494. i.tablesort {
  495. padding-left: 8px;
  496. }
  497. }
  498. .tag-label {
  499. margin-left: @line-height-computed / 4;
  500. position: relative;
  501. display: inline-block;
  502. white-space: nowrap;
  503. top: @tag-top-adjustment;
  504. }
  505. // Extra specificity needed to override Bootstrap's own specificity.
  506. .label.tag-label-name,
  507. .label.tag-label-remove {
  508. display: inline-block;
  509. padding: 3px 4px;
  510. border-radius: @tag-border-radius;
  511. background-color: @tag-bg-color;
  512. color: @tag-color;
  513. vertical-align: text-bottom;
  514. border-width: 0;
  515. &:hover,
  516. &:focus {
  517. color: @tag-color;
  518. background-color: @tag-bg-hover-color;
  519. outline-width: 0;
  520. }
  521. }
  522. .label.tag-label-name {
  523. padding-right: 2px;
  524. border-top-right-radius: 0;
  525. border-bottom-right-radius: 0;
  526. max-width: @tag-max-width;
  527. overflow: hidden;
  528. text-overflow: ellipsis;
  529. > .fa {
  530. margin-right: 0.3em;
  531. }
  532. }
  533. .label.tag-label-remove {
  534. padding-left: 2px;
  535. border-top-left-radius: 0;
  536. border-bottom-left-radius: 0;
  537. }
  538. .user_details_auto_complete {
  539. ul > li {
  540. list-style: none;
  541. }
  542. .autocomplete {
  543. width: 100%;
  544. position: relative;
  545. }
  546. .autocomplete ul {
  547. position: absolute;
  548. top: 100%;
  549. left: 0;
  550. z-index: @zindex-dropdown;
  551. float: left;
  552. min-width: 160px;
  553. padding: 5px 0;
  554. margin: 2px 0 0; // override default ul
  555. list-style: none;
  556. font-size: @font-size-base;
  557. background-color: @dropdown-bg;
  558. border: 1px solid @dropdown-fallback-border; // IE8 fallback
  559. border: 1px solid @dropdown-border;
  560. border-radius: @border-radius-base;
  561. .box-shadow(0 6px 12px rgba(0, 0, 0, 0.175));
  562. background-clip: padding-box;
  563. // Links within the dropdown menu
  564. > li {
  565. display: block;
  566. padding: 3px 20px;
  567. clear: both;
  568. font-weight: normal;
  569. line-height: @line-height-base;
  570. color: @dropdown-link-color;
  571. white-space: nowrap; // prevent links from randomly breaking onto new lines
  572. }
  573. > li.active {
  574. text-decoration: none;
  575. color: @dropdown-link-hover-color;
  576. background-color: @dropdown-link-hover-bg;
  577. }
  578. }
  579. .autocomplete .highlight {
  580. font-weight: 700;
  581. }
  582. }
  583. .minimal-create-proj-dropdown {
  584. text-align: center;
  585. &-menu {
  586. width: 200px;
  587. left: 50%;
  588. margin-left: -100px;
  589. }
  590. }