project-list.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  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. padding: (@line-height-computed / 4) 0;
  113. vertical-align: top;
  114. }
  115. .project-list-table-name-cell {
  116. width: 50%;
  117. padding-right: @line-height-computed / 2;
  118. @media (min-width: @screen-md) {
  119. width: 47%;
  120. }
  121. @media (min-width: @screen-lg) {
  122. width: 50%;
  123. }
  124. }
  125. .project-list-table-name-container {
  126. position: relative;
  127. overflow: hidden;
  128. text-overflow: ellipsis;
  129. }
  130. // Extra specificity needed to override Bootstrap's own specificity.
  131. input.project-list-table-select-item[type='checkbox'] {
  132. position: absolute;
  133. left: @line-height-computed - (@grid-gutter-width / 2);
  134. margin-top: 5px;
  135. }
  136. .project-list-table-name {
  137. display: inline-block;
  138. padding-left: @line-height-computed * 1.5;
  139. vertical-align: top;
  140. }
  141. .project-list-table-name-link {
  142. padding: 0;
  143. }
  144. .project-list-table-owner-cell {
  145. width: 23%;
  146. padding-right: @line-height-computed / 2;
  147. overflow: hidden;
  148. text-overflow: ellipsis;
  149. @media (min-width: @screen-sm) {
  150. width: 12%;
  151. }
  152. }
  153. .project-list-table-lastupdated-cell {
  154. width: 27%;
  155. padding-right: @line-height-computed / 2;
  156. overflow: hidden;
  157. text-overflow: ellipsis;
  158. @media (min-width: @screen-sm) {
  159. width: 14%;
  160. }
  161. }
  162. .project-list-table-actions-cell {
  163. display: none;
  164. padding-right: @line-height-computed - (@grid-gutter-width / 2);
  165. text-align: right;
  166. white-space: nowrap;
  167. @media (min-width: @screen-sm) {
  168. display: table-cell;
  169. width: 18%;
  170. }
  171. @media (min-width: @screen-md) {
  172. width: 11%;
  173. }
  174. @media (min-width: @screen-lg) {
  175. width: 10%;
  176. }
  177. }
  178. .action-btn {
  179. padding: 0 0.2em;
  180. }
  181. .first-project {
  182. width: 127px;
  183. text-align: center;
  184. }
  185. .add-affiliation-mobile-wrapper {
  186. padding: @padding-md 0;
  187. }
  188. .add-affiliation {
  189. .progress {
  190. height: @line-height-computed / 2;
  191. margin-bottom: @line-height-computed / 4;
  192. }
  193. p {
  194. margin-bottom: @line-height-computed / 4;
  195. }
  196. &.is-mobile p {
  197. font-size: 12px;
  198. white-space: normal;
  199. }
  200. }
  201. .user-notifications {
  202. ul {
  203. margin-bottom: 0px;
  204. }
  205. .notification-entry {
  206. .alert {
  207. // old alert style
  208. .box-shadow(2px 4px 6px rgba(0, 0, 0, 0.25));
  209. display: flex;
  210. flex-wrap: wrap;
  211. @media (min-width: @screen-sm-min) {
  212. flex-wrap: nowrap;
  213. }
  214. }
  215. .notification {
  216. // new alert style. match the existing margin on .alert since there is a mix of old and new alert styles
  217. margin-bottom: @line-height-computed;
  218. }
  219. &.centered-alert .alert {
  220. align-items: center;
  221. }
  222. }
  223. }
  224. ul.folders-menu {
  225. margin: @folders-menu-margin;
  226. .subdued {
  227. color: @gray-light;
  228. }
  229. > li {
  230. cursor: pointer;
  231. position: relative;
  232. > a {
  233. display: block;
  234. color: @sidebar-link-color;
  235. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  236. border-bottom: solid 1px transparent;
  237. &:hover {
  238. background-color: @sidebar-hover-bg;
  239. text-decoration: @sidebar-hover-text-decoration;
  240. }
  241. &:focus {
  242. text-decoration: none;
  243. }
  244. }
  245. &.separator {
  246. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  247. cursor: auto;
  248. }
  249. }
  250. > li.active {
  251. border-radius: @sidebar-active-border-radius;
  252. > a {
  253. background-color: @sidebar-active-bg;
  254. font-weight: @sidebar-active-font-weight;
  255. color: @sidebar-active-color;
  256. .subdued {
  257. color: @sidebar-active-color;
  258. }
  259. }
  260. }
  261. > li > a.small {
  262. color: @gray;
  263. }
  264. h2 {
  265. margin-top: @folders-title-margin-top;
  266. margin-bottom: @folders-title-margin-bottom;
  267. font-size: @folders-title-font-size;
  268. color: @folders-title-color;
  269. text-transform: @folders-title-text-transform;
  270. padding: @folders-title-padding;
  271. font-weight: @folders-title-font-weight;
  272. font-family: @font-family-sans-serif;
  273. }
  274. > li.tag {
  275. &.active {
  276. .tag-menu > a {
  277. color: white;
  278. border-color: white;
  279. &:hover {
  280. background-color: @folders-tag-menu-active-hover;
  281. }
  282. }
  283. }
  284. &.untagged {
  285. a.tag-name {
  286. span.name {
  287. font-style: italic;
  288. padding-left: 0;
  289. }
  290. }
  291. }
  292. &:hover {
  293. &:not(.active) {
  294. background-color: @folders-tag-hover;
  295. }
  296. .tag-menu {
  297. display: block;
  298. }
  299. }
  300. &:not(.active) {
  301. .tag-menu > a:hover {
  302. background-color: @folders-tag-menu-hover;
  303. }
  304. }
  305. .tag-name {
  306. position: relative;
  307. padding: @folders-tag-padding;
  308. display: @folders-tag-display;
  309. span.name {
  310. padding-left: 0.5em;
  311. line-height: @folders-tag-line-height;
  312. }
  313. }
  314. .tag-menu {
  315. > a {
  316. border: 1px solid @folders-tag-border-color;
  317. border-radius: @border-radius-small;
  318. color: @folders-tag-menu-color;
  319. display: block;
  320. width: 16px;
  321. height: 16px;
  322. position: relative;
  323. .caret {
  324. position: absolute;
  325. top: 6px;
  326. left: 1px;
  327. }
  328. }
  329. display: none;
  330. position: absolute;
  331. top: 50%;
  332. margin-top: -8px; // Half the element height.
  333. right: 4px;
  334. &.open {
  335. display: block;
  336. }
  337. }
  338. .dropdown-toggle {
  339. float: right;
  340. }
  341. }
  342. }
  343. .project-action-alert {
  344. display: flex;
  345. margin-bottom: 0;
  346. align-items: center;
  347. }
  348. .project-action-alert-msg {
  349. flex-grow: 1;
  350. padding-right: 10px;
  351. }
  352. form.project-search {
  353. .form-group {
  354. margin-bottom: 0;
  355. }
  356. }
  357. ul.structured-list {
  358. list-style-type: none;
  359. margin: 0;
  360. overflow: hidden;
  361. overflow-y: auto;
  362. -ms-overflow-style: -ms-autohiding-scrollbar;
  363. > li {
  364. border-bottom: 1px solid @structured-list-border-color;
  365. padding: (@line-height-computed / 4) 0;
  366. &:last-child {
  367. border-bottom: 0 none;
  368. }
  369. &:hover {
  370. background-color: @structured-list-hover-color;
  371. }
  372. &:first-child {
  373. border-bottom-color: @structured-header-border-color;
  374. &:hover {
  375. background-color: transparent;
  376. }
  377. }
  378. a {
  379. color: @structured-list-link-color;
  380. }
  381. .header {
  382. font-weight: 600;
  383. }
  384. .select-item,
  385. .select-all {
  386. position: absolute;
  387. left: @line-height-computed;
  388. }
  389. .select-item + span,
  390. .select-all + span {
  391. display: inline-block;
  392. padding-left: @line-height-computed * 1.5;
  393. max-width: 100%;
  394. overflow: hidden;
  395. text-overflow: ellipsis;
  396. vertical-align: top;
  397. }
  398. }
  399. }
  400. .project-list-card {
  401. padding: 0 (@line-height-computed / 4);
  402. }
  403. ul.project-list {
  404. li {
  405. .projectName {
  406. margin-right: @line-height-computed / 4;
  407. }
  408. }
  409. }
  410. i.tablesort {
  411. padding-left: 8px;
  412. }
  413. .tablesort-text {
  414. padding-right: 8px;
  415. }
  416. .tag-label {
  417. margin-left: @line-height-computed / 4;
  418. position: relative;
  419. display: inline-block;
  420. line-height: 1;
  421. white-space: nowrap;
  422. top: @tag-top-adjustment;
  423. }
  424. // Extra specificity needed to override Bootstrap's own specificity.
  425. .label.tag-label-name,
  426. .label.tag-label-remove {
  427. display: inline-block;
  428. padding: 3px 4px;
  429. border-radius: @tag-border-radius;
  430. background-color: @tag-bg-color;
  431. color: @tag-color;
  432. vertical-align: text-bottom;
  433. border-width: 0;
  434. &:hover,
  435. &:focus {
  436. color: @tag-color;
  437. background-color: @tag-bg-hover-color;
  438. outline-width: 0;
  439. }
  440. }
  441. .label.tag-label-name {
  442. padding-right: 2px;
  443. border-top-right-radius: 0;
  444. border-bottom-right-radius: 0;
  445. max-width: @tag-max-width;
  446. overflow: hidden;
  447. text-overflow: ellipsis;
  448. > .fa {
  449. margin-right: 0.3em;
  450. }
  451. }
  452. .label.tag-label-remove {
  453. padding-left: 2px;
  454. border-top-left-radius: 0;
  455. border-bottom-left-radius: 0;
  456. }
  457. .user_details_auto_complete {
  458. ul > li {
  459. list-style: none;
  460. }
  461. .autocomplete {
  462. width: 100%;
  463. position: relative;
  464. }
  465. .autocomplete ul {
  466. position: absolute;
  467. top: 100%;
  468. left: 0;
  469. z-index: @zindex-dropdown;
  470. float: left;
  471. min-width: 160px;
  472. padding: 5px 0;
  473. margin: 2px 0 0; // override default ul
  474. list-style: none;
  475. font-size: @font-size-base;
  476. background-color: @dropdown-bg;
  477. border: 1px solid @dropdown-fallback-border; // IE8 fallback
  478. border: 1px solid @dropdown-border;
  479. border-radius: @border-radius-base;
  480. .box-shadow(0 6px 12px rgba(0, 0, 0, 0.175));
  481. background-clip: padding-box;
  482. // Links within the dropdown menu
  483. > li {
  484. display: block;
  485. padding: 3px 20px;
  486. clear: both;
  487. font-weight: normal;
  488. line-height: @line-height-base;
  489. color: @dropdown-link-color;
  490. white-space: nowrap; // prevent links from randomly breaking onto new lines
  491. }
  492. > li.active {
  493. text-decoration: none;
  494. color: @dropdown-link-hover-color;
  495. background-color: @dropdown-link-hover-bg;
  496. }
  497. }
  498. .autocomplete .highlight {
  499. font-weight: 700;
  500. }
  501. }