diff --git a/doc/development/implementation/timemachine.rst b/doc/development/implementation/timemachine.rst index 46615afd0..dc20115fd 100644 --- a/doc/development/implementation/timemachine.rst +++ b/doc/development/implementation/timemachine.rst @@ -3,7 +3,7 @@ Time machine mode In test mode, pretix provides a "time machine" feature which allows event organizers to test their shop as if it were a different date and time. To enable this feature, they can -click on the clock icon in the test mode warning box. +click on the "time machine"-link in the test mode warning box on the event page. Internally, this time machine mode is implemented by calling our custom :py:meth:`time_machine_now()` function instead of :py:meth:`django.utils.timezone.now()` in all places where the fake time should be diff --git a/doc/development/setup.rst b/doc/development/setup.rst index 7a70a608a..fc83e80cb 100644 --- a/doc/development/setup.rst +++ b/doc/development/setup.rst @@ -214,7 +214,8 @@ whenever you change a source file. Working with frontend assets ---------------------------- -To update the frontent styles, run the following commands inside your virtual environment.:: +To update the frontend styles of shops with a custom styling, run the following commands inside +your virtual environment.:: python -m pretix collectstatic --noinput python -m pretix updatestyles diff --git a/src/pretix/presale/templates/pretixpresale/event/timemachine.html b/src/pretix/presale/templates/pretixpresale/event/timemachine.html index 0c19dd379..f613c6acd 100644 --- a/src/pretix/presale/templates/pretixpresale/event/timemachine.html +++ b/src/pretix/presale/templates/pretixpresale/event/timemachine.html @@ -26,7 +26,7 @@ {% bootstrap_field timemachine_form.now_dt layout="inline" show_label=False %}
- {% if request.session.timemachine_now_dt %} diff --git a/src/pretix/static/pretixpresale/scss/_event.scss b/src/pretix/static/pretixpresale/scss/_event.scss index 6767527a7..4fe11b76b 100644 --- a/src/pretix/static/pretixpresale/scss/_event.scss +++ b/src/pretix/static/pretixpresale/scss/_event.scss @@ -187,7 +187,7 @@ article.item-with-variations .product-row:last-child:after { div.front-page { margin-top: 30px; } -.offline-banner, .timemachine-banner { +.offline-banner { width: 100%; padding: 5px; text-align: center; diff --git a/src/pretix/static/pretixpresale/scss/main.scss b/src/pretix/static/pretixpresale/scss/main.scss index c3e6dfd1d..ee0ea51fe 100644 --- a/src/pretix/static/pretixpresale/scss/main.scss +++ b/src/pretix/static/pretixpresale/scss/main.scss @@ -39,7 +39,7 @@ $body-bg: #f5f5f5 !default; h1 a, .btn { text-decoration: none; } -a.stealth, a.stealth:hover { color: inherit; text-decoration: none; } +a .fa:first-child { margin-right: 1ch } /* a, .btn-link { text-decoration: underline; @@ -515,10 +515,6 @@ h2 .label { user-select: none; } -.alert > .btn.pull-right { - margin-left: 10px; -} - @for $i from 0 through 100 { .progress-bar-#{$i} { width: 1% * $i; } }