Commit ff6ca5c9 authored by Jakob Moser's avatar Jakob Moser
Browse files

Simplify heading (at least for single pages)

parent 4b05222d
Loading
Loading
Loading
Loading
+3 −4
Changes for 404.php: 3 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -12,10 +12,9 @@ get_header();
?>
<main>
    <article>
        <header></header>
        <div class="post-title">
            <h1 class="post-title-box">Fehler: 404</h1>
        </div>
        <header>
            <h1>Fehler: 404</h1>
        </header>
        <div class="post-content error404">
            <div class="icon">?!</div>
            <div class="message">Die angefragte Seite existiert leider nicht.</div>
+1 −1
Changes for index.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ get_header();
            <header style="background-image:url('<?php echo wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); ?>');"></header>
            <?php endif; ?>
            <div class="post-title">
                <a class="post-title-box" href="<?php the_permalink(); ?>"><h1><?php the_title(); ?></h1></a>
                <h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
            </div>
            <div class="post-meta-timestamp">
                <?php the_date(); ?>
+1 −3
Changes for page.php: 1 added line, 3 removed lines.
Original line number Diff line number Diff line
@@ -27,10 +27,8 @@ get_header();
				echo get_header_image();
			}
			echo '\');"';?> >
			<h1><?php echo get_the_title($post->ID); ?></h1>
		</header>
		<div class="post-title">
			<h1 class="post-title-box"><?php echo get_the_title($post->ID); ?></h1>
		</div>
		<div class="post-content">
			<?php
				if ( !post_password_required() ) {
+1 −3
Changes for single.php: 1 added line, 3 removed lines.
Original line number Diff line number Diff line
@@ -25,10 +25,8 @@ get_header();
				echo get_header_image();
			}
			echo '\');"';?> >
			<h1><?php echo get_the_title($post->ID); ?></h1>
		</header>
		<div class="post-title">
			<h1 class="post-title-box"><?php echo get_the_title($post->ID); ?></h1>
		</div>
		<div class="post-content">
			<?php
				if ( !post_password_required() ) {
+22 −7
Changes for style.css: 22 added lines, 7 removed lines.
Original line number Diff line number Diff line
@@ -4,7 +4,7 @@ Theme URI: https://gitlab.cl.uni-heidelberg.de/fachschaft/wp-theme
Description: Ein zeitloses WordPress-Theme für die Fachschaft Computerlinguistik in Heidelberg, gehalten in den Farben rot, grau und schwarz. Seit Mitte 2020 nach Anpassungen von Jakob Moser sogar leidlich responsive.
Author: personads :: Maximilian Müller-Eberstein
Author URI: https://personads.me/
Version: 1.00-snapshot-19
Version: 1.00-snapshot-21
Tags: fs-coli, custom

License: GNU General Public License v3.0
@@ -644,6 +644,10 @@ main.list .post-content::after {
    border-color: #fff transparent;
}

main.list .post-content {
    margin-top: 1.5em;
}

.post-content.error404 {
    text-align: center;
}
@@ -674,7 +678,7 @@ main.list article > header {

main.list .post-title {
    position: absolute;
    top: -0.5em;
    top: -1.5em;
}

main.list .post-meta-timestamp {
@@ -730,13 +734,15 @@ article > header {
    background-size: cover;
    background-position: center;
    box-shadow: 0px 0px 15px var(--shadow-color) inset;
}

.post-title .post-title-box {
    margin-top: -1.5em;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    justify-items: left;
    align-items: end;
}

.post-title-box {
article > header h1, .post-title h1 a, .home-news-main-content h3 a, .home-news-sidebar li a {
    display: inline-block;
    padding: 0.5em;
    background-color: rgba(0, 0, 0, 0.8);
@@ -748,11 +754,20 @@ article > header {
    font-family: "Inconsolata", monospace;
    font-weight: normal;
    color: #fff;
    margin-bottom: -2.5em;
}

.post-title h1 a {
    padding: 0.27em;
}

.home-news-sidebar li a {
    margin-bottom: initial;
}

.post-content {
    position: relative;
    margin-top: 1.5em;
    margin-top: 3.5em;
}

.post-content::after {