aboutsummaryrefslogtreecommitdiffstats
path: root/src/index.css
blob: 57699c2507b66a0862d1625abd77a015fe31e4c9 (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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
body {
  padding: 40px;
  max-width: 800px;
  margin: auto;
  margin: 0 max(0px, round(50vw - (800px/2), 1px));
}

::selection {
  background-color: #958831;
  color: white;
}

.hidden {
  display: none;
}

header {
  margin-bottom: 40px;

  .top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    h1 {
      font-size: 50px;
      line-height: 50px;
    }

    .links {
      display: flex;
      gap: 10px;
      a {
        display: inline-block;
        width: 42px;
        height: 42px;
        background-size: 24px 24px;
        background-repeat: no-repeat;
        background-position: center;
      }

      .tree {
        background-image: url(/svg/tree.svg);
      }
    }
  }

  p {
    font-size: 22px;
    line-height: 25px;
    margin-top: 10px;
  }
}

main {
  & > div {
    margin-bottom: 15px;
    h2 {
      user-select: none;
      margin-bottom: 5px;
    }
  }
}

.code-block {
  margin-top: 15px;
  overflow-x: hidden;

  .inner {
    position: relative;

    button {
      position: absolute;
      right: 1px;
      top: 1px;
      z-index: 5;
    }

    pre {
      background-color: #3e4637;
      border: 1px solid;
      border-color: #292c21 #8c9284 #8c9284 #292c21;
      margin-top: 5px;
      position: relative;
      font-family: 'Courier New', Courier, monospace;
      padding: 5px;

      code {
        white-space: pre-wrap;

        &::selection {
          background-color: #958831;
          color: white;
        }
      }
    }
  }
}

footer {
  text-align: center;
}

footer a,
a.link {
  color: #dedfd6;
}

@media (max-width: 400px) {
  body {
    padding: 20px;
  }
}