Skip to content

Commit

Permalink
Merge pull request #768 from Timo-Breumelhof/feature/764-theme-improv…
Browse files Browse the repository at this point in the history
…ements

Fixes for #764
  • Loading branch information
Timo-Breumelhof committed Apr 23, 2024
2 parents 014836a + b9dcd1c commit ba7d573
Show file tree
Hide file tree
Showing 8 changed files with 89 additions and 61 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@
<tbody>
<tr class="dcf-table-body-row">

<td class="dcf-col dcf-col-text d-flex border-0">
<td class="dcf-col dcf-col-text border-0">
<div class="d-flex">
[FORUMICONCSS]
<div class="dcf-forum-title-text">
<h4 class="dcf-forum-title h5 mt-0 mb-2">[FORUMNAME]</h4>
<div class="dcf-forum-description">[FORUMDESCRIPTION]</div>
<div class="dcf-forum-title-text">
<h4 class="dcf-forum-title h5 mt-0 mb-2">[FORUMNAME]</h4>
<div class="dcf-forum-description">[FORUMDESCRIPTION]</div>
</div>
</div>

</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,25 @@
padding: @dist-md 0;







.dcf-forum-title {
margin: 0;
font-size: @title-2-size;
}

.dcf-lastpost-subject {
display: block;
}


// Align fourm icon with title and text
.dcf-main-forums{

.dcf-col-text-inner{
display: flex;

}

}


.dcf-lastpost-subject {
display: block;
}


// Sub Forums
Expand All @@ -42,4 +43,5 @@
}

}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -32,57 +32,64 @@
}
}

// Table header
.dcf-table-body-row {

// TH width
.dcf-col-number,
.dcf-col-replies,
.dcf-col-views,
.dcf-col-ratings,
.dcf-col-status,
.dcf-col-subscribers {
text-align: center;
width: 0; // Shrink them..
}

.dcf-col-icon{

width: 0;
}

}
// Table header
.dcf-table-body-row {

// TH width
.dcf-col-number,
.dcf-col-replies,
.dcf-col-views,
.dcf-col-ratings,
.dcf-col-status,
.dcf-col-subscribers {
text-align: center;
width: 0; // Shrink them..
}

.dcf-col-icon {

width: 0;
}


// Icon with text
.dcf-icon-text {
white-space: nowrap;
.dcf-col-text, .dcf-col-subject{
width: 80%;

.dcf-link-text {
margin-left: 0.3em;
@media screen and(min-width: @break-tablet){
width: 60%;
}
}

}

// Icon with text
.dcf-icon-text {
white-space: nowrap;

.dcf-link-text {
margin-left: 0.3em;
}
}


// Forum Description
.dcf-forum-description {
display: block;
padding-top: 1em;
font-size: 0.9em;
// Forum Description
.dcf-forum-description {
display: block;
padding-top: 1em;
font-size: 0.9em;

.fa {
display: none; // Hide description icon
.fa {
display: none; // Hide description icon

}
}

&:empty{
padding-top: 0;
}
&:empty {
padding-top: 0;
}
}


// Forum Icon Column
.dcf-col-icon {
.dcf-col-icon {
font-size: 0.7em; // Overrrule fa-2x

>div {
Expand All @@ -96,7 +103,7 @@
}
}

.dcf-topic-started{
.dcf-topic-started {
padding: @dist-sm 0;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<table class="dcf-table dcf-table-100">
<thead>
<tr class="dcf-table-head-row">
<th scope="col" colspan="2" class="dcf-th dcf-col-text">
<th scope="col" class="dcf-th dcf-col-text">
<div class="dcf-th-text">[RESX:FORUMHEADER]</div>
</th>
<th scope="col" class="dcf-th dcf-col-topics">
Expand All @@ -32,11 +32,15 @@
</thead>
[FORUMS]
<tbody>
<tr class="dcf-table-body-row">
<td class="dcf-col dcf-col-icon">[FORUMICONCSS]</td>
<tr class="dcf-table-body-row dcf-main-forums">

<td class="dcf-col dcf-col-text">
<h4 class="dcf-forum-title">[FORUMNAME]</h4>
<span class="dcf-forum-description">[FORUMDESCRIPTION]</span>
<div class="dcf-col-text-inner">
[FORUMICONCSS]
<div class="dcf-forum-title-text"><h4 class="dcf-forum-title">[FORUMNAME]</h4>
<div class="dcf-forum-description">[FORUMDESCRIPTION]</div>
</div>
</div>
</td>
<td class="dcf-col dcf-col-topics">[TOTALTOPICS] </td>
<td class="dcf-col dcf-col-replies">[TOTALREPLIES]</td>
Expand Down
Binary file not shown.
13 changes: 13 additions & 0 deletions Dnn.CommunityForums/themes/community-default/theme.css

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

2 changes: 1 addition & 1 deletion Dnn.CommunityForums/themes/community-default/theme.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Dnn.CommunityForums/themes/community-default/theme.min.css

Large diffs are not rendered by default.

0 comments on commit ba7d573

Please sign in to comment.