Skip to content

Commit

Permalink
Fixed #962
Browse files Browse the repository at this point in the history
  • Loading branch information
YamiOdymel committed Dec 30, 2023
1 parent 53ba15d commit 338672f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
11 changes: 11 additions & 0 deletions languages/zh-tw/components/wrap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ Type: Article
Relatives:
- Grid

#=======================================================
# 變數
# Variables
#=======================================================

Variables:
- Name: "--gap"
Default: "1rem"
Description: "項目之間的空白間隙寬度。"
Target: ".ts-wrap"

#=======================================================
# 基本樣式
# Definitions
Expand Down
10 changes: 7 additions & 3 deletions src/wrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
Variables
========================================================================== */

.ts-wrap {
--gap: 1rem;
}

/* ==========================================================================
Base
========================================================================== */

.ts-wrap {
display: flex;
gap: 1rem;
gap: var(--gap);
flex-wrap: wrap;
}

Expand Down Expand Up @@ -64,13 +68,13 @@
*/

.ts-wrap.is-relaxed {
gap: 2rem;
--gap: 2rem;
}

/**
* Compact
*/

.ts-wrap.is-compact {
gap: 0.5rem;
--gap: 0.5rem;
}

0 comments on commit 338672f

Please sign in to comment.