Skip to content

Commit 7024b3d

Browse files
authored
reduce card size in scriptsearch for mobile (microsoft#4966)
1 parent 6e9afec commit 7024b3d

3 files changed

Lines changed: 38 additions & 18 deletions

File tree

theme/packagedialog.less

Lines changed: 0 additions & 17 deletions
This file was deleted.

theme/pxt.less

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
@import 'common';
77
@import 'monaco';
8-
@import 'packagedialog';
98
@import 'tutorial';
109
@import 'sidedoc';
1110
@import 'home';

theme/scriptsearch.less

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,42 @@
7070
outline: 0 !important;
7171
}
7272
}
73+
}
74+
75+
/* Script search cards */
76+
.ui.searchdialog {
77+
.cards {
78+
overflow-y: auto;
79+
overflow-x: hidden;
80+
margin-top: 0.5rem;
81+
}
82+
.ui.card {
83+
height: 20rem;
84+
.ui.cardimage {
85+
height: 11rem;
86+
}
87+
}
88+
}
89+
90+
91+
// reduce all card sizes
92+
@media only screen and (max-width: @largestMobileScreen) {
93+
.ui.searchdialog {
94+
.ui.card, .ui.cards>.card {
95+
width: 9rem;
96+
height: 9rem;
97+
}
98+
.ui.card {
99+
.content .description {
100+
display: none;
101+
}
102+
.content .header {
103+
font-size: 80%;
104+
font-weight: normal;
105+
}
106+
.ui.cardimage {
107+
height: 5rem;
108+
}
109+
}
110+
}
73111
}

0 commit comments

Comments
 (0)