From 029f6379b473a42998bbb53cf7e249177bdbacad Mon Sep 17 00:00:00 2001 From: deed Date: Wed, 31 Jul 2019 16:53:30 +0200 Subject: [PATCH 1/2] =?UTF-8?q?suppression=20d'un=20fichier=20de=20config?= =?UTF-8?q?=20qui=20a=20=C3=A9t=C3=A9=20integr=C3=A9=20dans=20le=20SASS=20?= =?UTF-8?q?mise=20=C3=A0=20jour=20du=20SASS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- khaganat/static/khaganat/css/khaganat.css | 12 ------------ static_extra/bulma/sass/style.sass | 17 ++++++++--------- 2 files changed, 8 insertions(+), 21 deletions(-) delete mode 100644 khaganat/static/khaganat/css/khaganat.css diff --git a/khaganat/static/khaganat/css/khaganat.css b/khaganat/static/khaganat/css/khaganat.css deleted file mode 100644 index 9da8373..0000000 --- a/khaganat/static/khaganat/css/khaganat.css +++ /dev/null @@ -1,12 +0,0 @@ -#page_body { - background-image: url("/static/khaganat/images/bg7.jpg"); -} - -#messagesContainer { - margin-bottom: 20px; -} - -.content-bloc { - padding: 20px; - background-color: white; -} diff --git a/static_extra/bulma/sass/style.sass b/static_extra/bulma/sass/style.sass index 963e65d..216dc6b 100644 --- a/static_extra/bulma/sass/style.sass +++ b/static_extra/bulma/sass/style.sass @@ -87,10 +87,10 @@ html.has-navbar-fixed-top, body.has-navbar-fixed-top color: white .navbar.is-light .navbar-brand - margin-left: 5% + display: none .navbar.is-light .navbar-brand img - height: 0 + display: none .navbar.is-light .navbar-brand > a.navbar-item:hover, .navbar.is-light .navbar-brand > a.navbar-item.is-active, .navbar.is-light .navbar-brand .navbar-link:hover, @@ -119,10 +119,6 @@ html.has-navbar-fixed-top, body.has-navbar-fixed-top background-color: $link-hover color: white - .navbar.is-light .navbar-end - margin-right: 5% - margin-left: 0% - .navbar.is-light .navbar-item.is-logo position: absolute left: 50% @@ -149,6 +145,9 @@ html.has-navbar-fixed-top, body.has-navbar-fixed-top max-height: 2rem height: 2rem +.navbar.is-light .navbar-item.is-logo:hover + background-color: white + //navbar pour les mobiles .navbar-dropdown a.navbar-item:hover background-color: $primary @@ -159,9 +158,9 @@ html.has-navbar-fixed-top, body.has-navbar-fixed-top font-weight: bold @media screen and (max-width: 1087px) - .navbar-item.is-logo img - height: 0 - + .navbar-item.is-logo + display: none + //bouton de la navbar .button.is-light background-color: $background From 9ae83d04e2eabb177d47df263df4e7f5e0ca651f Mon Sep 17 00:00:00 2001 From: deed Date: Wed, 31 Jul 2019 16:58:13 +0200 Subject: [PATCH 2/2] Ajout de .gitlab-ci.yml pour build CSS --- .gitlab-ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..c9d37bd --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,31 @@ +stages: +- build + +Build CSS: + stage: build + tags: + - Docker + image: "python:latest" + + variables: + PIPENV_VENV_IN_PROJECT: 1 + + script: + - apt-get update + - apt-get -y upgrade + - apt-get install -y nodejs npm + + - pip3 install pipenv + + - pipenv --three update + - pipenv install django + - pipenv install django-bulma + + - echo "KHAGANAT_SECRET_KEY= build" > .env + + - pipenv run ./manage.py bulma install + - pipenv run ./manage.py bulma build + + artifacts: + paths: + - static_extra/bulma/css/*