project-list.less 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640
  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-name {
  160. display: inline-block;
  161. padding-left: @line-height-computed * 1.5;
  162. vertical-align: top;
  163. }
  164. .project-list-table-name-link {
  165. padding: 0;
  166. }
  167. .project-list-table-owner-cell {
  168. width: 23%;
  169. padding-right: @line-height-computed / 2;
  170. overflow: hidden;
  171. text-overflow: ellipsis;
  172. @media (min-width: @screen-sm) {
  173. width: 12%;
  174. }
  175. }
  176. .project-list-table-lastupdated-cell {
  177. width: 27%;
  178. padding-right: @line-height-computed / 2;
  179. overflow: hidden;
  180. text-overflow: ellipsis;
  181. @media (min-width: @screen-sm) {
  182. width: 14%;
  183. }
  184. }
  185. .project-list-table-actions-cell {
  186. display: none;
  187. padding-right: @line-height-computed - (@grid-gutter-width / 2);
  188. text-align: right;
  189. white-space: nowrap;
  190. @media (min-width: @screen-sm) {
  191. display: table-cell;
  192. width: 18%;
  193. }
  194. @media (min-width: @screen-md) {
  195. width: 11%;
  196. }
  197. @media (min-width: @screen-lg) {
  198. width: 10%;
  199. }
  200. }
  201. .action-btn {
  202. padding: 0 0.3em;
  203. margin-left: 0.2em;
  204. }
  205. .first-project {
  206. width: 127px;
  207. text-align: center;
  208. }
  209. .user-profile {
  210. .progress {
  211. height: @line-height-computed / 2;
  212. margin-bottom: @line-height-computed / 4;
  213. }
  214. p {
  215. margin-bottom: @line-height-computed / 4;
  216. }
  217. }
  218. .user-notifications {
  219. ul {
  220. margin-bottom: 0px;
  221. }
  222. .notification-entry {
  223. .alert {
  224. .box-shadow(2px 4px 6px rgba(0, 0, 0, 0.25));
  225. display: flex;
  226. flex-wrap: wrap;
  227. @media (min-width: @screen-sm-min) {
  228. flex-wrap: nowrap;
  229. }
  230. }
  231. }
  232. }
  233. .notification-body {
  234. flex-grow: 1;
  235. width: 90%;
  236. @media (min-width: @screen-sm-min) {
  237. width: auto;
  238. }
  239. }
  240. .notification-action {
  241. margin-top: (@line-height-computed / 2); // match paragraph padding
  242. order: 1;
  243. @media (min-width: @screen-sm-min) {
  244. margin-top: 0;
  245. order: 0;
  246. padding-left: @padding-sm;
  247. }
  248. }
  249. .notification-close {
  250. padding-left: @padding-sm;
  251. text-align: right;
  252. width: 10%;
  253. @media (min-width: @screen-sm-min) {
  254. width: auto;
  255. }
  256. }
  257. ul.folders-menu {
  258. margin: @folders-menu-margin;
  259. .subdued {
  260. color: @gray-light;
  261. }
  262. > li {
  263. cursor: pointer;
  264. position: relative;
  265. > a {
  266. display: block;
  267. color: @sidebar-link-color;
  268. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  269. border-bottom: solid 1px transparent;
  270. &:hover {
  271. background-color: @sidebar-hover-bg;
  272. text-decoration: @sidebar-hover-text-decoration;
  273. }
  274. &:focus {
  275. text-decoration: none;
  276. }
  277. }
  278. > a when (@is-overleaf = false) {
  279. font-size: 0.9rem;
  280. }
  281. &.separator {
  282. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  283. cursor: auto;
  284. }
  285. }
  286. > li.active {
  287. border-radius: @sidebar-active-border-radius;
  288. > a {
  289. background-color: @sidebar-active-bg;
  290. font-weight: @sidebar-active-font-weight;
  291. color: @sidebar-active-color;
  292. .subdued {
  293. color: @sidebar-active-color;
  294. }
  295. }
  296. }
  297. > li.folders-menu-item-with-tooltip {
  298. > a {
  299. padding-right: 1.5 * @folders-menu-item-h-padding +
  300. @folders-menu-tooltip-size;
  301. }
  302. }
  303. > li > a.small {
  304. color: @gray;
  305. }
  306. h2 {
  307. margin-top: @folders-title-margin-top;
  308. margin-bottom: @folders-title-margin-bottom;
  309. font-size: @folders-title-font-size;
  310. color: @folders-title-color;
  311. text-transform: @folders-title-text-transform;
  312. padding: @folders-title-padding;
  313. font-weight: @folders-title-font-weight;
  314. font-family: @font-family-sans-serif;
  315. }
  316. > li.tag {
  317. &.active {
  318. .tag-menu > a {
  319. color: white;
  320. border-color: white;
  321. &:hover {
  322. background-color: @folders-tag-menu-active-hover;
  323. }
  324. }
  325. }
  326. &.untagged {
  327. a.tag-name {
  328. span.name {
  329. font-style: italic;
  330. padding-left: 0;
  331. }
  332. }
  333. }
  334. &:hover {
  335. &:not(.active) {
  336. background-color: @folders-tag-hover;
  337. }
  338. .tag-menu {
  339. display: block;
  340. }
  341. }
  342. &:not(.active) {
  343. .tag-menu > a:hover {
  344. background-color: @folders-tag-menu-hover;
  345. }
  346. }
  347. a.tag-name {
  348. position: relative;
  349. padding: @folders-tag-padding;
  350. display: @folders-tag-display;
  351. span.name {
  352. padding-left: 0.5em;
  353. line-height: @folders-tag-line-height;
  354. }
  355. }
  356. .tag-menu {
  357. > a {
  358. border: 1px solid @folders-tag-border-color;
  359. border-radius: @border-radius-small;
  360. color: @folders-tag-menu-color;
  361. display: block;
  362. width: 16px;
  363. height: 16px;
  364. position: relative;
  365. .caret {
  366. position: absolute;
  367. top: 6px;
  368. left: 1px;
  369. }
  370. }
  371. display: none;
  372. position: absolute;
  373. top: 50%;
  374. margin-top: -8px; // Half the element height.
  375. right: 4px;
  376. &.open {
  377. display: block;
  378. }
  379. }
  380. }
  381. }
  382. .folders-menu-tooltip-trigger {
  383. display: none;
  384. position: absolute;
  385. top: 50%;
  386. right: @folders-menu-item-h-padding;
  387. width: @folders-menu-tooltip-size;
  388. height: @folders-menu-tooltip-size;
  389. margin-top: -(floor(@folders-menu-tooltip-size / 2));
  390. line-height: @folders-menu-tooltip-size;
  391. background-color: @folders-menu-tooltip-bg;
  392. font-family: @font-family-serif;
  393. color: #fff;
  394. font-style: italic;
  395. border-radius: ceil(@folders-menu-tooltip-size / 2);
  396. text-align: center;
  397. font-weight: 700;
  398. @media (min-width: @screen-sm-min) {
  399. display: block;
  400. }
  401. }
  402. .project-action-alert {
  403. display: flex;
  404. margin-bottom: 0;
  405. align-items: center;
  406. }
  407. .project-action-alert-msg {
  408. flex-grow: 1;
  409. padding-right: 10px;
  410. }
  411. form.project-search {
  412. .form-group {
  413. margin-bottom: 0;
  414. }
  415. }
  416. ul.structured-list {
  417. list-style-type: none;
  418. margin: 0;
  419. overflow: hidden;
  420. overflow-y: auto;
  421. -ms-overflow-style: -ms-autohiding-scrollbar;
  422. li {
  423. border-bottom: 1px solid @structured-list-border-color;
  424. padding: (@line-height-computed / 4) 0;
  425. &:last-child {
  426. border-bottom: 0 none;
  427. }
  428. &:hover {
  429. background-color: @structured-list-hover-color;
  430. }
  431. &:first-child {
  432. border-bottom-color: @structured-header-border-color;
  433. &:hover {
  434. background-color: transparent;
  435. }
  436. }
  437. a {
  438. color: @structured-list-link-color;
  439. }
  440. .header when (@is-overleaf = true) {
  441. font-weight: 600;
  442. }
  443. .header when (@is-overleaf = false) {
  444. text-transform: uppercase;
  445. }
  446. .select-item,
  447. .select-all {
  448. position: absolute;
  449. left: @line-height-computed;
  450. }
  451. .select-item + span,
  452. .select-all + span {
  453. display: inline-block;
  454. padding-left: @line-height-computed * 1.5;
  455. max-width: 100%;
  456. overflow: hidden;
  457. text-overflow: ellipsis;
  458. vertical-align: top;
  459. }
  460. }
  461. }
  462. .project-list-card when (@is-overleaf) {
  463. padding: 0 (@line-height-computed / 4);
  464. }
  465. ul.project-list {
  466. li {
  467. .last-modified when (@is-overleaf = false) {
  468. font-size: 0.8rem;
  469. }
  470. .owner when (@is-overleaf = false) {
  471. font-size: 0.8rem;
  472. }
  473. .owner when (@is-overleaf = false) {
  474. margin-right: 0;
  475. }
  476. .projectName {
  477. margin-right: @line-height-computed / 4;
  478. padding: 0;
  479. vertical-align: inherit;
  480. white-space: normal;
  481. text-align: left;
  482. }
  483. .action-btn {
  484. padding: 0 0.3em;
  485. margin-left: 0.2em;
  486. }
  487. }
  488. i.tablesort {
  489. padding-left: 8px;
  490. }
  491. }
  492. .tag-label {
  493. margin-left: @line-height-computed / 4;
  494. position: relative;
  495. display: inline-block;
  496. white-space: nowrap;
  497. top: @tag-top-adjustment;
  498. }
  499. // Extra specificity needed to override Bootstrap's own specificity.
  500. .label.tag-label-name,
  501. .label.tag-label-remove {
  502. display: inline-block;
  503. padding: 3px 4px;
  504. border-radius: @tag-border-radius;
  505. background-color: @tag-bg-color;
  506. color: @tag-color;
  507. vertical-align: text-bottom;
  508. border-width: 0;
  509. &:hover,
  510. &:focus {
  511. color: @tag-color;
  512. background-color: @tag-bg-hover-color;
  513. outline-width: 0;
  514. }
  515. }
  516. .label.tag-label-name {
  517. padding-right: 2px;
  518. border-top-right-radius: 0;
  519. border-bottom-right-radius: 0;
  520. max-width: @tag-max-width;
  521. overflow: hidden;
  522. text-overflow: ellipsis;
  523. > .fa {
  524. margin-right: 0.3em;
  525. }
  526. }
  527. .label.tag-label-remove {
  528. padding-left: 2px;
  529. border-top-left-radius: 0;
  530. border-bottom-left-radius: 0;
  531. }
  532. .user_details_auto_complete {
  533. ul > li {
  534. list-style: none;
  535. }
  536. .autocomplete {
  537. width: 100%;
  538. position: relative;
  539. }
  540. .autocomplete ul {
  541. position: absolute;
  542. top: 100%;
  543. left: 0;
  544. z-index: @zindex-dropdown;
  545. float: left;
  546. min-width: 160px;
  547. padding: 5px 0;
  548. margin: 2px 0 0; // override default ul
  549. list-style: none;
  550. font-size: @font-size-base;
  551. background-color: @dropdown-bg;
  552. border: 1px solid @dropdown-fallback-border; // IE8 fallback
  553. border: 1px solid @dropdown-border;
  554. border-radius: @border-radius-base;
  555. .box-shadow(0 6px 12px rgba(0, 0, 0, 0.175));
  556. background-clip: padding-box;
  557. // Links within the dropdown menu
  558. > li {
  559. display: block;
  560. padding: 3px 20px;
  561. clear: both;
  562. font-weight: normal;
  563. line-height: @line-height-base;
  564. color: @dropdown-link-color;
  565. white-space: nowrap; // prevent links from randomly breaking onto new lines
  566. }
  567. > li.active {
  568. text-decoration: none;
  569. color: @dropdown-link-hover-color;
  570. background-color: @dropdown-link-hover-bg;
  571. }
  572. }
  573. .autocomplete .highlight {
  574. font-weight: 700;
  575. }
  576. }
  577. .minimal-create-proj-dropdown {
  578. text-align: center;
  579. &-menu {
  580. width: 200px;
  581. left: 50%;
  582. margin-left: -100px;
  583. }
  584. }