From ccc0e97e2c166b9ae32935bf167afedecf534082 Mon Sep 17 00:00:00 2001 From: Valessio Soares de Brito Date: Wed, 5 Jun 2019 18:56:03 -0400 Subject: [PATCH] fixing hack layout fluid --- css/style.css | 27 +++++++++++++++++---------- js/hacks.js | 9 +++++++++ ryf.libraries.yml | 1 + 3 files changed, 27 insertions(+), 10 deletions(-) create mode 100644 js/hacks.js diff --git a/css/style.css b/css/style.css index ded067e..98323cb 100644 --- a/css/style.css +++ b/css/style.css @@ -34,32 +34,37 @@ body { margin: 0; } top: 5px; } +.navbar-brand { text-indent: -1000px; } + +#block-ryf-main-menu .navbar-nav { margin-left: 180px; } + .navbar-default .navbar-nav>li>a { color: #FFF; } .navbar-default .navbar-nav>li>a:hover { color: #777 } #block-bootstrap-main-menu { margin-left: 200px; width: 100%; } -footer { background: #333; color: #FFF; } -footer a { color: #edd400; } -footer a:hover { color: #FFF; } -footer h4 { font-weight: bold; } -footer .copyright { font-size: 0.9em; text-align: center; width: 80%; margin-top: 1em; border-top: 1px solid #111; padding: 1em; } - +.footer { background: #333; color: #FFF; } +.footer a { color: #edd400; } +.footer a:hover { color: #FFF; } +.footer h4 { font-weight: bold; } +.footer .copyright { font-size: 0.9em; text-align: center; width: 80%; margin-top: 1em; border-top: 1px solid #111; padding: 1em; } .ryf-list img{max-width:100%;} .ryf-list { - width: 100%; padding: 10px; border: 1px solid #f5efef; float: left; - margin: 15px 0; + margin: 5px 0; border-radius: 5px; box-shadow: 2px 3px 0px #e4d8d8; position:relative; overflow:hidden; } -.ryf-list h3{ +.ryf-list .field { + min-height: 150px; +} +.ryf-list h2 { text-align: left; color: #118991; font-size: 1.5em; @@ -72,7 +77,9 @@ footer .copyright { font-size: 0.9em; text-align: center; width: 80%; margin-top padding-bottom: 5px; } -.ryf-list .tags, .ryf-list .supplier { +.ryf-list .node-readmore, +.ryf-list .tags, +.ryf-list .supplier { width: 100%; float: left; font-size: 0.9em; diff --git a/js/hacks.js b/js/hacks.js new file mode 100644 index 0000000..e1c7034 --- /dev/null +++ b/js/hacks.js @@ -0,0 +1,9 @@ +(function($){ + $(document).ready(function(){ + + // Fixing hack to main-containe width Layout + $(".main-container").addClass("container"); + $(".main-container").removeClass("container-fluid"); + }); + +})(jQuery); diff --git a/ryf.libraries.yml b/ryf.libraries.yml index c4dc55b..54767e9 100644 --- a/ryf.libraries.yml +++ b/ryf.libraries.yml @@ -6,6 +6,7 @@ framework: css/style.css: {} js: + js/hacks.js: {} js/bootstrap.min.js: {} js/drupal.bootstrap.js: {} -- 2.25.1