project-list-react.less 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  1. .project-list-react {
  2. overflow-x: hidden;
  3. body > .content& {
  4. padding-top: @header-height;
  5. padding-bottom: 0;
  6. min-height: calc(~'100vh -' @header-height);
  7. }
  8. .container:before {
  9. content: '';
  10. display: block;
  11. float: left;
  12. height: 100%;
  13. }
  14. .fill {
  15. position: relative;
  16. &:after {
  17. content: '';
  18. display: block;
  19. clear: left;
  20. }
  21. }
  22. .project-list-row {
  23. height: 100%;
  24. min-height: calc(~'100vh -' @header-height);
  25. }
  26. .project-list-wrapper {
  27. position: absolute;
  28. width: 100%;
  29. height: 100%;
  30. }
  31. .project-list-sidebar-wrapper {
  32. float: left;
  33. position: static;
  34. .project-list-sidebar {
  35. > .dropdown {
  36. width: 100%;
  37. .new-project-button {
  38. width: 100%;
  39. }
  40. }
  41. }
  42. }
  43. .project-list-main {
  44. position: static;
  45. overflow: auto;
  46. }
  47. ul.folders-menu {
  48. margin: @folders-menu-margin;
  49. .subdued {
  50. color: @gray-light;
  51. }
  52. > li {
  53. cursor: pointer;
  54. position: relative;
  55. > button {
  56. display: block;
  57. width: 100%;
  58. font-weight: normal;
  59. text-align: left;
  60. color: @sidebar-link-color;
  61. background-color: transparent;
  62. border-radius: unset;
  63. border: none;
  64. border-bottom: solid 1px transparent;
  65. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  66. &:hover {
  67. background-color: @sidebar-hover-bg;
  68. text-decoration: @sidebar-hover-text-decoration;
  69. }
  70. &:focus {
  71. text-decoration: none;
  72. outline: none;
  73. }
  74. }
  75. &.separator {
  76. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  77. cursor: auto;
  78. }
  79. }
  80. > li.active {
  81. border-radius: @sidebar-active-border-radius;
  82. > button {
  83. background-color: @sidebar-active-bg;
  84. font-weight: @sidebar-active-font-weight;
  85. color: @sidebar-active-color;
  86. .subdued {
  87. color: @sidebar-active-color;
  88. }
  89. }
  90. }
  91. h2 {
  92. margin-top: @folders-title-margin-top;
  93. margin-bottom: @folders-title-margin-bottom;
  94. font-size: @folders-title-font-size;
  95. color: @folders-title-color;
  96. text-transform: @folders-title-text-transform;
  97. padding: @folders-title-padding;
  98. font-weight: @folders-title-font-weight;
  99. font-family: @font-family-sans-serif;
  100. }
  101. > li.tag {
  102. &.active {
  103. .tag-menu > button {
  104. color: white;
  105. border-color: white;
  106. &:hover {
  107. background-color: @folders-tag-menu-active-hover;
  108. }
  109. }
  110. }
  111. &.untagged {
  112. button.tag-name {
  113. span.name {
  114. font-style: italic;
  115. padding-left: 0;
  116. }
  117. }
  118. }
  119. &:hover {
  120. &:not(.active) {
  121. background-color: @folders-tag-hover;
  122. }
  123. .tag-menu {
  124. display: block;
  125. }
  126. }
  127. &:not(.active) {
  128. .tag-menu > a:hover {
  129. background-color: @folders-tag-menu-hover;
  130. }
  131. }
  132. button.tag-name {
  133. position: relative;
  134. padding: @folders-tag-padding;
  135. display: @folders-tag-display;
  136. span.name {
  137. padding-left: 0.5em;
  138. line-height: @folders-tag-line-height;
  139. }
  140. }
  141. }
  142. .tag-menu {
  143. button.dropdown-toggle {
  144. border: 1px solid @folders-tag-border-color;
  145. border-radius: @border-radius-small;
  146. background-color: transparent;
  147. color: @folders-tag-menu-color;
  148. display: block;
  149. width: 16px;
  150. height: 16px;
  151. position: relative;
  152. .caret {
  153. position: absolute;
  154. top: 6px;
  155. left: 1px;
  156. }
  157. }
  158. display: none;
  159. width: auto;
  160. position: absolute;
  161. top: 50%;
  162. margin-top: -8px; // Half the element height.
  163. right: 4px;
  164. &.open {
  165. display: block;
  166. }
  167. button.tag-action {
  168. border-radius: unset;
  169. width: 100%;
  170. background-color: transparent;
  171. border-color: transparent;
  172. color: @gray-dark;
  173. text-align: left;
  174. font-weight: normal;
  175. &:hover {
  176. color: @white;
  177. background-color: @ol-green;
  178. }
  179. &:active {
  180. outline: none;
  181. }
  182. }
  183. }
  184. }
  185. .project-dash-table {
  186. width: 100%;
  187. table-layout: fixed;
  188. tr {
  189. border-bottom: 1px solid @structured-list-border-color;
  190. }
  191. th,
  192. td {
  193. padding: (@line-height-computed / 4) @line-height-computed / 2;
  194. vertical-align: top;
  195. }
  196. tr {
  197. th:first-child,
  198. td:first-child,
  199. th:last-child,
  200. td:last-child {
  201. padding-right: @line-height-computed - (@grid-gutter-width / 2);
  202. }
  203. &:hover {
  204. &:not(.no-projects) {
  205. background-color: @structured-list-hover-color;
  206. }
  207. }
  208. }
  209. thead {
  210. tr:hover {
  211. background-color: transparent;
  212. }
  213. }
  214. tbody {
  215. tr:last-child {
  216. border-bottom: 0 none;
  217. }
  218. }
  219. .table-header-sort-btn {
  220. border: 0;
  221. text-align: left;
  222. color: @ol-type-color;
  223. padding: 0;
  224. font-weight: bold;
  225. &:hover,
  226. &:focus {
  227. color: @ol-type-color;
  228. text-decoration: none;
  229. }
  230. }
  231. .dash-cell-checkbox {
  232. width: 5%;
  233. input[type='checkbox'] {
  234. margin-top: 5px;
  235. }
  236. }
  237. .dash-cell-name {
  238. width: 50%;
  239. overflow: hidden;
  240. text-overflow: ellipsis;
  241. }
  242. .dash-cell-owner {
  243. width: 20%;
  244. overflow: hidden;
  245. text-overflow: ellipsis;
  246. }
  247. .dash-cell-date {
  248. width: 25%;
  249. overflow: hidden;
  250. text-overflow: ellipsis;
  251. }
  252. .dash-cell-actions {
  253. display: none;
  254. text-align: right;
  255. white-space: nowrap;
  256. }
  257. @media (min-width: @screen-xs) {
  258. .dash-cell-checkbox {
  259. width: 4%;
  260. }
  261. .dash-cell-name {
  262. width: 50%;
  263. }
  264. .dash-cell-owner {
  265. width: 21%;
  266. }
  267. .dash-cell-date {
  268. width: 25%;
  269. }
  270. .dash-cell-actions {
  271. width: 0%;
  272. }
  273. }
  274. @media (min-width: @screen-sm) {
  275. .dash-cell-checkbox {
  276. width: 3%;
  277. }
  278. .dash-cell-name {
  279. width: 48%;
  280. }
  281. .dash-cell-owner {
  282. width: 13%;
  283. }
  284. .dash-cell-date {
  285. width: 15%;
  286. }
  287. .dash-cell-actions {
  288. display: table-cell;
  289. width: 21%;
  290. }
  291. }
  292. @media (min-width: @screen-md) {
  293. .dash-cell-checkbox {
  294. width: 3%;
  295. }
  296. .dash-cell-name {
  297. width: 50%;
  298. }
  299. .dash-cell-owner {
  300. width: 13%;
  301. }
  302. .dash-cell-date {
  303. width: 16%;
  304. }
  305. .dash-cell-actions {
  306. width: 18%;
  307. }
  308. }
  309. @media (min-width: @screen-lg) {
  310. .dash-cell-checkbox {
  311. width: 3%;
  312. }
  313. .dash-cell-name {
  314. width: 50%;
  315. }
  316. .dash-cell-owner {
  317. width: 15%;
  318. }
  319. .dash-cell-date {
  320. width: 19%;
  321. }
  322. .dash-cell-actions {
  323. width: 13%;
  324. }
  325. }
  326. @media (min-width: 1440px) {
  327. .dash-cell-checkbox {
  328. width: 2%;
  329. }
  330. .dash-cell-name {
  331. width: 50%;
  332. }
  333. .dash-cell-owner {
  334. width: 16%;
  335. }
  336. .dash-cell-date {
  337. width: 19%;
  338. }
  339. .dash-cell-actions {
  340. width: 13%;
  341. }
  342. }
  343. }
  344. .loading-container {
  345. display: flex;
  346. align-items: center;
  347. min-height: calc(~'100vh -' @header-height);
  348. .loading-screen-brand-container {
  349. margin: 0 auto;
  350. }
  351. }
  352. }
  353. .project-list-react.container,
  354. .project-list-react .project-list-sidebar-wrapper,
  355. .project-list-react .project-list-main {
  356. height: 100%;
  357. }
  358. .current-plan {
  359. vertical-align: middle;
  360. line-height: @line-height-base;
  361. a.current-plan-label {
  362. text-decoration: none;
  363. color: @text-color;
  364. }
  365. }
  366. .project-list-upload-project-modal-uppy-dashboard .uppy-Root {
  367. .uppy-Dashboard-AddFiles-title {
  368. display: flex;
  369. flex-direction: column;
  370. color: @ol-blue-gray-3;
  371. white-space: pre-line;
  372. button.uppy-Dashboard-browse {
  373. background-color: @ol-green;
  374. color: @white;
  375. margin-bottom: @margin-md;
  376. padding: 4px 16px 5px;
  377. height: 46px;
  378. border-radius: 23px;
  379. font-weight: 700;
  380. display: flex;
  381. justify-content: center;
  382. align-items: center;
  383. font-size: @font-size-large;
  384. font-family: @font-family-sans-serif;
  385. }
  386. }
  387. }