Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
panikweb
Commits
4f97e29a
Commit
4f97e29a
authored
Sep 09, 2013
by
Simon Daron
Browse files
Many small fixes for small screen (paddings)
parent
e4bad843
Changes
10
Hide whitespace changes
Inline
Side-by-side
panikweb_templates/static/css/specifics.css
View file @
4f97e29a
...
...
@@ -66,7 +66,7 @@
/****************************************************/
/* WRAPPER */
/****************************************************/
.wrapper
{
max-width
:
1260px
;
margin
:
auto
;}
.wrapper
{
max-width
:
1260px
;
margin
:
auto
;
padding
:
0
1em
0
1em
;
}
.wrapper.text
{
max-width
:
780px
;
margin
:
auto
;}
.wrapper.half
{
max-width
:
510px
;
margin
:
auto
;}
.wrapper.sided
{
max-width
:
1260px
;
}
...
...
@@ -607,7 +607,7 @@ body{
.episode.inline
.logo
{
min-height
:
50px
;
float
:
left
;
margin-right
:
1
em
;
margin-right
:
0.5
em
;
}
.episode.resume
.sound
{
float
:
right
;
...
...
@@ -652,9 +652,7 @@ body{
.episode.resume
.content
{
padding-left
:
4em
;
}
}
@media
screen
and
(
max-width
:
300px
)
{
.episode.resume
.logo
{
display
:
none
;}
.resume
.logo
img
,
.inline
.logo
img
{
width
:
30px
!important
;}
}
/****************************************************/
...
...
@@ -720,7 +718,7 @@ body{
}
.news
li
a
{
padding
:
1em
;}
.news
.logo
{
.news
.logo
img
{
display
:
block
;
border-style
:
solid
;
border-width
:
2px
;
...
...
@@ -781,10 +779,10 @@ ul.newsSpecial{
}
.program-week
.programDate
{
float
:
left
;
width
:
5
em
;
width
:
3
em
;
}
.program-week
.programCell
{
margin-left
:
6
em
;
margin-left
:
3.5
em
;
}
.program-week
.nonStop
.programDate
{
visibility
:
hidden
;
...
...
panikweb_templates/templates/emissions.html
View file @
4f97e29a
...
...
@@ -6,7 +6,7 @@
{% emission_nav with klass="emissions" %}
{% endblock %}
{% block main %}
<div
class=
"emissions
padded
"
>
<div
class=
"emissions"
>
<div
class=
"wrapper"
>
<ul
class=
"custom list columns padded"
>
{% for emission in emissions %}
...
...
panikweb_templates/templates/emissions/resume.html
View file @
4f97e29a
...
...
@@ -5,9 +5,9 @@
<a
class=
"block"
href=
"{% url 'emission-view' slug=emission.slug %}"
>
<div
class=
"logo left"
>
{% if emission.image %}
<img
width=
"60"
height=
"60"
src=
"{{ emission.image|thumbnail:'60x60' }}"
/>
<img
src=
"{{ emission.image|thumbnail:'60x60' }}"
/>
{% else %}
<img
class=
"smooth"
width=
"60"
height=
"60
"
src=
"{% static "
img
/
defaultLogo.png
"
%}"
/>
<img
class=
"smooth"
style=
"width:60px;
"
src=
"{% static "
img
/
defaultLogo.png
"
%}"
/>
{% endif %}
</div>
<div
class=
"title ellipsis"
>
...
...
panikweb_templates/templates/episodes/resume.html
View file @
4f97e29a
...
...
@@ -28,13 +28,13 @@
{% elif model = "inline" and episode.emission.image %}
<img
src=
"{{ episode.emission.image|thumbnail:'60x60' }}"
/>
{% elif model = "inline" %}
<img
class=
"smooth"
width=
"60"
height=
"60
"
src=
"{% static "
img
/
defaultLogo.png
"
%}"
/>
<img
class=
"smooth"
style=
"width:60px;
"
src=
"{% static "
img
/
defaultLogo.png
"
%}"
/>
{% elif episode.image %}
<img
src=
"{{ episode.image|thumbnail:'150x150' }}"
/>
{% elif episode.emission.image %}
<img
src=
"{{ episode.emission.image|thumbnail:'150x150' }}"
/>
{% else %}
<img
class=
"smooth"
width=
"150"
height=
"150
"
src=
"{% static "
img
/
defaultLogo.png
"
%}"
/>
<img
class=
"smooth"
style=
"width:150px;
"
src=
"{% static "
img
/
defaultLogo.png
"
%}"
/>
{% endif %}
</div>
<div
class=
"content"
>
...
...
panikweb_templates/templates/home.html
View file @
4f97e29a
...
...
@@ -10,15 +10,12 @@
{% endwith %}
{% endblock %}
{% block main %}
<div
class=
"padded"
>
<div
class=
"wrapper"
>
<h2><a
href=
"{% url 'program' %}"
>
Cette semaine sur Panik
</a></h2>
{% weekview %}
</div>
</div>
{% endblock %}
{% block related %}
<div
class=
"padded"
>
<div
class=
"wrapper"
>
<h2><a
href=
"{% url 'listen' %}"
>
Écouter
</a></h2>
<ul
class=
"custom columns list"
>
...
...
@@ -29,10 +26,9 @@
{% endfor %}
</ul>
</div>
</div>
{% endblock %}
{% block links %}
<div
class=
"wrapper
padded
"
>
<div
class=
"wrapper"
>
<h2><a
href=
"{% url 'emissions' %}"
>
Émissions
</a></h2>
<ul
class=
"custom list columns padded"
>
{% for emission in emissions %}
...
...
panikweb_templates/templates/includes/week.html
View file @
4f97e29a
...
...
@@ -11,17 +11,17 @@
</div>
{% endif %}
{% if not fragment or fragment = "program" %}
<div
id=
"weekProgramContent-{{ week|slugify }}"
class=
"program
wrapper
"
>
<div
id=
"weekProgramContent-{{ week|slugify }}"
class=
"program"
>
{% for day in days %}
<div
data-tabbed=
"true"
class=
"content
padded
"
id=
"Program-week-{{ day.datetime|slugify }}"
>
<div
data-tabbed=
"true"
class=
"content"
id=
"Program-week-{{ day.datetime|slugify }}"
>
<ul
class=
"custom program-week list"
>
{% with day.cells as cells %}
{% regroup cells by datetime|date:"H:i" as time_list %}
{% if time_list %}
{% for cell in time_list %}
<li
class=
"cf {% if cell.list|dictsort:"
label
"
%}
nonStop
{%
endif
%}"
>
<div
class=
"programDate"
><s
panc
class=
"label"
>
{{ cell.grouper }}
</s
pan
></div>
<div
class=
"programDate"
><s
trong
>
{{ cell.grouper }}
</s
trong
></div>
<div
class=
"programCell"
>
{% for cell in cell.list %}
...
...
panikweb_templates/templates/news/inline.html
View file @
4f97e29a
{% load thumbnails %}
{% load staticfiles %}
<div
class=
"content content-inline
inline
cf {{ class }}"
>
<div
class=
"content content-inline
{% if class != "
special
"
%}
inline
{%
endif
%}
cf
{{
class
}}"
>
<a
class=
"block cf"
href=
"{% url 'news-view' slug=content.slug %}"
>
<div
class=
"logo"
>
{% if class == "special" and content.image %}
<img
class=
"
logo
"
src=
"{{ content.image|thumbnail:'320x240' }}"
/>
<img
class=
"
nomal
"
src=
"{{ content.image|thumbnail:'320x240' }}"
/>
{% elif content.image %}
<img
class=
"
logo
left"
src=
"{{ content.image|thumbnail:'60x60' }}"
/>
<img
class=
"left"
src=
"{{ content.image|thumbnail:'60x60' }}"
/>
{% else %}
<img
class=
"
logo
left"
width=
"60"
height=
"60"
src=
"{% static "
img
/
defaultLogo.png
"
%}"
/>
<img
class=
"left"
width=
"60"
height=
"60"
src=
"{% static "
img
/
defaultLogo.png
"
%}"
/>
{% endif %}
</div>
{% if content.date %}
<div
class=
"smooth {% if class == "
special
"
%}
center
marged
{%
endif
%}"
>
{{ content.date|date:"D m/M"|lower }}
</div>
{% endif %}
...
...
panikweb_templates/templates/program.html
View file @
4f97e29a
...
...
@@ -5,7 +5,7 @@
{% block nav %}
{% emission_nav with klass="program" %}
<div
class=
"wrapper"
>
<div
class=
"program "
>
<div
class=
"program
marged
"
>
<nav
class=
"center"
>
<ul
class=
"custom distributed"
>
{% if previous_week_no %}
...
...
@@ -30,5 +30,9 @@
</div>
{% endblock %}
{% block main %}
<div
class=
"wrapper"
>
<div
class=
"program marged"
>
{% weekview year=year week=week fragment="program" %}
</div>
</div>
{% endblock %}
panikweb_templates/templates/search/search.html
View file @
4f97e29a
...
...
@@ -4,7 +4,7 @@
{% block bodyID %}Search{% endblock %}
{% block title %}Recherche{% endblock %}
{% block nav %}
<div
class=
"
padded
search"
>
<div
class=
"search"
>
<form
method=
"get"
action=
"."
class=
"big center"
id=
"search-form"
>
{{ form.as_table }}
<button
class=
"icon-search"
></button>
</form>
...
...
@@ -54,9 +54,9 @@
{% block main %}
{% if query %}
<div
class=
"wrapper"
>
<div
class=
"
padd
ed"
>
<div
class=
"
marg
ed"
>
{% if not page.object_list %}
<div
class=
"big error
padded
center"
>
Sorry, no result with your query!
</div>
<div
class=
"big error center"
>
Sorry, no result with your query!
</div>
{% endif %}
{% if page.has_previous %}
<div
class=
"previous-page cf"
>
...
...
@@ -64,7 +64,7 @@
</div>
{% endif %}
<ul
id=
"search-results"
class=
"list columns padded
cf
"
>
<ul
id=
"search-results"
class=
"
custom
list columns
cf
padded"
>
{% for result in page.object_list %}
...
...
panikweb_templates/templates/week.html
View file @
4f97e29a
...
...
@@ -26,5 +26,9 @@
{% weekview year=year week=week fragment="nav" %}
{% endblock %}
{% block main %}
{% weekview year=year week=week fragment="program" %}
<div
class=
"padded"
>
<div
class=
"wrapper"
>
{% weekview year=year week=week fragment="program" %}
</div>
</div>
{% endblock %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment