signature component + improvements
This commit is contained in:
62
src/app/signature/signature.component.scss
Normal file
62
src/app/signature/signature.component.scss
Normal file
@@ -0,0 +1,62 @@
|
||||
.signature-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.date-input {
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
.signature-canvas {
|
||||
border: 1px dashed #000;
|
||||
width: 300px;
|
||||
height: 100px;
|
||||
touch-action: none; /* Verbessert die Touch-Interaktion */
|
||||
}
|
||||
|
||||
.buttons {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.close-button {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
background: transparent;
|
||||
border: none;
|
||||
font-size: 24px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@media (orientation: landscape) {
|
||||
/* Vollbild-Styling wird über die Klasse 'fullscreen' hinzugefügt */
|
||||
.signature-container.fullscreen {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
z-index: 1000;
|
||||
padding: 20px;
|
||||
box-sizing: border-box;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.signature-container.fullscreen .signature-canvas {
|
||||
width: 90%;
|
||||
height: 150px;
|
||||
}
|
||||
|
||||
.signature-container.fullscreen .buttons {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
.signature-container.fullscreen .close-button {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user