layoutcss_parser/
reset.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//container-type to allow extender to works
//without x overflow when screen wide
//
//font-size inherit on hn is mandatory
//because the browser overide it 
pub const RESET_CSS: &str = r#"
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 1rem;
}

body {
    container-type: inline-size;    
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
}

img {
    display: block;
    width:100%;
    object-fit: cover;
}

a, a:visited, a:hover, a:active, a:focus {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

input {
    display: block;
    width:100%;
}

button{
    cursor: pointer;
    color:inherit;
    border:none;
    font:inherit;
}

span, strong, label{
    display: inline-block;
}
"#;