project-list.less 11 KB

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