aboutsummaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/icons.css
blob: 1facc96d43eebad8411ed3f5261fbb2cef446908 (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
/*
 * Icons taken and adapted from: https://github.com/astrit/css.gg.
 */

/*
 * Arrow down.
 */

.gg-chevron-down {
    box-sizing: border-box;
    position: relative;
    transform: scale(1);
    border: 2px solid transparent;
}
.gg-chevron-down::after {
    content: "";
    display: block;
    box-sizing: border-box;
    position: absolute;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid;
    border-right: 2px solid;
    transform: rotate(45deg);
    left: -5px;
    top: 4px
}

/*
 * Arrow up.
 */

.gg-chevron-up {
    box-sizing: border-box;
    position: relative;
    transform: scale(1);
    border: 2px solid transparent;
}
.gg-chevron-up::after {
    content: "";
    display: block;
    box-sizing: border-box;
    position: absolute;
    width: 10px;
    height: 10px;
    border-top: 2px solid;
    border-right: 2px solid;
    transform: rotate(-45deg);
    left: -5px;
    bottom: 4px
}

/*
 * External link.
 */

.gg-external {
    box-sizing: border-box;
    position: relative;
    display: inline-block;
    transform: scale(var(--ggs,1));
    width: 12px;
    height: 12px;
    box-shadow:
        -2px 2px 0 0,
        -4px -4px 0 -2px,
        4px 4px 0 -2px;
    margin-left: 6px;
    margin-top: 1px
}

.gg-external::after,
.gg-external::before {
    content: "";
    display: inline-block;
    box-sizing: border-box;
    position: absolute;
    right: -4px
}

.gg-external::before {
    background: currentColor;
    transform: rotate(-45deg);
    width: 12px;
    height: 2px;
    top: 1px
}
.gg-external::after {
    width: 8px;
    height: 8px;
    border-right: 2px solid;
    border-top: 2px solid;
    top: -4px
}

.gg-external:hover {
    color: var(--text);
}