project-list.less 11 KB

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