Skip to content

Commit

Permalink
Merge pull request #112 from pfadfinden/bugfix/#110-subtitles
Browse files Browse the repository at this point in the history
[BUGFIX] Add styles for subtitles
  • Loading branch information
cowboyxup authored Jan 8, 2022
2 parents 192eeee + cbf3dba commit cde57a2
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib.contentElement.partialRootPaths.156587903 = EXT:bdp_template/Resources/Private/Partials/Frontend
1 change: 1 addition & 0 deletions Configuration/TypoScript/setup.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
@import 'EXT:bdp_template/Configuration/TypoScript/Extensions/Omcookiemanager.typoscript'
@import 'EXT:bdp_template/Configuration/TypoScript/Extensions/Instagram.typoscript'
@import 'EXT:bdp_template/Configuration/TypoScript/Extensions/Calendarize.typoscript'
@import 'EXT:bdp_template/Configuration/TypoScript/Extensions/Z7semantilizer.typoscript'


##############
Expand Down
10 changes: 10 additions & 0 deletions Resources/Private/Partials/Frontend/Header/Header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<f:if condition="{header}">
<f:variable name="tagName" value="{f:if(condition:type, then:'h{type}', else:'div')}" />
<f:variable name="baseClassName" value="{f:if(condition:class, then:'{class}', else:'ce-header')}" />

<{tagName} class="{baseClassName}{f:if(condition:layout, then:' {baseClassName}--{layout}')}{f:if(condition:position, then:' {baseClassName}--{position}')}">
<f:link.typolink parameter="{link}">{header}</f:link.typolink>
</{tagName}>
</f:if>
</html>
19 changes: 19 additions & 0 deletions Resources/Private/Source/Scss/5-elements/_headings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ h1, .ce-header--1 {
> a {
color: inherit;
}
~ .ce-subheader {
@extend %__headings;
font-size: 1.3125rem;
line-height: 1.4;
letter-spacing: 1px;
box-decoration-break: clone;
margin-top: 0.625rem;
margin-bottom: 0.625rem;
}
}

h2, .ce-header--2 {
Expand All @@ -41,6 +50,12 @@ h2, .ce-header--2 {
> a {
color: inherit;
}
~ .ce-subheader {
@extend %__headings;
font-size: 1.1875rem;
margin-top: 0.625rem;
margin-bottom: 0.625rem;
}
}

h3, .ce-header--3 {
Expand All @@ -49,6 +64,10 @@ h3, .ce-header--3 {
> a {
color: inherit;
}
~ .ce-subheader {
@extend %__headings;
font-size: 1rem;
}
}

h4, .ce-header--4 {
Expand Down
2 changes: 1 addition & 1 deletion Resources/Public/Build/pfadfinden.css

Large diffs are not rendered by default.

Binary file modified Resources/Public/Build/pfadfinden.css.br
Binary file not shown.
Binary file modified Resources/Public/Build/pfadfinden.css.gz
Binary file not shown.

0 comments on commit cde57a2

Please sign in to comment.