Skip to content

Commit

Permalink
[TASK] Add class for table title/ use TYPO3 colors
Browse files Browse the repository at this point in the history
  • Loading branch information
deoostfrees committed Oct 28, 2024
1 parent a1aeadd commit cc4a7cd
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Resources/Private/Partials/Box/Analysis/DownloadsList.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<f:if condition="{downloads}">
<f:then>
<lux:pagination.paginate objects="{downloads}" as="downloadsPaginator" itemsPerPage="15">
<div style="background-color: #dddddd; border-top: 1px solid #cccccc; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; color: #5a5a5a; font-weight: bold; padding: 10px;">
<div class="table-title">
<f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.analysis.content.assets">assets</f:translate>
({downloads -> f:count()})
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<f:if condition="{news}">
<f:then>
<lux:pagination.paginate objects="{news}" as="newsPaginator" itemsPerPage="30">
<div style="background-color: #dddddd; border-top: 1px solid #cccccc; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; color: #5a5a5a; font-weight: bold; padding: 10px;">
<div class="table-title">
<f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.list.newsvisits">News visits</f:translate>
({news -> f:count()})
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<f:if condition="{pages}">
<f:then>
<lux:pagination.paginate objects="{pages}" as="pagesPaginator" itemsPerPage="15">
<div style="background-color: #dddddd; border-top: 1px solid #cccccc; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; color: #5a5a5a; font-weight: bold; padding: 10px;">
<div class="table-title">
<f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.analysis.content.pages">Page visits</f:translate>
({pages -> f:count()})
</div>
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Partials/Box/Analysis/SearchList.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<f:if condition="{search}">
<f:then>
<lux:pagination.paginate objects="{search}" as="searchPaginator" itemsPerPage="30">
<div style="background-color: #dddddd; border-top: 1px solid #cccccc; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; color: #5a5a5a; font-weight: bold; padding: 10px;">
<div class="table-title">
<f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:module.list.search.queries">queries</f:translate>
({search -> f:count()})
</div>
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Partials/Box/Analysis/UtmList.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<f:if condition="{utmList}">
<f:then>
<lux:pagination.paginate objects="{utmList}" as="utmListPaginator" itemsPerPage="30">
<div style="background-color: #dddddd; border-top: 1px solid #cccccc; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; color: #5a5a5a; font-weight: bold; padding: 10px;">
<div class="table-title">
Leads ({utmList -> f:count()})
</div>
<table class="table table-striped table-hover table-pointer">
Expand Down
12 changes: 11 additions & 1 deletion Resources/Private/Sass/Modules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -293,8 +293,18 @@ label {
/**
* Table classes
*/
.table-title {
background-color: var(--typo3-component-border-color);
border-top: 1px solid var(--typo3-component-border-color);
border-left: 1px solid var(--typo3-component-border-color);
border-right: 1px solid var(--typo3-component-border-color);
color: var(--typo3-table-color);
font-weight: bold;
padding: 10px;
}

.table {
border: 1px solid $colorGreyBright;
border: 1px solid var(--typo3-component-border-color);

.soft {
color: $colorGreySoft;
Expand Down
12 changes: 11 additions & 1 deletion Resources/Private/Sass/PageOverview.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,18 @@
}

.lux {
.table-title {
background-color: var(--typo3-component-border-color);
border-top: 1px solid var(--typo3-component-border-color);
border-left: 1px solid var(--typo3-component-border-color);
border-right: 1px solid var(--typo3-component-border-color);
color: var(--typo3-table-color);
font-weight: bold;
padding: 10px;
}

.table {
border: 1px solid $colorGreyBright;
border: 1px solid var(--typo3-component-border-color);
}
}

Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Templates/Analysis/LinkListener.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</a>

<lux:pagination.paginate objects="{linkListeners}" as="pagesLinkListeners" itemsPerPage="10">
<div style="background-color: #dddddd; border-top: 1px solid #cccccc; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; color: #5a5a5a; font-weight: bold; padding: 10px;">
<div class="table-title">
Link Listeners
({linkListeners -> f:count()})
</div>
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Templates/Lead/Companies.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<f:if condition="{companies}">
<f:then>
<lux:pagination.paginate objects="{companies}" as="companiesPaginator" itemsPerPage="25">
<div style="background-color: #dddddd; border-top: 1px solid #cccccc; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; color: #5a5a5a; font-weight: bold; padding: 10px;">
<div class="table-title">
<span data-lux-getoverallcompanies="source">{companies -> f:count()}</span>
<f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:dictionary.companies">Companies</f:translate>
<span data-lux-getoverallcompanies="target" style="color: #aaa"></span>
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Templates/Lead/List.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<f:if condition="{allVisitors}">
<f:then>
<lux:pagination.paginate objects="{allVisitors}" as="visitorsPaginator" itemsPerPage="25">
<div style="background-color: #dddddd; border-top: 1px solid #cccccc; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; color: #5a5a5a; font-weight: bold; padding: 10px;">
<div class="table-title">
<span data-lux-getoverallleads="source">{allVisitors -> f:count()}</span>
Leads
<span data-lux-getoverallleads="target" style="color: #aaa"></span>
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Templates/Newsletter/Receiver.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ <h1>
<f:render partial="Newsletter/Receiver/Filter" arguments="{_all}"/>

<lux:pagination.paginate objects="{users}" as="usersPaginator" itemsPerPage="25">
<div style="background-color: #dddddd; border-top: 1px solid #cccccc; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; color: #5a5a5a; font-weight: bold; padding: 10px;">
<div class="table-title">
<f:translate key="LLL:EXT:lux/Resources/Private/Language/locallang_db.xlf:luxletter.module.newsletter.receiver.table.receiver">receiver</f:translate>
({users -> f:count()})
</div>
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/Css/Modules.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Resources/Public/Css/PageOverview.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cc4a7cd

Please sign in to comment.