project-list.less 11 KB

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