~zethra/my-website

ref: 1a7b02a737b0c398123fe15b6605eec7be3f4f71 my-website/sass/main.scss -rw-r--r-- 1.5 KiB
1a7b02a7 — zethra Added links to home page 11 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
@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: 900px;
  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%;
}

.date {
  color: #c7c7c7;
  margin: 0.5rem 0;
}

.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;

  @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;
    }
  }
}