Merge pull request #2500 from betagouv/improve-browser-banner
Improve browser banner
This commit is contained in:
commit
f4e8d575b4
6 changed files with 9 additions and 15 deletions
|
@ -38,7 +38,7 @@
|
||||||
// = require recapitulatif
|
// = require recapitulatif
|
||||||
// = require search
|
// = require search
|
||||||
// = require siret
|
// = require siret
|
||||||
// = require support_navigator_banner
|
// = require outdated_browser_banner
|
||||||
// = require switch_menu
|
// = require switch_menu
|
||||||
// = require autocomplete
|
// = require autocomplete
|
||||||
// = require users
|
// = require users
|
||||||
|
|
|
@ -1,17 +1,14 @@
|
||||||
@import "colors";
|
@import "colors";
|
||||||
@import "constants";
|
@import "constants";
|
||||||
|
|
||||||
#support-navigator-banner {
|
#outdated-browser-banner {
|
||||||
position: fixed;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: $default-padding;
|
padding: $default-padding;
|
||||||
text-align: center;
|
|
||||||
color: #FFFFFF;
|
color: #FFFFFF;
|
||||||
background-color: $medium-red;
|
background-color: $medium-red;
|
||||||
z-index: 1000;
|
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: $lighter-blue;
|
color: $lighter-blue;
|
|
@ -1,4 +1,4 @@
|
||||||
#support-navigator-banner {
|
#outdated-browser-banner {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 2em;
|
line-height: 2em;
|
|
@ -1,11 +1,8 @@
|
||||||
-# See config/browser.rb
|
/ See config/browser.rb
|
||||||
- if !browser.modern?
|
- if !browser.modern?
|
||||||
#support-navigator-banner.row
|
#outdated-browser-banner
|
||||||
.col-xs-12
|
.container
|
||||||
Attention, votre navigateur (#{browser.name} #{browser.version}) est trop ancien pour utiliser demarches-simplifiees.fr : certaines parties du site ne fonctionneront pas correctement.
|
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
|
||||||
%br/
|
|
||||||
%br/
|
|
||||||
Nous vous recommendons fortement de
|
|
||||||
%a{ href: "https://browser-update.org/fr/update.html", target: "_blank" }mettre à jour votre navigateur
|
%a{ href: "https://browser-update.org/fr/update.html", target: "_blank" }mettre à jour votre navigateur
|
||||||
%span<>
|
%span<>
|
||||||
\.
|
\.
|
|
@ -21,7 +21,7 @@
|
||||||
sentry: #{raw(sentry_config)}
|
sentry: #{raw(sentry_config)}
|
||||||
}];
|
}];
|
||||||
%body
|
%body
|
||||||
= render partial: 'layouts/support_navigator_banner'
|
= render partial: 'layouts/outdated_browser_banner'
|
||||||
= render partial: 'layouts/pre_maintenance'
|
= render partial: 'layouts/pre_maintenance'
|
||||||
- if staging?
|
- if staging?
|
||||||
#beta
|
#beta
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
}];
|
}];
|
||||||
%body
|
%body
|
||||||
.page-wrapper
|
.page-wrapper
|
||||||
= render partial: "layouts/support_navigator_banner"
|
= render partial: "layouts/outdated_browser_banner"
|
||||||
= render partial: 'layouts/pre_maintenance'
|
= render partial: 'layouts/pre_maintenance'
|
||||||
- if staging?
|
- if staging?
|
||||||
#beta
|
#beta
|
||||||
|
|
Loading…
Reference in a new issue