diff --git a/app/assets/stylesheets/application.scss.erb b/app/assets/stylesheets/application.scss.erb
index 0c7b9976..52b0fc29 100644
--- a/app/assets/stylesheets/application.scss.erb
+++ b/app/assets/stylesheets/application.scss.erb
@@ -193,10 +193,6 @@ button.button.btn-no:hover {
display: block;
width: 830px;
}
-.requestInvite {
- display: block;
- margin: -720px auto 0;
-}
.new_session,
.new_user,
.edit_user,
@@ -672,9 +668,21 @@ label {
position: relative;
/*overflow:hidden; */
}
-.main.compressed {
- width: calc(100% - 300px);
+.compressed {
+ .upperRightUI {
+ right: 324px;
+ }
+ .upperRightMapButtons {
+ right: 434px;
+ }
+ .mapControls {
+ right: 324px;
+ }
+ .infoAndHelp {
+ right: 370px;
+ }
}
+
#infovis-canvas {
-webkit-touch-callout: none;
-webkit-user-select: none;
@@ -775,9 +783,9 @@ label {
}
.sidebarAccountIcon img {
border-radius: 16px;
+ width: 32px;
}
.sidebarAccountBox {
- display: none;
height: auto;
}
.authenticated .sidebarAccountBox {
@@ -1039,7 +1047,6 @@ label[for="user_remember_me"] {
}
.sidebarFilterBox {
- display:none;
width: 319px;
padding: 16px 0;
overflow-y: auto;
@@ -3058,14 +3065,16 @@ and it won't be important on password protected instances */
/* request */
-#wrapper .requestInvite {
+.requestInvite {
width: 700px;
- margin: 0 auto;
- padding: 0 0 60px 0;
background: #FFFFFF;
color: white;
- height: 100%;
- overflow: hidden;
+ height: calc(100% - 52px);
+ z-index: 1;
+ position: relative;
+ left: 50%;
+ margin-left: -350px;
+ margin-top: 52px;
}
.home_bg {
@@ -3148,4 +3157,4 @@ script.data-gratipay-username {
background: #FFF;
cursor: pointer;
font-family: din-regular;
-}
\ No newline at end of file
+}
diff --git a/app/assets/stylesheets/base.scss.erb b/app/assets/stylesheets/base.scss.erb
index 355f5652..f4e247f2 100644
--- a/app/assets/stylesheets/base.scss.erb
+++ b/app/assets/stylesheets/base.scss.erb
@@ -54,7 +54,6 @@
width:100%;
height:100%;
position: absolute;
- display: none;
}
.showcard .permission {
@@ -233,7 +232,7 @@
background-repeat:no-repeat;
}
}
-
+
.contributor {
bottom: 7px;
margin-left: 40px;
diff --git a/app/assets/stylesheets/clean.css.erb b/app/assets/stylesheets/clean.css.erb
index 1582404e..e1c56d33 100644
--- a/app/assets/stylesheets/clean.css.erb
+++ b/app/assets/stylesheets/clean.css.erb
@@ -30,6 +30,7 @@
height: 100%;
box-sizing: border-box;
padding-top: 92px;
+ overflow-y: auto;
}
/*.animations {
@@ -46,26 +47,9 @@
transition-timing-function: ease-in-out;
}*/
-.mapElement {
- display: none;
-}
-.mapPage .mapElement,
-.topicPage .mapElement {
- display: block;
-}
-.mapPage .mapElementHidden,
-.topicPage .mapElement.mapInfoBox,
-.topicPage .mapElement.importDialog {
- display:none;
-}
-.topicPage .starMap {
- display: none;
-}
-
/* loading */
#loading {
- display: none;
width: 28px;
height: 28px;
position: fixed;
@@ -184,10 +168,10 @@
}
.upperRightMapButtons {
- top: -42px; /* puts it just offscreen */
+ right: 134px;
}
-.mapPage .upperRightMapButtons, .topicPage .upperRightMapButtons {
- top: 0;
+.unauthenticated .upperRightMapButtons {
+ right: 115px;
}
.upperRightIcon {
@@ -197,13 +181,7 @@
background-repeat: no-repeat;
cursor: pointer;
}
-.mapPage .mapElement .importDialog {
- display: none;
- background-position: 0 0;
-}
-.mapPage.canEditMap .mapElement .importDialog {
- display: block;
-}
+
.sidebarFilterIcon {
background-position: -32px 0;
}
@@ -236,6 +214,14 @@
/* end upperRightUI */
+/* map wrapper */
+.mapWrapper {
+ position:absolute;
+ width: 100%;
+ height: 100%;
+}
+
+/* end map wrapper */
/* yield */
@@ -356,22 +342,15 @@
/* infoAndHelp */
-.mapPage .infoAndHelp, .topicPage .infoAndHelp {
- right: 70px;
-}
-.mapPage .openCheatsheet .tooltipsAbove, .topicPage .openCheatsheet .tooltipsAbove {
+.openCheatsheet .tooltipsAbove {
right: 1px;
left: auto;
}
-.unauthenticated .homePage .infoAndHelp {
- display:none;
-}
-
.infoAndHelp {
position: absolute;
bottom: 20px;
- right: 20px;
+ right: 70px;
z-index: 3;
width: auto;
font-style: italic;
@@ -392,16 +371,12 @@
}
.mapInfoIcon {
position: relative;
- top: 56px; /* puts it just offscreen */
- background-image: url(<%= asset_path('mapinfo_sprite.png') %>);
- background-repeat:no-repeat;
+ background-image: url(<%= asset_path('mapinfo_sprite.png') %>);
+ background-repeat:no-repeat;
}
.mapInfoIcon:hover {
background-position: 0 -32px;
}
-.mapPage .mapInfoIcon {
- top: 0;
-}
.starMap {
background-image: url(<%= asset_path('starmap_sprite.png') %>);
@@ -419,9 +394,6 @@
background-position: 0 0;
}
-.unauthenticated .mapPage .starMap {
- display: none;
-}
/* end infoAndHelp */
@@ -430,24 +402,17 @@
.mapControls {
position: absolute;
bottom: 24px;
- right:-32px; /* puts it just offscreen */
+ right:24px;
width:32px;
z-index: 3;
}
-.mapPage .mapControls, .topicPage .mapControls {
- right: 24px;
-}
-
-.topicPage .zoomExtents {
- display: none;
-}
.mapControl {
width:32px;
height:32px;
background-color: #424242;
- background-repeat: no-repeat;
- background-position: 0 0;
+ background-repeat: no-repeat;
+ background-position: 0 0;
cursor:pointer;
}
@@ -587,10 +552,6 @@
left: -8px;
}
-.openCheatsheet .tooltipsAbove {
- left: -4px;
-}
-
.sidebarAccountIcon .tooltipsUnder {
margin-left: -12px;
margin-top: 40px;
@@ -671,8 +632,11 @@
/* explore maps */
-#explore {
- display: none;
+#react-app {
+ position: absolute;
+ height: 100%;
+ width: 100%;
+ overflow-y: auto;
}
#exploreMaps {
@@ -691,8 +655,13 @@
display: block;
}
-.appsPage #exploreMapsHeader {
- display: block;
+.requestInviteHeader {
+ position: absolute;
+ width: 100%;
+ z-index:2;
+ background-color:#FAFAFA;
+ height: 52px;
+ box-shadow: 0px 3px 3px rgba(0,0,0,0.23), 0 3px 3px rgba(0,0,0,0.16);
}
#exploreMapsHeader {
@@ -829,7 +798,6 @@
height: 80px;
font-family: 'din-regular', helvetica, sans-serif;
font-size: 32px;
- display: none;
text-align: center;
color: #999999;
z-index: 0;
@@ -845,7 +813,6 @@
/* toast */
.toast {
- display: none;
position: fixed;
bottom: 20px;
left: 20px;
diff --git a/app/assets/stylesheets/mobile.scss.erb b/app/assets/stylesheets/mobile.scss.erb
index fc34168d..7bf57d63 100644
--- a/app/assets/stylesheets/mobile.scss.erb
+++ b/app/assets/stylesheets/mobile.scss.erb
@@ -1,7 +1,3 @@
-#mobile_header {
- display: none;
-}
-
@media only screen and (max-width : 752px) and (min-width : 504px) {
.sidebarSearch .tt-hint, .sidebarSearch .sidebarSearchField {
width: 160px !important;
@@ -51,10 +47,6 @@
display: none;
}
- #mobile_header {
- display: block;
- }
-
.homeWrapper {
width: 96%;
padding: 0 2%;
@@ -72,7 +64,7 @@
height: auto;
}
.homeVideo {
- width: 100%;
+ width: 100% !important;
height: auto;
}
.fullWidthWrapper.withPartners {
@@ -108,15 +100,23 @@
max-width: 360px;
}
- #wrapper .requestInvite {
+ .requestInviteHeader {
+ display: none;
+ }
+ .requestInvite {
width: 100%;
- padding: 0;
+ height: calc(100% - 50px);
+ z-index: 1;
+ position: relative;
+ left: 0;
+ margin-left: 0px;
+ margin-top: 50px;
}
#exploreMaps > div {
margin-top: 70px;
}
-
+
.mapper {
width: 100%;
margin: 0 0 30px 0;
@@ -217,6 +217,7 @@
width: 100%;
box-shadow: 0px 3px 3px rgba(0,0,0,0.23), 0 3px 3px rgba(0,0,0,0.16);
position: fixed;
+ z-index: 1;
}
#menu_icon {
@@ -249,7 +250,6 @@
}
#mobile_menu {
- display: none;
background: #EEE;
position: fixed;
top: 50px;
@@ -257,6 +257,7 @@
padding: 10px;
width: 200px;
box-shadow: 3px 3px 3px rgba(0,0,0,0.23), 3px 3px 3px rgba(0,0,0,0.16);
+ z-index: 2;
li {
padding: 10px;
@@ -274,16 +275,6 @@
}
}
-/*
- * the mobile menu, even if it's been opened by a user, should
- * not show up if they resize their browser back to full size
- */
-@media only screen and (max-width : 504px) {
- #mobile_menu.visible {
- display: block;
- }
-}
-
li.mobileMenuUser {
border-bottom: 1px solid #BBB;
}
diff --git a/app/assets/stylesheets/request_access.scss.erb b/app/assets/stylesheets/request_access.scss.erb
index 19ae2792..98f1a380 100644
--- a/app/assets/stylesheets/request_access.scss.erb
+++ b/app/assets/stylesheets/request_access.scss.erb
@@ -1,7 +1,6 @@
.viewOnly {
float: left;
margin-left: 16px;
- display: none;
height: 32px;
border: 1px solid #BDBDBD;
border-radius: 2px;
@@ -23,7 +22,7 @@
}
.requestNotice {
- display: none;
+ display: inline-block;
padding: 0 8px;
}
@@ -42,16 +41,6 @@
.requestNotAccepted {
background-color: #c04f4f;
}
-
- &.sendRequest .requestAccess {
- display: inline-block;
- }
- &.sentRequest .requestPending {
- display: inline-block;
- }
- &.requestDenied .requestNotAccepted {
- display: inline-block;
- }
}
.request_access {
diff --git a/app/models/message.rb b/app/models/message.rb
index 203e8adb..01cd4c34 100644
--- a/app/models/message.rb
+++ b/app/models/message.rb
@@ -7,7 +7,7 @@ class Message < ApplicationRecord
after_create :after_created
#after_create :after_created_async
-
+
def user_image
user.image.url
@@ -21,7 +21,7 @@ class Message < ApplicationRecord
def after_created
ActionCable.server.broadcast 'map_' + resource.id.to_s, type: 'messageCreated', message: as_json
end
-
+
def after_created_async
FollowService.follow(resource, user, 'commented')
NotificationService.notify_followers(resource, 'map_message', self)
diff --git a/app/views/explore/mine.html.erb b/app/views/explore/mine.html.erb
index 21f034c3..21295d4f 100644
--- a/app/views/explore/mine.html.erb
+++ b/app/views/explore/mine.html.erb
@@ -5,7 +5,7 @@
# %>
<%= render :partial => 'layouts/lightboxes' %>
<%= render :partial => 'layouts/templates' %>
<%= render :partial => 'shared/metacodeBgColors' %>
-
<%= render :partial => 'layouts/googleanalytics' if ENV["GA_TRACKING_CODE"].present? %>