Skip to content

Commit 98ed902

Browse files
HueHa-valbig
andauthored
Headings left aligned (#804)
* Change CSS to text-align left * del text-center in template parts * change templates für text-align center in headings * Remove div to remove unnecessary padding in header --------- Co-authored-by: Alexander Bigga <alexander.bigga@verdigado.com>
1 parent ff1870b commit 98ed902

12 files changed

+18
-21
lines changed

archive-sunflower_event.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<main id="primary" class="site-main">
3434
<?php if ( have_posts() ) : ?>
3535

36-
<header class="page-header text-center">
36+
<header class="page-header">
3737
<h1 class="page-title">
3838
<?php
3939
( $sunflower_is_event_archive ) ? esc_html_e( 'Events archive', 'sunflower' ) : esc_html_e( 'Events', 'sunflower' );

archive.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<main id="primary" class="site-main archive">
1616
<?php if ( have_posts() ) { ?>
1717

18-
<header class="page-header text-center">
18+
<header class="page-header">
1919
<?php
2020
the_archive_title( '<h1 class="page-title">', '</h1>' );
2121
the_archive_description( '<div class="archive-description">', '</div>' );

category.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<main id="primary" class="site-main archive">
1616
<?php if ( have_posts() ) { ?>
1717

18-
<header class="page-header text-center">
18+
<header class="page-header">
1919
<?php
2020
the_archive_title( '<h1 class="page-title">', '</h1>' );
2121
the_archive_description( '<div class="archive-description">', '</div>' );

functions/block-patterns/elemente/themen.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- wp:group {"className":"same-height","backgroundColor":"white"} -->
22
<div class="wp-block-group same-height has-white-background-color has-background"><!-- wp:heading {"textAlign":"center","className":"h1"} -->
3-
<h2 class="wp-block-heading has-text-align-center h1">Unsere Themen</h2>
3+
<h2 class="wp-block-heading h1">Unsere Themen</h2>
44
<!-- /wp:heading -->
55

66
<!-- wp:columns -->

functions/block-patterns/elemente/werde-aktiv.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- wp:group {"align":"full","style":{"color":{"text":"#ffffff","background":"#163c29"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"center"}} -->
22
<div class="wp-block-group alignfull has-text-color has-background" style="color:#ffffff;background-color:#163c29"><!-- wp:heading {"textAlign":"center","className":"h1"} -->
3-
<h2 class="wp-block-heading has-text-align-center h1">Werde aktiv</h2>
3+
<h2 class="wp-block-heading h1">Werde aktiv</h2>
44
<!-- /wp:heading -->
55

66
<!-- wp:paragraph {"align":"center"} -->

functions/block-patterns/seiten/kandidierende.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@
4848

4949
<!-- wp:group {"layout":{"type":"constrained","justifyContent":"center"}} -->
5050
<div class="wp-block-group"><!-- wp:paragraph {"align":"center","metadata":{"name":"Slogan2-1"},"style":{"elements":{"link":{"color":{"text":"var:preset|color|tanne"}}}},"backgroundColor":"grashalm","textColor":"tanne","className":"h3 textbalken"} -->
51-
<p class="has-text-align-center h3 textbalken has-tanne-color has-grashalm-background-color has-text-color has-background has-link-color">Machen,</p>
51+
<p class="h3 textbalken has-tanne-color has-grashalm-background-color has-text-color has-background has-link-color">Machen,</p>
5252
<!-- /wp:paragraph -->
5353

5454
<!-- wp:paragraph {"align":"center","metadata":{"name":"Slogan2-2"},"style":{"elements":{"link":{"color":{"text":"var:preset|color|tanne"}}}},"backgroundColor":"grashalm","textColor":"tanne","className":"h3 textbalken links-eins"} -->
55-
<p class="has-text-align-center h3 textbalken links-eins has-tanne-color has-grashalm-background-color has-text-color has-background has-link-color">was zählt</p>
55+
<p class="h3 textbalken links-eins has-tanne-color has-grashalm-background-color has-text-color has-background has-link-color">was zählt</p>
5656
<!-- /wp:paragraph --></div>
5757
<!-- /wp:group -->
5858

functions/block-patterns/seiten/startseite.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h3 class="wp-block-heading h4">bei den GRÜNEN Musterstadt.</h3>
3030

3131
<!-- wp:group {"className":"same-height","backgroundColor":"white"} -->
3232
<div class="wp-block-group same-height has-white-background-color has-background"><!-- wp:heading {"textAlign":"center","className":"h1"} -->
33-
<h2 class="wp-block-heading has-text-align-center h1">Unsere Themen</h2>
33+
<h2 class="wp-block-heading h1">Unsere Themen</h2>
3434
<!-- /wp:heading -->
3535

3636
<!-- wp:columns -->
@@ -123,7 +123,7 @@ <h2 class="wp-block-heading h1">Unser Programm<br>für Musterstadt</h2>
123123

124124
<!-- wp:group {"align":"full","style":{"color":{"text":"#ffffff","background":"#163c29"}},"layout":{"type":"flex","orientation":"vertical","justifyContent":"center"}} -->
125125
<div class="wp-block-group alignfull has-text-color has-background" style="color:#ffffff;background-color:#163c29"><!-- wp:heading {"textAlign":"center","className":"h1"} -->
126-
<h2 class="wp-block-heading has-text-align-center h1">Werde aktiv</h2>
126+
<h2 class="wp-block-heading h1">Werde aktiv</h2>
127127
<!-- /wp:heading -->
128128

129129
<!-- wp:paragraph {"align":"center"} -->

sass/_comments.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
}
66

77
&s-title {
8-
text-align: center;
8+
text-align: left;
99
margin: 50px 0;
1010
}
1111

@@ -73,7 +73,7 @@
7373
&-reply {
7474

7575
&-title {
76-
text-align: center;
76+
text-align: left;
7777
}
7878
}
7979

sass/_single.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
>.entry {
44

55
&-header {
6-
text-align: center;
6+
text-align: left;
77
background: $white;
88
color: $secondary;
9-
padding: 15px 0;
9+
padding: 0;
1010

1111
@include media-breakpoint-up(md) {
1212
padding: 65px 0;

search.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<?php if ( have_posts() ) { ?>
1818

19-
<header class="page-header text-center">
19+
<header class="page-header">
2020
<h1 class="page-title">
2121
<?php
2222
/* translators: %s: search query. */

template-parts/content-page.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<article id="post-<?php the_ID(); ?>" <?php post_class( $sunflower_class ); ?>>
1616
<?php if ( ! $sunflower_styled_layout ) { ?>
17-
<header class="entry-header text-center <?php echo ( has_post_thumbnail() ) ? 'has-post-thumbnail' : 'has-no-post-thumbnail'; ?>">
17+
<header class="entry-header <?php echo ( has_post_thumbnail() ) ? 'has-post-thumbnail' : 'has-no-post-thumbnail'; ?>">
1818
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
1919
</header><!-- .entry-header -->
2020
<?php

template-parts/content.php

+3-6
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919

2020
<article id="post-<?php the_ID(); ?>" <?php post_class( $sunflower_class ); ?>>
2121
<?php if ( ! $sunflower_styled_layout ) { ?>
22-
<header class="entry-header full-width <?php echo ( $sunflower_show_post_thumbnail ) ? 'has-post-thumbnail' : 'has-no-post-thumbnail'; ?>">
23-
<div class="container">
24-
<div class="row position-relative">
25-
<div class="col-12">
22+
<header class="entry-header <?php echo ( $sunflower_show_post_thumbnail ) ? 'has-post-thumbnail' : 'has-no-post-thumbnail'; ?>">
23+
<div class="row position-relative">
24+
<div class="col-12">
2625
<?php
2726
$sunflower_roofline = get_post_meta( $post->ID, '_sunflower_roofline', true );
2827
if ( $sunflower_roofline ) {
@@ -50,8 +49,6 @@
5049
<?php
5150
endif;
5251
?>
53-
</div>
54-
5552
</div>
5653
</div>
5754
</header><!-- .entry-header -->

0 commit comments

Comments
 (0)