Skip to content

Commit 76a44af

Browse files
committed
Docs: add button reset
1 parent 27a0198 commit 76a44af

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

css_misc_tricks.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,29 @@
44

55
<!-- toc -->
66

7+
## button reset
8+
9+
```css
10+
.Btn {
11+
border: none;
12+
margin: 0;
13+
padding: 0;
14+
width: auto;
15+
overflow: visible;
16+
background: transparent;
17+
color: inherit;
18+
font: inherit;
19+
line-height: normal;
20+
-webkit-font-smoothing: inherit;
21+
-moz-osx-font-smoothing: inherit;
22+
-webkit-appearance: none;
23+
-moz-appearance: none;
24+
outline: none;
25+
text-align: inherit;
26+
cursor: pointer;
27+
}
28+
```
29+
730
## scrollbar-color
831

932
The `scrollbar-color` property controls the two colors of a scrollbar: the thumb and the track color. The track refers to the background of the scrollbar, which is generally fixed regardless of the scrolling position. The thumb refers to the moving part of the scrollbar, which floats on top of the track. See [MDN scrollbar-color](https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color) for additional information.
@@ -33,7 +56,7 @@ e.g. `width: min(50vw, 200px);`
3356
If the viewport width was 1000px, the element actual width would be 200px.
3457
Think of the `min()` value as providing the *maximum* value a property can have.
3558

36-
> The clamp() CSS function clamps a value between an upper and lower bound. clamp() enables selecting a middle value within a range of values between a defined minimum and maximum. It takes three parameters: a minimum value, a preferred value, and a maximum allowed value.
59+
> The clamp() CSS function clamps a value between an upper and lower bound. clamp() enables selecting a middle value within a range of values between a defined minimum and maximum. It takes three parameters: a minimum value, a preferred value, and a maximum allowed value.
3760
3861
e.g. `width: clamp(250px, 50vw, 800px);`
3962

0 commit comments

Comments
 (0)