improve box ryf-list
[ryf-theme.git] / css / style.css
index cfd5841b2ec6e431af2b7efd9ac1ba422e6719e6..b18812c805a870d1349d8a689b45ed5556b3e89b 100644 (file)
@@ -299,37 +299,56 @@ nav .search-block-form {
 }
 
 .ryf-list .field--type-image {
 }
 
 .ryf-list .field--type-image {
-  width: 150px;
-  height: 150px;
+  border: 1px solid #ddd;
+  border-left: 0px;
+  border-right: 0px;
   background: #fff;
   background: #fff;
-  border-radius: 10px;
-  display: flex;
-  align-items: center;
-}
-
-.ryf-list .field--name-field-image {
-  margin: 0 auto 10px auto;
-}
-
-.ryf-list img {
-  max-width: 150px;
-  max-height: 150px;
-  object-fit: contain;
+  height: 150px;
+  width: 100%;
   overflow: hidden;
   overflow: hidden;
+  border-radius: 5px;
+  position: relative;
+  text-align: center;
 }
 
 }
 
-.ryf-list img:hover {
-  border-radius: 0;
+.ryf-list img {
+  width: auto;
+  height: 100%;
+  margin: auto 0;
+  display: inline-block;
 }
 
 .ryf-list h2 {
   text-align: left;
   font-size: 1.5em;
 }
 
 .ryf-list h2 {
   text-align: left;
   font-size: 1.5em;
-  font-weight: 500;
   line-height: 1.2em;
   margin: 0;
   padding: 0;
   line-height: 1.2em;
   margin: 0;
   padding: 0;
-  padding-bottom: 1em;
+}
+
+.ryf-list .field--name-body {
+  display: block;
+  border-radius: 5px;
+  width: 100%;
+  height: 0px;
+  margin-top: 0px;
+  z-index: 99;
+  position: relative;
+  background: #00000088;
+  color: white;
+  padding: 0em;
+  transition: 0.2s;
+  cursor: default;
+  overflow: hidden;
+}
+
+.ryf-list:hover .field--name-body {
+  height: 100px;
+  margin-top: -100px;
+  z-index: 99;
+  position: relative;
+  padding: 0.3em;
+  transition: 0.3s;
 }
 
 .ryf-list a {
 }
 
 .ryf-list a {
@@ -351,6 +370,23 @@ nav .search-block-form {
   right: 15px;
 }
 
   right: 15px;
 }
 
+.ryf-list h2 a {
+  display: inline-block;
+  height: 55px;
+  overflow: hidden;
+  position: relative;
+}
+
+.ryf-list h2 a:after {
+  content: '(...)';
+  float: right;
+  display: block;
+  position: absolute;
+  bottom:5px;
+  right: 2px;
+  font-size: 0.8em;
+}
+
 .ryf-list .list-inline li:hover {
   background: #eee;
 }
 .ryf-list .list-inline li:hover {
   background: #eee;
 }
@@ -383,7 +419,7 @@ nav .search-block-form {
 @media screen and (min-width: 55em) {
 
   .ryf-list article {
 @media screen and (min-width: 55em) {
 
   .ryf-list article {
-      min-height: 360px
+      min-height: 270px
   }
 
 }
   }
 
 }