project-list-react.less 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763
  1. @project-list-sidebar-wrapper-flex: 0 0 15%;
  2. .project-list-react {
  3. overflow-x: hidden;
  4. body > .content& {
  5. padding-top: @header-height;
  6. padding-bottom: 0;
  7. min-height: calc(~'100vh -' @header-height);
  8. }
  9. .container:before {
  10. content: '';
  11. display: block;
  12. float: left;
  13. height: 100%;
  14. }
  15. .fill {
  16. position: relative;
  17. &:after {
  18. content: '';
  19. display: block;
  20. clear: left;
  21. }
  22. }
  23. .project-list-wrapper {
  24. display: flex;
  25. align-items: stretch;
  26. min-height: calc(~'100vh -' @header-height);
  27. }
  28. .project-list-sidebar-wrapper-react {
  29. background-color: @sidebar-bg;
  30. flex: @project-list-sidebar-wrapper-flex;
  31. min-height: calc(~'100vh -' @header-height);
  32. .project-list-sidebar-subwrapper {
  33. display: flex;
  34. flex-direction: column;
  35. height: 100%;
  36. .project-list-sidebar-react {
  37. height: 100%;
  38. padding-left: 15px;
  39. padding-right: 15px;
  40. -ms-overflow-style: -ms-autohiding-scrollbar;
  41. padding-top: @content-margin-vertical;
  42. padding-bottom: @content-margin-vertical;
  43. color: @sidebar-color;
  44. .small {
  45. color: @sidebar-color;
  46. }
  47. button {
  48. white-space: normal;
  49. word-wrap: anywhere;
  50. // prevents buttons from expanding sidebar width
  51. }
  52. > .dropdown {
  53. width: 100%;
  54. .new-project-button {
  55. width: 100%;
  56. }
  57. }
  58. }
  59. }
  60. }
  61. .project-list-welcome-wrapper {
  62. width: 100%;
  63. }
  64. .project-list-main-react {
  65. max-width: 100%;
  66. padding: @content-margin-vertical @grid-gutter-width / 2;
  67. }
  68. ul.project-list-filters {
  69. margin: @margin-sm @folders-menu-margin;
  70. .subdued {
  71. color: @gray-light;
  72. }
  73. > li {
  74. cursor: pointer;
  75. position: relative;
  76. > button {
  77. display: block;
  78. width: 100%;
  79. font-weight: normal;
  80. text-align: left;
  81. color: @sidebar-link-color;
  82. background-color: transparent;
  83. border-radius: unset;
  84. border: none;
  85. border-bottom: solid 1px transparent;
  86. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  87. &:hover {
  88. background-color: @sidebar-hover-bg;
  89. text-decoration: @sidebar-hover-text-decoration;
  90. }
  91. &:focus {
  92. text-decoration: none;
  93. outline: none;
  94. }
  95. }
  96. &.separator {
  97. padding: @folders-menu-item-v-padding @folders-menu-item-h-padding;
  98. cursor: auto;
  99. }
  100. }
  101. > li.active {
  102. border-radius: @sidebar-active-border-radius;
  103. > button {
  104. background-color: @sidebar-active-bg;
  105. font-weight: @sidebar-active-font-weight;
  106. color: @sidebar-active-color;
  107. .subdued {
  108. color: @sidebar-active-color;
  109. }
  110. }
  111. }
  112. h2 {
  113. margin-top: @folders-title-margin-top;
  114. margin-bottom: @folders-title-margin-bottom;
  115. font-size: @folders-title-font-size;
  116. color: @folders-title-color;
  117. text-transform: @folders-title-text-transform;
  118. padding: @folders-title-padding;
  119. font-weight: @folders-title-font-weight;
  120. font-family: @font-family-sans-serif;
  121. }
  122. > li.tag {
  123. &.active {
  124. .tag-menu > button {
  125. color: white;
  126. border-color: white;
  127. &:hover {
  128. background-color: @folders-tag-menu-active-hover;
  129. }
  130. }
  131. }
  132. &.untagged {
  133. button.tag-name {
  134. span.name {
  135. font-style: italic;
  136. padding-left: 0;
  137. }
  138. }
  139. }
  140. &:hover {
  141. &:not(.active) {
  142. background-color: @folders-tag-hover;
  143. }
  144. .tag-menu {
  145. display: block;
  146. }
  147. }
  148. &:not(.active) {
  149. .tag-menu > a:hover {
  150. background-color: @folders-tag-menu-hover;
  151. }
  152. }
  153. button.tag-name {
  154. position: relative;
  155. padding: @folders-tag-padding;
  156. display: @folders-tag-display;
  157. word-wrap: anywhere;
  158. span.name {
  159. padding-left: 0.5em;
  160. line-height: @folders-tag-line-height;
  161. }
  162. }
  163. }
  164. .tag-menu {
  165. button.dropdown-toggle {
  166. border: 1px solid @folders-tag-border-color;
  167. border-radius: @border-radius-small;
  168. background-color: transparent;
  169. color: @folders-tag-menu-color;
  170. display: block;
  171. width: 16px;
  172. height: 16px;
  173. position: relative;
  174. .caret {
  175. position: absolute;
  176. top: 6px;
  177. left: 1px;
  178. }
  179. }
  180. display: none;
  181. width: auto;
  182. position: absolute;
  183. top: 50%;
  184. margin-top: -8px; // Half the element height.
  185. right: 4px;
  186. &.open {
  187. display: block;
  188. }
  189. button.tag-action {
  190. border-radius: unset;
  191. width: 100%;
  192. background-color: transparent;
  193. border-color: transparent;
  194. color: @gray-dark;
  195. text-align: left;
  196. font-weight: normal;
  197. &:hover {
  198. color: @white;
  199. background-color: @ol-green;
  200. }
  201. &:active {
  202. outline: none;
  203. }
  204. }
  205. }
  206. }
  207. .project-dash-table {
  208. width: 100%;
  209. table-layout: fixed;
  210. tr {
  211. border-bottom: 1px solid @structured-list-border-color;
  212. }
  213. th,
  214. td {
  215. padding: (@line-height-computed / 4) @line-height-computed / 2;
  216. vertical-align: top;
  217. }
  218. tr {
  219. th:first-child,
  220. td:first-child,
  221. th:last-child,
  222. td:last-child {
  223. padding-right: @line-height-computed - (@grid-gutter-width / 2);
  224. }
  225. &:hover {
  226. &:not(.no-projects) {
  227. background-color: @structured-list-hover-color;
  228. }
  229. }
  230. }
  231. thead {
  232. tr:hover {
  233. background-color: transparent;
  234. }
  235. }
  236. tbody {
  237. tr:last-child {
  238. border-bottom: 0 none;
  239. }
  240. }
  241. .table-header-sort-btn {
  242. border: 0;
  243. text-align: left;
  244. color: @ol-type-color;
  245. padding: 0;
  246. font-weight: bold;
  247. &:hover,
  248. &:focus {
  249. color: @ol-type-color;
  250. text-decoration: none;
  251. }
  252. }
  253. .dash-cell-checkbox {
  254. width: 5%;
  255. input[type='checkbox'] {
  256. margin-top: 5px;
  257. }
  258. }
  259. .dash-cell-name {
  260. width: 50%;
  261. overflow: hidden;
  262. text-overflow: ellipsis;
  263. }
  264. .dash-cell-owner {
  265. width: 20%;
  266. overflow: hidden;
  267. text-overflow: ellipsis;
  268. }
  269. .dash-cell-date {
  270. width: 25%;
  271. overflow: hidden;
  272. text-overflow: ellipsis;
  273. }
  274. .dash-cell-actions {
  275. display: none;
  276. text-align: right;
  277. white-space: nowrap;
  278. }
  279. .dash-cell-date-owner {
  280. font-size: 14px;
  281. .text-overflow();
  282. }
  283. .dash-cell-tag {
  284. .tag-label {
  285. padding: 14px 0;
  286. cursor: pointer;
  287. &:not(.tag-label-close-hover) {
  288. &:hover,
  289. &:focus {
  290. .label.tag-label-name {
  291. color: @tag-color;
  292. background-color: @tag-bg-hover-color;
  293. outline-width: 0;
  294. }
  295. }
  296. }
  297. &:first-child {
  298. margin-left: initial;
  299. }
  300. }
  301. }
  302. @media (min-width: @screen-xs) {
  303. .dash-cell-checkbox {
  304. width: 4%;
  305. }
  306. .dash-cell-name {
  307. width: 50%;
  308. }
  309. .dash-cell-owner {
  310. width: 21%;
  311. }
  312. .dash-cell-date {
  313. width: 25%;
  314. }
  315. .dash-cell-actions {
  316. width: 0%;
  317. }
  318. }
  319. @media (min-width: @screen-sm) {
  320. .dash-cell-checkbox {
  321. width: 3%;
  322. }
  323. .dash-cell-name {
  324. width: 48%;
  325. }
  326. .dash-cell-owner {
  327. width: 13%;
  328. }
  329. .dash-cell-date {
  330. width: 15%;
  331. }
  332. .dash-cell-actions {
  333. display: table-cell;
  334. width: 21%;
  335. }
  336. .project-tools {
  337. float: none;
  338. }
  339. }
  340. @media (min-width: @screen-md) {
  341. .dash-cell-checkbox {
  342. width: 3%;
  343. }
  344. .dash-cell-name {
  345. width: 50%;
  346. }
  347. .dash-cell-owner {
  348. width: 13%;
  349. }
  350. .dash-cell-date {
  351. width: 16%;
  352. }
  353. .dash-cell-actions {
  354. width: 18%;
  355. }
  356. }
  357. @media (min-width: @screen-lg) {
  358. .dash-cell-checkbox {
  359. width: 3%;
  360. }
  361. .dash-cell-name {
  362. width: 50%;
  363. }
  364. .dash-cell-owner {
  365. width: 15%;
  366. }
  367. .dash-cell-date {
  368. width: 19%;
  369. }
  370. .dash-cell-actions {
  371. width: 13%;
  372. }
  373. }
  374. @media (min-width: 1440px) {
  375. .dash-cell-checkbox {
  376. width: 2%;
  377. }
  378. .dash-cell-name {
  379. width: 50%;
  380. }
  381. .dash-cell-owner {
  382. width: 16%;
  383. }
  384. .dash-cell-date {
  385. width: 19%;
  386. }
  387. .dash-cell-actions {
  388. width: 13%;
  389. }
  390. }
  391. @media (max-width: @screen-xs-max) {
  392. @actions-btn-size: 48px;
  393. tr {
  394. position: relative;
  395. display: flex;
  396. flex-direction: column;
  397. td {
  398. padding-top: @line-height-computed / 6;
  399. padding-bottom: @line-height-computed / 6;
  400. }
  401. td:not(.dash-cell-actions) {
  402. padding-right: @actions-btn-size + 12.5px;
  403. }
  404. }
  405. .dash-cell-name,
  406. .dash-cell-owner,
  407. .dash-cell-date,
  408. .dash-cell-tag,
  409. .dash-cell-actions {
  410. display: block;
  411. width: auto;
  412. }
  413. .dash-cell-actions {
  414. position: absolute;
  415. top: 0;
  416. right: 0;
  417. padding: 0 !important;
  418. .dropdown-toggle {
  419. padding: 13px 15px;
  420. border-radius: 0;
  421. font-size: 14px;
  422. }
  423. }
  424. }
  425. }
  426. .loading-container {
  427. display: flex;
  428. align-items: center;
  429. min-height: calc(~'100vh -' @header-height);
  430. .loading-screen-brand-container {
  431. margin: 0 auto;
  432. }
  433. }
  434. @media (max-width: @screen-xs-max) {
  435. .project-tools {
  436. float: left;
  437. }
  438. }
  439. .projects-toolbar,
  440. .tag-item {
  441. display: flex;
  442. align-items: center;
  443. }
  444. .projects-toolbar {
  445. .dropdown,
  446. .dropdown-toggle {
  447. max-width: 100%;
  448. }
  449. .dropdown {
  450. min-width: 0;
  451. }
  452. .dropdown-toggle {
  453. display: inline-flex;
  454. align-items: baseline;
  455. }
  456. }
  457. .projects-sort-dropdown {
  458. flex-shrink: 0;
  459. margin-left: auto;
  460. }
  461. #projects-types-dropdown {
  462. font-family: @font-family-serif;
  463. & + .projects-dropdown-menu {
  464. min-width: 226px;
  465. }
  466. }
  467. #projects-sort-dropdown {
  468. & + .projects-dropdown-menu {
  469. min-width: 156px;
  470. }
  471. }
  472. .projects-dropdown-menu {
  473. .dropdown-header {
  474. padding: 14px 20px;
  475. font-size: 13px;
  476. text-transform: uppercase;
  477. }
  478. }
  479. .projects-types-menu-item {
  480. .menu-item-button-icon {
  481. left: 10px;
  482. }
  483. &.projects-types-menu-tag-item {
  484. display: flex;
  485. .edit-btn {
  486. padding: 12px 14px;
  487. }
  488. }
  489. }
  490. .projects-sort-menu-item {
  491. .menu-item-button-icon {
  492. left: 14px;
  493. }
  494. }
  495. .projects-action-menu-item {
  496. .menu-item-button-icon {
  497. left: 11px;
  498. }
  499. }
  500. }
  501. .current-plan {
  502. vertical-align: middle;
  503. line-height: @line-height-base;
  504. a.current-plan-label {
  505. text-decoration: none;
  506. color: @text-color;
  507. }
  508. }
  509. .project-list-upload-project-modal-uppy-dashboard .uppy-Root {
  510. .uppy-Dashboard-AddFiles-title {
  511. display: flex;
  512. flex-direction: column;
  513. color: @ol-blue-gray-3;
  514. white-space: pre-line;
  515. button.uppy-Dashboard-browse {
  516. background-color: @ol-green;
  517. color: @white;
  518. margin-bottom: @margin-md;
  519. padding: 4px 16px 5px;
  520. height: 46px;
  521. border-radius: 23px;
  522. font-weight: 700;
  523. display: flex;
  524. justify-content: center;
  525. align-items: center;
  526. font-size: @font-size-large;
  527. font-family: @font-family-sans-serif;
  528. }
  529. }
  530. }
  531. .btn-transparent {
  532. box-shadow: none !important;
  533. background: none !important;
  534. border-radius: 0 !important;
  535. color: inherit !important;
  536. font-weight: 400;
  537. &:hover {
  538. box-shadow: none !important;
  539. background: none !important;
  540. color: inherit !important;
  541. }
  542. }
  543. .menu-item-button,
  544. #new-project-button-projects-table + .dropdown-menu [role='menuitem'] {
  545. padding: 12px 20px;
  546. }
  547. .menu-item-button {
  548. position: relative;
  549. width: 100%;
  550. border: none;
  551. box-shadow: none;
  552. background: inherit;
  553. color: @ol-blue-gray-5;
  554. text-align: left;
  555. .menu-item-button-text {
  556. padding-left: 14px;
  557. }
  558. .menu-item-button-icon {
  559. position: absolute;
  560. top: 50%;
  561. transform: translateY(-50%);
  562. }
  563. }
  564. .project-list-load-more {
  565. display: flex;
  566. flex-direction: column;
  567. justify-content: center;
  568. align-items: center;
  569. }
  570. .project-list-load-more-button {
  571. margin-bottom: @margin-sm;
  572. }
  573. .tag-dropdown-button {
  574. display: block;
  575. width: 100%;
  576. font-weight: normal;
  577. font-size: @font-size-base;
  578. text-align: left;
  579. color: @gray-dark;
  580. background-color: transparent;
  581. border-radius: unset;
  582. border: none;
  583. border-bottom: solid 1px transparent;
  584. padding: 3px 20px;
  585. &:active,
  586. &:focus {
  587. color: @gray-dark;
  588. background-color: transparent;
  589. text-decoration: none;
  590. outline: none;
  591. }
  592. &:hover {
  593. color: @white;
  594. background-color: @ol-green;
  595. }
  596. }
  597. .project-list-sidebar-survey-wrapper {
  598. position: fixed;
  599. bottom: 0;
  600. left: 0;
  601. width: 15%;
  602. .project-list-sidebar-survey-dismiss {
  603. position: relative;
  604. z-index: 1;
  605. float: right;
  606. }
  607. @media (max-width: @screen-xs-max) {
  608. line-height: @mobile-action-element-height;
  609. position: static;
  610. display: block;
  611. margin-top: @margin-sm;
  612. width: initial;
  613. .project-list-sidebar-survey {
  614. font-size: unset;
  615. &:before {
  616. display: none;
  617. }
  618. .project-list-sidebar-survey-link {
  619. display: inline-flex;
  620. align-items: center;
  621. min-width: @mobile-action-element-width;
  622. min-height: @mobile-action-element-height;
  623. }
  624. }
  625. .project-list-sidebar-survey-dismiss {
  626. width: @mobile-action-element-width;
  627. height: @mobile-action-element-height;
  628. border: 0;
  629. }
  630. }
  631. }