projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
537d72b
)
user menu fix
author
Eden Halperin
<eden.halperin@gmail.com>
Wed, 6 Nov 2013 18:17:36 +0000
(13:17 -0500)
committer
Eden Halperin
<eden.halperin@gmail.com>
Wed, 6 Nov 2013 18:17:36 +0000
(13:17 -0500)
app/assets/javascripts/leaflet.key.js
patch
|
blob
|
history
app/assets/javascripts/leaflet.layers.js
patch
|
blob
|
history
app/assets/javascripts/leaflet.share.js
patch
|
blob
|
history
app/assets/stylesheets/common.css.scss
patch
|
blob
|
history
app/assets/stylesheets/small.css.scss
patch
|
blob
|
history
app/views/layouts/_header.html.erb
patch
|
blob
|
history
diff --git
a/app/assets/javascripts/leaflet.key.js
b/app/assets/javascripts/leaflet.key.js
index ea236a569e316b99ec87f0e86f6189a75fccfbaf..3f71932fbbcdf131f5a9bd95bbe89f7d73d83066 100644
(file)
--- a/
app/assets/javascripts/leaflet.key.js
+++ b/
app/assets/javascripts/leaflet.key.js
@@
-6,7
+6,7
@@
L.OSM.key = function (options) {
.attr('class', 'control-key');
var button = $('<a>')
.attr('class', 'control-key');
var button = $('<a>')
- .attr('class', 'control-button')
+ .attr('class', 'control-button
mobile-hide
')
.attr('href', '#')
.html('<span class="icon key"></span>')
.on('click', toggle)
.attr('href', '#')
.html('<span class="icon key"></span>')
.on('click', toggle)
diff --git
a/app/assets/javascripts/leaflet.layers.js
b/app/assets/javascripts/leaflet.layers.js
index fd493ee32c212d882b38bd6948ef07861c26cd55..ba1461b205f00125e32084c7b0485e9b3a8e683b 100644
(file)
--- a/
app/assets/javascripts/leaflet.layers.js
+++ b/
app/assets/javascripts/leaflet.layers.js
@@
-8,7
+8,7
@@
L.OSM.layers = function(options) {
.attr('class', 'control-layers');
var button = $('<a>')
.attr('class', 'control-layers');
var button = $('<a>')
- .attr('class', 'control-button')
+ .attr('class', 'control-button
mobile-hide
')
.attr('href', '#')
.attr('title', I18n.t('javascripts.map.layers.title'))
.html('<span class="icon layers"></span>')
.attr('href', '#')
.attr('title', I18n.t('javascripts.map.layers.title'))
.html('<span class="icon layers"></span>')
diff --git
a/app/assets/javascripts/leaflet.share.js
b/app/assets/javascripts/leaflet.share.js
index 6a4491c2a7e57fcbf6158603bf8779dfd8990f70..6701e0bbd4ccf89227dd6de1c2797eba7c7aba04 100644
(file)
--- a/
app/assets/javascripts/leaflet.share.js
+++ b/
app/assets/javascripts/leaflet.share.js
@@
-11,7
+11,7
@@
L.OSM.share = function (options) {
.attr('class', 'control-share');
var button = $('<a>')
.attr('class', 'control-share');
var button = $('<a>')
- .attr('class', 'control-button')
+ .attr('class', 'control-button
mobile-hide
')
.attr('href', '#')
.attr('title', I18n.t('javascripts.share.title'))
.html('<span class="icon share"></span>')
.attr('href', '#')
.attr('title', I18n.t('javascripts.share.title'))
.html('<span class="icon share"></span>')
diff --git
a/app/assets/stylesheets/common.css.scss
b/app/assets/stylesheets/common.css.scss
index ca65a1b3d56440d0cd188bc544e234bcaee8b1d2..19cb873df9dd7d6c6bc92192222b125228ee2b50 100644
(file)
--- a/
app/assets/stylesheets/common.css.scss
+++ b/
app/assets/stylesheets/common.css.scss
@@
-238,7
+238,7
@@
table {
/* Rules for the header */
#menu-icon {
/* Rules for the header */
#menu-icon {
- display: none;
+ display: none
!important
;
float: right;
background: url("/assets/menu-icon.png") no-repeat;
background-size: 30px 30px;
float: right;
background: url("/assets/menu-icon.png") no-repeat;
background-size: 30px 30px;
@@
-252,7
+252,6
@@
table {
header {
height: $headerHeight;
position: relative;
header {
height: $headerHeight;
position: relative;
- // border-bottom: $keyline;
z-index: 1001;
font-size: 13px;
z-index: 1001;
font-size: 13px;
@@
-357,14
+356,16
@@
nav.secondary {
position: absolute;
right: 0;
position: absolute;
right: 0;
- > ul a,
- .dropdown-toggle {
- display: inline-block;
- text-decoration: none;
- color: $darkgrey;
- padding: 5px;
+ > ul {
+ vertical-align: middle;
+ a, .dropdown-toggle {
+ display: inline-block;
+ text-decoration: none;
+ color: $darkgrey;
+ padding: 5px;
- &:hover { color: darken($darkgrey, 10%); }
+ &:hover { color: darken($darkgrey, 10%); }
+ }
}
> ul li.current a {
}
> ul li.current a {
@@
-381,6
+382,7
@@
nav.secondary {
> li {
border-right: $border;
> li {
border-right: $border;
+ float: left;
&:last-child {
border-right: 0;
&:last-child {
border-right: 0;
diff --git
a/app/assets/stylesheets/small.css.scss
b/app/assets/stylesheets/small.css.scss
index a92bf4ac5491aa1485520fcaf735fb886d9a8ba6..de1b44bb5d6075d2939175de8984d63695fc9d8b 100644
(file)
--- a/
app/assets/stylesheets/small.css.scss
+++ b/
app/assets/stylesheets/small.css.scss
@@
-11,7
+11,7
@@
/* Rules for the whole left sidebar, including the logo */
#menu-icon {
/* Rules for the whole left sidebar, including the logo */
#menu-icon {
- display: inline-block;
+ display: inline-block
!important
;
}
}
@@
-87,13
+87,13
@@
nav.secondary {
width: 100%;
position: fixed;
top: 58px;
width: 100%;
position: fixed;
top: 58px;
- height: 3
6
0px;
+ height: 3
7
0px;
overflow-x: hidden;
z-index: 1;
background: #fff;
p.large-text {
overflow-x: hidden;
z-index: 1;
background: #fff;
p.large-text {
- font-size: 1.
4
em;
- line-height: 1.
5
em;
+ font-size: 1.
2
em;
+ line-height: 1.
4
em;
}
&.minimized {
background: none;
}
&.minimized {
background: none;
diff --git
a/app/views/layouts/_header.html.erb
b/app/views/layouts/_header.html.erb
index 316349664344758cbcda454053a5f11eb5eb4dcd..ab60af2fa5684af7c716820f5e25c5e5439eb0c2 100644
(file)
--- a/
app/views/layouts/_header.html.erb
+++ b/
app/views/layouts/_header.html.erb
@@
-71,7
+71,7
@@
</ul>
</div>
<% else %>
</ul>
</div>
<% else %>
- <ul class="user-menu">
+ <ul class="user-menu
clearfix
">
<li><%= link_to t('layouts.log_in'), login_path(:referer => request.fullpath) %></li>
<li><%= link_to t('layouts.sign_up'), user_new_path %></li>
</ul>
<li><%= link_to t('layouts.log_in'), login_path(:referer => request.fullpath) %></li>
<li><%= link_to t('layouts.sign_up'), user_new_path %></li>
</ul>