Skip to content

Commit

Permalink
Styling Kennel-List fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
conpassione committed Dec 22, 2024
1 parent dd14549 commit 554c79a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 16 deletions.
7 changes: 4 additions & 3 deletions ContentBlocks/ContentElements/Kennellist/assets/frontend.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,17 @@
gap: calc(2 * var(--gutter));
}


.kennelcard {
display: grid;
gap: var(--gutter);
grid-template-columns: 1fr;
border: 1px solid var(--_clr-accent);
border-radius: var(--_border--radius);

@container kennellist (width > 480px) {
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
border: 1px solid var(--_clr-accent);
border-radius: var(--_border--radius);
}

.kennelcard > * {
Expand All @@ -37,5 +39,4 @@
flex-wrap: nowrap;
justify-content: space-between;
}

}
12 changes: 6 additions & 6 deletions ContentBlocks/ContentElements/Kennellist/templates/frontend.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
<h3 class="kennelcard--header h3-font"><span>{kennel.data.k_name}</span>
<span>
<f:switch expression="{kennel.data.k_variety}">
<f:case value="2">museau normal</f:case>
<f:case value="3">museau normal</f:case>
<f:case value="4">face rase</f:case>
<f:case value="5">face rase</f:case>
<f:case value="6">museau normal / face rase</f:case>
<f:case value="7">museau normal / face rase</f:case>
<f:case value="2">Museau Normal</f:case>
<f:case value="3">Museau Normal</f:case>
<f:case value="4">Face Rase</f:case>
<f:case value="5">Face Rase</f:case>
<f:case value="6">Museau Normal / face rase</f:case>
<f:case value="7">Museau Normal / face rase</f:case>
<f:defaultCase>not defined</f:defaultCase>
</f:switch>
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<f:then>
<f:variable name="variety">{licdogs.0.data.p_variety}</f:variable>
<f:for as="dog" each="{licdogs}" iteration="i-licdogs">
<f:if condition="({variety} == {dog.data.p_variety}) && ({i-licdogs.index} == 0) "><h2 class="h2 licdogs--devider">Museau Normale</h2></f:if>
<f:if condition="({variety} == {dog.data.p_variety}) && ({i-licdogs.index} == 0) "><h2 class="h2 licdogs--devider">Museau Normal</h2></f:if>
<f:if condition="({variety} == {dog.data.p_variety}) && ({i-licdogs.index} > 0) "></f:if>
<f:if condition="({variety} != {dog.data.p_variety})"><h2 class="h2 licdogcard--devider">Face Rase</h2>
<f:variable name="variety">{dog.data.p_variety}</f:variable>
Expand Down
12 changes: 6 additions & 6 deletions ContentBlocks/ContentElements/Litterlist/templates/frontend.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ <h4><f:translate key="{cb:languagePath(name: 'conpassione/litterlist')}:litter.m
<h4><f:translate key="{cb:languagePath(name: 'conpassione/litterlist')}:litter.litter"/></h4>
<div>
<f:switch expression="{litter.data.l_variety}">
<f:case value="2">museau normal</f:case>
<f:case value="3">museau normal</f:case>
<f:case value="4">face rase</f:case>
<f:case value="5">face rase</f:case>
<f:case value="6">museau normal / face rase</f:case>
<f:case value="7">museau normal / face rase</f:case>
<f:case value="2">Museau Normal</f:case>
<f:case value="3">Museau Normal</f:case>
<f:case value="4">Face Rase</f:case>
<f:case value="5">Face Rase</f:case>
<f:case value="6">Museau Normal / face rase</f:case>
<f:case value="7">Museau Normal / face rase</f:case>
<f:defaultCase>not defined</f:defaultCase>
</f:switch>
</div>
Expand Down

0 comments on commit 554c79a

Please sign in to comment.