project-list.less 12 KB

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