From e3723962ddde954d0f37e66d5b2cac2658914bad Mon Sep 17 00:00:00 2001 From: deed Date: Fri, 26 Jul 2019 14:22:45 +0200 Subject: [PATCH 1/3] =?UTF-8?q?changement=20du=20pastebin=20(detail)=20mis?= =?UTF-8?q?e=20=C3=A0=20jour=20du=20SASS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- khaganat/templates/npb/paste_detail.html | 8 ++++ static_extra/bulma/sass/style.sass | 47 ++++++++++++------------ 2 files changed, 31 insertions(+), 24 deletions(-) diff --git a/khaganat/templates/npb/paste_detail.html b/khaganat/templates/npb/paste_detail.html index 0185c36..e920ba6 100644 --- a/khaganat/templates/npb/paste_detail.html +++ b/khaganat/templates/npb/paste_detail.html @@ -10,6 +10,9 @@ {% block title %}{% trans "Untitled" as untitled %}{{ paste.title|default:untitled }}{% endblock %} {% block content %} + +
+
{% if paste.is_suspended %} {% else %} {% trans "Untitled" as untitled %} @@ -29,7 +32,12 @@ {% blocktrans with date=paste.expire_on %}Expires on {{ date }}{% endblocktrans %} {% endif %}

+
+
{{ paste.formated_content|safe }} {% endif %} +
+
{% endblock %} + diff --git a/static_extra/bulma/sass/style.sass b/static_extra/bulma/sass/style.sass index ba16ba3..963e65d 100644 --- a/static_extra/bulma/sass/style.sass +++ b/static_extra/bulma/sass/style.sass @@ -15,6 +15,9 @@ $text-light: #2d1040 //couleur du fond $background: #AFAED6 +$success: turquoise + + // 3. Import the rest of Bulma @import "./node_modules/bulma/bulma" @@ -186,6 +189,10 @@ html.has-navbar-fixed-top, body.has-navbar-fixed-top background-color: $link-hover color: white +.button.is-success, .button.is-sucess:hover + color: white + + //footer @media screen and (min-width: 1088px) .footer @@ -311,7 +318,9 @@ html.has-navbar-fixed-top, body.has-navbar-fixed-top background-color: white color: $text-light padding: 1rem 1rem 1rem 1rem - + text-align: left + max-width: 160ch + .tile.is-light .title, .tile.is-light a:link color: $link @@ -345,40 +354,30 @@ html.has-navbar-fixed-top, body.has-navbar-fixed-top width: 0rem display: block - -//tile pour le logo +//tile pour le logo fixe @media screen and (min-width: 770px) - .tile.is-success + .tile.is-fixed position: fixed -.tile.is-success +.tile.is-fixed background-color: transparent -.tile.is-success .title +.tile.is-fixed .title color: $link +//tile pour le pastebin +.tile.is-paste + overflow: scroll hidden + background-color: white + //colonne -//colonne index -@media screen and (min-width: 770px) - .column.is-primary .image, .column.is-primary .title - //position: fixed - //top: 50% - //left: 0 - -.column.is-primary, .column.is-primary .image - 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 +//colonne index et page +.column.is-primary .title, .column.is-primary .subtitle color: $link text-align: center +.column.is-primary, .column.is-primary .image + text-align: center //section retreci .section From f6da312196ad1ab58c4c8a5be1949c02efde27e8 Mon Sep 17 00:00:00 2001 From: deed Date: Fri, 26 Jul 2019 17:58:27 +0200 Subject: [PATCH 2/3] changement d'un logo plus net --- navbar/templates/navbar/navbar.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/navbar/templates/navbar/navbar.html b/navbar/templates/navbar/navbar.html index 2ff748e..6c765f9 100644 --- a/navbar/templates/navbar/navbar.html +++ b/navbar/templates/navbar/navbar.html @@ -3,7 +3,7 @@