Commit graph

77 commits

Author SHA1 Message Date
6ae57ee2c0 Improve sidebar and inline images on mobile. 2021-10-19 06:47:58 -07:00
aa688838b3 Fix issue with submenu items incorrectly marked as selected. 2021-10-19 06:47:58 -07:00
9a140f6988 Darken the selected menu item. 2021-10-19 06:47:58 -07:00
eeba7a3154 Add breadcrumb examples and expading FAQ sections. 2021-10-19 06:47:58 -07:00
f26c598c78 Display mobile menu above the supporter sidebar. 2021-10-19 06:47:58 -07:00
e340b7010c Add mobile menu and DuckDuckGo-based search. 2021-10-19 06:47:58 -07:00
bdda85c237 Apply max widths and margins to all pages.
Due to the varying types of layouts used and the short time-frame the best
option seems to set a max-width etc. around the "outercontent" block. For now
this means we can't do "full bleed" body content, but that's not currently used
anyway.
2021-10-19 06:47:58 -07:00
c41efe0e0b Overhaul header, first pass at second level navigation. 2021-10-19 06:47:58 -07:00
5e95851b83 Switch to SVG logo.
Will look better on mobile.
2021-10-19 06:47:58 -07:00
cea24db788 Tune up frontpage news/blog items and term of week, add call out section. 2021-10-19 06:47:58 -07:00
5672713148 Add link and button focus/active states. 2021-10-19 06:47:58 -07:00
32dd831a50 First-pass implementation of new design for home page.
Uses a combination of CSS changes and Tachyons classes to implement the design.

Adds the non-minified Tachyons CSS library itself and SVG icons from Font Awesome.
2021-10-19 06:32:45 -07:00
26b014139c Make tiny pictures a bit bigger. 2020-12-04 12:07:59 -08:00
bdfb44e402 Make font size smaller for picture-tiny 2020-12-04 11:32:49 -08:00
8ea9fbd808 Create picture-tiny option; fix various formatting typos. 2020-12-04 11:29:18 -08:00
7cf6e58968 Add hr-like line after listed sponsors.
When one sponsor has a logo, and the next one doesn't, it looks like
the textual name of that sponsor is the sponsor above it.  This bit
of CSS corrects that problem.
2020-12-01 11:33:47 -08:00
21ee13ee7e Supporter: pictures: get picture-small working & apply throughout.
I pulled this from the `blog-left` style I used to use in blog posts
and created a new style called picture-small.  On smaller screen
real estate, Tony's picture was ultimately too big.
2020-11-25 21:03:24 -08:00
1db8a47c81 Supporters: Make my picture smaller with CSS. 2020-11-25 20:40:06 -08:00
25bece4c90 a.expander: better way to center items in modern browsers. 2020-11-25 19:46:59 -08:00
6b649e2f48 Supporter page: Support a “Expand All” link for collapsible sections
I wrap the entire section that has material that can be expanded in a
div with class `expandable-section`.  Once doing so, if you provide an
anchor with the class of `expander`, that anchor will be created with
text in the `data-expand-link-text` attribute.

I've also added some CSS to make the link look a certain way, for
good measure.
2020-11-25 19:27:53 -08:00
Brett Smith
fb6164926f supporters: Dynamically construct "Read more" links in JS.
This provides better presentation to people without JavaScript,
and makes it easier to author the HTML.
2020-11-25 13:47:40 -05:00
Brett Smith
e397501bfa supporter: Collapse individual appeal sections. 2020-11-25 11:32:07 -05:00
242aa60fc7 Fix Compliance sidebar menu selection. 2020-10-02 19:49:50 -07:00
Bradley M. Kuhn
effbf23fce Leadership and other bio updates, most notably Allison Randal.
Allison Randal joined Conservancy's board!
2019-10-08 11:07:54 -07:00
Brett Smith
828fd09d11 css: Add a little style to the progressbar. 2017-11-27 13:30:27 -05:00
Brett Smith
cf20e691e6 frontpage: Reorganize the lower half of the page. 2017-11-22 12:51:09 -05:00
Brett Smith
36b33927f7 css: Implement #sidebar and #mainContent without floats.
170aa38bb5 fixed one bug but added another:
#mainContent would always be the max-width of 1000px.  If the user's window
wasn't wide enough to accommodate that alongside the sidebar, it would be
rendered below the sidebar.

