From bfdf706f1534a7fd10be18b19057dc028acb0801 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Sun, 9 Feb 2014 10:05:32 -0500 Subject: [PATCH] cheatsheet and menu and upper right menu --- app/assets/images/MMCCicon_filter2.png | Bin 0 -> 5950 bytes app/assets/javascripts/application.js | 3 +- app/assets/stylesheets/application.css | 173 +++++++++++++------------ app/views/layouts/_cheatsheet.html.erb | 40 ++++++ app/views/layouts/_lightboxes.html.erb | 23 +--- app/views/layouts/application.html.erb | 11 +- app/views/maps/show.html.erb | 24 ++-- app/views/topics/show.html.erb | 11 +- 8 files changed, 150 insertions(+), 135 deletions(-) create mode 100644 app/assets/images/MMCCicon_filter2.png create mode 100644 app/views/layouts/_cheatsheet.html.erb diff --git a/app/assets/images/MMCCicon_filter2.png b/app/assets/images/MMCCicon_filter2.png new file mode 100644 index 0000000000000000000000000000000000000000..5b50ffdd3f4edec3fb0415ff941faee1201d024b GIT binary patch literal 5950 zcma)A^;gu-_kJxPAdPe`v4E1&wRA42G)NojG%6?wmRIKKGvInUBx(G)RdUi2wi~g=wl9U}xL^86iG)T>j)Q1pqj| zoK;kw!BkY(o_Tw~o!uM(;Biu1%7`|#9ep3BHje(Wk}W*wL%xb;kq)h+>RJV6s_wOU zXv(ASySptd$+flPgS#jWN^2STFF9Uv)+=0Sz-CH%R|h}Nmiu$n@O0!}pi}Q0~Jm$z!4?k};q3m!$2b$6tL%=dGt7df}W8!3Iq74IJZ zRcqA@RumUty+<{w3_WqqQ-`?!#J4v94ezM^+23H3I~}BFE!g+k-V&@03Z{jRY56O7 zF&%D*?fhFpeLrR>msFqC8L{ZyW;rvH%9pNYPf+1}&k8ACrJ6i*<>y@G zG!vrTl*L9y#nVT83oT6Ymi_9jG6|(UDYi77-S9UN{<*{Y<&(6b|2^F)?c4vJZ`zL9 zj?N$=Ay*V?d^%>2*;H8LIK*m1Bzrl&3AZ~H#H%8>jw%g@n=^fw)cV)WIY0CYj~hHs zTqQp;4Kxnn9rCnPZq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qs$TQ@E(yFZ^?~Lr{9*Js+4w&euc<)UoKw2kWD!zk?x^9he(Nd=7 zY?bjz{;JKU6SB6|((-0N+}A^Q;4y^X9@+}ecTw@gC%=)t;-;HANL;KPVs_KTc*Rs@p^G-#BE~~7Yohcjq>Qb&Rwn@k&bO+|b=!G~{#rtDOrHdo0MN-OB0@2*aI91`Rtrhdd;RT@78?Z!vG zINh4j0P<4qwAHZjcW-5Xv^UeR|Jr$5D!|iHvh654r2JJ`0}k+N=GzfP4qc~T^M|w_? z_#M?)vE~Ns2n;z%ddy{6nfN`tbBWSf!S(z%)6n2{ye=>RuwkWe^F3(t%@4R~-9jvb zs322k#n%vYYH6^49AvW0+=|ThlULcBCR8N3f~BL8b>JAefKd4v-V!E&Fc3VeLyd53LA zq%gRnqYI~cYykL_@`PN7#?C$M!^Ii41F$N1EjNnus3NgSc div.FAQ { @@ -1917,20 +1957,14 @@ background-size: 22px 20px; left:-1px; height:124px; z-index:12; - width:151px; + width:121px; color: white; white-space: nowrap; text-align: center; font-size: 16px; overflow: hidden; - padding: 0; + padding: 0 0 0 30px; margin: 0; - /*border-radius: 6px; - -webkit-border-radius: 6px; - -moz-border-radius: 6px; - box-shadow: 0 2px rgba(0, 0, 0, 0.05), 0 -2px rgba(0, 0, 0, 0.05) inset; - -webkit-box-shadow: 0 2px rgba(0, 0, 0, 0.05), 0 -2px rgba(0, 0, 0, 0.05) inset; - -moz-box-shadow: 0 2px rgba(0, 0, 0, 0.05), 0 -2px rgba(0, 0, 0, 0.05) inset;*/ background: #0F1519;/*url('black_bg.png'); */ border-left:1px solid #000; border-right:1px solid #000; @@ -1944,53 +1978,22 @@ background-size: 22px 20px; display:block; padding:0; text-align:center; -} - -li.beta { -border-top: 1px solid black; -border-bottom: 1px solid black; -position: relative; -height: 30px; -} -.inBeta { - background: rgba(0,0,0,0.6); -display: inline-block; -color: white; -height: 30px; -padding: 0 5px; -font-family: 'LatoLight'; -font-size: 30px; -position: absolute; -top: 0; -left: 0; -line-height: 30px; -} - -li.beta button { -position: absolute; -top: 0; -right: 0; -width: 84px; -border-radius: 0; -font-size: 12px; -margin: 0; -cursor:pointer; -} -li.beta button:hover { - background: #6FA9AA; -} - -li.meta, li.tutorial, li.exploreMaps { + font-family:'vinyl'; + font-style:italic; height:30px; - line-height:30px; - font-size:20px; + line-height:34px; + font-size:17px; + cursor:pointer; +} +.footer ul li:hover { + background:black; } li.meta a, li.tutorial a, li.exploreMaps a { display:block; } -li.tutorial, li.exploreMaps { +li.meta, li.tutorial, li.exploreMaps { border-top:1px solid white; } diff --git a/app/views/layouts/_cheatsheet.html.erb b/app/views/layouts/_cheatsheet.html.erb new file mode 100644 index 00000000..b7e1f18e --- /dev/null +++ b/app/views/layouts/_cheatsheet.html.erb @@ -0,0 +1,40 @@ +<%# + # @file + # The inner HTML of the cheatsheet + #%> + +

