summaryrefslogtreecommitdiffstats
path: root/assets/css/_base.scss
blob: ac6b989da0388437d6932db22cc344fcb76f6fa0 (plain) (blame)
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
@use 'iro-sass/src/index' as iro;
@use 'iro-design/src/functions' as fn;

html,
pre,
code {
    font-feature-settings: 'calt' 0, 'dlig' 1, 'ss09' 1;
}

body {
    box-sizing: border-box;
    height:     auto;
    min-height: 100%;
}

main {
    @include iro.responsive-env((600px, 900px)) {
        font-size: iro.responsive-set((1rem, iro.fn-px-to-rem(18px)));
    }
}

img {
    display:   block;
    max-width: 100%;
}

figure {
    margin:  fn.dim(--paragraph --margin-top) 0 0;
    padding: 0;

    img {
        display:    block;
        max-width:  100%;
        max-height: 70vh;
        object-fit: contain;
    }
}