summaryrefslogtreecommitdiffstats
path: root/sass/style.scss
blob: 58c8e05255a753f89ea977dc635e4aeee89be867 (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
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
@import "colors", "code", "syntax";

html {
  background: var(--bg_s);
  color: var(--fg);
  font-size: 14pt;
  font-family: monospace;

  display: flex;
  flex-direction: column;
}

::selection {
  color: var(--bg);
  background-color: var(--fg);
}

ul.simple {
  list-style: none;
}

a {
  color: var(--aqua);

  &:visited {
    color: var(--aqua-dim);
  }

  &:hover {
    text-decoration: none;
  }

  &:active {
    background: var(--orange-dim);
  }
}

nav a {
  text-decoration: none;

  &:hover {
    text-decoration: underline;
  }
}

footer {
  color: var(--gray);
  font-size: 0.8rem;
}

body {
  height: calc(100vh - 1rem);
  width: calc(100vw - 4rem);
  max-width: 900px;
  display: flex;
  flex-direction: column;
  margin: 0 2rem 1rem;
  line-height: 1.4;
  align-self: center;

  & > header > nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    column-gap: 1rem;

    & > * {
      display: flex;
      align-items: center;
    }

    & > span {
      margin-right: auto;
    }

    & > ul {
      margin-left: auto;
      column-gap: 1rem;
      list-style: none;
      padding-left: 0;
      flex-wrap: wrap;
      justify-content: space-around;

      & > li {
        display: flex;
        align-items: center;
      }
    }

    a,
    a:visited {
      font-size: 1.2rem;
      color: var(--gray);
      font-weight: bold;

      &.active {
        color: var(--orange-dim);
      }
    }
  }

  article,
  aside,
  main,
  nav,
  section {
    & > header {
      & > hgroup > {
        :first-child {
          color: var(--orange);
          margin-bottom: 0;
        }

        :not(:first-child) {
          color: var(--gray-dim);
          margin-top: 0;
          margin-bottom: 0;
        }
      }

      & > footer {
        & > * {
          display: inline;
        }

        & > time {
          text-decoration: underline;
        }
      }

      & > nav {
        text-align: left;
        font-size: 0.9rem;
      }
    }

    & > ul > li > article > header > hgroup > :first-child a {
      color: var(--blue);
      text-decoration: none;

      &:hover {
        text-decoration: underline;
      }
      &:visited {
        color: var(--blue-dim);
      }
    }
  }

  & > footer {
    text-align: center;
    margin-top: auto;
  }
}