From: Valessio Soares de Brito Date: Thu, 6 Jun 2019 02:57:58 +0000 (-0400) Subject: adjust style ryf-list X-Git-Url: https://vcs.fsf.org/?p=ryf-theme.git;a=commitdiff_plain;h=166701212e3a6ad82e116ece9cce8cd6b9eef061 adjust style ryf-list --- diff --git a/css/style.css b/css/style.css index e0c007f..19b4f7b 100644 --- a/css/style.css +++ b/css/style.css @@ -61,36 +61,44 @@ a { transition: 0.3s; } width: 100%; } -.footer { - background: #333; - color: #FFF; -} - -.footer a { color: #edd400; } +/* RYF List */ -.footer a:hover { color: #FFF; } - -.footer h4 { font-weight: bold; } +.ryf-list { + float: left; + margin: 0; + padding: 0.5em; + position:relative; + list-style: none; +} -.footer .copyright { font-size: 0.9em; text-align: center; width: 80%; margin-top: 1em; border-top: 1px solid #111; padding: 1em; } +.ryf-list article { + border: 1px solid #ececec; + border-radius: 5px; + padding: 1em; + box-shadow: 2px 2px 5px #ddd; + transition: 0.3s; +} -.ryf-list img { - max-width:100%; +.ryf-list article:hover { + box-shadow: 0px 0px 5px #aaa; } -.ryf-list { - padding: 10px; - border: 1px solid #f5efef; - float: left; - margin: 5px 0; - border-radius: 5px; - box-shadow: 2px 3px 0px #e4d8d8; - position:relative; - overflow:hidden; +.ryf-list .field--type-image { + width: 100%; + background: #fff; + border-radius: 10px; + display: flex; + justify-content: center; } -.ryf-list .field { +.ryf-list img { + max-width: 150px; min-height: 150px; + overflow: hidden; +} + +.ryf-list img:hover { + border-radius: 0; } .ryf-list h2 { @@ -98,11 +106,9 @@ a { transition: 0.3s; } font-size: 1.5em; font-weight: 500; line-height: 1.2em; - margin: 0px; - padding: 0px; - border-bottom: 1px solid #ccc4c4; - margin-bottom: 5px; - padding-bottom: 5px; + margin: 0; + padding: 0; + padding-bottom: 1em; } .ryf-list a { @@ -125,3 +131,24 @@ a { transition: 0.3s; } padding-top: 5px; color: #afadad; } + +.ryf-list .node-readmore { + text-align: right; +} + + +/* Footer */ + +.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; } +