Skip to content

Commit 127093f

Browse files
Styles: Responsive for Preference Switch (#2285)
* Padding on options preferences for max-width:960px * New padding em * 959px and no units * Delete package-lock.json * Update .vitepress/theme/components/PreferenceSwitch.vue Co-authored-by: skirtle <65301168+skirtles-code@users.noreply.github.com> --------- Co-authored-by: skirtle <65301168+skirtles-code@users.noreply.github.com>
1 parent f1a3abc commit 127093f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.vitepress/theme/components/PreferenceSwitch.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,13 @@ function useToggleFn(
168168
169169
.switch-container {
170170
display: flex;
171-
align-items: center;
171+
align-items: center;
172+
}
173+
174+
@media(max-width: 959px){
175+
.switch-container {
176+
padding: 0 1em;
177+
}
172178
}
173179
174180
.switch-container:nth-child(2) {

0 commit comments

Comments
 (0)