Quick Reference Guide

+ +
+

Topics

+
Add New Topic: Double-click on canvas
+
Select Metacode: Scroll on spinner, or Tab / Shift+Tab
+
Creating New Topic: Hit Enter after typing topic name
+
Get Existing Topic: Click on (or use Up/Down->Enter) to pick from auto-suggestions
+
Open Topic Card: Double-click on topic icon
+
Edit Topic Type: Click on metacode in open topic card
+
Open Topic View: Click on 'leave page' icon in topic card (opens in new tab)
+

Navigation

+
Move (Pan) Across Canvas: Click on canvas and drag
+
Zoom In/Out Scroll mouse on canvas
+
Back to Center: Refresh page
+
+ + +
+

Synapses

+
Create Synapse: Right-click/Alt+Click on topic and drag to other topic, enter synapse name or choose suggested
+
Create Topic with Synapse: Right-click/Alt+Click on topic and drag to empty part of canvas
+
View Synapse Description: Hover over synapse
+
Open Synapse Card: Double-click synapse
+
Edit Synapse Description: Click synapse description in synapse card
+
Change Synapse Direction: Check/Uncheck directional arrow boxes
+

Selection

+
Select Topic or Synapse: Click on one
+
Select Multiple: Shift+Click on canvas and drag around topics, or use Shift+Click to add/remove individually
+
Move Multiple: Select desired, Click and drag on a selected topic
+
Hide/Remove/Delete: Right-click/Alt+Click on selection
+
Deselect All: Hit Esc, or click any topic
+
+ +
\ No newline at end of file diff --git a/app/views/layouts/_lightboxes.html.erb b/app/views/layouts/_lightboxes.html.erb index d916d4b7..bcb8c549 100644 --- a/app/views/layouts/_lightboxes.html.erb +++ b/app/views/layouts/_lightboxes.html.erb @@ -43,32 +43,13 @@
-

Quick Reference Guide

- -
- -
-
- -
-
- -
-
- -
-
- -
-
- -
+ <%= render :partial => 'layouts/cheatsheet' %>
<% if authenticated? %>

Send Invites

-

You can invite others to the Metamaps platform.
Just send them the link to

+

You can invite others to the Metamaps platform. Send them this link

http://metamaps.cc/users/sign_up

and give them the access code shown below.

<% mapper = current_user %> diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 30116436..65cad0eb 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -65,13 +65,12 @@