I set out to do a quick and dirty typography overhaul to make things more consistent and a bit cleaner, but I kept running into things I didn't like, so this lead me down something of a rabbit hole of design tweaks to the OSM site. Goals here are to have better content hierarchy, better vertical rhythm, more consistent UI, cleaner markup with less tables, all while keeping the basics pretty much intact. There are a lot of things I didn't touch even though they need to be updated (lots of tables where stuff shouldn't be tables, mostly). Basic overview of changes: I added a new persistent header that helps segment pages. It's now a lot easier to know what you're looking at. The header has a page title, a description, plus a submenu of actions. There is now a pattern of 20px/10px margins and padding for more rhythm and breathing room throughout the site. I know there are other problems here or things I've missed - would love another set of eyes to look over this! I am still getting comfortable working on the site - it's my first time ever digging into a ruby or rails so I'm not familiar with the templating language yet.
278 lines
4 KiB
SCSS
278 lines
4 KiB
SCSS
/* Styles specific to a small screen, such as iPhone, Android, etc... */
|
|
|
|
/* Default rules for the body of every page */
|
|
|
|
body {
|
|
font-size: 12px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
h2, h3, h4 {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.wrapper {
|
|
margin: 0;
|
|
}
|
|
|
|
.site-edit #content,
|
|
.site-index #content,
|
|
.site-export #content {
|
|
left: 0;
|
|
}
|
|
|
|
.site-edit #top-bar,
|
|
.site-index #top-bar,
|
|
.site-export #top-bar {
|
|
position: relative;
|
|
}
|
|
|
|
.column-1 {
|
|
width: 100%;
|
|
}
|
|
|
|
/* Rules for the whole left sidebar, including the logo */
|
|
|
|
#left {
|
|
display: none;
|
|
}
|
|
|
|
/* Rules for tabbed navigation bar */
|
|
|
|
#top-bar {
|
|
left: 0;
|
|
margin: 0px;
|
|
height: 24px;
|
|
position: static;
|
|
}
|
|
|
|
#tabnav {
|
|
height: 19px;
|
|
margin: 0px;
|
|
padding-top: 5px;
|
|
margin-top: 26px;
|
|
font-size: 10px;
|
|
line-height: 10px;
|
|
}
|
|
|
|
#tabnav a, #tabnav a:link, #tabnav a:visited {
|
|
font-size: 10px;
|
|
line-height: 10px;
|
|
padding: 5px;
|
|
margin-right: 1px;
|
|
}
|
|
|
|
.menuicon { line-height: 10px;}
|
|
|
|
/* Rules for the site name - shown when left sidebar is hidden */
|
|
|
|
#small-title {
|
|
font-size: 12px;
|
|
line-height: 14px;
|
|
height: 16px;
|
|
display: block;
|
|
position: absolute;
|
|
left: 5px;
|
|
top: 5px;
|
|
padding: 2px;
|
|
width: 110px;
|
|
background-color: #fff;
|
|
z-index: 100;
|
|
}
|
|
|
|
#small-title img {
|
|
position: absolute;
|
|
}
|
|
|
|
#small-title h1 {
|
|
position: absolute;
|
|
font-size: 12px;
|
|
line-height: 18px;
|
|
margin: 0;
|
|
left: 22px;
|
|
}
|
|
|
|
/* Rules for greeting bar in the top right corner */
|
|
|
|
#greeting {
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
background: none;
|
|
}
|
|
|
|
#browse_map ul.secondary-actions {
|
|
float: right;
|
|
}
|
|
|
|
#map {
|
|
border: 0;
|
|
}
|
|
|
|
.content_map {
|
|
width: 100%;
|
|
border: none;
|
|
float: none;
|
|
height: 200px;
|
|
max-height: none;
|
|
min-height: auto;
|
|
}
|
|
|
|
.content_map #small_map {
|
|
height: 300px;
|
|
border: 1px solid #ccc;
|
|
}
|
|
|
|
.leaflet-control-pan, .leaflet-control-zoomslider {
|
|
display: none;
|
|
}
|
|
|
|
.site-index .leaflet-top,
|
|
.site-export .leaflet-top {
|
|
top: 47px !important;
|
|
}
|
|
|
|
/* Rules for the main content area */
|
|
|
|
#content {
|
|
margin-left: 0px;
|
|
margin-right: 0px;
|
|
border-left: 0px;
|
|
border-right: 0px;
|
|
}
|
|
|
|
.site-export #content,
|
|
.site-edit #content,
|
|
.site-index #content {
|
|
margin-top: 21px;
|
|
}
|
|
|
|
/* Rules for search sidebar when shown */
|
|
|
|
#sidebar {
|
|
border: 0px;
|
|
margin: 0px;
|
|
width: 50%;
|
|
border-right: 1px solid #ccccdd;
|
|
}
|
|
|
|
.sidebar_title, #sidebar_content {
|
|
font-size: 10px !important;
|
|
}
|
|
|
|
p.search_results_entry {
|
|
padding: 2px 0px;
|
|
}
|
|
|
|
/* Rules for the signup form */
|
|
|
|
#signupForm input[type="text"], #signupForm input[type="password"] {
|
|
width: 100%;
|
|
}
|
|
|
|
#signupForm input#user_email {
|
|
max-width: 30em;
|
|
}
|
|
|
|
#signupForm input#user_email_confirmation {
|
|
max-width: 30em;
|
|
}
|
|
|
|
#signupForm input#user_display_name {
|
|
max-width: 20em;
|
|
}
|
|
|
|
#signupForm input#user_pass_crypt {
|
|
max-width: 20em;
|
|
}
|
|
|
|
#signupForm input#user_pass_crypt_confirmation {
|
|
max-width: 20em;
|
|
}
|
|
|
|
/* Rules for the login form */
|
|
|
|
#login_login input#user_email {
|
|
width: 100%;
|
|
max-width: 18em;
|
|
}
|
|
|
|
#login_login input#user_password {
|
|
width: 100%;
|
|
max-width: 18em;
|
|
}
|
|
|
|
#login_login input#openid_url {
|
|
width: 100%;
|
|
max-width: 18em;
|
|
}
|
|
|
|
#login_openid_buttons td {
|
|
padding: 2px;
|
|
}
|
|
|
|
/* Rules for the user view */
|
|
|
|
.user_map {
|
|
width: 100% !important;
|
|
height: 300px !important;
|
|
}
|
|
|
|
#userinformation .deemphasize {
|
|
position: relative;
|
|
right: auto; left: auto;
|
|
margin-top: 10px;
|
|
top: auto;
|
|
}
|
|
|
|
/* Rules for the user settings page */
|
|
|
|
#user_new_email {
|
|
width: 60% !important;
|
|
}
|
|
|
|
#user_description, #user_preferred_editor {
|
|
width: 90% !important;
|
|
}
|
|
|
|
.minorNote {
|
|
display: block;
|
|
}
|
|
|
|
/* Rules for the browse pages */
|
|
|
|
.browse-section.common div{
|
|
clear: both;
|
|
}
|
|
|
|
#changeset_list_map {
|
|
position: relative;
|
|
width: 100%;
|
|
right: 0;
|
|
left: 0;
|
|
top: 0px;
|
|
margin-bottom: 20px;
|
|
float: none;
|
|
height: 300px !important;
|
|
max-height: auto;
|
|
min-height: auto;
|
|
}
|
|
|
|
/* Rules for the diary entries pages */
|
|
|
|
#diary_entry_title, #diary_entry_body, #diary_entry_language_code, #diary_comment_body {
|
|
width: 100% !important;
|
|
}
|
|
|
|
#usemap {
|
|
display: block;
|
|
}
|
|
|
|
/* Rules for the messaging pages */
|
|
|
|
#message_title, #message_body {
|
|
width: 100% !important;
|
|
}
|