A (more) modern CSS reset
@dz4k đang làm issue này rồi.
Từ ngày 8/4/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
This project is currently using sanitize.css which is not updated for 3 years.
overflow-wrap: break-word too offensive but it's ok.
Points against using sanitize.css:
Unnecessary declarations that opinionated and not needed:
-
background-repeat: no-repeat;, no need to set this, it should be using default behavior which isrepeatto be more predictable. -
text-decoration: inherit;text-decorationproperty used in those elements:a, s, u, del, ins, strikeand there is no need to set the inheritance over::before, ::after, same forvertical-align: inherit. -
cursor: defaultin most elementscursor: defaultis a default value and another things likecursor: autoforinput, textarea, so it's no need to set up, let the browser do its thing. -
In
abbr[title]there is 2 declarations indeed duplicated:underlinethenunderline dottedas values,underline dottedused by Firefox as default (so it should be used as only declaration):
abbr[title], acronym[title] {
text-decoration: dotted underline;
}
-
smallfont-size: 80%unneeded because it's font set it up 2 see:main.css=font-size: .8em; -
margin: 0tobutton, input, selectelements: not needed becausebutton, marginhas no margin andinput[type="*"]have some margins but not big numbers so something like Stack layout would be adorable and it wouldn't need us to set margin to 0. ( .stack>+{ margin-block-start: 1rem } ) -
-webkit-appearance: buttonshould be avoided to use. -
border: 1px solid #a0a0a0set forfieldsetto achieve "Change the inconsistent appearance in all browsers (opinionated)." but actually there is no inconsistency: see https://browserdefaultstyles.com/#fieldset default value isborder: groove 2px ThreeDFace -
margin: 0totextarea: textarea has no margin by default: https://browserdefaultstyles.com/#textarea -
input[type="search"]no need for those declarations because outline-offset is 0 by default see: https://browserdefaultstyles.com/#[type=search] -
In fact vendor specific things should be avoided...
-
:focus-visibleisn't needed but:targetis fine but no need forz-index: 2 -
summarydeclaration is ok but it's better to use justsummaryand notdetails > summary:first-of-typebecause website authors themselves shouldn't add more then one summary to details element and for not increasing specificity it's better to stick withsummary. -
datalist { display: none }unnecessary it's default see: https://browserdefaultstyles.com/#datalist
- Ngôn ngữ chính
- CSS
- Star
- 798
- Fork
- 29
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bigskysoftware/missing
-
visual
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
bigskysoftware/missing#172 ·
-
visual
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
bigskysoftware/missing#171 · 1 bình luận ·
-
User-generated content helper Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
bigskysoftware/missing#162 · 1 bình luận · 1 reaction ·
-
enhancement question
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
bigskysoftware/missing#174 ·
-
visual
bigskysoftware/missing#173 · 1 người được giao ·