Skip to content

Commit f8538c1

Browse files
Pavitra KhatriPavitra Khatri
authored andcommitted
Refactored code
1 parent e635548 commit f8538c1

File tree

3 files changed

+13
-375
lines changed

3 files changed

+13
-375
lines changed

ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form/scribble/v1/scribble/clientlibs/site/css/scribbleview.css

Lines changed: 0 additions & 366 deletions
Original file line numberDiff line numberDiff line change
@@ -38,369 +38,3 @@ textarea.cmp-adaptiveform-scribble__widget{
3838

3939
}
4040

41-
.cmp-adaptiveform-scribble__header {
42-
font-size: 19px;
43-
font-weight: 100;
44-
line-height: 24.7px;
45-
margin-bottom: 10px;
46-
}
47-
48-
.cmp-adaptiveform-scribble__canvas-signed-container {
49-
position: relative;
50-
border: 1px solid #AAAAAA;
51-
height: 280px;
52-
padding: 10px;
53-
min-width: 50px;
54-
width: 100%;
55-
border-radius: 0.5rem;
56-
}
57-
58-
.cmp-adaptiveform-scribble__canvas__main {
59-
width: 100%;
60-
}
61-
62-
.cmp-adaptiveform-scribble__canvas {
63-
/* Styles for the canvas element where the signature is drawn */
64-
/* border: 1px solid #616060;
65-
background-color: #f9f9f9;
66-
color: black */
67-
width: 100%;
68-
height: 200px;
69-
border:1px #AAAAAA dashed;
70-
border-bottom: 0;
71-
-ms-touch-action:pinch-zoom;
72-
touch-action:pinch-zoom;
73-
}
74-
75-
.cmp-adaptiveform-scribble__signcanvases{
76-
width: 100%;
77-
background-color: #FFF;
78-
}
79-
80-
.cmp-adaptiveform-scribble__container {
81-
font-family: Arial, sans-serif;
82-
font-size: 12px;
83-
min-width: 50px; /* Dialog will be no smaller than this */
84-
width: 36%;
85-
/* Dialog will wrap after this width */
86-
background: #FFF;
87-
border: solid 2px #999;
88-
color: #000;
89-
padding: 10px;
90-
display: none;
91-
-moz-border-radius: 10px;
92-
-webkit-border-radius: 10px;
93-
border-radius: 10px;
94-
background-color: #F8F8F8;
95-
96-
/* display:none; */;
97-
/* the shadow */
98-
-moz-box-shadow: 10px 10px 5px #888888;
99-
-webkit-box-shadow: 10px 10px 5px #888888;
100-
box-shadow: 0px 0px 15px #888888;
101-
102-
/* make dialog a non-selectatable thing */
103-
-moz-user-select: none;
104-
-khtml-user-select: none;
105-
-webkit-user-select: none;
106-
-o-user-select: none;
107-
108-
z-index: 99998;
109-
margin: 0;
110-
line-height:0;
111-
position: absolute;
112-
top: 50%;
113-
left: 50%;
114-
transform: translate(-50%, -50%);
115-
}
116-
117-
.cmp-adaptiveform-scribble__controls {
118-
display: flex;
119-
align-items: center;
120-
justify-content: center;
121-
flex-direction: row;
122-
flex-wrap: wrap;
123-
}
124-
125-
.cmp-adaptiveform-scribble__control-message {
126-
font-size: 14px;
127-
font-weight: normal;
128-
text-align: center;
129-
line-height: 1.75em;
130-
min-width: 50px;
131-
color: #555555;
132-
cursor: default;
133-
padding: 10px;
134-
margin: 0em;
135-
display: none;
136-
}
137-
138-
.cmp-adaptiveform-scribble__content {
139-
background: 16px 16px no-repeat ;
140-
margin: 0em;
141-
min-width: 50px;
142-
width: 100%;
143-
}
144-
145-
.cmp-adaptiveform-scribble__panel {
146-
text-align: center;
147-
margin: 0em 0em 0em 0em;
148-
background-color:black;
149-
-moz-border-top-right-radius: 8px;
150-
-webkit-border-top-right-radius: 8px;
151-
border-top-right-radius: 8px;
152-
-moz-border-top-left-radius: 8px;
153-
-webkit-border-top-left-radius: 8px;
154-
border-top-left-radius: 8px;
155-
overflow:hidden;
156-
background: #AFB0B5;
157-
-ms-touch-action:pinch-zoom;
158-
touch-action:pinch-zoom;
159-
}
160-
161-
.cmp-adaptiveform-scribble__button {
162-
background:no-repeat;
163-
border-radius: 5px;
164-
width:32px;
165-
height:32px;
166-
border: 1px solid #D5D5D5;
167-
background-size:32px 32px;
168-
margin-right:5px;
169-
background-color: white;
170-
background-position: center;
171-
}
172-
.cmp-adaptiveform-scribble__control-geo{
173-
background-image:url('../resources/images/iEBox_geo.png');
174-
}
175-
.cmp-adaptiveform-scribble__control-text{
176-
background-image:url('../resources/icontext.svg');
177-
}
178-
.cmp-adaptiveform-scribble__keyboard-sign-box{
179-
border: 1px dashed#AAAAAA;
180-
display:none;;
181-
margin:0px;
182-
border-radius: 0px 0px 0px 0px;
183-
outline:none;
184-
width: 100%;
185-
height: 200px;
186-
}
187-
188-
#keyboard_Sign_Box::placeholder {
189-
font: 1rem sans-serif, Georgia;
190-
vertical-align: middle;
191-
}
192-
193-
.cmp-adaptiveform-scribble__control-brush{
194-
background-image:url('../resources/images/signIcon.png');
195-
}
196-
197-
.cmp-adaptiveform-scribble__control-submit {
198-
width: 77px;
199-
height: 40px;
200-
margin: 5px;
201-
padding: 9px 20px 11px 20px;
202-
border: 1px transparent;
203-
border-radius: 20px;
204-
background-color: #0265DC;
205-
color: white;
206-
}
207-
208-
.cmp-adaptiveform-scribble__control-clear {
209-
background-image:url('../resources/iconeraser.svg');
210-
}
211-
212-
.cmp-adaptiveform-scribble__button-close {
213-
width: 77px;
214-
height: 40px;
215-
font-weight: 700;
216-
padding: 9px 20px 11px 20px;
217-
margin: 5px;
218-
border: 2px solid #4b4b4b;
219-
color: #4b4b4b;
220-
border-radius: 20px;
221-
}
222-
223-
.cmp-adaptiveform-scribble__controlpanel {
224-
margin-top: 40px;
225-
align-items: center;
226-
display: flex;
227-
justify-content: space-between;
228-
}
229-
230-
/* @media (max-width: 780px) { */
231-
232-
/* .cmp-adaptiveform-scribble__controlpanel {
233-
flex-direction: column;
234-
} */
235-
/* .cmp-adaptiveform-scribble__controlpanel__controls {
236-
margin-top: 10px;
237-
flex-direction: row;
238-
}
239-
240-
} */
241-
242-
@media (max-width: 460px) {
243-
244-
.cmp-adaptiveform-scribble__controlpanel__controls {
245-
margin-top: 10px;
246-
display: flex;
247-
flex-direction: column;
248-
justify-content: center;
249-
}
250-
251-
}
252-
253-
@media (min-width: 460px) and (max-width: 1155px) {
254-
.cmp-adaptiveform-scribble__controlpanel__controls {
255-
margin-top: 10px;
256-
}
257-
258-
.cmp-adaptiveform-scribble__controlpanel {
259-
margin-top: 40px;
260-
align-items: center;
261-
justify-content: center;
262-
display: flex;
263-
flex-direction: row;
264-
flex-wrap: wrap;
265-
}
266-
}
267-
268-
/* #iEBox_moveframe{
269-
padding:0px;
270-
margin:0px;
271-
border:0px dotted rgba(0,0,0,0.5);
272-
-moz-border-radius: 10px;
273-
-webkit-border-radius: 10px;
274-
border-radius: 10px;
275-
276-
-moz-box-shadow: 10px 10px 5px #888888;
277-
-webkit-box-shadow: 10px 10px 5px #888888;
278-
box-shadow: 0px 0px 15px #888888;
279-
position:absolute;
280-
} */
281-
.disable_button {
282-
filter: grayscale(100%); /* Apply grayscale effect */
283-
-webkit-filter: grayscale(100%); /* For Safari and older versions of Chrome */
284-
-moz-filter: grayscale(100%); /* For older versions of Firefox */
285-
-ms-filter: grayscale(100%); /* For older versions of Internet Explorer */
286-
-o-filter: grayscale(100%); /* For older versions of Opera */
287-
cursor: not-allowed; /* Change cursor to indicate disabled state */
288-
opacity: 0.6; /* Optional: Adjust opacity to give a faded look */
289-
pointer-events: none; /* Disable all mouse events */
290-
}
291-
.cmp-adaptiveform-scribble__clear-sign {
292-
position: absolute;
293-
width:20px;
294-
height:20px;
295-
background:no-repeat;
296-
background-size:20px 20px;
297-
background-image:url('../resources/images/clearSignButton.png');
298-
right: 5px;
299-
top: 5px;
300-
}
301-
.cmp-adaptiveform-scribble__brushlist{
302-
position:absolute;
303-
z-index:99999;
304-
background-color:white;
305-
box-shadow: 0px 0px 15px #888888;
306-
display: none;
307-
left: 45px;
308-
}
309-
.cmp-adaptiveform-scribble__brushlist :hover{
310-
background-color:gray;
311-
}
312-
.cmp-adaptiveform-scribble__caption {
313-
border:4px dashed #AAAAAA;
314-
border-bottom:0px;
315-
border-left:0px;
316-
border-right:0px;
317-
margin-right:4px;
318-
margin-left:1px;
319-
margin-top:0px;
320-
text-align:center;
321-
padding:0px;
322-
}
323-
.cmp-adaptiveform-scribble__caption > legend {
324-
width:auto;
325-
background-color: #FFFFFF;
326-
padding: 2px;
327-
}
328-
329-
.cmp-adaptiveform-scribble__canvases {
330-
white-space:nowrap;
331-
}
332-
333-
.cmp-adaptiveform-scribble__clearsign-container {
334-
font-size: 14px;
335-
padding: 25px;
336-
width: 280px;
337-
height: 148px;
338-
background: #FFF;
339-
border: solid 1px #E6E6E6;
340-
color: #000;
341-
border-radius: 5px;
342-
position: absolute;
343-
top: 50%;
344-
left: 50%;
345-
display: none;
346-
transform: translate(-50%, -50%);
347-
}
348-
349-
.cmp-adaptiveform-scribble__clearsign-title {
350-
font-size: 14px;
351-
font-weight: bold;
352-
line-height: 1.75em;
353-
color: #000;
354-
cursor: default;
355-
padding-bottom: 10px;
356-
margin: 0em;
357-
}
358-
359-
.cmp-adaptiveform-scribble__clearsign-content {
360-
background: 16px 16px no-repeat ;
361-
padding: 1em 1.75em;
362-
margin: 0em;
363-
}
364-
365-
.cmp-adaptiveform-scribble__clearsign-message {
366-
font-size: 14px;
367-
}
368-
369-
.cmp-adaptiveform-scribble__clearsign-panel {
370-
text-align: right;
371-
margin: 1em 0em 0em 1em;
372-
}
373-
374-
.cmp-adaptiveform-scribble__clearsign-yes{
375-
width: 54px;
376-
height: 24px;
377-
margin: 5px;
378-
font-size: 12px;
379-
font-weight: 700;
380-
border: 1px transparent;
381-
border-radius: 20px;
382-
background-color: #0265DC;
383-
color: white;
384-
}
385-
386-
387-
.cmp-adaptiveform-scribble__clearsign-no{
388-
width: 54px;
389-
height: 24px;
390-
font-weight: 700;
391-
font-size: 12px;
392-
margin: 5px;
393-
background-color: #FFF;
394-
border: 2px solid #D5D5D5;
395-
color: #4b4b4b;
396-
border-radius: 20px;
397-
}
398-
399-
/* .cmp-adaptiveform-scribble__clearsign-yes:focus,.cmp-adaptiveform-scribble__clearsign-no:focus{
400-
outline:highlight;
401-
}
402-
403-
.cmp-adaptiveform-scribble__clearsign-yes:hover,.cmp-adaptiveform-scribble__clearsign-no:hover{
404-
outline:none;
405-
border: 2px outset buttonface;
406-
} */

0 commit comments

Comments
 (0)