project-list-react.less 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  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. background-color: @structured-list-hover-color;
  205. }
  206. }
  207. thead {
  208. tr:hover {
  209. background-color: transparent;
  210. }
  211. }
  212. tbody {
  213. tr:last-child {
  214. border-bottom: 0 none;
  215. }
  216. }
  217. .table-header-sort-btn {
  218. border: 0;
  219. text-align: left;
  220. color: @ol-type-color;
  221. padding: 0;
  222. font-weight: bold;
  223. &:hover,
  224. &:focus {
  225. color: @ol-type-color;
  226. text-decoration: none;
  227. }
  228. }
  229. .dash-cell-checkbox {
  230. width: 5%;
  231. input[type='checkbox'] {
  232. margin-top: 5px;
  233. }
  234. }
  235. .dash-cell-name {
  236. width: 50%;
  237. overflow: hidden;
  238. text-overflow: ellipsis;
  239. }
  240. .dash-cell-owner {
  241. width: 20%;
  242. overflow: hidden;
  243. text-overflow: ellipsis;
  244. }
  245. .dash-cell-date {
  246. width: 25%;
  247. overflow: hidden;
  248. text-overflow: ellipsis;
  249. }
  250. .dash-cell-actions {
  251. display: none;
  252. text-align: right;
  253. white-space: nowrap;
  254. }
  255. @media (min-width: @screen-xs) {
  256. .dash-cell-checkbox {
  257. width: 4%;
  258. }
  259. .dash-cell-name {
  260. width: 50%;
  261. }
  262. .dash-cell-owner {
  263. width: 21%;
  264. }
  265. .dash-cell-date {
  266. width: 25%;
  267. }
  268. .dash-cell-actions {
  269. width: 0%;
  270. }
  271. }
  272. @media (min-width: @screen-sm) {
  273. .dash-cell-checkbox {
  274. width: 3%;
  275. }
  276. .dash-cell-name {
  277. width: 48%;
  278. }
  279. .dash-cell-owner {
  280. width: 13%;
  281. }
  282. .dash-cell-date {
  283. width: 15%;
  284. }
  285. .dash-cell-actions {
  286. display: table-cell;
  287. width: 21%;
  288. }
  289. }
  290. @media (min-width: @screen-md) {
  291. .dash-cell-checkbox {
  292. width: 3%;
  293. }
  294. .dash-cell-name {
  295. width: 50%;
  296. }
  297. .dash-cell-owner {
  298. width: 13%;
  299. }
  300. .dash-cell-date {
  301. width: 16%;
  302. }
  303. .dash-cell-actions {
  304. width: 18%;
  305. }
  306. }
  307. @media (min-width: @screen-lg) {
  308. .dash-cell-checkbox {
  309. width: 3%;
  310. }
  311. .dash-cell-name {
  312. width: 50%;
  313. }
  314. .dash-cell-owner {
  315. width: 15%;
  316. }
  317. .dash-cell-date {
  318. width: 19%;
  319. }
  320. .dash-cell-actions {
  321. width: 13%;
  322. }
  323. }
  324. @media (min-width: 1440px) {
  325. .dash-cell-checkbox {
  326. width: 2%;
  327. }
  328. .dash-cell-name {
  329. width: 50%;
  330. }
  331. .dash-cell-owner {
  332. width: 16%;
  333. }
  334. .dash-cell-date {
  335. width: 19%;
  336. }
  337. .dash-cell-actions {
  338. width: 13%;
  339. }
  340. }
  341. }
  342. .loading-container {
  343. display: flex;
  344. align-items: center;
  345. min-height: calc(~'100vh -' @header-height);
  346. .loading-screen-brand-container {
  347. margin: 0 auto;
  348. }
  349. }
  350. }
  351. .project-list-react.container,
  352. .project-list-react .project-list-sidebar-wrapper,
  353. .project-list-react .project-list-main {
  354. height: 100%;
  355. }
  356. .current-plan {
  357. vertical-align: middle;
  358. line-height: @line-height-base;
  359. a.current-plan-label {
  360. text-decoration: none;
  361. color: @text-color;
  362. }
  363. }
  364. .project-list-upload-project-modal-uppy-dashboard .uppy-Root {
  365. .uppy-Dashboard-AddFiles-title {
  366. display: flex;
  367. flex-direction: column;
  368. color: @ol-blue-gray-3;
  369. white-space: pre-line;
  370. button.uppy-Dashboard-browse {
  371. background-color: @ol-green;
  372. color: @white;
  373. margin-bottom: @margin-md;
  374. padding: 4px 16px 5px;
  375. height: 46px;
  376. border-radius: 23px;
  377. font-weight: 700;
  378. display: flex;
  379. justify-content: center;
  380. align-items: center;
  381. font-size: @font-size-large;
  382. font-family: @font-family-sans-serif;
  383. }
  384. }
  385. }