Compare commits

..

No commits in common. "7cccb6182e63bfb02cba6b458980171b07b4787d" and "202f31d1699dbfa8c7f3f51778465d83bdee545b" have entirely different histories.

17 changed files with 43 additions and 70 deletions

View File

@ -126,11 +126,11 @@ msgstr "type"
#: models/diffusion.py:137 models/log.py:131 #: models/diffusion.py:137 models/log.py:131
msgid "Diffusion" msgid "Diffusion"
msgstr "Diffusion" msgstr "Date de diffusion"
#: models/diffusion.py:138 #: models/diffusion.py:138
msgid "Diffusions" msgid "Diffusions"
msgstr "Diffusions" msgstr "Dates de diffusion"
#: models/diffusion.py:139 #: models/diffusion.py:139
msgid "edit the diffusions' planification" msgid "edit the diffusions' planification"
@ -325,7 +325,7 @@ msgstr "Page d'accueil"
#: models/page.py:291 #: models/page.py:291
msgid "Timetable" msgid "Timetable"
msgstr "Horaires" msgstr "Temps"
#: models/page.py:292 #: models/page.py:292
msgid "Programs list" msgid "Programs list"

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -58,7 +58,7 @@
{% if podcasts %} {% if podcasts %}
<section class="container"> <section class="container">
<h2 class="title">{% translate "Last podcasts" %}</h2> <h2 class="title is-3 p-2">{% translate "Last podcasts" %}</h2>
{% include "./widgets/carousel.html" with objects=podcasts url_name="podcast-list" url_label=_("All podcasts") %} {% include "./widgets/carousel.html" with objects=podcasts url_name="podcast-list" url_label=_("All podcasts") %}
</section> </section>
{% endif %} {% endif %}

View File

@ -2,15 +2,10 @@
{% comment %}Detail page of a show{% endcomment %} {% comment %}Detail page of a show{% endcomment %}
{% load i18n aircox %} {% load i18n aircox %}
{% block content %} {% block content-container %}
{{ block.super }}
{% with schedules=object.schedule_set.all %} {% with schedules=object.schedule_set.all %}
{% if object.active and schedules %} {% if schedules %}
<header class="schedules mt-3"> <header class="container schedules">
<h4 class="title is-4 mr-3">
{% translate "Diffusions" %}
</h4>
{% for schedule in schedules %} {% for schedule in schedules %}
<div class="schedule"> <div class="schedule">
<div class="heading"> <div class="heading">
@ -38,13 +33,8 @@
{% endif %} {% endif %}
{% endwith %} {% endwith %}
{% endblock %}
{% block main %}
{{ block.super }} {{ block.super }}
{% if episodes %} {% if episodes %}
<section class="container"> <section class="container">
<h2 class="title is-2">{% translate "Last Episodes" %}</h2> <h2 class="title is-2">{% translate "Last Episodes" %}</h2>

View File

@ -59,7 +59,7 @@
{% block actions %} {% block actions %}
{{ block.super }} {{ block.super }}
{% if object.episodesound_set.available.public.count %} {% if object.episodesound_set.available.public.count %}
<button type="button" class="button action" @click="player.playButtonClick($event)" <button class="button action" @click="player.playButtonClick($event)"
data-sounds="{{ object.podcasts|json }}"> data-sounds="{{ object.podcasts|json }}">
<span class="icon is-small"> <span class="icon is-small">
<span class="fas fa-play"></span> <span class="fas fa-play"></span>

View File

