c += '<div class="content">';
c += '<div class="pdf-holder"><iframe class="pdf view ' + infos.interface + '" data-width="' + infos.width + '" data-height="' + infos.height + '" data-total-height="' + infos.totalHeight + '" frameborder="0" scrolling="no" src="pdfjs/web/viewer.' + this.fluidbook.settings.htmlExtension + '?&file=../../data/links/' + infos.file + '#zoom=page-width"></iframe></div>';
c += '<div class="fonctions">';
- c += '<a role="button" class="submit" href="#">' + this.fluidbook.l10n.__('send') + '</a>';
+ c += '<span>' + this.fluidbook.settings.pdfform_text + '</span>';
+ c += '<a role="button" class="submit" href="#">' + (this.fluidbook.settings.pdfform_button ? this.fluidbook.settings.pdfform_button : this.fluidbook.l10n.__('send')) + '</a>';
c += '</div>';
c += '</div>';
- this.viewWrap(c, 'pdfform', 'data-linkid="' + uid + '"', 'pdfform');
+ this.viewWrap(c, 'pdfform', 'data-linkid="' + uid + '"', 'pdfform ' + this.fluidbook.settings.pdfform_style);
if (callback != undefined) {
callback();
}
}
}
-.mview[data-menu="pdfform"] {
+.mview.pdfform.cfgroup {
+ .pdf-holder {
+ padding-bottom: 100px;
+ @media screen and (max-width: 800px) {
+ padding-bottom: 200px;
+ }
+ }
+
.fonctions {
position: fixed;
bottom: 0;
right: 0;
+ background-color: #fff;
+ height: 100px;
+ box-shadow: 0 -5px 5px rgba(0, 0, 0, 0.4);
+ font-weight: 600;
+ padding: 30px;
+ @media screen and (max-width: 800px) {
+ height: 200px;
+ }
+
+ span {
+ color: #000;
+ display: inline-block;
+ text-align: left;
+ width: calc(100% - 320px);
+ @media screen and (max-width: 800px) {
+ display: block;
+ width: 100%;
+ }
+ }
+
+
+ a {
+ color: #fff;
+ background-color: #2f99b1;
+ font-weight: 600;
+ width: 300px;
+ vertical-align: top;
+ @media screen and (max-width: 800px) {
+ display: block;
+ width: 100%;
+ margin-top: 15px;
+ }
+ }
}
+
}
\ No newline at end of file