project-list.less 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489
  1. @announcements-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  2. @keyframes pulse {
  3. 0% {
  4. opacity: .7;
  5. }
  6. 100% {
  7. opacity: .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: relative;
  20. }
  21. .project-header {
  22. .btn-group > .btn {
  23. padding-left: @line-height-base / 2;
  24. padding-right: @line-height-base / 2;
  25. }
  26. }
  27. .project-search {
  28. margin: @line-height-base 0;
  29. }
  30. .project-tools {
  31. display: inline;
  32. }
  33. .first-project {
  34. width: 127px;
  35. text-align: center;
  36. }
  37. .user-profile {
  38. .progress {
  39. height: @line-height-computed / 2;
  40. margin-bottom: @line-height-computed / 4;
  41. }
  42. p {
  43. margin-bottom: @line-height-computed / 4;
  44. }
  45. }
  46. .userNotifications {
  47. ul {
  48. margin-bottom:0px;
  49. }
  50. .notification_entry {
  51. .alert {
  52. .box-shadow(2px 4px 6px rgba(0, 0, 0, 0.25));
  53. .notification_inner {
  54. display: table-row;
  55. .notification_body {
  56. display: table-cell;
  57. width: 99%;
  58. padding-right: 15px;
  59. vertical-align: middle;
  60. }
  61. .notification_close {
  62. display: table-cell;
  63. vertical-align: middle;
  64. }
  65. }
  66. }
  67. }
  68. }
  69. ul.folders-menu {
  70. margin: 0;
  71. .subdued {
  72. color: @gray-light;
  73. }
  74. > li {
  75. cursor: pointer;
  76. line-height: 1.8;
  77. position: relative;
  78. > a {
  79. font-size: 0.9rem;
  80. color: #333;
  81. padding: (@line-height-computed / 4);
  82. display: inline-block;
  83. line-height: 1.2;
  84. }
  85. }
  86. > li.active {
  87. //border-right: 4px solid @red;
  88. background-color: @link-color;
  89. border-radius: @border-radius-small;
  90. > a {
  91. font-weight: 700;
  92. color: white;
  93. .subdued {
  94. color: white;
  95. }
  96. }
  97. }
  98. > li > a.small {
  99. color: @gray;
  100. }
  101. h2 {
  102. margin-top: @line-height-computed / 2;
  103. margin-bottom: @line-height-computed / 4;
  104. font-size: @font-size-base;
  105. font-weight: 500;
  106. font-family: @font-family-sans-serif;
  107. }
  108. > li.tag {
  109. &.active {
  110. .tag-menu > a {
  111. color: white;
  112. border-color: white;
  113. &:hover {
  114. background-color: darken(@brand-primary, 10%);
  115. }
  116. }
  117. }
  118. &.untagged {
  119. font-style: italic;
  120. margin-bottom: @line-height-computed / 4;
  121. a {
  122. line-height: 1.7;
  123. &:hover,
  124. &:focus {
  125. text-decoration: none;
  126. }
  127. }
  128. span.subdued {
  129. font-style: normal;
  130. }
  131. }
  132. &:hover {
  133. &:not(.active) {
  134. background-color: darken(@gray-lightest, 2%);
  135. }
  136. .tag-menu {
  137. display: block
  138. }
  139. }
  140. &:not(.active) {
  141. .tag-menu > a:hover {
  142. background-color: @gray-light;
  143. }
  144. }
  145. a.tag-name {
  146. padding: 2px (@line-height-computed / 4);
  147. margin-right: 18px;
  148. display: inline-block;
  149. position: relative;
  150. i {
  151. position: absolute;
  152. top: 5px;
  153. left: 6px;
  154. }
  155. span.name {
  156. display: inline-block;
  157. padding-left: 22px;
  158. line-height: 1.4;
  159. }
  160. }
  161. .tag-menu {
  162. > a {
  163. border: 1px solid @gray;
  164. border-radius: @border-radius-small;
  165. color: @text-color;
  166. display: block;
  167. width: 16px;
  168. height: 16px;
  169. position: relative;
  170. .caret {
  171. position: absolute;
  172. top: 6px;
  173. left: 1px;
  174. }
  175. }
  176. display: none;
  177. position: absolute;
  178. top: 6px;
  179. right: 4px;
  180. &.open {
  181. display: block;
  182. }
  183. }
  184. }
  185. }
  186. form.project-search {
  187. .form-group {
  188. margin-bottom: 0;
  189. }
  190. }
  191. ul.structured-list {
  192. list-style-type: none;
  193. margin: 0;
  194. overflow: hidden;
  195. overflow-y: auto;
  196. li {
  197. border-bottom: 1px solid @gray-lightest;
  198. padding: (@line-height-computed / 4) 0;
  199. &:first-child {
  200. .header {
  201. font-size: 1rem;
  202. }
  203. }
  204. &:last-child {
  205. border-bottom: 0 none;
  206. }
  207. &:hover {
  208. background-color: @gray-lightest;
  209. }
  210. &:first-child:hover {
  211. background-color: white;
  212. }
  213. a {
  214. color: darken(@blue, 10%);
  215. }
  216. .header {
  217. text-transform: uppercase;
  218. }
  219. .select-item, .select-all {
  220. display: inline-block;
  221. }
  222. .select-item, .select-all {
  223. position: absolute;
  224. left: @line-height-computed;
  225. }
  226. .select-item + span, .select-all + span {
  227. display: inline-block;
  228. padding-left: @line-height-computed * 1.5;
  229. max-width: 100%;
  230. overflow: hidden;
  231. text-overflow: ellipsis;
  232. vertical-align: top;
  233. }
  234. }
  235. }
  236. ul.project-list {
  237. li {
  238. .last-modified, .owner {
  239. font-size: .8rem;
  240. }
  241. .owner {
  242. margin-right: 0;
  243. }
  244. .projectName {
  245. margin-right: @line-height-computed / 4;
  246. }
  247. .tag-label {
  248. margin-left: @line-height-computed / 4;
  249. position: relative;
  250. top: -2px;
  251. display: inline-block;
  252. }
  253. .tag-label-name,
  254. .tag-label-remove {
  255. display: inline-block;
  256. padding-top: 0.3em;
  257. color: #FFF;
  258. }
  259. .tag-label-name {
  260. padding-right: 0.3em;
  261. border-top-right-radius: 0;
  262. border-bottom-right-radius: 0;
  263. }
  264. .tag-label-remove {
  265. padding-left: 0.3em;
  266. border-top-left-radius: 0;
  267. border-bottom-left-radius: 0;
  268. }
  269. }
  270. i.tablesort {
  271. padding-left: 8px;
  272. }
  273. }
  274. .user_details_auto_complete {
  275. ul>li{
  276. list-style:none;
  277. }
  278. .autocomplete {
  279. width: 100%;
  280. position: relative;
  281. }
  282. .autocomplete ul {
  283. position: absolute;
  284. top: 100%;
  285. left: 0;
  286. z-index: @zindex-dropdown;
  287. float: left;
  288. min-width: 160px;
  289. padding: 5px 0;
  290. margin: 2px 0 0; // override default ul
  291. list-style: none;
  292. font-size: @font-size-base;
  293. background-color: @dropdown-bg;
  294. border: 1px solid @dropdown-fallback-border; // IE8 fallback
  295. border: 1px solid @dropdown-border;
  296. border-radius: @border-radius-base;
  297. .box-shadow(0 6px 12px rgba(0,0,0,.175));
  298. background-clip: padding-box;
  299. // Links within the dropdown menu
  300. > li {
  301. display: block;
  302. padding: 3px 20px;
  303. clear: both;
  304. font-weight: normal;
  305. line-height: @line-height-base;
  306. color: @dropdown-link-color;
  307. white-space: nowrap; // prevent links from randomly breaking onto new lines
  308. }
  309. > li.active {
  310. text-decoration: none;
  311. color: @dropdown-link-hover-color;
  312. background-color: @dropdown-link-hover-bg;
  313. }
  314. }
  315. .autocomplete .highlight {
  316. font-weight: 700;
  317. }
  318. }
  319. .minimal-create-proj-dropdown {
  320. text-align:center;
  321. &-menu {
  322. width:200px;
  323. left:50%;
  324. margin-left:-100px;
  325. }
  326. }
  327. .announcements {
  328. position: absolute;
  329. bottom: 0;
  330. right: 0;
  331. height: 150px;
  332. width: 100%;
  333. pointer-events: none;
  334. overflow: hidden;
  335. &-open {
  336. top: -100%;
  337. height: auto;
  338. pointer-events: all;
  339. }
  340. }
  341. .announcements-backdrop {
  342. position: fixed;
  343. top: 0;
  344. right: 0;
  345. bottom: 0;
  346. left: 0;
  347. background-color: rgba(0, 0, 0, 0.35);
  348. opacity: 0;
  349. animation: fade-in 0.35s forwards;
  350. z-index: 1;
  351. }
  352. .announcements-btn {
  353. position: absolute;
  354. bottom: -35px;
  355. right: 3%;
  356. width: 80px;
  357. height: 80px;
  358. background: url(/img/brand/lion.svg) no-repeat center/80% transparent;
  359. border-radius: 50%;
  360. box-shadow: none;
  361. z-index: 1;
  362. pointer-events: all;
  363. transition: bottom 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55),
  364. background 0.25s ease,
  365. box-shadow 0.25s ease;
  366. &:hover {
  367. bottom: -25px;
  368. }
  369. &-open, &-open:hover,
  370. &-has-new, &-has-new:hover {
  371. background-color: #FFF;
  372. box-shadow: @announcements-shadow;
  373. bottom: 30px;
  374. }
  375. }
  376. .announcements-badge {
  377. display: inline-block;
  378. position: absolute;
  379. font-size: 11px;
  380. height: 1.8em;
  381. min-width: 1.8em;
  382. border-radius: 0.9em;
  383. line-height: 1.8;
  384. padding: 0 2px;
  385. top: 1px;
  386. right: 1px;
  387. font-weight: bold;
  388. color: #FFF;
  389. background-color: @red;
  390. vertical-align: baseline;
  391. white-space: nowrap;
  392. text-align: center;
  393. z-index: 1;
  394. animation: pulse 1s alternate infinite;
  395. }
  396. .announcements-body {
  397. display: flex;
  398. flex-direction: column;
  399. align-items: stretch;
  400. position: absolute;
  401. right: 3%;
  402. margin-right: 95px;
  403. bottom: 30px;
  404. width: 700px;
  405. max-height: 52%;
  406. min-height: 100px;
  407. background: #FFF;
  408. z-index: 1;
  409. box-shadow: @announcements-shadow;
  410. border-radius: @border-radius-base;
  411. animation: fade-in 0.35s forwards;
  412. &::after {
  413. content: "\25b8";
  414. position: absolute;
  415. left: 100%;
  416. bottom: 17px;
  417. width: 30px;
  418. color: #FFF;
  419. text-shadow: @announcements-shadow;
  420. font-size: 2em;
  421. overflow: hidden;
  422. text-indent: -7px;
  423. }
  424. }
  425. .announcements-scroller {
  426. padding: @line-height-computed;
  427. flex-grow: 0;
  428. overflow-x: hidden;
  429. overflow-y: auto;
  430. }
  431. .announcement {
  432. margin-bottom: @line-height-computed * 1.5;
  433. &:last-child {
  434. margin-bottom: 0;
  435. }
  436. }
  437. .announcement-header {
  438. .page-header;
  439. margin: 0;
  440. }
  441. .announcement-description {
  442. margin: (@line-height-computed / 4) 0 (@line-height-computed / 2);
  443. }
  444. .announcement-meta {
  445. .clearfix;
  446. font-size: 0.9em;
  447. }
  448. .announcement-date {
  449. float: left;
  450. color: @gray;
  451. margin: 0;
  452. }
  453. .announcement-link {
  454. float: right;
  455. margin: 0;
  456. }