Skip to content

Commit

Permalink
Add css style
Browse files Browse the repository at this point in the history
  • Loading branch information
HungNgien committed Dec 23, 2024
1 parent 1e3c1ad commit e531f93
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pretix/control/templates/pretixcontrol/event/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ <h3 class="panel-title">
{% include "pretixcontrol/event/fragment_subevent_choice_simple.html" %}
</form>
{% endif %}
<div class="dashboard">
<div class="dashboard custom">
{% if not request.event.has_subevents or subevent %}
<div class="panel panel-default items widget-small widget-container no-padding">
<div class="panel panel-default items widget-container widget-small no-padding column"">
{% include "pretixcontrol/event/fragment_timeline.html" %}
</div>
{% endif %}
<div class="panel panel-default items widget-small widget-container no-padding">
<div class="panel panel-default items widget-container widget-small no-padding last-column"">
{% include "pretixcontrol/event/fragment_info_box.html" %}
</div>
</div>
Expand Down
34 changes: 34 additions & 0 deletions src/pretix/static/eventyay-common/scss/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,41 @@
}
}


.custom {
margin-left: 0px;
margin-right: 0px;
}

.dashboard .widget-container.no-padding {
padding: 0;
background: none;
border: 1px solid #e5e5e5;
}

.dashboard .widget-container.widget-small.no-padding.column {
padding: 0;
background: none;
border-color: #e5e5e5;
margin-right: 10px;
}

.dashboard .widget-container.widget-small.no-padding.last-column {
padding: 0;
background: none;
border-color: #e5e5e5;
margin-right: 0px;
}

@media (max-width: $screen-sm-max) {
.dashboard .widget-container.widget-small.no-padding.column {
width: 100%;
margin-right: 0px;
}
}

@media (max-width: $screen-xs-max) {
.dashboard .widget-container.widget-small.no-padding.column {
margin-right: 0px;
}
}

0 comments on commit e531f93

Please sign in to comment.