project-list.less 11 KB

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