Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update header layout & styles #123

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/get-milestone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ JSON=`curl --silent "https://api.github.com/repos/${GITHUB_REPOSITORY}/milestone
MILESTONE_NUMBER=`echo "$JSON" | grep '"number":' | sed -E 's/.*: ([^,]+).*/\1/'`
MILESTONE_NAME=`echo "$JSON" | grep '"title":' | sed -E 's/.*: "([^"]+).*/\1/'`

echo "::set-env name=MILESTONE_NUMBER::${MILESTONE_NUMBER}"
echo "::set-env name=MILESTONE_NAME::${MILESTONE_NAME}"
cat >"${GITHUB_ENV}" <<EOF
MILESTONE_NUMBER=${MILESTONE_NUMBER}
MILESTONE_NAME=${MILESTONE_NAME}
EOF

echo "Set environment vars: ${MILESTONE_NUMBER} and ${MILESTONE_NAME}"
5 changes: 4 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ jobs:
restore-keys: |
${{ runner.os }}-yarn-

- name: Installs dependencies
- name: Installs system dependencies
run: sudo apt-get -y install libkrb5-dev

- name: Installs npm dependencies
run: yarn install --frozen-lockfile --non-interactive

- name: Validates CSS
Expand Down
2 changes: 2 additions & 0 deletions page.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@

<div class="post-inner" id="post-inner">

<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>

<div class="entry-content">
<?php the_content(); ?>
</div>
Expand Down
16 changes: 4 additions & 12 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,6 @@ body {
background-color: var( --color-secondary-text );
}

.cover-header .cover-header-inner-wrapper {
justify-content: center;
min-height: 400px;
max-height: 100vh;
}

.header-inner {
padding: 0 4rem 0 0;
width: initial;
Expand All @@ -191,7 +185,7 @@ body {
padding: 0;
}

.home .cover-header .cover-header-inner-wrapper {
.cover-header .cover-header-inner-wrapper {
min-height: 130px;
height: 130px;
}
Expand All @@ -211,12 +205,10 @@ body {
border: 0;
}

.cover-header-inner {
padding: 15rem 0;
}

.cover-header .entry-header .entry-title {
.post-inner .entry-title {
text-align: center;
font-size: 2em;
padding-bottom: 5rem;
}

.to-the-content-wrapper {
Expand Down
38 changes: 0 additions & 38 deletions template-parts/header-cover.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,44 +74,6 @@
<?php
}

the_title( '<h1 class="entry-title">', '</h1>' );

if ( is_page() ) {
?>

<div class="to-the-content-wrapper">

<a href="#post-inner" class="to-the-content fill-children-current-color">
<?php twentytwenty_the_theme_svg( 'arrow-down' ); ?>
<div class="screen-reader-text"><?php esc_html_e( 'Scroll Down', 'mutualaidnyc' ); ?></div>
</a><!-- .to-the-content -->

</div><!-- .to-the-content-wrapper -->

<?php
} else {

$intro_text_width = '';

if ( is_singular() ) {
$intro_text_width = ' small';
} else {
$intro_text_width = ' thin';
}

if ( has_excerpt() ) {
?>

<div class="intro-text section-inner max-percentage<?php echo esc_attr( $intro_text_width ); ?>">
<?php the_excerpt(); ?>
</div>

<?php
}

twentytwenty_the_post_meta( get_the_ID(), 'single-top' );

}
?>

</div><!-- .entry-header-inner -->
Expand Down