Merge branch 'master' of ssh://git.khaganat.net:3543/Tycho/khaganat-web

This commit is contained in:
Rodolphe Breard 2019-07-27 17:17:32 +02:00
commit 7979085213
3 changed files with 33 additions and 26 deletions

View file

@ -10,6 +10,9 @@
{% block title %}{% trans "Untitled" as untitled %}{{ paste.title|default:untitled }}{% endblock %} {% block title %}{% trans "Untitled" as untitled %}{{ paste.title|default:untitled }}{% endblock %}
{% block content %} {% block content %}
<div class="column is-light">
<article class="tile is-child notification is-white">
{% if paste.is_suspended %} {% if paste.is_suspended %}
{% else %} {% else %}
{% trans "Untitled" as untitled %} {% trans "Untitled" as untitled %}
@ -29,7 +32,12 @@
{% blocktrans with date=paste.expire_on %}Expires on {{ date }}{% endblocktrans %} {% blocktrans with date=paste.expire_on %}Expires on {{ date }}{% endblocktrans %}
{% endif %} {% endif %}
</p> </p>
</article>
<article class="tile is-child notification is-paste">
{{ paste.formated_content|safe }} {{ paste.formated_content|safe }}
{% endif %} {% endif %}
</article>
</div>
{% endblock %} {% endblock %}

View file

@ -3,7 +3,7 @@
<nav class="navbar is-light" id="navBar"> <nav class="navbar is-light" id="navBar">
<div class="navbar-brand"> <div class="navbar-brand">
<a class="navbar-item" href="{% url 'index' %}"><img src="{% static "khaganat/images/icon_khaganat.png" %}" alt="Khaganat"></a> <a class="navbar-item" href="{% url 'index' %}"><img src="{% static "khaganat/images/logo_khaganat_128px_notrans.png" %}" alt="Khaganat"></a>
<a role="button" class="navbar-burger" data-target="navMenu" aria-label="menu" aria-expanded="false"> <a role="button" class="navbar-burger" data-target="navMenu" aria-label="menu" aria-expanded="false">
<span aria-hidden="true"></span> <span aria-hidden="true"></span>
<span aria-hidden="true"></span> <span aria-hidden="true"></span>
@ -37,7 +37,7 @@
{% endfor %} {% endfor %}
</div> </div>
<div class="navbar-item is-logo"> <div class="navbar-item is-logo">
<a class="navbar-item" href="{% url 'index' %}"><img src="{% static "khaganat/images/icon_khaganat.png" %}" alt="Khaganat"></a> <a class="navbar-item" href="{% url 'index' %}"><img src="{% static "/khaganat/images/logo_khaganat_128px_notrans.png" %}" alt="Khaganat"></a>
</div> </div>
<div class="navbar-end"> <div class="navbar-end">
{% if user.is_authenticated %} {% if user.is_authenticated %}

View file

@ -15,6 +15,9 @@ $text-light: #2d1040
//couleur du fond //couleur du fond
$background: #AFAED6 $background: #AFAED6
$success: turquoise
// 3. Import the rest of Bulma // 3. Import the rest of Bulma
@import "./node_modules/bulma/bulma" @import "./node_modules/bulma/bulma"
@ -186,6 +189,10 @@ html.has-navbar-fixed-top, body.has-navbar-fixed-top
background-color: $link-hover background-color: $link-hover
color: white color: white
.button.is-success, .button.is-sucess:hover
color: white
//footer //footer
@media screen and (min-width: 1088px) @media screen and (min-width: 1088px)
.footer .footer
@ -311,6 +318,8 @@ html.has-navbar-fixed-top, body.has-navbar-fixed-top
background-color: white background-color: white
color: $text-light color: $text-light
padding: 1rem 1rem 1rem 1rem padding: 1rem 1rem 1rem 1rem
text-align: left
max-width: 160ch
.tile.is-light .title, .tile.is-light a:link .tile.is-light .title, .tile.is-light a:link
color: $link color: $link
@ -345,41 +354,31 @@ html.has-navbar-fixed-top, body.has-navbar-fixed-top
width: 0rem width: 0rem
display: block display: block
//tile pour le logo fixe
//tile pour le logo
@media screen and (min-width: 770px) @media screen and (min-width: 770px)
.tile.is-success .tile.is-fixed
position: fixed position: fixed
.tile.is-success .tile.is-fixed
background-color: transparent background-color: transparent
.tile.is-success .title .tile.is-fixed .title
color: $link color: $link
//tile pour le pastebin
.tile.is-paste
overflow: scroll hidden
background-color: white
//colonne //colonne
//colonne index //colonne index et page
@media screen and (min-width: 770px) .column.is-primary .title, .column.is-primary .subtitle
.column.is-primary .image, .column.is-primary .title color: $link
//position: fixed text-align: center
//top: 50%
//left: 0
.column.is-primary, .column.is-primary .image .column.is-primary, .column.is-primary .image
text-align: center text-align: center
.column.is-primary .title
color: $link
//colonne pour les pages
.column.is-success
margin: 1rem
.column.is-success .title, .column.is-success .subtitle
color: $link
text-align: center
//section retreci //section retreci
.section .section
padding: 1rem 1.5rem padding: 1rem 1.5rem