Merge pull request #2500 from betagouv/improve-browser-banner

Improve browser banner
This commit is contained in:
gregoirenovel 2018-09-03 12:01:35 +02:00 committed by GitHub
commit f4e8d575b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 9 additions and 15 deletions

View file

@ -38,7 +38,7 @@
// = require recapitulatif
// = require search
// = require siret
// = require support_navigator_banner
// = require outdated_browser_banner
// = require switch_menu
// = require autocomplete
// = require users

View file

@ -1,17 +1,14 @@
@import "colors";
@import "constants";
#support-navigator-banner {
position: fixed;
#outdated-browser-banner {
width: 100%;
bottom: 0;
left: 0;
margin: 0;
padding: $default-padding;
text-align: center;
color: #FFFFFF;
background-color: $medium-red;
z-index: 1000;
a {
color: $lighter-blue;

View file

@ -1,4 +1,4 @@
#support-navigator-banner {
#outdated-browser-banner {
position: fixed;
text-align: center;
line-height: 2em;

View file

@ -1,11 +1,8 @@
-# See config/browser.rb
/ See config/browser.rb
- if !browser.modern?
#support-navigator-banner.row
.col-xs-12
Attention, votre navigateur (#{browser.name} #{browser.version}) est trop ancien pour utiliser demarches-simplifiees.fr : certaines parties du site ne fonctionneront pas correctement.
%br/
%br/
Nous vous recommendons fortement de
#outdated-browser-banner
.container
Attention, votre navigateur (#{browser.name} #{browser.version}) est trop ancien pour utiliser demarches-simplifiees.fr : certaines parties du site ne fonctionneront pas correctement. Nous vous recommendons fortement de
%a{ href: "https://browser-update.org/fr/update.html", target: "_blank" }mettre à jour votre navigateur
%span<>
\.

View file

@ -21,7 +21,7 @@
sentry: #{raw(sentry_config)}
}];
%body
= render partial: 'layouts/support_navigator_banner'
= render partial: 'layouts/outdated_browser_banner'
= render partial: 'layouts/pre_maintenance'
- if staging?
#beta

View file

@ -27,7 +27,7 @@
}];
%body
.page-wrapper
= render partial: "layouts/support_navigator_banner"
= render partial: "layouts/outdated_browser_banner"
= render partial: 'layouts/pre_maintenance'
- if staging?
#beta