projects
/
ryf-theme.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06e3072
)
tweaked ryf-list image css for odd shaped images
author
Andrew Engelbrecht
<andrew@fsf.org>
Mon, 4 Nov 2019 21:28:48 +0000
(16:28 -0500)
committer
Andrew Engelbrecht
<andrew@fsf.org>
Mon, 4 Nov 2019 21:28:48 +0000
(16:28 -0500)
this way wide images won't get horizontally compressed
css/style.css
patch
|
blob
|
blame
|
history
diff --git
a/css/style.css
b/css/style.css
index 1841ffcc2ded06062109d9f1e08d3ef3f8353290..72a0448e1904bdd63ea5e328dc4cc6d931e2924d 100644
(file)
--- a/
css/style.css
+++ b/
css/style.css
@@
-303,12
+303,19
@@
nav .search-block-form {
border-radius: 5px;
position: relative;
text-align: center;
+ display: flex;
+ align-items: center;
}
-.ryf-list img {
+.ryf-list .field--type-image a {
+ display: inline-block;
+ margin: 0 auto;
+}
+
+.ryf-list .field--type-image img {
width: auto;
-
height: 100%
;
- margin:
auto 0
;
+
max-height: 150px
;
+ margin:
0 auto
;
display: inline-block;
}