Files
asan-service/sass/app/printStyles.scss
T
2023-08-17 13:05:51 +03:30

272 lines
4.3 KiB
SCSS

body {
-webkit-print-color-adjust: exact !important;
}
@page {
size: landscape !important;
}
#box-face-receipt {
padding: 20px;
.receipt-body {
border: 1px solid rgba(#000, 1);
padding: 15px;
.infoRow {
margin-bottom: 15px;
}
.topLeft {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
background: rgba(0, 0, 0, 0.05);
padding: 10px;
flex-basis: 300px;
@media (max-width: 992px) {
flex-basis: 100%;
}
&:first-child {
margin-bottom: 5px;
}
}
h2 {
margin-bottom: 20px;
}
b,
span {
display: inline-block;
}
b {
margin-left: 5px;
}
.senderInfo {
.topLeft {
&:last-child {
@media (max-width: 992px) {
margin-bottom: 20px;
}
}
}
}
.receiverInfo {
.topLeft {
flex-direction: column;
background: transparent;
justify-content: center;
align-items: center;
@media (max-width: 992px) {
justify-content: center;
margin-bottom: 20px;
}
svg {
width: 200px;
margin: 0;
path,
rect {
fill: #000;
}
}
img {
width: 200px;
}
&.ar {
justify-content: flex-end;
@media print {
flex-direction: row;
justify-content: space-between;
align-items: center;
img {
width: 100px;
}
}
}
}
}
}
}
#box-inner-receipt {
padding: 20px;
.receipt-body {
border: 1px solid rgba(#000, 1);
padding: 15px;
.topBar {
margin-bottom: 30px;
svg {
width: 200px;
path,
rect {
fill: #000;
}
}
}
.topLeft {
display: flex;
align-items: center;
justify-content: center;
text-align: center;
background: rgba(0, 0, 0, 0.05);
padding: 10px;
flex-basis: 300px;
&:first-child {
margin-left: 5px;
}
}
.stuff-list {
margin-bottom: 30px !important;
@media print {
.notice {
display: none;
}
}
table {
width: 100% !important;
thead {
tr {
background: rgba(0, 0, 0, 0.7) !important;
color: #fff !important;
}
}
tr {
background-color: #e0e6ed !important;
&.odd {
background-color: #8a92a9 !important;
}
td,
th {
padding: 10px !important;
text-align: center !important;
}
}
}
}
}
}
#factor-layout {
border: 1px dashed #000;
padding: 10px;
span,
p {
font-family: 'iranYekanR', sans-serif;
color: #000;
}
.pageHeader {
margin-bottom: 10px;
.row1 {
h2 {
text-align: center;
font-family: 'iranYekanB';
font-weight: bold;
}
}
.row2 {
display: flex;
flex-direction: column;
align-items: flex-end;
@media (max-width: 992px) {
align-items: flex-start;
margin-top: 20px;
}
p {
width: 200px;
text-align: right;
}
}
}
.factor {
width: 100%;
border: 1px solid #000;
.factorInfo {
display: flex;
flex-direction: column;
padding: 10px;
p {
text-align: right;
padding: 10px 0;
color: #000;
}
.row1 {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: center;
p {
flex-basis: 33.33%;
@media (max-width: 992px) {
flex-basis: 100%;
}
}
}
}
table {
width: 100%;
thead {
tr {
th {
background: rgba(#000, 0.1);
text-align: center;
border: 1px solid #000;
padding: 5px;
}
}
}
tbody {
tr {
td,
th {
text-align: center;
border: 1px solid #000;
padding: 5px;
}
}
}
}
}
}