File tree Expand file tree Collapse file tree 2 files changed +24
-4
lines changed
web/profiles/custom/os2loop/themes/os2loop_theme
templates/content-entities Expand file tree Collapse file tree 2 files changed +24
-4
lines changed Original file line number Diff line number Diff line change 4949 display : initial !important ;
5050}
5151
52+ // Quick 'n' dirty solution.
53+ .paragraph--type--os2loop-documents-step {
54+ & ::marker ,
55+ .step--collapse-toggle {
56+ font : {
57+ size : 1.25rem ;
58+ weight : bold ;
59+ }
60+ }
61+ }
62+
5263@import " layout" ;
Original file line number Diff line number Diff line change 5454{% block paragraph %}
5555 {% block content %}
5656 <li {{ attributes.addClass (classes ) }}>
57- <a class =" collapsed step--collapse-toggle" type =" button" data-toggle =" collapse" data-target =" #paragraph-id-{{ paragraph.id () }}" >
58- <span class =" bold {{ has_title ?: ' line-clamp-1' }}" >
59- {{ has_title ? content .os2loop_documents_step_title : content .os2loop_documents_step_text }}
57+ {# A hack to check if we're rendering content for pdf generation #}
58+ {% if ' print/pdf' in url(' <current>' )[' #markup' ] %}
59+ <span class =" collapsed step--collapse-toggle" >
60+ <span class =" bold" >
61+ {{ has_title ? content .os2loop_documents_step_title : content .os2loop_documents_step_text }}
62+ </span >
6063 </span >
61- </a >
64+ {% else %}
65+ <a class =" collapsed step--collapse-toggle" type =" button" data-toggle =" collapse" data-target =" #paragraph-id-{{ paragraph.id () }}" >
66+ <span class =" bold {{ has_title ? ' line-clamp-1' }}" >
67+ {{ has_title ? content .os2loop_documents_step_title : content .os2loop_documents_step_text }}
68+ </span >
69+ </a >
70+ {% endif %}
6271 <div class =" row no-gutters collapse" id =" paragraph-id-{{ paragraph.id () }}" >
6372 <div class =" col" >
6473 <div class =" row no-gutters" >
You can’t perform that action at this time.
0 commit comments