@ -16,7 +16,7 @@
</template> </template>
<script> <script>
export default { export default {
emits: ['select', 'unselect', 'move', 'remove'], emits: ['select', 'unselect', 'move'],
data() { data() {
return { return {
selectedIndex: this.defaultIndex, selectedIndex: this.defaultIndex,
@ -50,16 +50,11 @@ export default {
findIndex(pred) { return this.set.findIndex(pred) }, findIndex(pred) { return this.set.findIndex(pred) },
remove(index, select=false) { remove(index, select=false) {
const item = this.set.get(index)
if(!item)
return
this.set.remove(index); this.set.remove(index);
if(index < this.selectedIndex) if(index < this.selectedIndex)
this.selectedIndex--; this.selectedIndex--;
if(select && this.selectedIndex == index) if(select && this.selectedIndex == index)
this.select(index) this.select(index)
this.$emit('remove', {index, item, set: this.set})
}, },
select(index) { select(index) {

View File

@ -274,6 +274,7 @@ export default {
if(event.type == 'ended' && (!this.playlist || this.playlist.selectNext() == -1)) if(event.type == 'ended' && (!this.playlist || this.playlist.selectNext() == -1))
this.play(); this.play();
}, },
}, },
mounted() { mounted() {

View File

@ -29,7 +29,7 @@ import ASoundItem from './ASoundItem';
export default { export default {
extends: AList, extends: AList,
emits: [...AList.emits], emits: [...AList.emits, 'remove'],
components: { ASoundItem }, components: { ASoundItem },
props: { props: {

View File

@ -141,7 +141,7 @@ export default class PageLoad {
let submit = event.type == 'submit'; let submit = event.type == 'submit';
let target = submit || event.target.tagName == 'A' let target = submit || event.target.tagName == 'A'
? event.target : event.target.closest('a'); ? event.target : event.target.closest('a');
if(!target || target.hasAttribute('target') || (target.dataset && target.dataset.forceReload)) if(!target || target.hasAttribute('target') || (target.data && target.data.forceReload))
return; return;
let url = submit ? target.getAttribute('action') || '' let url = submit ? target.getAttribute('action') || ''

View File

@ -16,7 +16,7 @@ input.half-field:not(:active):not(:hover) {
--body-bg: #fff; --body-bg: #fff;
--text-color: black; --text-color: black;
--text-color-light: #555; --text-color-light: #555;
--break-color: rgb(225, 225, 225, 0.8); --break-color: rgb(225, 225, 225);
--main-color: #EFCA08; --main-color: #EFCA08;
--main-color-light: #F4da51; --main-color-light: #F4da51;
@ -67,7 +67,7 @@ body.mobile {
} }
@media screen and (max-width: v.$screen-normal) { @media screen and (max-width: v.$screen-normal) {
html { font-size: 16px !important; } html { font-size: 18px !important; }
} }
@media screen and (max-width: v.$screen-wider) { @media screen and (max-width: v.$screen-wider) {
@ -75,7 +75,7 @@ body.mobile {
} }
@media screen and (min-width: v.$screen-wider) { @media screen and (min-width: v.$screen-wider) {
html { font-size: 20px !important; } html { font-size: 24px !important; }
} }
h1, h2, h3, h4, h5, h6, .heading, .title, .subtitle { h1, h2, h3, h4, h5, h6, .heading, .title, .subtitle {

View File

@ -1,10 +1,10 @@
@use "vars" as v; @use "vars" as v;
:root { :root {
--title-1-sz: 1.4rem; --title-1-sz: 1.6rem;
--title-2-sz: 1.3rem; --title-2-sz: 1.4rem;
--title-3-sz: 1.1rem; --title-3-sz: 1.3rem;
--title-4-sz: 1.0rem; --title-4-sz: 1.2rem;
--subtitle-1-sz: 1.6rem; --subtitle-1-sz: 1.6rem;
--subtitle-2-sz: 1.4rem; --subtitle-2-sz: 1.4rem;
--subtitle-3-sz: 1.2rem; --subtitle-3-sz: 1.2rem;
@ -16,17 +16,22 @@
--heading-hg-bg: var(--secondary-color); --heading-hg-bg: var(--secondary-color);
--heading-link-hv-fg: var(--link-fg); --heading-link-hv-fg: var(--link-fg);
--cover-w: 10rem; --cover-w: 14rem;
--cover-h: 10rem; --cover-h: 14rem;
--cover-small-w: 10rem; --cover-small-w: 10rem;
--cover-small-h: 10rem; --cover-small-h: 10rem;
--cover-tiny-w: 10rem; --cover-tiny-w: 10rem;
--cover-tiny-h: 10rem; --cover-tiny-h: 10rem;
--card-w: var(--cover-w); --card-w: var(--cover-w);
--preview-bg: var(--body-bg); --preview-bg: var(--body-bg);
--preview-title-sz: var(--title-4-sz); --preview-title-sz: var(--title-3-sz);
--preview-subtitle-sz: var(--title-4-sz); --preview-subtitle-sz: var(--title-3-sz);
--preview-cover-size: 14rem;
--preview-cover-small-size: 10rem;
--preview-cover-tiny-size: 4rem;
--preview-wide-content-sz: #{v.$text-size-2}; --preview-wide-content-sz: #{v.$text-size-2};
--preview-heading-bg-color: var(--main-color); --preview-heading-bg-color: var(--main-color);
--header-height: var(--cover-h); --header-height: var(--cover-h);
@ -91,23 +96,6 @@
} }
} }
@media screen and (max-width: v.$screen-wide) {
:root {
--cover-w: 8rem;
--cover-h: 8rem;
--cover-small-w: 4rem;
--cover-small-h: 4rem;
--cover-tiny-w: 2rem;
--cover-tiny-h: 2rem;
--section-content-sz: 1rem;
// --preview-title-sz: #{v.$text-size};
// --preview-subtitle-sz: #{v.$text-size-smaller};
// --preview-wide-content-sz: #{v.$text-size};
}
}
// ---- headings // ---- headings
.no-reset h1 { font-size: var(--title-1-sz); } .no-reset h1 { font-size: var(--title-1-sz); }
@ -145,7 +133,7 @@
&:not(:empty) { &:not(:empty) {
// border-bottom: 1px var(--heading-bg) solid; // border-bottom: 1px var(--heading-bg) solid;
// color: var(--heading-fg); // color: var(--heading-fg);
//padding: v.$mp-2; padding: v.$mp-2;
margin-top: 0em !important; margin-top: 0em !important;
vertical-align: top; vertical-align: top;
@ -318,16 +306,16 @@
&.small, .preview.small & { &.small, .preview.small & {
min-width: unset; min-width: unset;
height: var(--cover-small-h); height: var(--preview-cover-small-size);
width: var(--cover-small-w) !important; width: var(--preview-cover-small-size) !important;
min-width: var(--cover-small-w); min-width: var(--preview-cover-small-size);
} }
&.tiny, .preview.tiny & { &.tiny, .preview.tiny & {
min-width: unset; min-width: unset;
height: var(--cover-tiny-h); height: var(--preview-cover-tiny-size);
width: var(--cover-tiny-w) !important; width: var(--preview-cover-tiny-size) !important;
min-width: var(--cover-tiny-w); min-width: var(--preview-cover-tiny-size);
} }
} }
@ -390,7 +378,7 @@
margin-bottom: unset; margin-bottom: unset;
.list-item:not(.no-cover) & { .list-item:not(.no-cover) & {
min-height: var(--cover-small-h); min-height: var(--preview-cover-small-size);
} }
} }

View File

@ -22,7 +22,7 @@
&:not(:last-child) { &:not(:last-child) {
padding-bottom: calc(v.$mp-4 / 2); padding-bottom: calc(v.$mp-4 / 2);
// border-bottom: 2px var(--break-color) solid; border-bottom: 2px var(--break-color) solid;
} }
> .title, h3.title { > .title, h3.title {
@ -60,8 +60,7 @@
margin: v.$mp-3; margin: v.$mp-3;
margin-left: 0rem; margin-left: 0rem;
padding: v.$mp-2; padding: v.$mp-2;
text-color: var(--main-color); border-bottom: 1px var(--main-color) solid;
background-color: var(--main-color-light);
.heading { .heading {
padding: 0em; padding: 0em;