Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hz2 committed Nov 23, 2023
2 parents 652f3c8 + a5fdd6d commit b430ca5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions doc.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Base

## Base

<details><summary><strong>Layout</strong></summary>

## Layout

| class name | define | equals |
Expand All @@ -11,6 +15,8 @@
| `.flex.end` | end | `justify-content: flex-end;` |
| `.flex.top` | top | `align-items: flex-start;` |
| `.flex.bottom` | bottom | `align-items: flex-end;` |
| `.grid` | display grid | `display: grid;` |
| `.inline-grid` | inline grid | `display: inline-grid;` |
| `.block` | display block | `display: block;` |
| `.inline-block` | inline block | `display: inline-block;` |
| `.align-top` | vertical top | `vertical-align: top;` |
Expand Down
10 changes: 9 additions & 1 deletion src/common/base.less
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@
flex-shrink: 1;
}

>.grow0 {
flex-grow: 0;
}

>.shrink0 {
flex-shrink: 0;
}

}

.inline-flex {
Expand Down Expand Up @@ -300,4 +308,4 @@ input {

.z150 {
z-index: 150;
}
}
2 changes: 0 additions & 2 deletions src/common/typeset.less
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,11 @@
.text-overflow {
text-overflow: ellipsis;
overflow: hidden;
width: 100%;
}

.text-two-lines {
text-overflow: ellipsis;
overflow: hidden;
width: 100%;

display: -webkit-box;
-webkit-line-clamp: 2;
Expand Down

0 comments on commit b430ca5

Please sign in to comment.