project-list.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582
  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. .user-profile {
  191. .progress {
  192. height: @line-height-computed / 2;
  193. margin-bottom: @line-height-computed / 4;
  194. }
  195. p {
  196. margin-bottom: @line-height-computed / 4;
  197. }
  198. }
  199. .user-notifications {
  200. ul {
  201. margin-bottom: 0px;
  202. }
  203. .notification-entry {
  204. .alert {
  205. .box-shadow(2px 4px 6px rgba(0, 0, 0, 0.25));
  206. display: flex;
  207. flex-wrap: wrap;
  208. @media (min-width: @screen-sm-min) {
  209. flex-wrap: nowrap;
  210. }
  211. }
  212. }
  213. }
  214. .notification-body {
  215. flex-grow: 1;
  216. width: 90%;
  217. @media (min-width: @screen-sm-min) {
  218. width: auto;
  219. }
  220. }
  221. .notification-action {
  222. margin-top: (@line-height-computed / 2); // match paragraph padding
  223. order: 1;
  224. @media (min-width: @screen-sm-min) {
  225. margin-top: 0;
  226. order: 0;
  227. padding-left: @padding-sm;
  228. }
  229. }
  230. .notification-close {
  231. padding-left: @padding-sm;
  232. text-align: right;
  233. width: 10%;
  234. @media (min-width: @screen-sm-min) {
  235. width: auto;
  236. }
  237. }
  238. ul.folders-menu {
  239. margin: @folders-menu-margin;
  240. .subdued {
  241. color: @gray-light;
  242. }
  243. > li {
  244. cursor: pointer;
  245. position: relative;
  246. > a {
  247. display: block;
  248. color: @sidebar-link-color;
  249. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  250. border-bottom: solid 1px transparent;
  251. &:hover {
  252. background-color: @sidebar-hover-bg;
  253. text-decoration: @sidebar-hover-text-decoration;
  254. }
  255. &:focus {
  256. text-decoration: none;
  257. }
  258. }
  259. &.separator {
  260. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  261. cursor: auto;
  262. }
  263. }
  264. > li.active {
  265. border-radius: @sidebar-active-border-radius;
  266. > a {
  267. background-color: @sidebar-active-bg;
  268. font-weight: @sidebar-active-font-weight;
  269. color: @sidebar-active-color;
  270. .subdued {
  271. color: @sidebar-active-color;
  272. }
  273. }
  274. }
  275. > li > a.small {
  276. color: @gray;
  277. }
  278. h2 {
  279. margin-top: @folders-title-margin-top;
  280. margin-bottom: @folders-title-margin-bottom;
  281. font-size: @folders-title-font-size;
  282. color: @folders-title-color;
  283. text-transform: @folders-title-text-transform;
  284. padding: @folders-title-padding;
  285. font-weight: @folders-title-font-weight;
  286. font-family: @font-family-sans-serif;
  287. }
  288. > li.tag {
  289. &.active {
  290. .tag-menu > a {
  291. color: white;
  292. border-color: white;
  293. &:hover {
  294. background-color: @folders-tag-menu-active-hover;
  295. }
  296. }
  297. }
  298. &.untagged {
  299. a.tag-name {
  300. span.name {
  301. font-style: italic;
  302. padding-left: 0;
  303. }
  304. }
  305. }
  306. &:hover {
  307. &:not(.active) {
  308. background-color: @folders-tag-hover;
  309. }
  310. .tag-menu {
  311. display: block;
  312. }
  313. }
  314. &:not(.active) {
  315. .tag-menu > a:hover {
  316. background-color: @folders-tag-menu-hover;
  317. }
  318. }
  319. button.tag-name {
  320. position: relative;
  321. padding: @folders-tag-padding;
  322. display: @folders-tag-display;
  323. span.name {
  324. padding-left: 0.5em;
  325. line-height: @folders-tag-line-height;
  326. }
  327. }
  328. .tag-menu {
  329. > a {
  330. border: 1px solid @folders-tag-border-color;
  331. border-radius: @border-radius-small;
  332. color: @folders-tag-menu-color;
  333. display: block;
  334. width: 16px;
  335. height: 16px;
  336. position: relative;
  337. .caret {
  338. position: absolute;
  339. top: 6px;
  340. left: 1px;
  341. }
  342. }
  343. display: none;
  344. position: absolute;
  345. top: 50%;
  346. margin-top: -8px; // Half the element height.
  347. right: 4px;
  348. &.open {
  349. display: block;
  350. }
  351. }
  352. .dropdown-toggle {
  353. float: right;
  354. }
  355. }
  356. }
  357. .project-action-alert {
  358. display: flex;
  359. margin-bottom: 0;
  360. align-items: center;
  361. }
  362. .project-action-alert-msg {
  363. flex-grow: 1;
  364. padding-right: 10px;
  365. }
  366. form.project-search {
  367. .form-group {
  368. margin-bottom: 0;
  369. }
  370. }
  371. .project-search-clear-btn {
  372. width: 100%;
  373. padding: 0;
  374. border: 0;
  375. color: @ol-type-color;
  376. &:hover,
  377. &:active {
  378. color: @ol-type-color;
  379. }
  380. }
  381. ul.structured-list {
  382. list-style-type: none;
  383. margin: 0;
  384. overflow: hidden;
  385. overflow-y: auto;
  386. -ms-overflow-style: -ms-autohiding-scrollbar;
  387. li {
  388. border-bottom: 1px solid @structured-list-border-color;
  389. padding: (@line-height-computed / 4) 0;
  390. &:last-child {
  391. border-bottom: 0 none;
  392. }
  393. &:hover {
  394. background-color: @structured-list-hover-color;
  395. }
  396. &:first-child {
  397. border-bottom-color: @structured-header-border-color;
  398. &:hover {
  399. background-color: transparent;
  400. }
  401. }
  402. a {
  403. color: @structured-list-link-color;
  404. }
  405. .header {
  406. font-weight: 600;
  407. }
  408. .select-item,
  409. .select-all {
  410. position: absolute;
  411. left: @line-height-computed;
  412. }
  413. .select-item + span,
  414. .select-all + span {
  415. display: inline-block;
  416. padding-left: @line-height-computed * 1.5;
  417. max-width: 100%;
  418. overflow: hidden;
  419. text-overflow: ellipsis;
  420. vertical-align: top;
  421. }
  422. }
  423. }
  424. .project-list-card {
  425. padding: 0 (@line-height-computed / 4);
  426. }
  427. ul.project-list {
  428. li {
  429. .projectName {
  430. margin-right: @line-height-computed / 4;
  431. }
  432. }
  433. }
  434. i.tablesort {
  435. padding-left: 8px;
  436. }
  437. .tag-label {
  438. margin-left: @line-height-computed / 4;
  439. position: relative;
  440. display: inline-block;
  441. white-space: nowrap;
  442. top: @tag-top-adjustment;
  443. }
  444. // Extra specificity needed to override Bootstrap's own specificity.
  445. .label.tag-label-name,
  446. .label.tag-label-remove {
  447. display: inline-block;
  448. padding: 3px 4px;
  449. border-radius: @tag-border-radius;
  450. background-color: @tag-bg-color;
  451. color: @tag-color;
  452. vertical-align: text-bottom;
  453. border-width: 0;
  454. &:hover,
  455. &:focus {
  456. color: @tag-color;
  457. background-color: @tag-bg-hover-color;
  458. outline-width: 0;
  459. }
  460. }
  461. .label.tag-label-name {
  462. padding-right: 2px;
  463. border-top-right-radius: 0;
  464. border-bottom-right-radius: 0;
  465. max-width: @tag-max-width;
  466. overflow: hidden;
  467. text-overflow: ellipsis;
  468. > .fa {
  469. margin-right: 0.3em;
  470. }
  471. }
  472. .label.tag-label-remove {
  473. padding-left: 2px;
  474. border-top-left-radius: 0;
  475. border-bottom-left-radius: 0;
  476. }
  477. .user_details_auto_complete {
  478. ul > li {
  479. list-style: none;
  480. }
  481. .autocomplete {
  482. width: 100%;
  483. position: relative;
  484. }
  485. .autocomplete ul {
  486. position: absolute;
  487. top: 100%;
  488. left: 0;
  489. z-index: @zindex-dropdown;
  490. float: left;
  491. min-width: 160px;
  492. padding: 5px 0;
  493. margin: 2px 0 0; // override default ul
  494. list-style: none;
  495. font-size: @font-size-base;
  496. background-color: @dropdown-bg;
  497. border: 1px solid @dropdown-fallback-border; // IE8 fallback
  498. border: 1px solid @dropdown-border;
  499. border-radius: @border-radius-base;
  500. .box-shadow(0 6px 12px rgba(0, 0, 0, 0.175));
  501. background-clip: padding-box;
  502. // Links within the dropdown menu
  503. > li {
  504. display: block;
  505. padding: 3px 20px;
  506. clear: both;
  507. font-weight: normal;
  508. line-height: @line-height-base;
  509. color: @dropdown-link-color;
  510. white-space: nowrap; // prevent links from randomly breaking onto new lines
  511. }
  512. > li.active {
  513. text-decoration: none;
  514. color: @dropdown-link-hover-color;
  515. background-color: @dropdown-link-hover-bg;
  516. }
  517. }
  518. .autocomplete .highlight {
  519. font-weight: 700;
  520. }
  521. }
  522. .minimal-create-proj-dropdown {
  523. text-align: center;
  524. &-menu {
  525. width: 200px;
  526. left: 50%;
  527. margin-left: -100px;
  528. }
  529. }