project-list.scss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. .project-list-empty-col {
  2. display: flex;
  3. height: 100%;
  4. flex-direction: column;
  5. flex-wrap: nowrap;
  6. .row:first-child {
  7. flex-grow: 1; /* fill vertical space so notifications are pushed to bottom */
  8. }
  9. .card-body {
  10. // h2 + .card-thin top padding
  11. padding-bottom: calc(var(--line-height-03) + var(--line-height-03) / 2);
  12. }
  13. }
  14. .project-list-react {
  15. body > &.content {
  16. padding-top: $header-height;
  17. padding-bottom: 0;
  18. min-height: calc(100vh - #{$header-height});
  19. display: flex;
  20. flex-direction: column;
  21. }
  22. .project-list-wrapper {
  23. display: flex;
  24. align-items: stretch;
  25. width: 100%;
  26. min-height: calc(100vh - #{$header-height});
  27. }
  28. .project-list-sidebar-wrapper-react {
  29. position: relative;
  30. background-color: var(--bg-dark-secondary);
  31. flex: 0 0 15%;
  32. min-height: calc(100vh - #{$header-height});
  33. max-width: 320px;
  34. min-width: 200px;
  35. .project-list-sidebar-subwrapper {
  36. display: flex;
  37. flex-direction: column;
  38. height: 100%;
  39. .project-list-sidebar-react {
  40. flex-grow: 1;
  41. padding-left: var(--spacing-06);
  42. padding-right: var(--spacing-06);
  43. -ms-overflow-style: -ms-autohiding-scrollbar;
  44. padding-top: var(--spacing-08);
  45. padding-bottom: var(--spacing-08);
  46. color: var(--neutral-40);
  47. .small {
  48. color: var(--neutral-40);
  49. }
  50. button {
  51. white-space: normal;
  52. word-wrap: anywhere;
  53. // prevents buttons from expanding sidebar width
  54. }
  55. > .dropdown {
  56. width: 100%;
  57. .new-project-button {
  58. width: 100%;
  59. }
  60. }
  61. }
  62. }
  63. }
  64. .project-list-welcome-wrapper {
  65. width: 100%;
  66. padding-bottom: var(--spacing-08);
  67. .welcome-new-wrapper {
  68. .welcome-title {
  69. @include heading-xl();
  70. margin-top: var(--spacing-08);
  71. }
  72. .welcome-message-cards-wrapper {
  73. display: flex;
  74. flex-direction: column;
  75. justify-content: space-between;
  76. align-items: center;
  77. margin-top: var(--spacing-11);
  78. @include media-breakpoint-up(lg) {
  79. flex-direction: row;
  80. justify-content: center;
  81. }
  82. }
  83. .welcome-message-card {
  84. border: 1px solid $bg-light-tertiary;
  85. border-radius: $border-radius-large;
  86. display: flex;
  87. flex-direction: column;
  88. align-items: center;
  89. justify-content: space-between;
  90. padding: var(--spacing-08) var(--spacing-06);
  91. margin: var(--spacing-05) 0;
  92. width: 280px;
  93. height: 200px;
  94. position: relative;
  95. cursor: pointer;
  96. @include media-breakpoint-up(lg) {
  97. margin: 0 var(--spacing-06);
  98. height: 240px;
  99. }
  100. &:hover {
  101. background-color: $bg-light-secondary;
  102. }
  103. .welcome-message-card-img {
  104. @include media-breakpoint-up(lg) {
  105. margin-bottom: var(--spacing-07);
  106. }
  107. }
  108. }
  109. .create-new-project-dropdown {
  110. transform: none !important;
  111. top: 100% !important;
  112. left: var(--spacing-06) !important;
  113. right: var(--spacing-06) !important;
  114. margin-top: var(--spacing-04);
  115. margin-left: var(--spacing-06);
  116. margin-right: var(--spacing-06);
  117. @include media-breakpoint-down(lg) {
  118. left: 0 !important;
  119. right: 0 !important;
  120. margin-top: calc((var(--spacing-05) - var(--spacing-04)) * -1);
  121. }
  122. }
  123. .welcome-message-card-link {
  124. &,
  125. &:hover {
  126. text-decoration: none;
  127. color: $neutral-60;
  128. }
  129. }
  130. }
  131. }
  132. .project-list-main-react {
  133. flex: 1;
  134. overflow-x: hidden;
  135. padding: var(--spacing-08) var(--spacing-06);
  136. }
  137. }
  138. .project-list-upload-project-modal-uppy-dashboard .uppy-Root {
  139. .uppy-Dashboard-AddFiles-title {
  140. display: flex;
  141. flex-direction: column;
  142. color: var(--neutral-60);
  143. white-space: pre-line;
  144. button.uppy-Dashboard-browse {
  145. @extend .btn;
  146. @extend .btn-lg;
  147. @extend .btn-primary;
  148. }
  149. }
  150. }
  151. .survey-notification {
  152. display: flex;
  153. flex-wrap: wrap;
  154. padding: var(--spacing-06);
  155. background-color: var(--bg-dark-tertiary);
  156. border-color: transparent;
  157. color: var(--neutral-20);
  158. box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.25);
  159. border-radius: var(--border-radius-base);
  160. @include media-breakpoint-up(md) {
  161. flex-wrap: nowrap;
  162. }
  163. button.close {
  164. @extend .text-white;
  165. padding: 0;
  166. -webkit-appearance: none;
  167. }
  168. }
  169. .project-list-sidebar-survey-wrapper {
  170. position: sticky;
  171. bottom: 0;
  172. .survey-notification {
  173. font-size: var(--font-size-02);
  174. a {
  175. text-decoration: none;
  176. }
  177. }
  178. @include media-breakpoint-down(md) {
  179. position: static;
  180. margin-top: var(--spacing-05);
  181. .survey-notification {
  182. font-size: unset;
  183. .project-list-sidebar-survey-link {
  184. display: block;
  185. align-items: center;
  186. min-width: 48px;
  187. min-height: 48px;
  188. padding-top: var(--spacing-07);
  189. }
  190. }
  191. }
  192. }