INN / umbrella-energynewsnetwork

Umbrella repository for the Energy News Network site, a project of Fresh Energy
https://energynews.us
GNU General Public License v2.0
0 stars 1 forks source link

Create digest page from Wireframe #86

Open MirandaEcho opened 4 years ago

MirandaEcho commented 4 years ago

ENN Digest Page Wireframe (1).pdf

benlk commented 4 years ago

Status:


The problem with the widget areas is as described in https://github.com/INN/umbrella-energynewsnetwork/issues/77#issuecomment-583161630:

For unknown reasons, creating a sidebar named "Digest Sidebar" in Theme Options > Layout > Sidebar Options, and saving that sidebar in the sidebar picker at Posts > Categories > "Digests" > edit > Archive Sidebar, results in that sidebar not being found by the elaborate fallback queue in sidebar.php, and as a result the sidebar is not output.

The expectation was that we'd be able to use existing Largo functionality to create a named widget area and output it only on this page.

Instead, that named widget area is not output upon the page.

It is not known why this is the case.

Our options are:

  1. try to debug the thing
  2. hardcode it so that this template only ever shows the hardcoded sidebar, which I'll call "Digest Sidebar", with the effect that the setting in the Digest category edit page is silently ignored

1 has an unknown amount of time. 2 makes things weird in a way that might confuse the client, but shouldn't take more than an hour.

MirandaEcho commented 4 years ago

I thought we had decided to hardcode it given the difficulty, so let's go ahead with that.

benlk commented 4 years ago

Screen Shot 2020-02-19 at 16 41 06

@MirandaEcho I'm guessing that we should add some padding to these textwidgets?

MirandaEcho commented 4 years ago

@benlk - yes please. We didn't budget any fancy styling, but some basic cleanup would be good. Lets remove the border and make the button match the other button in the sidebar, at least.

Also, what's up with the description/title for the subscribe widget and all that extra text there?

benlk commented 4 years ago

In that screenshot, I used a Ninja Forms widget. The extra text is what the widget was configured to output.

We should ask them if they're using Ninja Forms for the mailchimp signups now rather than the ENN Mailchimp Subscribe widget we built them.

benlk commented 4 years ago

The default style of the widget is to have padding and border; it looks like Largo removes the padding at certain viewport sizes:

https://github.com/INN/largo/blob/1744bbc7ae99f501129d158c3b585cddf6b5409e/less/inc/widgets.less#L214-L222

The theme contains a style that removes the borders when the widget has the "Reverse" background class applied, so not removing the border here is more-respecting of the existing styles.

benlk commented 4 years ago

There's CSS being injected via the Customizer that makes the Ninja Forms button wider than the column on some screen sizes:

#nf-field-33 {
  padding: 0.75em 2.3em;
    margin: 16px 0 0 0;
}

And a lot of other CSS affecting the Ninja Form.

Here's where I ended up at on Desktop:

Screen Shot 2020-02-19 at 20 15 21

And on Mobile:

Screen Shot 2020-02-19 at 20 15 45

These changes try not to have an adverse effect on the article pages, which have different layouts for that text.

But the fact of the matter is, the Ninja Forms widget has weird markup that makes it hard to guarantee that the input won't go beyond the container, because an input type="button"'s text content isn't text, but instead its value attribute. The CSS rules for wrapping text don't apply.