project-list.less 11 KB

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