forked from Sacret/githubify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmixins.less
More file actions
27 lines (25 loc) · 793 Bytes
/
mixins.less
File metadata and controls
27 lines (25 loc) · 793 Bytes
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
.vertical-align(@position: relative) {
position: @position;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
.tag-decorations(@color: @brand-primary) {
background: lighten(@color, 37%);
border: 1px solid @color;
color: darken(@color, 10%);
&:hover, &.active {
color: #fff;
background: @color;
}
}
.no-select {
-webkit-touch-callout: none; /* iOS Safari */
-webkit-user-select: none; /* Chrome/Safari/Opera */
-khtml-user-select: none; /* Konqueror */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* Internet Explorer/Edge */
user-select: none; /* Non-prefixed version, currently
not supported by any browser */
}