var windowWidth = $(window).width();
if (windowWidth < compactWidth) {
- $("body").removeClass("compact").addClass("small");
+ $("body").removeClass("compact-nav").addClass("small-nav");
} else if (windowWidth < headerWidth) {
- $("body").addClass("compact").removeClass("small");
+ $("body").addClass("compact-nav").removeClass("small-nav");
} else {
- $("body").removeClass("compact").removeClass("small");
+ $("body").removeClass("compact-nav").removeClass("small-nav");
}
}
headerWidth = headerWidth + $(e).outerWidth();
});
- $("body").addClass("compact");
+ $("body").addClass("compact-nav");
$("header").children(":visible").each(function (i, e) {
compactWidth = compactWidth + $(e).outerWidth();
});
- $("body").removeClass("compact");
+ $("body").removeClass("compact-nav");
updateHeader();
margin-right: $lineheight/4;
}
-.red { color: $red; }
-
-.piwik { border: 0; }
-
[dir=rtl] { /* no-r2 */ text-align: right; }
[dir=ltr] { /* no-r2 */ text-align: left; }
a {
color: #24d;
text-decoration: none;
- -webkit-appearance: none;
outline: 0;
&:hover {
text-decoration: underline;
display: none;
}
-body.compact {
+body.compact-nav {
#compact-secondary-nav {
display: inline-block;
}
/* Rules for the account settings page */
-#accountForm .user_map {
- position: relative;
- width: 500px;
- height: 400px;
- border: 1px solid $grey;
-}
-
#accountForm .user_image {
margin-bottom: 0;
}
display: block;
color: white;
font-weight: 300;
- font-size: 34px;
+ font-size: 28px;
span {
color: $vibrant-green;
}
}
+ @include media-breakpoint-up(sm) {
+ h1 {
+ font-size: 34px;
+ }
+ }
+
.user-image {
position: absolute;
top: 0px;
display: none;
}
}
-
-.read-reports {
- background: $lightgrey;
- opacity: 0.7;
-}
/* Styles specific to a small screen, such as iPhone, Android, etc... */
-body.small {
-
- input[type="submit"],
- input[type="text"] {
- -webkit-appearance: none;
- }
-
+body.small-nav {
#menu-icon {
display: inline-block !important;
}
.leaflet-top.leaflet-right {
top: 10px !important;
}
-
- /* 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;
- }
-
- &.site-about #content .attr h1 {
- font-size: 28px;
- }
-
}
@media (max-width: 767.98px) {
}
}
}
+
+@media (max-width: 575.98px) {
+ /* 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;
+ }
+}
<h3><%= t ".reports_of_this_issue" %></h3>
<% if @read_reports.present? %>
- <div class="read-reports">
+ <div class="bg-light text-muted">
<h4><%= t ".read_reports" %></h4>
<%= render "reports", :reports => @read_reports %>
</div>
<% end %>
<% if @unread_reports.any? %>
- <div class="unread-reports">
+ <div>
<h4><%= t ".new_reports" %></h4>
<%= render "reports", :reports => @unread_reports %>
</div>
diary_entry:
posted_by_html: "Posted by %{link_user} on %{created} in %{language_link}"
comment_link: Comment on this entry
- reply_link: Reply to this entry
+ reply_link: Send a message to the author
comment_count:
zero: No comments
one: "%{count} comment"
subject: "[OpenStreetMap] %{user} commented on a diary entry"
hi: "Hi %{to_user},"
header: "%{from_user} has commented on the OpenStreetMap diary entry with the subject %{subject}:"
- footer: "You can also read the comment at %{readurl} and you can comment at %{commenturl} or reply at %{replyurl}"
+ footer: "You can also read the comment at %{readurl} and you can comment at %{commenturl} or send a message to the author at %{replyurl}"
message_notification:
subject_header: "[OpenStreetMap] %{subject}"
hi: "Hi %{to_user},"
header: "%{from_user} has sent you a message through OpenStreetMap with the subject %{subject}:"
- footer_html: "You can also read the message at %{readurl} and you can reply at %{replyurl}"
+ footer_html: "You can also read the message at %{readurl} and you can send a message to the author at %{replyurl}"
friendship_notification:
hi: "Hi %{to_user},"
subject: "[OpenStreetMap] %{user} added you as a friend"
sign_in_as(create(:user))
visit diary_entries_path
- click_on "Reply to this entry"
+ click_on "Send a message to the author"
assert page.has_content? "Send a new message"
assert_equal "Re: #{@diary_entry.title}", page.find_field("Subject").value