Skip to content

Commit 0f5c40d

Browse files
fix: improve mobile styling a little bit
1 parent 9faaaa5 commit 0f5c40d

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

website/src/catalog/RuleItem.vue

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,17 +128,20 @@ a:hover {
128128
filter: brightness(1.5);
129129
}
130130
.rule-name {
131+
flex: 0 1 auto;
131132
font-weight: 600;
132133
display: flex;
133134
align-items: center;
134135
gap: 5px;
136+
max-width: 100%;
135137
}
136138
.logo {
137139
height: 18px;
138140
display: inline;
139141
}
140142
.playground {
141143
font-size: 0.8em;
144+
white-space: nowrap;
142145
}
143146
.rule-item {
144147
border: 1px solid var(--vp-c-divider);
@@ -164,7 +167,19 @@ a:hover {
164167
}
165168
166169
.rule-details > div {
167-
flex: 1;
170+
flex: 1 0 30%;
171+
}
172+
173+
@media only screen and (max-width: 640px) {
174+
.rule-item {
175+
margin: 0 -24px;
176+
border-radius: 0;
177+
border-width: 0;
178+
border-bottom-width: 1px;
179+
}
180+
.rule-item:first-child {
181+
border-top-width: 1px;
182+
}
168183
}
169184
170185
.used {

0 commit comments

Comments
 (0)