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
| .clear-fix {
&::after {
content: "";
display: table;
clear: both;
}
}
.border-top-1px,
.border-right-1px,
.border-bottom-1px,
.border-left-1px {
position: relative;
&::before,
&::after {
content: "";
display: block;
position: absolute;
transform-origin: 0 0;
}
}
$color-row-line: #ebebeb;
$color-col-line: #ebebeb;
.border-top-1px {
&::before {
border-top: 1px solid $color-row-line;
left: 0;
top: 0;
width: 100%;
transform-origin: 0 top;
}
}
.border-right-1px {
&::after {
border-right: 1px solid $color-col-line;
top: 0;
right: 0;
height: 100%;
transform-origin: right 0;
}
}
.border-bottom-1px {
&::after {
border-bottom: 1px solid $color-row-line;
left: 0;
bottom: 0;
width: 100%;
transform-origin: 0 bottom;
}
}
.border-left-1px {
&::before {
border-left: 1px solid $color-col-line;
top: 0;
left: 0;
height: 100%;
transform-origin: left 0;
}
}
@media (min-resolution: 2dppx) {
.border-top-1px {
&::before {
width: 200%;
transform: scale(0.5) translateZ(0);
}
}
.border-right-1px {
&::after {
height: 200%;
transform: scale(0.5) translateZ(0);
}
}
.border-bottom-1px {
&::after {
width: 200%;
transform: scale(0.5) translateZ(0);
}
}
.border-left-1px {
&::before {
height: 200%;
transform: scale(0.5) translateZ(0);
}
}
}
@media (min-resolution: 3dppx) {
.border-top-1px {
&::before {
width: 300%;
transform: scale(0.333) translateZ(0);
}
}
.border-right-1px {
&::after {
height: 300%;
transform: scale(0.333) translateZ(0);
}
}
.border-bottom-1px {
&::after {
width: 300%;
transform: scale(0.333) translateZ(0);
}
}
.border-left-1px {
&::before {
height: 300%;
transform: scale(0.333) translateZ(0);
}
}
}
|