1
1
mirror of https://github.com/primer/css.git synced 2024-11-28 13:12:16 +03:00

Merge pull request #371 from primer/muan/details

Add .details-reset
This commit is contained in:
Diana Mounter 2017-11-08 22:29:52 -05:00 committed by GitHub
commit 8624389a5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View File

@ -67,3 +67,12 @@ button {
// Remove border radius added by Chroma macOS
border-radius: 0;
}
details {
summary { cursor: pointer; }
&:not([open]) {
// Set details content hidden by default for browsers that don't do this
> *:not(summary) { display: none; }
}
}

View File

@ -202,3 +202,12 @@
}
}
}
.details-reset {
// Remove marker added by the display: list-item browser default
> summary { list-style: none; }
// Remove marker added by details polyfill
> summary::before { display: none; }
// Remove marker added by Chrome
> summary::-webkit-details-marker { display: none; }
}