project-list.less 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  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. &:hover {
  119. &:not(.active) {
  120. background-color: darken(@gray-lightest, 2%);
  121. }
  122. .tag-menu {
  123. display: block
  124. }
  125. }
  126. &:not(.active) {
  127. .tag-menu > a:hover {
  128. background-color: @gray-light;
  129. }
  130. }
  131. a.tag-name {
  132. padding: 2px (@line-height-computed / 4);
  133. margin-right: 18px;
  134. display: inline-block;
  135. position: relative;
  136. i {
  137. position: absolute;
  138. top: 5px;
  139. left: 6px;
  140. }
  141. span.name {
  142. display: inline-block;
  143. padding-left: 22px;
  144. line-height: 1.4;
  145. }
  146. }
  147. .tag-menu {
  148. > a {
  149. border: 1px solid @gray;
  150. border-radius: @border-radius-small;
  151. color: @text-color;
  152. display: block;
  153. width: 16px;
  154. height: 16px;
  155. position: relative;
  156. .caret {
  157. position: absolute;
  158. top: 6px;
  159. left: 1px;
  160. }
  161. }
  162. display: none;
  163. position: absolute;
  164. top: 6px;
  165. right: 4px;
  166. &.open {
  167. display: block;
  168. }
  169. }
  170. }
  171. }
  172. form.project-search {
  173. .form-group {
  174. margin-bottom: 0;
  175. }
  176. }
  177. ul.structured-list {
  178. list-style-type: none;
  179. margin: 0;
  180. overflow: hidden;
  181. overflow-y: auto;
  182. li {
  183. border-bottom: 1px solid @gray-lightest;
  184. padding: (@line-height-computed / 4) 0;
  185. &:first-child {
  186. .header {
  187. font-size: 1rem;
  188. }
  189. }
  190. &:last-child {
  191. border-bottom: 0 none;
  192. }
  193. &:hover {
  194. background-color: @gray-lightest;
  195. }
  196. &:first-child:hover {
  197. background-color: white;
  198. }
  199. a {
  200. color: darken(@blue, 10%);
  201. }
  202. .header {
  203. text-transform: uppercase;
  204. }
  205. .select-item, .select-all {
  206. display: inline-block;
  207. }
  208. .select-item, .select-all {
  209. position: absolute;
  210. left: @line-height-computed;
  211. }
  212. .select-item + span, .select-all + span {
  213. display: inline-block;
  214. padding-left: @line-height-computed * 1.5;
  215. max-width: 100%;
  216. overflow: hidden;
  217. text-overflow: ellipsis;
  218. vertical-align: top;
  219. }
  220. }
  221. }
  222. ul.project-list {
  223. li {
  224. .last-modified, .owner {
  225. font-size: .8rem;
  226. }
  227. .owner {
  228. margin-right: 0;
  229. }
  230. .projectName {
  231. margin-right: @line-height-computed / 4;
  232. }
  233. .tag-label {
  234. margin-left: @line-height-computed / 4;
  235. position: relative;
  236. top: -2px;
  237. padding-top: 0.25em;
  238. display: inline-block;
  239. color: white;
  240. }
  241. }
  242. i.tablesort {
  243. padding-left: 8px;
  244. }
  245. }
  246. .user_details_auto_complete {
  247. ul>li{
  248. list-style:none;
  249. }
  250. .autocomplete {
  251. width: 100%;
  252. position: relative;
  253. }
  254. .autocomplete ul {
  255. position: absolute;
  256. top: 100%;
  257. left: 0;
  258. z-index: @zindex-dropdown;
  259. float: left;
  260. min-width: 160px;
  261. padding: 5px 0;
  262. margin: 2px 0 0; // override default ul
  263. list-style: none;
  264. font-size: @font-size-base;
  265. background-color: @dropdown-bg;
  266. border: 1px solid @dropdown-fallback-border; // IE8 fallback
  267. border: 1px solid @dropdown-border;
  268. border-radius: @border-radius-base;
  269. .box-shadow(0 6px 12px rgba(0,0,0,.175));
  270. background-clip: padding-box;
  271. // Links within the dropdown menu
  272. > li {
  273. display: block;
  274. padding: 3px 20px;
  275. clear: both;
  276. font-weight: normal;
  277. line-height: @line-height-base;
  278. color: @dropdown-link-color;
  279. white-space: nowrap; // prevent links from randomly breaking onto new lines
  280. }
  281. > li.active {
  282. text-decoration: none;
  283. color: @dropdown-link-hover-color;
  284. background-color: @dropdown-link-hover-bg;
  285. }
  286. }
  287. .autocomplete .highlight {
  288. font-weight: 700;
  289. }
  290. }
  291. .minimal-create-proj-dropdown {
  292. text-align:center;
  293. &-menu {
  294. width:200px;
  295. left:50%;
  296. margin-left:-100px;
  297. }
  298. }
  299. .announcements {
  300. position: absolute;
  301. bottom: 0;
  302. right: 0;
  303. height: 150px;
  304. width: 100%;
  305. pointer-events: none;
  306. overflow: hidden;
  307. &-open {
  308. top: -100%;
  309. height: auto;
  310. pointer-events: all;
  311. }
  312. }
  313. .announcements-backdrop {
  314. position: fixed;
  315. top: 0;
  316. right: 0;
  317. bottom: 0;
  318. left: 0;
  319. background-color: rgba(0, 0, 0, 0.35);
  320. opacity: 0;
  321. animation: fade-in 0.35s forwards;
  322. z-index: 1;
  323. }
  324. .announcements-btn {
  325. position: absolute;
  326. bottom: -50px;
  327. right: 3%;
  328. width: 80px;
  329. height: 80px;
  330. background: url(/img/lion-128.png) no-repeat center/80% transparent;
  331. border-radius: 50%;
  332. box-shadow: none;
  333. z-index: 1;
  334. pointer-events: all;
  335. transition: bottom 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55),
  336. background 0.25s ease,
  337. box-shadow 0.25s ease;
  338. &:hover {
  339. bottom: -45px;
  340. }
  341. &-open, &-open:hover,
  342. &-has-new, &-has-new:hover {
  343. background-color: #FFF;
  344. box-shadow: @announcements-shadow;
  345. bottom: 30px;
  346. }
  347. }
  348. .announcements-badge {
  349. display: inline-block;
  350. position: absolute;
  351. font-size: 11px;
  352. height: 1.8em;
  353. min-width: 1.8em;
  354. border-radius: 0.9em;
  355. line-height: 1.8;
  356. padding: 0 2px;
  357. top: 1px;
  358. right: 1px;
  359. font-weight: bold;
  360. color: #FFF;
  361. background-color: @red;
  362. vertical-align: baseline;
  363. white-space: nowrap;
  364. text-align: center;
  365. z-index: 1;
  366. animation: pulse 1s alternate infinite;
  367. }
  368. .announcements-body {
  369. display: flex;
  370. flex-direction: column;
  371. align-items: stretch;
  372. position: absolute;
  373. right: 3%;
  374. margin-right: 95px;
  375. bottom: 30px;
  376. width: 700px;
  377. max-height: 52%;
  378. min-height: 100px;
  379. background: #FFF;
  380. z-index: 1;
  381. box-shadow: @announcements-shadow;
  382. border-radius: @border-radius-base;
  383. animation: fade-in 0.35s forwards;
  384. &::after {
  385. content: "\25b8";
  386. position: absolute;
  387. left: 100%;
  388. bottom: 17px;
  389. width: 30px;
  390. color: #FFF;
  391. text-shadow: @announcements-shadow;
  392. font-size: 2em;
  393. overflow: hidden;
  394. text-indent: -7px;
  395. }
  396. }
  397. .announcements-scroller {
  398. padding: @line-height-computed;
  399. flex-grow: 0;
  400. overflow-x: hidden;
  401. overflow-y: auto;
  402. }
  403. .announcement {
  404. margin-bottom: @line-height-computed * 1.5;
  405. &:last-child {
  406. margin-bottom: 0;
  407. }
  408. }
  409. .announcement-header {
  410. .page-header;
  411. margin: 0;
  412. }
  413. .announcement-description {
  414. margin: (@line-height-computed / 4) 0 (@line-height-computed / 2);
  415. }
  416. .announcement-meta {
  417. .clearfix;
  418. font-size: 0.9em;
  419. }
  420. .announcement-date {
  421. float: left;
  422. color: @gray;
  423. margin: 0;
  424. }
  425. .announcement-link {
  426. float: right;
  427. margin: 0;
  428. }