diff --git a/web/themes/custom/opdavies/assets/css/components/recommendation.pcss b/web/themes/custom/opdavies/assets/css/components/recommendation.pcss new file mode 100644 index 000000000..759089cce --- /dev/null +++ b/web/themes/custom/opdavies/assets/css/components/recommendation.pcss @@ -0,0 +1,5 @@ +.recommendation { + .photo img { + @apply rounded-full + } +} diff --git a/web/themes/custom/opdavies/assets/css/custom-components.pcss b/web/themes/custom/opdavies/assets/css/custom-components.pcss index f37bc5e4d..69e088139 100644 --- a/web/themes/custom/opdavies/assets/css/custom-components.pcss +++ b/web/themes/custom/opdavies/assets/css/custom-components.pcss @@ -3,6 +3,7 @@ @import './components/lead.pcss'; @import './components/markup.pcss'; @import './components/note.pcss'; +@import './components/recommendation.pcss'; @import './components/table.pcss'; @import './components/video.pcss'; @import './components/widget.pcss'; diff --git a/web/themes/custom/opdavies/assets/css/custom-utilities.pcss b/web/themes/custom/opdavies/assets/css/custom-utilities.pcss index e39fd2784..35d011d74 100644 --- a/web/themes/custom/opdavies/assets/css/custom-utilities.pcss +++ b/web/themes/custom/opdavies/assets/css/custom-utilities.pcss @@ -1,3 +1,9 @@ .no-js .js-hidden { display: none } + +@responsive { + .first-of-type\:mt-0:first-of-type { + @apply mt-0 !important + } +} diff --git a/web/themes/custom/opdavies/templates/block/block--inline-block--recommendation.html.twig b/web/themes/custom/opdavies/templates/block/block--inline-block--recommendation.html.twig new file mode 100644 index 000000000..102978109 --- /dev/null +++ b/web/themes/custom/opdavies/templates/block/block--inline-block--recommendation.html.twig @@ -0,0 +1,26 @@ +
+

{{ label }}

+ +
+
+
+ {{ content.field_role }} +
+ +
+ {{ content|without('field_company', 'field_role', 'field_photo') }} +
+
+ + {% if content.field_photo %} +
+ {{ content.field_photo }} +
+ {% endif %} +
+