~zethra/my-website

ref: e7eb25ecc51ac433773bf0bb0c4bfd9aa1b430c3 my-website/sass/main.scss -rw-r--r-- 2.0 KiB
e7eb25ecBen Aaron Goldberg Switch to time tag and adjust article line height and margins 2 months ago
                                                                                
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
@import "colors";
@import "fonts";

body {
  font-family: $font-reg;
  background-color: $bg;
  color: $fg;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1rem;
}

a {
  color: $green;
  text-decoration: none;
}

a:visited {
  color: $cyan;
}

a:hover {
  text-decoration: underline;
}

nav {
  width: 100%;
  text-align: right;
  margin: 1rem 0;

  a {
    font-size: 2rem;
    padding-right: 1rem;
  }

  a:visited {
    color: $green;
  }
}

hr {
  width: 100%;
}

time {
  color: #c7c7c7;
  margin: 0.5rem 0;
}

article {
  line-height: 1.3;
  max-width: 720px;
}

.prompt {
  font-family: $font-mono;
  font-weight: 500;
  font-size: 2.5rem;
}

.link-label {
  color: #c7c7c7;
  margin-left: 5rem;
}

#index-content {
  font-size: 1.2rem;
}

@mixin link($name, $icon, $color) {
  .#{$name} div {
    mask: url($icon) no-repeat center;
    -webkit-mask: url($icon) no-repeat center;
  }
  a.#{$name}:hover {
    color: $color;
    div {
      background-color: $color;
    }
  }
}

#links {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;

  @include link(mastodon, "mastodon.svg", $cyan);
  @include link(srht, "sourcehut.svg", $purple);
  @include link(email, "envelope.svg", $green);
  @include link(gpg, "key.svg", $orange);

  a {
    font-size: 2.5rem;
    color: $fg;
    line-height: 1.5;

    div {
      margin: 0 1rem;
      height: 3rem;
      width: 3rem;
      display: inline-block;
      vertical-align: text-top;
      background-color: $fg;
    }
  }
}

#rss-link {
  width: 100%;
  display: flex;
  a {
    margin-left: auto;
  }
}

@media (max-width: 700px) {
  .prompt {
    font-size: 6vw;
  }

  #links {
    span {
      font-size: 3vw;
    }
    a {
      font-size: 6vw;

      div {
        height: 6vw;
        width: 6vw;
      }
    }
  }
  .link-label {
    margin-left: 14vw;
  }
}

@media (max-width: 575px) {
  #links a {
    font-size: 5vw;
  }

  .prompt {
    font-size: 5vw;
  }
}