project-list.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591
  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. ul.project-list {
  293. li {
  294. .last-modified when (@is-overleaf = false) {
  295. font-size: .8rem;
  296. }
  297. .owner when (@is-overleaf = false) {
  298. font-size: .8rem;
  299. }
  300. .owner when (@is-overleaf = false) {
  301. margin-right: 0;
  302. }
  303. .projectName {
  304. margin-right: @line-height-computed / 4;
  305. padding: 0;
  306. vertical-align: inherit;
  307. white-space: normal;
  308. text-align: left;
  309. }
  310. .tag-label {
  311. margin-left: @line-height-computed / 4;
  312. position: relative;
  313. display: inline-block;
  314. white-space: nowrap;
  315. top: @tag-top-adjustment;
  316. }
  317. .tag-label-name,
  318. .tag-label-remove {
  319. display: inline-block;
  320. padding-top: 0.3em;
  321. color: #FFF;
  322. border-radius: @tag-border-radius;
  323. background-color: @tag-bg-color;
  324. vertical-align: text-bottom;
  325. &:hover,
  326. &:focus {
  327. background-color: @tag-bg-hover-color;
  328. }
  329. }
  330. .tag-label-name {
  331. padding-right: 0.3em;
  332. border-top-right-radius: 0;
  333. border-bottom-right-radius: 0;
  334. max-width: @tag-max-width;
  335. overflow: hidden;
  336. text-overflow: ellipsis;
  337. }
  338. .tag-label-remove {
  339. padding-left: 0.3em;
  340. border-top-left-radius: 0;
  341. border-bottom-left-radius: 0;
  342. }
  343. .v1-badge {
  344. margin-left: -4px;
  345. }
  346. .action-btn-row-header, .action-btn-row {
  347. padding-right: 20px;
  348. text-align: right;
  349. }
  350. .action-btn {
  351. padding: 0 0.3em;
  352. margin-left: 0.2em;
  353. }
  354. }
  355. i.tablesort {
  356. padding-left: 8px;
  357. }
  358. }
  359. .user_details_auto_complete {
  360. ul>li{
  361. list-style:none;
  362. }
  363. .autocomplete {
  364. width: 100%;
  365. position: relative;
  366. }
  367. .autocomplete ul {
  368. position: absolute;
  369. top: 100%;
  370. left: 0;
  371. z-index: @zindex-dropdown;
  372. float: left;
  373. min-width: 160px;
  374. padding: 5px 0;
  375. margin: 2px 0 0; // override default ul
  376. list-style: none;
  377. font-size: @font-size-base;
  378. background-color: @dropdown-bg;
  379. border: 1px solid @dropdown-fallback-border; // IE8 fallback
  380. border: 1px solid @dropdown-border;
  381. border-radius: @border-radius-base;
  382. .box-shadow(0 6px 12px rgba(0,0,0,.175));
  383. background-clip: padding-box;
  384. // Links within the dropdown menu
  385. > li {
  386. display: block;
  387. padding: 3px 20px;
  388. clear: both;
  389. font-weight: normal;
  390. line-height: @line-height-base;
  391. color: @dropdown-link-color;
  392. white-space: nowrap; // prevent links from randomly breaking onto new lines
  393. }
  394. > li.active {
  395. text-decoration: none;
  396. color: @dropdown-link-hover-color;
  397. background-color: @dropdown-link-hover-bg;
  398. }
  399. }
  400. .autocomplete .highlight {
  401. font-weight: 700;
  402. }
  403. }
  404. .minimal-create-proj-dropdown {
  405. text-align:center;
  406. &-menu {
  407. width:200px;
  408. left:50%;
  409. margin-left:-100px;
  410. }
  411. }
  412. .announcements {
  413. position: absolute;
  414. bottom: @footer-height;
  415. right: 0;
  416. height: 150px;
  417. width: 100%;
  418. pointer-events: none;
  419. overflow: hidden;
  420. &-open {
  421. top: -100%;
  422. height: auto;
  423. pointer-events: all;
  424. }
  425. }
  426. .announcements-backdrop {
  427. position: fixed;
  428. top: 0;
  429. right: 0;
  430. bottom: 0;
  431. left: 0;
  432. background-color: rgba(0, 0, 0, 0.35);
  433. opacity: 0;
  434. animation: fade-in 0.35s forwards;
  435. z-index: 1;
  436. }
  437. .announcements-btn {
  438. position: absolute;
  439. bottom: -35px;
  440. right: 3%;
  441. width: 80px;
  442. height: 80px;
  443. background: url(/img/brand/lion.svg) no-repeat center/80% transparent;
  444. border-radius: 50%;
  445. box-shadow: none;
  446. z-index: 1;
  447. pointer-events: all;
  448. transition: bottom 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55),
  449. background 0.25s ease,
  450. box-shadow 0.25s ease;
  451. &:hover {
  452. bottom: -25px;
  453. }
  454. &-open, &-open:hover,
  455. &-has-new, &-has-new:hover {
  456. background-color: #FFF;
  457. box-shadow: @announcements-shadow;
  458. bottom: 30px;
  459. }
  460. }
  461. .announcements-badge {
  462. display: inline-block;
  463. position: absolute;
  464. font-size: 11px;
  465. height: 1.8em;
  466. min-width: 1.8em;
  467. border-radius: 0.9em;
  468. line-height: 1.8;
  469. padding: 0 2px;
  470. top: 1px;
  471. right: 1px;
  472. font-weight: bold;
  473. color: #FFF;
  474. background-color: @red;
  475. vertical-align: baseline;
  476. white-space: nowrap;
  477. text-align: center;
  478. z-index: 1;
  479. animation: pulse 1s alternate infinite;
  480. }
  481. .announcements-body {
  482. display: flex;
  483. flex-direction: column;
  484. align-items: stretch;
  485. position: absolute;
  486. right: 3%;
  487. margin-right: 95px;
  488. bottom: 30px;
  489. width: 700px;
  490. max-height: 40%;
  491. min-height: 100px;
  492. background: #FFF;
  493. z-index: 1;
  494. box-shadow: @announcements-shadow;
  495. border-radius: @border-radius-base;
  496. animation: fade-in 0.35s forwards;
  497. &::after {
  498. content: "\25b8";
  499. position: absolute;
  500. left: 100%;
  501. bottom: 17px;
  502. width: 30px;
  503. color: #FFF;
  504. text-shadow: @announcements-shadow;
  505. font-size: 2em;
  506. overflow: hidden;
  507. text-indent: -7px;
  508. }
  509. }
  510. .announcements-scroller {
  511. padding: @line-height-computed;
  512. flex-grow: 0;
  513. overflow-x: hidden;
  514. overflow-y: auto;
  515. }
  516. .announcement {
  517. margin-bottom: @line-height-computed * 1.5;
  518. &:last-child {
  519. margin-bottom: 0;
  520. }
  521. }
  522. .announcement-header {
  523. .page-header;
  524. margin: 0;
  525. }
  526. .announcement-description {
  527. margin: (@line-height-computed / 4) 0 (@line-height-computed / 2);
  528. }
  529. .announcement-meta {
  530. .clearfix;
  531. font-size: 0.9em;
  532. }
  533. .announcement-date {
  534. float: left;
  535. color: @gray;
  536. margin: 0;
  537. }
  538. .announcement-link {
  539. float: right;
  540. margin: 0;
  541. }