-
Notifications
You must be signed in to change notification settings - Fork 1
/
peace.scss
108 lines (100 loc) · 1.66 KB
/
peace.scss
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
/**
* PEACE.js - http://humancopy.net/peace-js.html
* Peace please, humancopy.net 2017
* Version 1.3.1
*
*/
/** Ultra Light */
@font-face {
font-family: "San Francisco";
font-weight: 100;
src: url("https://applesocial.s3.amazonaws.com/assets/styles/fonts/sanfrancisco/sanfranciscodisplay-ultralight-webfont.woff2");
}
.peace {
opacity: .65;
margin: 1.5em 0;
font: 100 13px "San Francisco", Helvetica, Arial;
text-align: center;
position: relative;
span,
a {
display: inline;
cursor: pointer;
text-decoration: none;
height: 32px;
line-height: 32px;
vertical-align: middle;
-webkit-transition: -webkit-transform 0.3s ease-in-out;
-moz-transition: -moz-transform 0.3s ease-in-out;
-o-transition: -o-transform 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out;
}
span {
opacity: 1;
font-size: 32px;
left: 50%;
top: 0;
position: absolute;
margin-left: -16px;
z-index: 1;
}
a:not([href]) {
cursor: default;
}
&.symbol {
a {
opacity: 0;
position: relative;
z-index: 2;
}
&:hover a,
&.show a {
opacity: 1;
}
&:hover span,
&.show span {
opacity: 0;
}
}
/* Themes */
&.black {
span,
a,
a:visited,
a:hover {
color: #000;
}
}
&.white {
span,
a,
a:visited,
a:hover {
color: #fff;
}
}
&.red {
span,
a,
a:visited,
a:hover {
color: #ee0000;
}
}
&.green {
span,
a,
a:visited,
a:hover {
color: #00ee00;
}
}
&.blue {
span,
a,
a:visited,
a:hover {
color: #0000ee;
}
}
}