Commit 18b3948f authored by Curtis Adam's avatar Curtis Adam

Adjust the styling of the transcript bonus user statistics

parent 2ae528cd
......@@ -581,6 +581,10 @@ $themes: (
$transcript_bonus_info_lecture_date_day_hover_background: map-get($map, "transcript_bonus_info_lecture_date_day_hover_background");
$transcript_bonus_submission_count_badge_text: map-get($map, "transcript_bonus_submission_count_badge_text");
$transcript_bonus_submission_count_badge_background: map-get($map, "transcript_bonus_submission_count_badge_background");
//transcript bonus user statistics colors
$transcript_bonus_user_statistics_name_background: map-get($map, "transcript_bonus_user_statistics_name_background");
$transcript_bonus_user_statistics_details_background: map-get($map, "transcript_bonus_user_statistics_details_background");
$transcript_bonus_user_statistics_details_text: map-get($map, "transcript_bonus_user_statistics_details_text");
//markdeep editor colors
$markdeep_help_text: map-get($map, "markdeep_help_text");
$markdeep_help_background: map-get($map, "markdeep_help_background");
......@@ -3704,5 +3708,15 @@ $themes: (
.flashcard-3d {
border-color: $cube_border;
}
//transcript bonus user statistics colors
.transcript-bonus-user-statistics {
th {
background-color: $transcript_bonus_user_statistics_name_background !important;
}
td {
background-color: $transcript_bonus_user_statistics_details_background !important;
color: $transcript_bonus_user_statistics_details_text !important;
}
}
}
}
......@@ -624,6 +624,10 @@
"transcript_bonus_info_lecture_date_day_hover_background": LightGoldenRodYellow,
"transcript_bonus_submission_count_badge_text": white,
"transcript_bonus_submission_count_badge_background": $thm_orange,
//transcript bonus user statistics colors
"transcript_bonus_user_statistics_name_background": LightGoldenRodYellow,
"transcript_bonus_user_statistics_details_background": $thm_gray,
"transcript_bonus_user_statistics_details_text": white,
//markdeep editor colors
"markdeep_help_text": $white,
"markdeep_help_background": $thm_orange,
......
<template name="cardsetTranscriptStatistics">
{{#each transcriptBonusUser}}
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 transcriptBonusUserStatistic">
<table class="table table-dark">
<thead>
<tr>
<th colspan="2">
<a href="" class="filterAuthorTranscripts cards-filter-element" data-id="{{this._id}}">{{getAuthorName this._id}}</a>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
{{_ "transcriptForm.bonus.statistics.count"}}:
</td>
<td>
{{getSubmissions this._id}}
</td>
</tr>
<tr>
<td>
{{_ "transcriptForm.bonus.statistics.lastSubmission"}}:
</td>
<td>
{{lastSubmission this._id}}
</td>
</tr>
</tbody>
</table>
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3 transcript-bonus-user-statistics">
<table class="table">
<thead>
<tr>
<th colspan="2">
<a href="" class="filterAuthorTranscripts cards-filter-element" data-id="{{this._id}}">{{getAuthorName this._id}}</a>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
{{_ "transcriptForm.bonus.statistics.count"}}:
</td>
<td>
{{getSubmissions this._id}}
</td>
</tr>
<tr>
<td>
{{_ "transcriptForm.bonus.statistics.lastSubmission"}}:
</td>
<td>
{{lastSubmission this._id}}
</td>
</tr>
</tbody>
</table>
</div>
{{/each}}
</template>
<template name="cardsetTranscript">
<div class="transcriptBonus">
<div class="col-xs-12 col-sm-4">
<div id="showTranscriptSettings" class="btn btn-raised btn-block btn-primary">
<div id="showTranscriptSettings" class="btn btn-raised btn-block {{#if isViewActive 0}}btn-primary{{else}}btn-default{{/if}}">
<span class="flex-content">
{{_ "transcriptForm.bonus.form.button.settings"}}
</span>
</div>
</div>
<div class="col-xs-12 col-sm-4">
<div id="showTranscriptList" class="btn btn-raised btn-block btn-primary btn-primary">
<div id="showTranscriptList" class="btn btn-raised btn-block {{#if isViewActive 2}}btn-primary{{else}}btn-default{{/if}}">
<span class="flex-content">
{{_ "transcriptForm.bonus.form.button.list"}}
</span>
</div>
</div>
<div class="col-xs-12 col-sm-4">
<div id="showTranscriptStatistics" class="btn btn-raised btn-block btn-primary btn-primary">
<div id="showTranscriptStatistics" class="btn btn-raised btn-block {{#if isViewActive 1}}btn-primary{{else}}btn-default{{/if}}">
<span class="flex-content">
{{_ "transcriptForm.bonus.form.button.statistics"}}
</span>
......@@ -30,6 +30,7 @@
{{> filterIndexTranscripts}}
{{/if}}
<div class="col-xs-12">
<br>
{{> cardsetTranscriptSettingsCancel}}
{{#if isViewActive 0}}
<div id="transcript-bonus-save" class="btn btn-raised btn-success pull-right">
......
......@@ -37,15 +37,12 @@
}
}
.transcriptBonusUserStatistic {
padding: 5px 15px;
.transcript-bonus-user-statistics {
padding: 10px 15px;
table {
th {
font-size: 16px;
}
padding: 15px;
background-color: white;
border-radius: 15px;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment