project-list.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609
  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 +
  292. @folders-menu-tooltip-size;
  293. }
  294. }
  295. > li > a.small {
  296. color: @gray;
  297. }
  298. h2 {
  299. margin-top: @folders-title-margin-top;
  300. margin-bottom: @folders-title-margin-bottom;
  301. font-size: @folders-title-font-size;
  302. color: @folders-title-color;
  303. text-transform: @folders-title-text-transform;
  304. padding: @folders-title-padding;
  305. font-weight: @folders-title-font-weight;
  306. font-family: @font-family-sans-serif;
  307. }
  308. > li.tag {
  309. &.active {
  310. .tag-menu > a {
  311. color: white;
  312. border-color: white;
  313. &:hover {
  314. background-color: @folders-tag-menu-active-hover;
  315. }
  316. }
  317. }
  318. &.untagged {
  319. a.tag-name {
  320. span.name {
  321. font-style: italic;
  322. padding-left: 0;
  323. }
  324. }
  325. }
  326. &:hover {
  327. &:not(.active) {
  328. background-color: @folders-tag-hover;
  329. }
  330. .tag-menu {
  331. display: block;
  332. }
  333. }
  334. &:not(.active) {
  335. .tag-menu > a:hover {
  336. background-color: @folders-tag-menu-hover;
  337. }
  338. }
  339. a.tag-name {
  340. position: relative;
  341. padding: @folders-tag-padding;
  342. display: @folders-tag-display;
  343. span.name {
  344. padding-left: 0.5em;
  345. line-height: @folders-tag-line-height;
  346. }
  347. }
  348. .tag-menu {
  349. > a {
  350. border: 1px solid @folders-tag-border-color;
  351. border-radius: @border-radius-small;
  352. color: @folders-tag-menu-color;
  353. display: block;
  354. width: 16px;
  355. height: 16px;
  356. position: relative;
  357. .caret {
  358. position: absolute;
  359. top: 6px;
  360. left: 1px;
  361. }
  362. }
  363. display: none;
  364. position: absolute;
  365. top: 50%;
  366. margin-top: -8px; // Half the element height.
  367. right: 4px;
  368. &.open {
  369. display: block;
  370. }
  371. }
  372. }
  373. }
  374. .folders-menu-tooltip-trigger {
  375. display: none;
  376. position: absolute;
  377. top: 50%;
  378. right: @folders-menu-item-h-padding;
  379. width: @folders-menu-tooltip-size;
  380. height: @folders-menu-tooltip-size;
  381. margin-top: -(floor(@folders-menu-tooltip-size / 2));
  382. line-height: @folders-menu-tooltip-size;
  383. background-color: @folders-menu-tooltip-bg;
  384. font-family: @font-family-serif;
  385. color: #fff;
  386. font-style: italic;
  387. border-radius: ceil(@folders-menu-tooltip-size / 2);
  388. text-align: center;
  389. font-weight: 700;
  390. @media (min-width: @screen-sm-min) {
  391. display: block;
  392. }
  393. }
  394. .project-action-alert {
  395. display: flex;
  396. margin-bottom: 0;
  397. align-items: center;
  398. }
  399. .project-action-alert-msg {
  400. flex-grow: 1;
  401. padding-right: 10px;
  402. }
  403. form.project-search {
  404. .form-group {
  405. margin-bottom: 0;
  406. }
  407. }
  408. ul.structured-list {
  409. list-style-type: none;
  410. margin: 0;
  411. overflow: hidden;
  412. overflow-y: auto;
  413. -ms-overflow-style: -ms-autohiding-scrollbar;
  414. li {
  415. border-bottom: 1px solid @structured-list-border-color;
  416. padding: (@line-height-computed / 4) 0;
  417. &:last-child {
  418. border-bottom: 0 none;
  419. }
  420. &:hover {
  421. background-color: @structured-list-hover-color;
  422. }
  423. &:first-child {
  424. border-bottom-color: @structured-header-border-color;
  425. &:hover {
  426. background-color: transparent;
  427. }
  428. }
  429. a {
  430. color: @structured-list-link-color;
  431. }
  432. .header {
  433. font-weight: 600;
  434. }
  435. .select-item,
  436. .select-all {
  437. position: absolute;
  438. left: @line-height-computed;
  439. }
  440. .select-item + span,
  441. .select-all + span {
  442. display: inline-block;
  443. padding-left: @line-height-computed * 1.5;
  444. max-width: 100%;
  445. overflow: hidden;
  446. text-overflow: ellipsis;
  447. vertical-align: top;
  448. }
  449. }
  450. }
  451. .project-list-card {
  452. padding: 0 (@line-height-computed / 4);
  453. }
  454. ul.project-list {
  455. li {
  456. .projectName {
  457. margin-right: @line-height-computed / 4;
  458. }
  459. }
  460. i.tablesort {
  461. padding-left: 8px;
  462. }
  463. }
  464. .tag-label {
  465. margin-left: @line-height-computed / 4;
  466. position: relative;
  467. display: inline-block;
  468. white-space: nowrap;
  469. top: @tag-top-adjustment;
  470. }
  471. // Extra specificity needed to override Bootstrap's own specificity.
  472. .label.tag-label-name,
  473. .label.tag-label-remove {
  474. display: inline-block;
  475. padding: 3px 4px;
  476. border-radius: @tag-border-radius;
  477. background-color: @tag-bg-color;
  478. color: @tag-color;
  479. vertical-align: text-bottom;
  480. border-width: 0;
  481. &:hover,
  482. &:focus {
  483. color: @tag-color;
  484. background-color: @tag-bg-hover-color;
  485. outline-width: 0;
  486. }
  487. }
  488. .label.tag-label-name {
  489. padding-right: 2px;
  490. border-top-right-radius: 0;
  491. border-bottom-right-radius: 0;
  492. max-width: @tag-max-width;
  493. overflow: hidden;
  494. text-overflow: ellipsis;
  495. > .fa {
  496. margin-right: 0.3em;
  497. }
  498. }
  499. .label.tag-label-remove {
  500. padding-left: 2px;
  501. border-top-left-radius: 0;
  502. border-bottom-left-radius: 0;
  503. }
  504. .user_details_auto_complete {
  505. ul > li {
  506. list-style: none;
  507. }
  508. .autocomplete {
  509. width: 100%;
  510. position: relative;
  511. }
  512. .autocomplete ul {
  513. position: absolute;
  514. top: 100%;
  515. left: 0;
  516. z-index: @zindex-dropdown;
  517. float: left;
  518. min-width: 160px;
  519. padding: 5px 0;
  520. margin: 2px 0 0; // override default ul
  521. list-style: none;
  522. font-size: @font-size-base;
  523. background-color: @dropdown-bg;
  524. border: 1px solid @dropdown-fallback-border; // IE8 fallback
  525. border: 1px solid @dropdown-border;
  526. border-radius: @border-radius-base;
  527. .box-shadow(0 6px 12px rgba(0, 0, 0, 0.175));
  528. background-clip: padding-box;
  529. // Links within the dropdown menu
  530. > li {
  531. display: block;
  532. padding: 3px 20px;
  533. clear: both;
  534. font-weight: normal;
  535. line-height: @line-height-base;
  536. color: @dropdown-link-color;
  537. white-space: nowrap; // prevent links from randomly breaking onto new lines
  538. }
  539. > li.active {
  540. text-decoration: none;
  541. color: @dropdown-link-hover-color;
  542. background-color: @dropdown-link-hover-bg;
  543. }
  544. }
  545. .autocomplete .highlight {
  546. font-weight: 700;
  547. }
  548. }
  549. .minimal-create-proj-dropdown {
  550. text-align: center;
  551. &-menu {
  552. width: 200px;
  553. left: 50%;
  554. margin-left: -100px;
  555. }
  556. }