summaryrefslogtreecommitdiff
path: root/assets/sass/default.scss
blob: eadf98c79c39fb297c8a213493e47b95e2b1eaad (plain)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
@import url("https://fonts.googleapis.com/css2?family=Inconsolata&display=swap");

:root {
    --cursor-visibility: hidden;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: auto;

    font-family: "Inconsolata", monospace;
    font-size: 4vmin;
    line-height: 4.1vmin;
    font-weight: normal;
}

body {
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

#content {
    min-width: 82vmin;
    min-height: 82vmin;
}

::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    border-radius: 10px;
    box-shadow: inset 0 0 1px white;
}
::-webkit-scrollbar-thumb {
    border-radius: 10px;
    box-shadow: 0 0 0 1px white;
}

.cursor {
    visibility: var(--cursor-visibility);
        content: "|";
        overflow: hidden;
        color: white;
        animation: blink 500ms linear infinite alternate;
}

#cd, #whoami, #cat, #tree {
    &:after {
        @extend .cursor;
    }
}

@keyframes blink {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media only screen and (min-width: 768px) {
    body {
        font-size: 2.5vmin;
        line-height: 2.6vmin;
    }

    #content {
        min-width: 60vmin;
    }
}