Fix that by using positioning instead of floats, so #mainContent can have a
flexible width.
2017-01-19 12:18:08 -05:00
Brett Smith
7202787092 supporter: Reorganize form post-input notes.
This makes it easier to keep baseline alignment between labels and their
respective inputs.  Declaring `margin-left: 51%;` for the post-input notes
is not exactly what we want, but it's much closer and less troublesome than
dealing with the vertical alignment of labels otherwise.
2017-01-09 16:56:42 -05:00
Brett Smith
5f9a4395f3 supporter: Add size information chart. 2017-01-05 13:46:46 -05:00
Brett Smith
b93cc61e8b supporter: New form styling.
This makes better use of bigger screens, and degrades better to smaller
ones.
2017-01-01 15:10:20 -05:00
Brett Smith
8605b65783 supporter: Move more presentation rules to CSS.
This commit keeps the presentation basically the same, it just moves
presentation rules out of HTML and into CSS.  It's not pixel-perfect but
pretty close.
2017-01-01 13:53:41 -05:00
Brett Smith
6392ae3a43 supporter: Fix redundant amount, error ids. 2017-01-01 10:24:34 -05:00
Brett Smith
619bc033bc js: Render <video> inner HTML when no source is supported.
The HTML inside <video> is meant to be rendered by browsers that don't
support the tag at all.  You have to respond to the JavaScript error event
to deal with browsers that support video, but no available source.  See
<https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_HTML5_audio_and_video#Showing_fallback_content_when_no_source_could_be_decoded>.
2016-12-31 15:19:59 -05:00
Brett Smith
359cc7a068 css: <dl>s clear each other.
This prevents <dl>s from stacking horizontally when their <dt>s are short.
2016-12-31 14:30:19 -05:00
Brett Smith
a04d85a1e8 css: Move rules intended for bigscreen to the dedicated stylesheet. 2016-12-31 14:23:03 -05:00
Brett Smith
55c0b3bb1c css: Remove unused rules.
The rationale given in the comments for these rules no longer applies: there
are no divs with class column or conservancy-blog on any pages.  Meanwhile,
they're causing unwanted styling: we started using the column class on the
front page for two-column layout, and the videos are appearing smaller than
desired there.  Just remove these.
2016-12-31 13:58:18 -05:00
Brett Smith
170aa38bb5 blog: Headlines clear floats.
This avoids a situation where multiple summaries have floats that stack on
top of each other vertically, which end up getting far away from the actual
text.

In order to make this work, we had to change the styling of #mainContent on
blog pages (and others with a sidebar).  Otherwise, headlines with
class="clear" would clear the sidebar as well.
2016-12-30 23:12:09 -05:00
Brett Smith
e7c1171b6e blog: Refactor entry rendering into a partial.
This helps ensure that entries are rendered consistently wherever they
appear.
2016-12-30 23:12:09 -05:00
Brett Smith
331b14b45e css: Remove noop rule.
This wasn't doing anything because "line-height" was misspelled.
2016-12-30 23:12:09 -05:00
Brett Smith
4409ac089a css: Center horizontal rules in frontpage columns. 2016-12-30 23:12:09 -05:00
Brett Smith
8739534e9f copyleft-compliance: The principles link to principles-discuss. 2016-12-21 11:16:28 -05:00
Brett Smith
1b38fc338e css: Add max-width to bigscreen .picture. 2016-12-19 12:25:27 -05:00
Brett Smith
dd8d159fcb css: Add styles for blog pictures. 2016-12-01 15:04:55 -05:00
Brett Smith
4cbf566e31 contractpatch: Page layout adjustments.
Try to make sections clearer and avoid the "big monolith of text"
feeling.
2016-11-30 16:24:28 -05:00
Brett Smith
a1ec899670 css: Start a separate stylesheet for "big screen" styles.
I'm about to add more and I *suspect* this will be easier to maintain
in the long term, rather than duplicating the conditional many times.
2016-11-30 16:18:06 -05:00
Brett Smith
6f06967a30 frontpage: Reduce the two-column width split to 67em.
This brings the columns from a target width of about 60 characters to
about 52.
2016-11-22 08:20:04 -05:00
Brett Smith
7e8d0538aa site: Font size adjustments throughout. 2016-11-17 11:35:22 -05:00
Brett Smith
4663e609ec site: Use default font size globally. 2016-11-17 11:04:09 -05:00
Brett Smith
d2657eddd0 frontpage: Adjust column presentation. 2016-11-17 10:56:58 -05:00
Brett Smith
b331d52331 frontpage: Reorganize.
* Put news and blogs up front.
* Use 30 days as the cutoff for everything, consistently.
* Allow columns to collapse.  Hopefully this is the start of a nicer
  view on mobile.
* Reduce shading.
2016-11-17 10:40:22 -05:00