forked from GetmeUK/ContentTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_crop-marks.scss
More file actions
99 lines (87 loc) · 2.6 KB
/
Copy path_crop-marks.scss
File metadata and controls
99 lines (87 loc) · 2.6 KB
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
/**
* Cropmarks define the region within an image that will be cropped. They appear
* in the image dialog when crop is active.
*/
.ct-widget {
.ct-crop-marks {
height: 320px;
left: 73px;
position: absolute;
top: 0;
width: 427px;
/**
* The clipper is used to prevent the rulers extending outside of the
* image.
*/
&__clipper {
height: 100%;
overflow: hidden;
position: relative;
width: 100%;
}
/**
* The cropping region is defined by 2 L shaped framing rulers at
* opposite corners.
*/
&__ruler {
&--top-left {
position: absolute;
&:after {
border: 1px solid rgba(white, 0.5);
border-bottom: none;
border-right: none;
box-shadow:
-1px -1px 1px rgba(black, 0.25),
inset 1px 1px 1px rgba(black, 0.25)
;
content: '';
height: 999px;
left: 0;
position: absolute;
top: 0;
width: 999px;
}
}
&--bottom-right {
position: absolute;
&:after {
border: 1px solid rgba(white, 0.5);
border-top: none;
border-left: none;
bottom: 0;
box-shadow:
1px 1px 1px rgba(black, 0.25),
inset -1px -1px 1px rgba(black, 0.25)
;
content: '';
height: 999px;
position: absolute;
right: 0;
width: 999px;
}
}
}
/**
* The rulers defing the crop region can be moved by the user, handles
* provide a draggable handle for each ruler.
*/
&__handle {
background: #2980b9;
border: 1px solid lighten(#2980b9, 10%);
border-radius: 7px;
cursor: pointer;
height: 15px;
margin-left: -7px;
margin-top: -7px;
position: absolute;
width: 15px;
&--bottom-right {
margin-left: -8px;
margin-top: -8px;
}
&:hover {
background: lighten(#2980b9, 5%);
}
}
}
}