Add style to block csv

This commit is contained in:
Stephen Abello
2021-03-02 10:21:03 +01:00
parent 556388f2f4
commit 2daa1d93e9
3 changed files with 19 additions and 1 deletions

View File

@@ -16,3 +16,4 @@
* You should have received a copy of the GNU Affero General Public License
*/
@import "block-csv";

View File

@@ -0,0 +1,17 @@
$ibo-block-csv--textarea--width: 100% !default;
$ibo-block-csv--textarea--min-height: 10em !default;
$ibo-block-csv--textarea--margin-top: 10em !default;
.ibo-block-csv{
textarea{
width: $ibo-block-csv--textarea--width;
min-height: $ibo-block-csv--textarea--min-height;
margin-top: $ibo-block-csv--textarea--margin-top;
}
}
.ibo-block-csv--download-link{
@extend .ibo-button;
@extend .ibo-is-alternative;
@extend .ibo-is-primary;
}

View File

@@ -5,7 +5,7 @@
<div>
<table style="width:100%" class="transparent">
<tr>
<td><a href="{{ oUIBlock.sDownloadLink }}">{{ 'UI:Download-CSV'|dict_format(oUIBlock.sCsvFile) }}</a>{{ oUIBlock.sCharsetNotice }}</td>
<td><a href="{{ oUIBlock.sDownloadLink }}" class="ibo-block-csv--download-link">{{ 'UI:Download-CSV'|dict_format(oUIBlock.sCsvFile) }}</a>{{ oUIBlock.sCharsetNotice }}</td>
<td style="text-align:right">
<input type="checkbox" {{ oUIBlock.sChecked }} onClick="window.location.href='{{ oUIBlock.sLinkToToggle }}'">
&nbsp;{{ 'UI:CSVExport:AdvancedMode'|dict_s }}