This repository has been archived by the owner on Dec 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
502 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module MediumEditorRails | ||
module Rails | ||
VERSION = '0.9.0' | ||
MEDIUM_EDITOR_VERSION = '1.8.5' | ||
VERSION = '0.9.1' | ||
MEDIUM_EDITOR_VERSION = '1.8.6' | ||
end | ||
end |
174 changes: 173 additions & 1 deletion
174
vendor/assets/stylesheets/medium-editor/medium-editor.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,173 @@ | ||
.clearfix:after{display:block;visibility:hidden;clear:both;height:0;content:" ";font-size:0;}@-webkit-keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);opacity:0;}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);opacity:0.7;}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);opacity:1;}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);opacity:1;}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);opacity:1;}}@keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);opacity:0;}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);opacity:0.7;}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);opacity:1;}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);opacity:1;}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);opacity:1;}}.medium-toolbar-arrow-under:after,.medium-toolbar-arrow-over:before{position:absolute;left:50%;display:block;margin-left:-8px;width:0;height:0;border-style:solid;content:"";}.medium-toolbar-arrow-under:after{border-width:8px 8px 0 8px;}.medium-toolbar-arrow-over:before{top:-8px;border-width:0 8px 8px 8px;}.medium-editor-toolbar,.medium-editor-anchor-preview{position:absolute;top:0;left:0;z-index:2000;visibility:hidden;font-size:16px;font-family:HelveticaNeue,Helvetica,Arial,sans-serif;}.medium-editor-toolbar ul,.medium-editor-anchor-preview ul{margin:0;padding:0;}.medium-editor-toolbar li,.medium-editor-anchor-preview li{float:left;margin:0;padding:0;list-style:none;}.medium-editor-toolbar li button,.medium-editor-anchor-preview li button{display:block;margin:0;padding:15px;cursor:pointer;font-size:14px;line-height:1.33;text-decoration:none;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}.medium-editor-toolbar li .medium-editor-action-underline,.medium-editor-anchor-preview li .medium-editor-action-underline{text-decoration:underline;}.medium-editor-toolbar li .medium-editor-action-pre,.medium-editor-anchor-preview li .medium-editor-action-pre{padding:15px 0;font-weight:100;font-size:12px;font-family:'Menlo',monospace;}.medium-editor-anchor-preview i{display:inline-block;margin:5px 5px 5px 10px;text-decoration:underline;font-style:normal;cursor:pointer;}.medium-editor-toolbar-active,.medium-editor-anchor-preview-active{visibility:visible;-webkit-animation:pop-upwards 160ms forwards linear;-ms-animation:pop-upwards 160ms forwards linear;animation:pop-upwards 160ms forwards linear;-webkit-transition:top 0.075s ease-out,left 0.075s ease-out;transition:top 0.075s ease-out,left 0.075s ease-out;}.medium-editor-action-bold{font-weight:bolder;}.medium-editor-action-italic{font-style:italic;}.medium-editor-toolbar-form-anchor{display:none;}.medium-editor-toolbar-form-anchor input,.medium-editor-toolbar-form-anchor a{font-family:HelveticaNeue,Helvetica,Arial,sans-serif;}.medium-editor-toolbar-form-anchor input{margin:0;padding:6px;width:316px;border:none;font-size:14px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;}.medium-editor-toolbar-form-anchor input:focus{outline:0;border:none;-webkit-box-shadow:none;box-shadow:none;-webkit-appearance:none;-moz-appearance:none;}.medium-editor-toolbar-form-anchor a{display:inline-block;margin:0 10px;text-decoration:none;font-weight:bolder;font-size:24px;}.medium-editor-placeholder{position:relative;}.medium-editor-placeholder:after{position:absolute;top:0;left:0;content:attr(data-placeholder);font-style:italic;} | ||
.clearfix:after { | ||
display: block; | ||
visibility: hidden; | ||
clear: both; | ||
height: 0; | ||
content: " "; | ||
font-size: 0; } | ||
|
||
@-webkit-keyframes pop-upwards { | ||
0% { | ||
-webkit-transform: matrix(0.97, 0, 0, 1, 0, 12); | ||
transform: matrix(0.97, 0, 0, 1, 0, 12); | ||
opacity: 0; } | ||
|
||
20% { | ||
-webkit-transform: matrix(0.99, 0, 0, 1, 0, 2); | ||
transform: matrix(0.99, 0, 0, 1, 0, 2); | ||
opacity: 0.7; } | ||
|
||
40% { | ||
-webkit-transform: matrix(1, 0, 0, 1, 0, -1); | ||
transform: matrix(1, 0, 0, 1, 0, -1); | ||
opacity: 1; } | ||
|
||
70% { | ||
-webkit-transform: matrix(1, 0, 0, 1, 0, 0); | ||
transform: matrix(1, 0, 0, 1, 0, 0); | ||
opacity: 1; } | ||
|
||
100% { | ||
-webkit-transform: matrix(1, 0, 0, 1, 0, 0); | ||
transform: matrix(1, 0, 0, 1, 0, 0); | ||
opacity: 1; } } | ||
|
||
@keyframes pop-upwards { | ||
0% { | ||
-webkit-transform: matrix(0.97, 0, 0, 1, 0, 12); | ||
-ms-transform: matrix(0.97, 0, 0, 1, 0, 12); | ||
transform: matrix(0.97, 0, 0, 1, 0, 12); | ||
opacity: 0; } | ||
|
||
20% { | ||
-webkit-transform: matrix(0.99, 0, 0, 1, 0, 2); | ||
-ms-transform: matrix(0.99, 0, 0, 1, 0, 2); | ||
transform: matrix(0.99, 0, 0, 1, 0, 2); | ||
opacity: 0.7; } | ||
|
||
40% { | ||
-webkit-transform: matrix(1, 0, 0, 1, 0, -1); | ||
-ms-transform: matrix(1, 0, 0, 1, 0, -1); | ||
transform: matrix(1, 0, 0, 1, 0, -1); | ||
opacity: 1; } | ||
|
||
70% { | ||
-webkit-transform: matrix(1, 0, 0, 1, 0, 0); | ||
-ms-transform: matrix(1, 0, 0, 1, 0, 0); | ||
transform: matrix(1, 0, 0, 1, 0, 0); | ||
opacity: 1; } | ||
|
||
100% { | ||
-webkit-transform: matrix(1, 0, 0, 1, 0, 0); | ||
-ms-transform: matrix(1, 0, 0, 1, 0, 0); | ||
transform: matrix(1, 0, 0, 1, 0, 0); | ||
opacity: 1; } } | ||
|
||
.medium-toolbar-arrow-under:after, .medium-toolbar-arrow-over:before { | ||
position: absolute; | ||
left: 50%; | ||
display: block; | ||
margin-left: -8px; | ||
width: 0; | ||
height: 0; | ||
border-style: solid; | ||
content: ""; } | ||
|
||
.medium-toolbar-arrow-under:after { | ||
border-width: 8px 8px 0 8px; } | ||
|
||
.medium-toolbar-arrow-over:before { | ||
top: -8px; | ||
border-width: 0 8px 8px 8px; } | ||
|
||
.medium-editor-toolbar, .medium-editor-anchor-preview { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
z-index: 2000; | ||
visibility: hidden; | ||
font-size: 16px; | ||
font-family: HelveticaNeue, Helvetica, Arial, sans-serif; } | ||
.medium-editor-toolbar ul, .medium-editor-anchor-preview ul { | ||
margin: 0; | ||
padding: 0; } | ||
.medium-editor-toolbar li, .medium-editor-anchor-preview li { | ||
float: left; | ||
margin: 0; | ||
padding: 0; | ||
list-style: none; } | ||
.medium-editor-toolbar li button, .medium-editor-anchor-preview li button { | ||
display: block; | ||
margin: 0; | ||
padding: 15px; | ||
cursor: pointer; | ||
font-size: 14px; | ||
line-height: 1.33; | ||
text-decoration: none; | ||
-webkit-box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
box-sizing: border-box; } | ||
.medium-editor-toolbar li .medium-editor-action-underline, .medium-editor-anchor-preview li .medium-editor-action-underline { | ||
text-decoration: underline; } | ||
.medium-editor-toolbar li .medium-editor-action-pre, .medium-editor-anchor-preview li .medium-editor-action-pre { | ||
padding: 15px 0; | ||
font-weight: 100; | ||
font-size: 12px; | ||
font-family: 'Menlo', monospace; } | ||
|
||
.medium-editor-anchor-preview i { | ||
display: inline-block; | ||
margin: 5px 5px 5px 10px; | ||
text-decoration: underline; | ||
font-style: normal; | ||
cursor: pointer; } | ||
|
||
.medium-editor-toolbar-active, .medium-editor-anchor-preview-active { | ||
visibility: visible; | ||
-webkit-animation: pop-upwards 160ms forwards linear; | ||
-ms-animation: pop-upwards 160ms forwards linear; | ||
animation: pop-upwards 160ms forwards linear; | ||
-webkit-transition: top 0.075s ease-out, left 0.075s ease-out; | ||
transition: top 0.075s ease-out, left 0.075s ease-out; } | ||
|
||
.medium-editor-action-bold { | ||
font-weight: bolder; } | ||
|
||
.medium-editor-action-italic { | ||
font-style: italic; } | ||
|
||
.medium-editor-toolbar-form-anchor { | ||
display: none; } | ||
.medium-editor-toolbar-form-anchor input, .medium-editor-toolbar-form-anchor a { | ||
font-family: HelveticaNeue, Helvetica, Arial, sans-serif; } | ||
.medium-editor-toolbar-form-anchor input { | ||
margin: 0; | ||
padding: 6px; | ||
width: 316px; | ||
border: none; | ||
font-size: 14px; | ||
-webkit-box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
box-sizing: border-box; } | ||
.medium-editor-toolbar-form-anchor input:focus { | ||
outline: 0; | ||
border: none; | ||
-webkit-box-shadow: none; | ||
box-shadow: none; | ||
-webkit-appearance: none; | ||
-moz-appearance: none; } | ||
.medium-editor-toolbar-form-anchor a { | ||
display: inline-block; | ||
margin: 0 10px; | ||
text-decoration: none; | ||
font-weight: bolder; | ||
font-size: 24px; } | ||
|
||
.medium-editor-placeholder { | ||
position: relative; } | ||
.medium-editor-placeholder:after { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
content: attr(data-placeholder); | ||
font-style: italic; } |
72 changes: 71 additions & 1 deletion
72
vendor/assets/stylesheets/medium-editor/themes/bootstrap.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,71 @@ | ||
.clearfix:after{display:block;visibility:hidden;clear:both;height:0;content:" ";font-size:0;}@-webkit-keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);opacity:0;}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);opacity:0.7;}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);opacity:1;}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);opacity:1;}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);opacity:1;}}@keyframes pop-upwards{0%{-webkit-transform:matrix(0.97, 0, 0, 1, 0, 12);-ms-transform:matrix(0.97, 0, 0, 1, 0, 12);transform:matrix(0.97, 0, 0, 1, 0, 12);opacity:0;}20%{-webkit-transform:matrix(0.99, 0, 0, 1, 0, 2);-ms-transform:matrix(0.99, 0, 0, 1, 0, 2);transform:matrix(0.99, 0, 0, 1, 0, 2);opacity:0.7;}40%{-webkit-transform:matrix(1, 0, 0, 1, 0, -1);-ms-transform:matrix(1, 0, 0, 1, 0, -1);transform:matrix(1, 0, 0, 1, 0, -1);opacity:1;}70%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);opacity:1;}100%{-webkit-transform:matrix(1, 0, 0, 1, 0, 0);-ms-transform:matrix(1, 0, 0, 1, 0, 0);transform:matrix(1, 0, 0, 1, 0, 0);opacity:1;}}.medium-toolbar-arrow-under:after{top:60px;border-color:#428bca transparent transparent transparent;}.medium-toolbar-arrow-over:before{border-color:transparent transparent #428bca transparent;}.medium-editor-toolbar{border:1px solid #357ebd;background-color:#428bca;border-radius:4px;-webkit-transition:top 0.075s ease-out,left 0.075s ease-out;transition:top 0.075s ease-out,left 0.075s ease-out;}.medium-editor-toolbar li button{min-width:60px;height:60px;border:none;border-right:1px solid #357ebd;background-color:transparent;color:#fff;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:background-color 0.2s ease-in,color 0.2s ease-in;transition:background-color 0.2s ease-in,color 0.2s ease-in;}.medium-editor-toolbar li button:hover{background-color:#3276b1;color:#fff;}.medium-editor-toolbar li .medium-editor-button-first{border-top-left-radius:4px;border-bottom-left-radius:4px;}.medium-editor-toolbar li .medium-editor-button-last{border-right:none;border-top-right-radius:4px;border-bottom-right-radius:4px;}.medium-editor-toolbar li .medium-editor-button-active{background-color:#3276b1;color:#fff;}.medium-editor-toolbar-form-anchor{background:#428bca;color:#fff;border-radius:4px;}.medium-editor-toolbar-form-anchor input{height:60px;background:#428bca;color:#fff;}.medium-editor-toolbar-form-anchor input::-webkit-input-placeholder{color:#fff;color:rgba(255, 255, 255, 0.8);}.medium-editor-toolbar-form-anchor input:-moz-placeholder{color:#fff;color:rgba(255, 255, 255, 0.8);}.medium-editor-toolbar-form-anchor input::-moz-placeholder{color:#fff;color:rgba(255, 255, 255, 0.8);}.medium-editor-toolbar-form-anchor input:-ms-input-placeholder{color:#fff;color:rgba(255, 255, 255, 0.8);}.medium-editor-toolbar-form-anchor a{color:#fff;}.medium-editor-toolbar-anchor-preview{background:#428bca;color:#fff;border-radius:4px;}.medium-editor-placeholder:after{color:#357ebd;} | ||
.medium-toolbar-arrow-under:after { | ||
top: 60px; | ||
border-color: #428bca transparent transparent transparent; } | ||
|
||
.medium-toolbar-arrow-over:before { | ||
border-color: transparent transparent #428bca transparent; } | ||
|
||
.medium-editor-toolbar { | ||
border: 1px solid #357ebd; | ||
background-color: #428bca; | ||
border-radius: 4px; | ||
-webkit-transition: top 0.075s ease-out, left 0.075s ease-out; | ||
transition: top 0.075s ease-out, left 0.075s ease-out; } | ||
.medium-editor-toolbar li button { | ||
min-width: 60px; | ||
height: 60px; | ||
border: none; | ||
border-right: 1px solid #357ebd; | ||
background-color: transparent; | ||
color: #fff; | ||
-webkit-box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
box-sizing: border-box; | ||
-webkit-transition: background-color 0.2s ease-in, color 0.2s ease-in; | ||
transition: background-color 0.2s ease-in, color 0.2s ease-in; } | ||
.medium-editor-toolbar li button:hover { | ||
background-color: #3276b1; | ||
color: #fff; } | ||
.medium-editor-toolbar li .medium-editor-button-first { | ||
border-top-left-radius: 4px; | ||
border-bottom-left-radius: 4px; } | ||
.medium-editor-toolbar li .medium-editor-button-last { | ||
border-right: none; | ||
border-top-right-radius: 4px; | ||
border-bottom-right-radius: 4px; } | ||
.medium-editor-toolbar li .medium-editor-button-active { | ||
background-color: #3276b1; | ||
color: #fff; } | ||
|
||
.medium-editor-toolbar-form-anchor { | ||
background: #428bca; | ||
color: #fff; | ||
border-radius: 4px; } | ||
.medium-editor-toolbar-form-anchor input { | ||
height: 60px; | ||
background: #428bca; | ||
color: #fff; } | ||
.medium-editor-toolbar-form-anchor input::-webkit-input-placeholder { | ||
color: #fff; | ||
color: rgba(255, 255, 255, 0.8); } | ||
.medium-editor-toolbar-form-anchor input:-moz-placeholder { | ||
/* Firefox 18- */ | ||
color: #fff; | ||
color: rgba(255, 255, 255, 0.8); } | ||
.medium-editor-toolbar-form-anchor input::-moz-placeholder { | ||
/* Firefox 19+ */ | ||
color: #fff; | ||
color: rgba(255, 255, 255, 0.8); } | ||
.medium-editor-toolbar-form-anchor input:-ms-input-placeholder { | ||
color: #fff; | ||
color: rgba(255, 255, 255, 0.8); } | ||
.medium-editor-toolbar-form-anchor a { | ||
color: #fff; } | ||
|
||
.medium-editor-toolbar-anchor-preview { | ||
background: #428bca; | ||
color: #fff; | ||
border-radius: 4px; } | ||
|
||
.medium-editor-placeholder:after { | ||
color: #357ebd; } |
Oops, something went wrong.