|
31 | 31 | .projectsdialog { |
32 | 32 | position: relative; |
33 | 33 | height: 100%; |
34 | | - overflow: auto; |
| 34 | + overflow-y: scroll; |
| 35 | + overflow-x: hidden; |
| 36 | + scrollbar-gutter: stable; |
35 | 37 | z-index: @homeScreenZIndex+1; |
36 | 38 | .accessibleMenu { |
37 | 39 | z-index: @homeScreenZIndex+3 !important; |
|
144 | 146 | padding-top: calc(@mainMenuHeight + 2rem) !important; |
145 | 147 | margin: 0; |
146 | 148 | border: 0; |
| 149 | + display: flex; |
| 150 | + flex-direction: column; |
| 151 | + box-sizing: border-box; |
147 | 152 | width: 100%; |
148 | | - min-height: 100%; |
| 153 | + min-height: 100vh; |
149 | 154 | background: var(--pxt-target-background1); |
150 | 155 | color: var(--pxt-target-foreground1); |
151 | 156 | } |
| 157 | + |
| 158 | + .button.large { |
| 159 | + font-weight: 700; |
| 160 | + } |
| 161 | + |
152 | 162 | .ui.segment.gallerysegment { |
153 | 163 | background: none; |
154 | 164 | border: none; |
155 | 165 | box-shadow: none; |
156 | 166 | padding: 0rem; |
157 | 167 | margin: 0; |
158 | 168 |
|
| 169 | + &.mystuff-segment { |
| 170 | + .gallery-actions button, |
| 171 | + &.search-mode .heading button { |
| 172 | + padding: .75em; |
| 173 | + } |
| 174 | + } |
| 175 | + |
| 176 | + &.mystuff-segment.search-mode { |
| 177 | + .gallery-heading-column { |
| 178 | + padding-left: @carouselArrowSize !important; |
| 179 | + } |
| 180 | + |
| 181 | + .heading { |
| 182 | + position: relative; |
| 183 | + align-items: center; |
| 184 | + } |
| 185 | + |
| 186 | + .ui.header.search-mode-title { |
| 187 | + position: absolute; |
| 188 | + left: 50%; |
| 189 | + transform: translateX(-50%); |
| 190 | + padding-left: 0; |
| 191 | + margin: 0; |
| 192 | + text-align: center; |
| 193 | + pointer-events: none; |
| 194 | + } |
| 195 | + |
| 196 | + .search-input { |
| 197 | + height: 3em; |
| 198 | + input { |
| 199 | + padding: .75em 1em; |
| 200 | + } |
| 201 | + i { |
| 202 | + bottom: 1em; |
| 203 | + }; |
| 204 | + } |
| 205 | + } |
| 206 | + |
| 207 | + &.search-segment { |
| 208 | + padding: 1rem @carouselArrowSize; |
| 209 | + |
| 210 | + .search-results-grid { |
| 211 | + display: grid; |
| 212 | + grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); |
| 213 | + gap: 1rem; |
| 214 | + align-items: start; |
| 215 | + grid-auto-flow: dense; |
| 216 | + |
| 217 | + // override default that's bumping it up |
| 218 | + > .ui.card:first-child { |
| 219 | + margin: 1em 0; |
| 220 | + } |
| 221 | + } |
| 222 | + |
| 223 | + .search-detailview.detailview { |
| 224 | + grid-column-start: 1; |
| 225 | + grid-column-end: -1; |
| 226 | + min-width: 0; |
| 227 | + width: 100%; |
| 228 | + } |
| 229 | + |
| 230 | + .search-empty-state { |
| 231 | + margin: 0; |
| 232 | + width: 100%; |
| 233 | + box-sizing: border-box; |
| 234 | + display: flex; |
| 235 | + align-items: center; |
| 236 | + align-self: stretch; |
| 237 | + } |
| 238 | + } |
| 239 | + |
159 | 240 | .ui.header { |
160 | 241 | margin: 0; |
161 | 242 | padding-left: @carouselArrowSize; |
|
192 | 273 | margin-bottom: -1rem !important; |
193 | 274 | margin-top: 1rem !important; |
194 | 275 | } |
| 276 | + .gallery-heading-column, |
| 277 | + .gallery-actions { |
| 278 | + z-index: 1; |
| 279 | + } |
| 280 | + .gallery-actions { |
| 281 | + display: flex; |
| 282 | + justify-content: flex-end; |
| 283 | + gap: 0.5rem; |
| 284 | + flex-wrap: wrap; |
| 285 | + } |
195 | 286 | .column { |
196 | 287 | padding: 0 !important; |
197 | 288 | } |
198 | 289 | .column.right.aligned { |
199 | 290 | padding-right: @carouselArrowSize !important; |
200 | 291 | } |
201 | 292 | } |
| 293 | + .homescreen-search-box { |
| 294 | + padding-top: 1em; |
| 295 | + margin: 1em @carouselArrowSize; |
| 296 | + } |
202 | 297 | .import-dialog-btn { |
203 | 298 | position: relative; |
204 | 299 | z-index: 1; /* Move up so it's above the carousel container that has an offset margin */ |
|
216 | 311 | width: 100%; |
217 | 312 | text-align: center; |
218 | 313 | padding: 5px !important; |
| 314 | + margin-top: auto !important; |
219 | 315 | z-index: @homeFooterZIndex; |
220 | | - position: absolute; |
| 316 | + position: relative; |
221 | 317 | .item { |
222 | 318 | font-size: 0.8rem !important; |
223 | 319 | color: var(--pxt-neutral-foreground1) !important; |
|
441 | 537 | display: inline-block; |
442 | 538 | width: 100%; |
443 | 539 | } |
| 540 | + .card-action .card-action-button-link.common-link { |
| 541 | + text-decoration: none; |
| 542 | + } |
| 543 | + .card-action .card-action-button-link.common-link:hover, |
| 544 | + .card-action .card-action-button-link.common-link:focus, |
| 545 | + .card-action .card-action-button-link.common-link:visited { |
| 546 | + text-decoration: none; |
| 547 | + color: var(--pxt-neutral-foreground3); |
| 548 | + } |
| 549 | + .card-action .card-action-button-link .ui.text { |
| 550 | + display: inline-block; |
| 551 | + width: 100%; |
| 552 | + } |
444 | 553 | .card-action .button { |
445 | 554 | border: none!important; |
446 | 555 | outline: none!important; |
|
760 | 869 |
|
761 | 870 | @media only screen and (max-width: @largestTabletScreen) { |
762 | 871 | /* Carousel */ |
| 872 | + .gallerysegment.search-segment { |
| 873 | + padding: 1rem @carouselArrowSizeTablet; |
| 874 | + } |
| 875 | + .ui.segment.gallerysegment.mystuff-segment.search-mode { |
| 876 | + .gallery-heading-column { |
| 877 | + padding-left: @carouselArrowSizeTablet !important; |
| 878 | + } |
| 879 | + } |
| 880 | + .homescreen-search-box { |
| 881 | + margin: 1em @carouselArrowSizeTablet; |
| 882 | + } |
763 | 883 | .projectsdialog { |
764 | 884 | .ui.segment.getting-started-segment { |
765 | 885 | background-position: left center; |
|
833 | 953 |
|
834 | 954 | @media only screen and (max-width: @largestMobileScreen) { |
835 | 955 | /* Carousel */ |
| 956 | + .gallerysegment.search-segment { |
| 957 | + padding: 1rem @carouselArrowSizeMobile; |
| 958 | + } |
| 959 | + .ui.segment.gallerysegment.mystuff-segment.search-mode { |
| 960 | + .gallery-heading-column { |
| 961 | + padding-left: @carouselArrowSizeMobile !important; |
| 962 | + } |
| 963 | + |
| 964 | + .ui.header.search-mode-title { |
| 965 | + display: none; |
| 966 | + } |
| 967 | + } |
| 968 | + .homescreen-search-box { |
| 969 | + margin: 1em @carouselArrowSizeMobile; |
| 970 | + } |
836 | 971 | .projectsdialog { |
837 | 972 | .ui.segment.getting-started-segment { |
838 | 973 | height: 10rem; |
|
0 commit comments