Added sharing links

This commit is contained in:
benweet 2013-05-04 01:57:56 +01:00
parent d98d872e98
commit 2940c786fa
6 changed files with 50 additions and 19 deletions

View File

@ -1 +1 @@
CACHE MANIFEST # v19 CACHE: index.html viewer.html css/main-min.css js/main-min.js js/require.js img/ajax-loader.gif img/glyphicons-halflings.png img/glyphicons-halflings-white.png img/icons.png img/stackedit-32.ico img/stackedit-promo.png NETWORK: *
CACHE MANIFEST # v21 CACHE: index.html viewer.html css/main-min.css js/main-min.js js/require.js img/ajax-loader.gif img/glyphicons-halflings.png img/glyphicons-halflings-white.png img/icons.png img/stackedit-32.ico img/stackedit-promo.png NETWORK: *

43
css/main-min.css vendored
View File

@ -5407,6 +5407,13 @@ textarea,
color: #333333;
background-color: #eee;
}
.nav .dropdown-toggle .caret {
border-top-color: #000;
border-bottom-color: #000;
}
.navbar .nav.hide {
display: none;
}
.navbar-inner .btn.disabled,
.navbar-inner .btn[disabled] {
color: #333333;
@ -5426,9 +5433,13 @@ textarea,
.btn-primary {
background-color: #777;
}
input[disabled], select[disabled], textarea[disabled], input[readonly], select[readonly], textarea[readonly], .input-append .add-on {
input[disabled], select[disabled], textarea[disabled], .input-prepend .add-on {
background-color: #f5f5f5;
}
input[readonly], select[readonly], textarea[readonly] {
background-color: transparent;
cursor: text;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
@ -5518,6 +5529,34 @@ hr {
font-size: 0.8em;
font-weight: bold;
}
.dropdown-menu .divider.with-text {
height: auto;
margin-bottom: 2px;
background-color: transparent;
border-top: 1px solid #e5e5e5;
color: #ccc;
font-variant: small-caps;
font-weight: bold;
padding-left: 20px;
cursor: default;
}
div.dropdown-menu {
padding: 5px 20px;
white-space: normal;
}
div.dropdown-menu p,
div.dropdown-menu blockquote {
margin: 10px 0;
}
div.dropdown-menu i {
margin-right: 0;
}
#link-container .link-list {
margin-top: 10px;
}
.icon-link {
background-position: -72px -168px;
}
.icon-code {
width: 15px;
background-position: -384px -168px;
@ -5690,7 +5729,7 @@ blockquote p {
position: fixed;
}
.viewer .navbar-inner {
background-color:rgba(200,200,200,0.5) !important;
background-color:rgba(215,215,215,0.75) !important;
}
.viewer #wmd-preview {
max-width: 1024px;

View File

@ -258,12 +258,6 @@ div.dropdown-menu i {
margin-right: 0;
}
.internal-link {
text-decoration: underline;
font-weight: 600;
cursor: pointer;
}
#link-container .link-list {
margin-top: 10px;
}
@ -481,7 +475,7 @@ blockquote p {
}
.viewer .navbar-inner {
background-color:rgba(200,200,200,0.5) !important;
background-color:rgba(215,215,215,0.75) !important;
}
.viewer #wmd-preview {

View File

@ -44,9 +44,9 @@
</button>
<div id="link-container" class="dropdown-menu">
<div class="link-list"></div>
<p class="no-link">To share this document you need first to <span
class="internal-link action-publish-gist">publish it as a
Gist</span> in Markdown format.
<p class="no-link">To share this document you need first to <a href="#"
class="action-publish-gist">publish it as a
Gist</a> in Markdown format.
</p>
</div>
</li>

2
js/main-min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
// Setup an empty localStorage or upgrade an existing one
function setupLocalStorage() {
// Setup an empty localStorage or upgrade an existing one
define( [ "underscore" ], function() {
// Create the file system if not exist
if (localStorage["file.list"] === undefined) {
@ -128,6 +128,4 @@ function setupLocalStorage() {
}
localStorage["version"] = version;
}
// Setup the localStorage when starting
setupLocalStorage();
});