pico/scss/content/_miscs.scss

54 lines
1.0 KiB
SCSS
Raw Normal View History

2019-11-27 15:31:49 +07:00
/**
* Miscs
*/
// Reboot based on :
// - normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css
// - sanitize.css v12.0.1 | CC0 1.0 Universal | github.com/csstools/sanitize.css
2019-11-27 15:31:49 +07:00
//
// 1. Add the correct box sizing in Firefox
// 2. Show the overflow in Edge and IE
2019-11-27 15:31:49 +07:00
hr {
box-sizing: content-box; // 1
height: 0; // 1
overflow: visible; // 2
border: none;
2021-07-02 16:54:41 +07:00
border-top: 1px solid var(--muted-border-color);
2019-11-27 15:31:49 +07:00
}
// Add the correct display in IE 10+
2019-11-27 15:31:49 +07:00
[hidden],
template {
display: none;
}
// Add the correct styles in Edge 18-, IE, and Safari
dialog {
display: block;
position: absolute;
right: 0;
left: 0;
width: -moz-fit-content;
width: -webkit-fit-content;
width: fit-content;
height: -moz-fit-content;
height: -webkit-fit-content;
height: fit-content;
margin: auto;
padding: 1em;
border: solid;
background-color: white;
color: black;
}
dialog:not([open]) {
display: none;
}
// Add the correct display in IE 9-
canvas {
display: inline-block;
}