Skip to content

Commit 288927a

Browse files
authored
fix(theme-default): hero actions spacing on small devices (close vuepress#381) (vuepress#442)
1 parent 922c727 commit 288927a

File tree

1 file changed

+7
-4
lines changed
  • packages/@vuepress/theme-default/src/client/styles

1 file changed

+7
-4
lines changed

packages/@vuepress/theme-default/src/client/styles/home.scss

+7-4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
margin: 1.8rem auto;
2727
}
2828

29+
.actions {
30+
display: flex;
31+
flex-wrap: wrap;
32+
gap: 1rem;
33+
justify-content: center;
34+
}
35+
2936
.description {
3037
max-width: 35rem;
3138
font-size: 1.6rem;
@@ -43,10 +50,6 @@
4350
transition: background-color var(--t-color);
4451
box-sizing: border-box;
4552

46-
&:not(:first-child) {
47-
margin-left: 1.5rem;
48-
}
49-
5053
&.primary {
5154
color: var(--c-bg);
5255
background-color: var(--c-brand);

0 commit comments

Comments
 (0)