By experimenting with the concept of open design, Sunlight is able to create visuals that are more collaborative and effective.Continue reading
Last Friday, the Sunlight design team played hooky and attended the DotGov Design Conference, leaving with new ideas that sparked great dialogue and new challenges.Continue reading
We just launched a project to encourage engagement around Sunshine Week and FOIA reform called #FOIApoetry. It was a fun, challenging experience, so we decided to write about how the tool came to be.Continue reading
Over the last couple of months, we've been synthesizing the results of our research and working to develop an OpenCongress that will be clear, informative and modular.Continue reading
As part of our effort to revitalize OpenCongress, we've committed to putting the site through a rigorous human-centered design process — so it's more effective and easier to use for everyone.Continue reading
Launched last week by Madrid based nonprofit, Civio, Quién Manda (Who Rules?) takes on the task of monitoring the goings on of Spanish public officials and influential corporate leaders. The platform has been designed to keep an eye on the unmonitored, and rarely recorded interactions that Spanish politicians are having behind closed doors, tinted car windows and somehow frequently right in front of the lens of a camera. The team at Civio has tasked themselves with tagging photos a la Facebook with as many high profile names as they can. Each individual and corporation that gets tagged receives a profile that collects all tagged photos and displays the power connections that have been identified, along with links to social media accounts and any available biographical information. The system currently has over 100 tagged photographs, identifying over 2500 relationships.Continue reading
Instead of scheduling brunch plans or enjoying a lazy afternoon this weekend, close to 40 women took over the Sunlight conference room this past Saturday for an all-female software training program conducted by GeekChic. Here at Sunlight, we were happy to host the training and help cultivate more developers in the DC community with the hopes of increasing awareness of open data and turning these future developers on to our APIs and databases.
While many our developer colleagues were participating in the National Day of Civic Hacking, a number of us were here writing our first lines of code. In the seven-hour training intensive, we covered the basics of command line, learned to write and execute code in Python, got our style on with some basic CSS and HTML training as well as created our first web app on Django. (Whew, that was exhausting just recounting what we did.) Six Sunlighters, with a range of tech know how, participated in the training and here’s what we learned (and real life testimonials on why you shouldn’t be afraid to learn to code!). If you are interested in partnering with Sunlight to host technology workshops, please contact email@example.com.Continue reading
Back in early April we released Upwardly Mobile, a web and mobile tool that helps users compare their current living situation to other metro areas in the U.S.. This was the second in a series of apps that we built to help illustrate how the practical application of government data can inform citizens. After completing the first app with JQuery mobile we felt it was time for a different approach. This project was our first, and my first, shot at building a responsive website.
The first app we built, Sunlight Health, used jQuery mobile which was endlessly frustrating to work with. The versions of JQM changed weekly, and nothing was documented. I'm relatively new to web design, so each project I work on has some new challenge for me, but learning JQM seemed unnecessarily hard. I only really understood the structure of their theming system by the time we finished the project, far too late to actually take advantage of it. Consequently, they now have a something called a themeroller that helps you customize the basic elements.
So to find a better solution for the second app we looked toward building a responsive website. A responsive website uses media queries to determine the dimensions of the display you're viewing the site from and changes the CSS accordingly. The most obvious differences can be seen between traditional browsers and mobile devices, where information that's displayed horizontally often gets restructured to take advantage of the tall and narrow display of mobile devices. This choice seemed more reasonable from a production standpoint because we were just using HTML and CSS instead of a quirky application but it would also allow us to make the tool accessible in traditional browser windows as well as mobile platforms.
Not knowing where exactly to start here are the tools I turned to:
For inspiration: http://mediaqueri.es
A Book Apart's Responsive Web Design by Ethan Marcotte. This book was a helpful way to think through the process of building out the structure, and the tips on how to get your math right were great. Some of it did seem like overkill, specifically the math for vertical padding and margins, but overall it was a good resource to have by my side for my first responsive site.
For the most part, building a responsive site was pretty easy. It made sense. Of course when dealing with something that's new there are always a few hiccups. Here are a few things I will keep in mind while building my next responsive site:
I try to block out the part of my mind that thinks in terms of sections or divs when I'm designing so I don't end up with something that looks like it's been restricted to a bunch of boxes. The problem with designing without restrictions on a responsive site is that having a series of images floating across the screen severely limits the ease with which the site resizes. Text can flow easily from line to line, but the fixed sizes of my images meant that I had to become hyper attentive to widths, and in some cases build new images just to take care of an image that was 5px too big for the smallest dimension that I wanted it to fill. Next time I'll keep the break widths of my media queries in mind when working on the design.
Borders are not taken into account in the width of an object normally. In the case of the tabs on the Upwardly Mobile detail pages, each tab <li> was specified as 25% of the <ul>. When adding a border to the left and right sides to created the inset tab effect, it would throw off the 100% count, causing the last tab to jump down to the next line. Initially, I worked around this by using images for the borders, but I was using the CSS3 multiple images feature. This was breaking in a few browsers, so I ended up reexamining the problem and discovered the magic of the box-sizing property. So simple. So effective. I ended up applying that to a couple other elements also. Box-sizing: border-box; recalculates the dimensions of an element to include border.
Some other lessons we learned (or relearned)?
SVGs don't do well on android devices although there are some workarounds (thanks to Jeremy)
CSS3 animations (Moooo!) are a little touch and go. We did eventually get it to work, but it gave us some trouble and seemed unpredictable.
Building Upwardly Mobile as a responsive site was a much smoother process and a more effective tool for accomplishing our goals than JQM was. Creating a responsive site is more work than a traditional site, but I think the added value for mobile viewing was worth it and should probably be incorporated into more of the sites we we work on.Continue reading