diff --git a/app/js/app.js b/app/js/app.js index 0daae1664c..345a53d0eb 100644 --- a/app/js/app.js +++ b/app/js/app.js @@ -42,10 +42,15 @@ ddsApp.config(function($locationProvider, $stateProvider, $urlRouterProvider, $u } }) .state('cgu', { - url: '/conditions-generales-d-utilisation', + url: '/cgu', templateUrl: '/partials/cgu.html', data: { - pageTitle: 'Conditions générales d\'utilisation - ' + pageTitle: "Conditions générales d'utilisation - " + }, + resolve: { + style: function() { + angular.element(document.head).append(''); + } } }) .state('contribuez', { diff --git a/app/styles/text-page.css b/app/styles/text-page.css new file mode 100644 index 0000000000..4e8d2b1a70 --- /dev/null +++ b/app/styles/text-page.css @@ -0,0 +1,48 @@ +.text.container { + font-size: 140%; + line-height: 1.6; + max-width: 40em; + + text-rendering: optimizeLegibility; +} + +.text.container h1, .text.container h2, .text.container h3 { + font-weight: bold; + padding-top: 1.5em; + border-top: 1px dotted #BBB; +} + +.text.container h1 { + border-top-color: #666; + padding-bottom: none; +} + +.text.container h1:first-child { + border-top: none; +} + +.text.container p { + margin-top: 1.5em; +} + +.text.container small { + display: block; +} + +.text.container ul, .text.container li { + margin-left: 0; + padding-left: 0; +} + +#tracking-optout { + width: 100%; + height: 115px; /* in pixels because Piwik sets the font-size */ + border-radius: 5px; + background-color: white; +} + +@media (max-width: 767px) { + #tracking-optout { + height: 210px; /* in pixels because Piwik sets the font-size */ + } +} diff --git a/app/views/front.html b/app/views/front.html index 7ed32307f7..f383d7325f 100644 --- a/app/views/front.html +++ b/app/views/front.html @@ -88,7 +88,7 @@

Mes aides