Files
vuefilemanager/resources/sass/oasis/invoice.scss
2021-04-26 17:03:17 +02:00

347 lines
5.7 KiB
SCSS
Vendored

$primary-color: #bc30fd;
$text-color: #1B2539;
$border-color: #D8D8D8;
$background-color: #F4F5F6;
$border-radius: 15px;
@mixin font-size($size) {
font-size:(($size*1.6)/16) + 0em;
}
* {
outline: 0;
margin: 0;
padding: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
color: $text-color;
}
*, html, body, h1, h2, h3, h4, p, span, b, strong {
font-family: 'Nunito', serif;
}
html {
font-size: 100%;
}
.row {
display: -webkit-flex;
-webkit-flex-wrap: nowrap;
width: 100%;
&.spaces {
margin: 0 -15px;
div[class^='col-'] {
padding: 0 15px;
}
}
div[class^='col-'] {
-webkit-flex-grow: 1;
&.align-right {
text-align: right;
}
}
.col-left, .col-right {
width: 49%;
}
&.align-center div[class^='col-'] {
-webkit-align-self: center;
}
&.align-bottom div[class^='col-'] {
-webkit-align-self: flex-end;
}
}
.invoice-header {
.col-left, .col-right {
display: inline-block;
}
.logo {
margin-bottom: 5px;
display: block;
width: 260px;
}
.email, .phone {
display: block;
@include font-size(7);
font-weight: 400;
margin-bottom: 2px;
}
h1 {
line-height: 1;
padding-bottom: 5px;
@include font-size(16);
}
h2 {
color: $primary-color;
font-weight: 600;
@include font-size(11);
}
h4 {
color: $text-color;
font-weight: 600;
@include font-size(7);
}
}
.supplier {
float: right;
max-width: 600px;
.box {
background: $background-color;
border-radius: $border-radius;
padding: 20px;
}
.dates {
margin-top: 10px;
p {
text-align: right;
@include font-size(9);
}
}
}
.special-wrapper {
padding-bottom: 25px;
border-bottom: 1px dashed $border-color;
margin: 0 -5px 25px;
.special-item {
background: $background-color;
border-radius: 8px;
display: inline-block;
width: 20.9%;
margin: 0 5px;
&:nth-child(1) {
width: 31.5%;
}
.padding {
padding: 10px 15px;
}
}
b {
color: $primary-color;
@include font-size(9);
font-weight: 600;
margin-bottom: 5px;
display: block;
}
span {
@include font-size(10);
font-weight: 600;
word-break: break-word;
overflow-wrap: break-word;
width: 100%;
display: block;
}
}
.table {
table-layout: fixed;
border-collapse: collapse;
width: 100%;
.table-row {
&:nth-child(even) {
background-color: $background-color;
border-radius: 12px;
}
.table-cell {
text-align: left;
word-break: break-word;
padding: 5px;
span, a {
word-break: break-word;
}
&:first-child {
width: 280px;
padding-left: 15px;
padding-right: 15px;
}
&:last-child {
text-align: right;
padding-right: 15px;
}
}
}
tbody {
.table-row {
padding: 5px 0;
}
}
thead {
background-color: white !important;
padding-bottom: 15px;
border-bottom: 0;
.table-cell {
span {
color: $primary-color;
font-weight: 600;
@include font-size(9);
white-space: nowrap;
}
}
}
.table-cell {
word-break: break-all;
span, a {
vertical-align: middle;
font-weight: 500;
@include font-size(9);
}
}
}
.summary {
max-width: 300px;
margin: 20px 0 20px auto;
text-align: right;
li {
padding: 2px 0;
display: block;
b, span {
white-space: nowrap;
}
.col-full {
width: 50%;
display: inline-block;
}
}
span {
@include font-size(10);
}
b {
@include font-size(13);
font-weight: 600;
}
}
.notes {
padding-top: 25px;
border-top: 1px dashed $border-color;
}
.invoice-author {
display: -webkit-flex;
-webkit-justify-content: space-between;
-webkit-align-items: flex-end;
padding-bottom: 25px;
.sign {
text-align: right;
}
img {
max-width: 240px;
display: block;
margin: 0 0 0 auto;
}
}
.invoice-footer {
padding-top: 15px;
border-top: 1px dashed $border-color;
text-align: center;
p {
@include font-size(10);
}
a {
color: $primary-color;
}
}
h3 {
color: $primary-color;
font-weight: 600;
padding-bottom: 8px;
@include font-size(10);
}
p, span {
font-weight: 400;
padding-bottom: 4px;
@include font-size(10);
color: $text-color;
}
.highlight {
color: $primary-color;
}
section, header {
border-bottom: 1px dashed $border-color;
padding-bottom: 25px;
margin-bottom: 25px;
}
.address, .number {
display: block;
font-weight: 600;
}
.content-box {
padding-bottom: 15px;
}
.thank-you {
text-align: center;
font-size: 22px;
margin-top: 20px;
margin-bottom: 60px;
}
footer {
.stamp {
max-width: 200px;
display: block;
margin: 0 0 0 auto;
}
div {
align-self: flex-end;
}
h3 {
display: inline-block;
}
}