project-list.less 12 KB

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