stylesheet: move all browser banner styles into site-banner.scss

This commit is contained in:
Pierre de La Morinerie 2019-12-04 14:03:39 +00:00
parent 87e4c62c21
commit 704ac64f63
4 changed files with 19 additions and 13 deletions

View file

@ -28,7 +28,7 @@
// = require print
// = require procedure
// = require search
// = require outdated_browser_banner
// = require site_banner
// = require switch_menu
// = require autocomplete
// = require users

View file

@ -1,21 +1,27 @@
@import "colors";
@import "constants";
#outdated-browser-banner {
.site-banner {
width: 100%;
margin: 0;
padding: $default-padding;
color: $black;
background-color: $yellow;
border-bottom: 1px dashed rgba(0, 0, 0, 0.6);
.container {
display: flex;
align-items: center;
}
}
.outdated-browser-icon {
.site-banner-icon {
margin-right: $default-padding;
font-size: 30px;
opacity: 0.7;
}
.outdated-browser-buttons {
.site-banner-actions {
display: flex;
margin-left: auto;

View file

@ -1,9 +1,10 @@
#outdated-browser-banner {
.site-banner {
width: 100%;
margin: 0;
color: #333333;
background-color: #FEF3B8;
border-bottom: 1px dashed rgba(0, 0, 0, 0.6);
.container {
display: flex;
@ -13,13 +14,13 @@
}
}
.outdated-browser-icon {
.site-banner-icon {
margin-right: 16px;
font-size: 30px;
opacity: 0.7;
}
.outdated-browser-buttons {
.site-banner-actions {
display: flex;
margin-left: auto;
}

View file

@ -1,15 +1,14 @@
-# See config/browser.rb
- if !browser.modern? && !has_dismissed_outdated_browser_banner?
#outdated-browser-banner
.container.flex.align-center
.outdated-browser-icon
⚠️
.outdated-browser-test
#outdated-browser-banner.site-banner
.container
.site-banner-icon ⚠️
.site-banner-text
%strong
#{browser.name} #{browser.version} est trop ancien pour utiliser demarches-simplifiees.fr.
%br
Certaines parties du site ne fonctionneront pas correctement.
.outdated-browser-buttons
.site-banner-actions
= button_to 'Ignorer', dismiss_outdated_browser_path, method: :post, remote: true, class: 'button btn', title: 'Ne plus afficher cet avertissement pendant une semaine'
%a.btn.button.primary{ href: "https://browser-update.org/fr/update.html", target: "_blank", rel: "noopener" }
Mettre à jour mon navigateur