Open ontrou opened 3 years ago
I use progress bars in my weekly notes, and I just realized that there is an HTML element that does this. Here is my clueless give-it-a-go attempt so that it coordinates with your the checkbox styling. Is there a better way?
` progress[value] { / Reset the default appearance / -webkit-appearance: none; appearance: none; width: 100px; height: 18px; }
progress[value]::-webkit-progress-bar { background-color: var(--background-primary-alt); border: 1px solid var(--background-modifier-border); border-radius: 3px; box-shadow: inset 0px 0.5px 1px var(--background-zero); }
progress[value]::-webkit-progress-value { background: var(--background-modifier-accent); box-shadow: none; border-color: transparent; border-radius: 2px; } `
this looks great! I hope it becomes official.
I use progress bars in my weekly notes, and I just realized that there is an HTML element that does this. Here is my clueless give-it-a-go attempt so that it coordinates with your the checkbox styling. Is there a better way?
` progress[value] { / Reset the default appearance / -webkit-appearance: none; appearance: none; width: 100px; height: 18px; }
progress[value]::-webkit-progress-bar { background-color: var(--background-primary-alt); border: 1px solid var(--background-modifier-border); border-radius: 3px; box-shadow: inset 0px 0.5px 1px var(--background-zero); }
progress[value]::-webkit-progress-value {
background: var(--background-modifier-accent); box-shadow: none; border-color: transparent; border-radius: 2px; } `