project-list.less 12 KB

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