-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpixelbutton.css
123 lines (109 loc) · 2.61 KB
/
pixelbutton.css
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
.container {
margin: 50px;
display: block;
width: 400px;
margin-left: auto;
margin-right: auto;
text-align: center;
}
.pixel,
.pixel2 {
font-size: 25px;
color: white;
height: auto;
margin: 10px;
position: relative;
display: inline-block;
vertical-align: top;
text-transform: uppercase;
cursor: pointer;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.pixel:active,
.pixel2:active {
top: 2px;
}
.pixel {
line-height: 0;
image-rendering: optimizeSpeed;
image-rendering: -moz-crisp-edges; /* Firefox */
image-rendering: -o-crisp-edges; /* Opera */
image-rendering: -webkit-optimize-contrast; /* Webkit (non-standard naming) */
image-rendering: crisp-edges;
-ms-interpolation-mode: nearest-neighbor; /* IE (non-standard property) */
border-style: solid;
border-width: 20px;
-moz-border-image: url(https://i.imgur.com/sREM8Yn.png) 20 stretch;
-webkit-border-image: url(https://i.imgur.com/sREM8Yn.png) 20 stretch;
-o-border-image: url(https://i.imgur.com/sREM8Yn.png) 20 stretch;
border-image: url(https://i.imgur.com/sREM8Yn.png) 20 stretch;
}
.pixel p {
display: inline-block;
vertical-align: top;
position: relative;
width: auto;
text-align: center;
margin: -20px -20px;
line-height: 20px;
padding: 10px 20px;
background: #000000;
background: linear-gradient(135deg, transparent 10px, #000000 0) top left,
linear-gradient(225deg, transparent 10px, #000000 0) top right,
linear-gradient(315deg, transparent 10px, #000000 0) bottom right,
linear-gradient(45deg, transparent 10px, #000000 0) bottom left;
background-size: 50% 50%;
background-repeat: no-repeat;
background-image: radial-gradient(
circle at 0 0,
rgba(204, 0, 0, 0) 14px,
#000000 15px
),
radial-gradient(circle at 100% 0, rgba(204, 0, 0, 0) 14px, #000000 15px),
radial-gradient(circle at 100% 100%, rgba(204, 0, 0, 0) 14px, #000000 15px),
radial-gradient(circle at 0 100%, rgba(204, 0, 0, 0) 14px, #000000 15px);
}
.pixel2 {
position: relative;
display: block;
margin: 10px;
text-transform: uppercase;
font-size: 25px;
color: white;
}
.pixel2::before {
content: "";
display: block;
position: absolute;
top: 10px;
bottom: 10px;
left: -10px;
right: -10px;
background: #ff3494;
z-index: -1;
}
.pixel2::after {
content: "";
display: block;
position: absolute;
top: 4px;
bottom: 4px;
left: -6px;
right: -6px;
background: #ff3494;
z-index: -1;
}
.pixel2 {
padding: 10px 10px;
position: relative;
background: #ff3494;
width: auto;
z-index: 2;
filter: drop-shadow(0px 6px black);
text-align: center;
}