Skip to content

Commit

Permalink
💄 Style Adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ice-Hazymoon committed May 30, 2022
1 parent c13a3b2 commit 215451c
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 16 deletions.
4 changes: 2 additions & 2 deletions assets/sass/_common/_shortcodes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@

.gallery-box {
.gallery {
@apply relative md:m-4 m-3 flex flex-row justify-center;
@apply my-4 relative flex flex-row justify-center;
figure {
@apply my-0;
img {
@apply my-0;
}
}
figure + figure {
@apply md:ml-4 ml-3;
@apply ml-4;
}
}
}
9 changes: 7 additions & 2 deletions assets/sass/_partial/_page_gallery.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
.page-gallery {
.gallery {
@apply md:mx-4 mx-3;
.gallery-box {
.gallery {
@apply md:my-4 my-3 md:mx-4 mx-3;
figure + figure {
@apply md:ml-4 ml-3;
}
}
}
.gallery-image {
@apply relative md:mb-4 mb-3 overflow-hidden rounded;
Expand Down
20 changes: 14 additions & 6 deletions exampleSite/content/en-us/posts/Shortcodes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,16 +263,24 @@ The paella dish I rate {{< rating 10 6 >}}

```markdown
{{</* gallery */>}}
![Rose](1.jpg)
![Rose](2.jpg)
![Rose](3.jpg)
![](1.jpg)
![](2.jpg)
![](3.jpg)

![](2.jpg)
![](3.jpg)
![](1.jpg)
{{</* /gallery */>}}
```

{{< gallery >}}
![Rose](1.jpg)
![Rose](2.jpg)
![Rose](3.jpg)
![](1.jpg)
![](2.jpg)
![](3.jpg)

![](2.jpg)
![](3.jpg)
![](1.jpg)
{{< /gallery >}}

## Tabs
Expand Down
20 changes: 14 additions & 6 deletions exampleSite/content/en-us/posts/Shortcodes/index.zh-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,16 +263,24 @@ categories:

```markdown
{{</* gallery */>}}
![Rose](1.jpg)
![Rose](2.jpg)
![Rose](3.jpg)
![](1.jpg)
![](2.jpg)
![](3.jpg)

![](2.jpg)
![](3.jpg)
![](1.jpg)
{{</* /gallery */>}}
```

{{< gallery >}}
![Rose](1.jpg)
![Rose](2.jpg)
![Rose](3.jpg)
![](1.jpg)
![](2.jpg)
![](3.jpg)

![](2.jpg)
![](3.jpg)
![](1.jpg)
{{< /gallery >}}

## 选项卡
Expand Down

0 comments on commit 215451c

Please sign in to comment.