md_simple_editor 0.2.3.pre3 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -7
  3. data/.idea/.rakeTasks +7 -0
  4. data/.idea/encodings.xml +5 -0
  5. data/.idea/md_simple_editor.iml +23 -0
  6. data/.idea/misc.xml +36 -0
  7. data/.idea/modules.xml +9 -0
  8. data/.idea/scopes/scope_settings.xml +5 -0
  9. data/.idea/vcs.xml +7 -0
  10. data/.idea/workspace.xml +56 -0
  11. data/CHANGELOG.md +41 -0
  12. data/Gemfile +1 -3
  13. data/README.md +9 -4
  14. data/Rakefile +0 -16
  15. data/app/assets/javascripts/md_simple_editor.js.coffee +61 -41
  16. data/app/assets/stylesheets/md_simple_editor.css.scss +5 -66
  17. data/app/controllers/md_simple_editor_controller.rb +7 -0
  18. data/app/helpers/md_simple_editor/rails/md_helper.rb +32 -22
  19. data/config/routes.rb +3 -3
  20. data/lib/md_simple_editor/engine.rb +2 -3
  21. data/lib/md_simple_editor/version.rb +1 -2
  22. data/lib/md_simple_editor.rb +0 -3
  23. data/md_simple_editor.gemspec +3 -2
  24. metadata +30 -113
  25. data/app/assets/javascripts/md_simple_editor/md_preview.js +0 -2
  26. data/app/assets/stylesheets/md_simple_editor/md_preview.css +0 -4
  27. data/app/controllers/md_simple_editor/application_controller.rb +0 -4
  28. data/app/controllers/md_simple_editor/md_preview_controller.rb +0 -8
  29. data/app/helpers/md_simple_editor/md_preview_helper.rb +0 -4
  30. data/app/views/md_simple_editor/layouts/md_simple_editor/application.html.erb +0 -14
  31. data/app/views/md_simple_editor/md_preview/preview.html.erb +0 -2
  32. data/test/blorgh_test.rb +0 -7
  33. data/test/controllers/md_simple_editor/md_preview_controller_test.rb +0 -11
  34. data/test/dummy/README.rdoc +0 -28
  35. data/test/dummy/Rakefile +0 -6
  36. data/test/dummy/app/assets/images/.keep +0 -0
  37. data/test/dummy/app/assets/javascripts/application.js +0 -13
  38. data/test/dummy/app/assets/stylesheets/application.css +0 -15
  39. data/test/dummy/app/controllers/application_controller.rb +0 -5
  40. data/test/dummy/app/controllers/concerns/.keep +0 -0
  41. data/test/dummy/app/helpers/application_helper.rb +0 -2
  42. data/test/dummy/app/mailers/.keep +0 -0
  43. data/test/dummy/app/models/.keep +0 -0
  44. data/test/dummy/app/models/concerns/.keep +0 -0
  45. data/test/dummy/app/views/layouts/application.html.erb +0 -14
  46. data/test/dummy/bin/bundle +0 -3
  47. data/test/dummy/bin/rails +0 -4
  48. data/test/dummy/bin/rake +0 -4
  49. data/test/dummy/config/application.rb +0 -23
  50. data/test/dummy/config/boot.rb +0 -5
  51. data/test/dummy/config/database.yml +0 -25
  52. data/test/dummy/config/environment.rb +0 -5
  53. data/test/dummy/config/environments/development.rb +0 -29
  54. data/test/dummy/config/environments/production.rb +0 -80
  55. data/test/dummy/config/environments/test.rb +0 -36
  56. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  57. data/test/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  58. data/test/dummy/config/initializers/inflections.rb +0 -16
  59. data/test/dummy/config/initializers/mime_types.rb +0 -5
  60. data/test/dummy/config/initializers/session_store.rb +0 -3
  61. data/test/dummy/config/initializers/wrap_parameters.rb +0 -14
  62. data/test/dummy/config/locales/en.yml +0 -23
  63. data/test/dummy/config/routes.rb +0 -4
  64. data/test/dummy/config/secrets.yml +0 -20
  65. data/test/dummy/config.ru +0 -4
  66. data/test/dummy/lib/assets/.keep +0 -0
  67. data/test/dummy/log/.keep +0 -0
  68. data/test/dummy/public/404.html +0 -67
  69. data/test/dummy/public/422.html +0 -67
  70. data/test/dummy/public/500.html +0 -66
  71. data/test/dummy/public/favicon.ico +0 -0
  72. data/test/helpers/md_simple_editor/md_preview_helper_test.rb +0 -6
  73. data/test/integration/navigation_test.rb +0 -10
  74. data/test/test_helper.rb +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8b4751c2e7219a0340398184f3772106632dd05
4
- data.tar.gz: 51e8a82cf3eb94ab07862f0c5592c23ac920a7ff
3
+ metadata.gz: 77b5baabe168bd310f04669cca25d4de145da931
4
+ data.tar.gz: 4d69c8f45eff59270b334a25342a78aefa8b0daf
5
5
  SHA512:
6
- metadata.gz: 4beb85431a427338cec4898e0bd03024d60db21742d35ba348fc7620da948fa46fe0f62dd9de28ef2f3aa15283a908ffd5adf01d02429433d60b4620843c3246
7
- data.tar.gz: f168fcfd74d68d5780782bf736af9d7b4734187606aad39764906ca9e124a723a0ef4eea2aa7912a66a0e2f374dff844659d4b3265b281992a8b93d20cfca108
6
+ metadata.gz: 76c669d4ffd306386639fe2c2b9fcb573cce175fa5cf36aa693f11dbca1349b76f59695cbcef28fc60b1e8a94e507fac41681ff522f35c92573ea0ec23da02c9
7
+ data.tar.gz: d57bf3e362bdadad6dc5ec1a0e79a1a51cc32bb072e7538bbed1a242db2fb65aada5d6f039b80a2fa8e68e84c720e27fc06f30fe800e5dcc1bdc21b3861c52c7
data/.gitignore CHANGED
@@ -15,10 +15,3 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
-
19
- test/dummy/db/*.sqlite3
20
- test/dummy/db/*.sqlite3-journal
21
- test/dummy/log/*.log
22
- test/dummy/tmp/
23
- test/dummy/.sass-cache
24
-
data/.idea/.rakeTasks ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Settings><!--This file was automatically generated by Ruby plugin.
3
+ You are allowed to:
4
+ 1. Remove rake task
5
+ 2. Add existing rake tasks
6
+ To add existing rake tasks automatically delete this file and reload the project.
7
+ --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build md_simple_editor-0.1.8.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Build and install md_simple_editor-0.1.8.gem into system gems" fullCmd="install" taksId="install" /><RakeTask description="Create tag v0.1.8 and build and push md_simple_editor-0.1.8.gem to Rubygems" fullCmd="release" taksId="release" /></RakeGroup></Settings>
@@ -0,0 +1,5 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
4
+ </project>
5
+
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="CompassSettings">
4
+ <option name="compassSupportEnabled" value="true" />
5
+ </component>
6
+ <component name="FacetManager">
7
+ <facet type="gem" name="Ruby Gem">
8
+ <configuration>
9
+ <option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
10
+ <option name="GEM_APP_TEST_PATH" value="" />
11
+ <option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
12
+ </configuration>
13
+ </facet>
14
+ </component>
15
+ <component name="NewModuleRootManager">
16
+ <content url="file://$MODULE_DIR$" />
17
+ <orderEntry type="inheritedJdk" />
18
+ <orderEntry type="sourceFolder" forTests="false" />
19
+ <orderEntry type="library" scope="PROVIDED" name="erubis (v2.7.0, RVM: ruby-1.9.3-p392) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="rack-test (v0.6.2, RVM: ruby-1.9.3-p392) [gem]" level="application" />
21
+ </component>
22
+ </module>
23
+
data/.idea/misc.xml ADDED
@@ -0,0 +1,36 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectInspectionProfilesVisibleTreeState">
4
+ <entry key="Project Default">
5
+ <profile-state>
6
+ <expanded-state>
7
+ <State>
8
+ <id />
9
+ </State>
10
+ </expanded-state>
11
+ <selected-state>
12
+ <State>
13
+ <id>CoffeeScript</id>
14
+ </State>
15
+ </selected-state>
16
+ </profile-state>
17
+ </entry>
18
+ </component>
19
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.3-p392" project-jdk-type="RUBY_SDK" />
20
+ <component name="masterDetails">
21
+ <states>
22
+ <state key="ScopeChooserConfigurable.UI">
23
+ <settings>
24
+ <splitter-proportions>
25
+ <option name="proportions">
26
+ <list>
27
+ <option value="0.2" />
28
+ </list>
29
+ </option>
30
+ </splitter-proportions>
31
+ </settings>
32
+ </state>
33
+ </states>
34
+ </component>
35
+ </project>
36
+
data/.idea/modules.xml ADDED
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/md_simple_editor.iml" filepath="$PROJECT_DIR$/.idea/md_simple_editor.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
9
+
@@ -0,0 +1,5 @@
1
+ <component name="DependencyValidationManager">
2
+ <state>
3
+ <option name="SKIP_IMPORT_STATEMENTS" value="false" />
4
+ </state>
5
+ </component>
data/.idea/vcs.xml ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="" />
5
+ </component>
6
+ </project>
7
+
@@ -0,0 +1,56 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <option name="TRACKING_ENABLED" value="true" />
5
+ <option name="SHOW_DIALOG" value="false" />
6
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
7
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
8
+ <option name="LAST_RESOLUTION" value="IGNORE" />
9
+ </component>
10
+ <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
11
+ <component name="CreatePatchCommitExecutor">
12
+ <option name="PATCH_PATH" value="" />
13
+ </component>
14
+ <component name="DaemonCodeAnalyzer">
15
+ <disable_hints />
16
+ </component>
17
+ <component name="ProjectLevelVcsManager" settingsEditedManually="false">
18
+ <OptionsSetting value="true" id="Add" />
19
+ <OptionsSetting value="true" id="Remove" />
20
+ <OptionsSetting value="true" id="Checkout" />
21
+ <OptionsSetting value="true" id="Update" />
22
+ <OptionsSetting value="true" id="Status" />
23
+ <OptionsSetting value="true" id="Edit" />
24
+ <ConfirmationsSetting value="0" id="Add" />
25
+ <ConfirmationsSetting value="0" id="Remove" />
26
+ </component>
27
+ <component name="ProjectReloadState">
28
+ <option name="STATE" value="0" />
29
+ </component>
30
+ <component name="PropertiesComponent">
31
+ <property name="options.lastSelected" value="reference.settingsdialog.project.vagrant" />
32
+ <property name="options.splitter.main.proportions" value="0.3" />
33
+ <property name="options.splitter.details.proportions" value="0.2" />
34
+ <property name="options.searchVisible" value="true" />
35
+ </component>
36
+ <component name="RunManager">
37
+ <list size="0" />
38
+ </component>
39
+ <component name="ShelveChangesManager" show_recycled="false" />
40
+ <component name="TaskManager">
41
+ <task active="true" id="Default" summary="Default task" />
42
+ <servers />
43
+ </component>
44
+ <component name="VcsContentAnnotationSettings">
45
+ <option name="myLimit" value="2678400000" />
46
+ </component>
47
+ <component name="VcsManagerConfiguration">
48
+ <option name="myTodoPanelSettings">
49
+ <TodoPanelSettings />
50
+ </option>
51
+ </component>
52
+ <component name="XDebuggerManager">
53
+ <breakpoint-manager />
54
+ </component>
55
+ </project>
56
+
data/CHANGELOG.md ADDED
@@ -0,0 +1,41 @@
1
+
2
+ #### [Current]
3
+
4
+
5
+ #### v0.1.8
6
+ * [55adff2](../../commit/55adff2) - __(Ruben Espinosa)__ preview funcionality, bootstrap as css provider
7
+ * [585b857](../../commit/585b857) - __(Ruben Espinosa)__ controllers
8
+ * [da5aee8](../../commit/da5aee8) - __(Ruben Espinosa)__ rutas
9
+ * [9966862](../../commit/9966862) - __(Ruben Espinosa)__ Bump to 0.1.8
10
+
11
+ #### v0.1.7
12
+ * [4144a7c](../../commit/4144a7c) - __(Ruben Espinosa)__ Bump to 0.1.7
13
+ * [7298105](../../commit/7298105) - __(Ruben Espinosa)__ new version
14
+ * [1854fb1](../../commit/1854fb1) - __(Ruben Espinosa)__ Bump to 0.1.6
15
+
16
+ #### v0.1.5
17
+ * [5abdd6b](../../commit/5abdd6b) - __(Ruben Espinosa)__ support for turbolinks
18
+ * [e885c1f](../../commit/e885c1f) - __(Ruben Espinosa)__ Update README.md
19
+
20
+ #### v0.1.2
21
+ * [74c746c](../../commit/74c746c) - __(Ruben Espinosa)__ grammar issue
22
+ * [44cb8a4](../../commit/44cb8a4) - __(Ruben Espinosa)__ Bump to 0.1.2
23
+
24
+ #### v0.1.1
25
+ * [4981c84](../../commit/4981c84) - __(Ruben Espinosa)__ Image and Link options
26
+ * [22cb604](../../commit/22cb604) - __(Ruben Espinosa)__ Bump to 0.1.1
27
+
28
+ #### v0.1.0
29
+ * [1121e85](../../commit/1121e85) - __(Ruben Espinosa)__ Bump to 0.1.0
30
+ * [3857cea](../../commit/3857cea) - __(Ruben Espinosa)__ Bump to 0.0.3
31
+ * [8fd810d](../../commit/8fd810d) - __(Ruben Espinosa)__ Bump to 0.0.2
32
+ * [cd918a9](../../commit/cd918a9) - __(Ruben Espinosa)__ css improvements
33
+
34
+ #### v0.0.1
35
+ * [78c593e](../../commit/78c593e) - __(Ruben Espinosa)__ Update README.md
36
+ * [0bfd1fb](../../commit/0bfd1fb) - __(Ruben Espinosa)__ merge conflicts
37
+ * [d80c0d6](../../commit/d80c0d6) - __(Ruben Espinosa)__ Initial commit
38
+ * [97e1406](../../commit/97e1406) - __(Ruben Espinosa)__ Readme updated
39
+ * [25f154b](../../commit/25f154b) - __(Ruben Espinosa)__ dependencies
40
+ * [260b8d9](../../commit/260b8d9) - __(Ruben Espinosa)__ font awesome dependecy
41
+ * [e689d0d](../../commit/e689d0d) - __(Ruben Espinosa)__ first commit
data/Gemfile CHANGED
@@ -1,8 +1,6 @@
1
- ruby '2.0.0'
2
1
  source 'https://rubygems.org'
3
2
 
4
3
  # Specify your gem's dependencies in md_simple_editor.gemspec
5
4
  gemspec
6
5
 
7
- gem 'sqlite3'
8
- gem 'font-awesome-rails'
6
+ gem 'redcarpet'
data/README.md CHANGED
@@ -47,17 +47,22 @@ Also you can use inside a form
47
47
  <% end %>
48
48
  ```
49
49
 
50
+
51
+ #### Version 0.1.8
52
+
53
+ Simple markdown editor meets Bootstrap, more elegant look and feel, !and now, the preview mode is OUT"
54
+
50
55
  ## How it looks?
51
56
 
52
- ![Imgur](http://i.imgur.com/68DXCwP.png)
57
+ ![Imgur](http://i.imgur.com/gg0MwlD.png)
58
+
59
+ ![Imgur](http://i.imgur.com/tX29Zvi.png)
53
60
 
54
61
 
55
62
  ## ToDo
56
63
 
57
- - Improve css
58
64
  - Add functions to extend the toolbar
59
- - Add preview option
60
-
65
+ - Add some internationalization options
61
66
 
62
67
  ## Contributing
63
68
 
data/Rakefile CHANGED
@@ -1,17 +1 @@
1
- begin
2
- require 'bundler/setup'
3
- rescue LoadError
4
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
- end
6
-
7
- require 'rdoc/task'
8
1
  require "bundler/gem_tasks"
9
-
10
- APP_RAKEFILE = File.expand_path("../test/dummy/Rakefile", __FILE__)
11
- load 'rails/tasks/engine.rake'
12
-
13
-
14
-
15
-
16
- Bundler::GemHelper.install_tasks
17
-
@@ -2,52 +2,70 @@
2
2
  # All this logic will automatically be available in application.js.
3
3
  # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
4
4
 
5
- md_simple_editor = ->
6
- $('#md-toolbar #btn-group button').mousedown ->
5
+ md_simple_editor = () ->
6
+ $('.btn-toolbar .btn-group button').click ->
7
7
  att_class = this.classList
8
8
  rgex = /md_/
9
9
 
10
10
  option = $.grep att_class, (item) ->
11
11
  return rgex.test(item)
12
12
 
13
- option = option[0].toString()
13
+ if option.length != 0
14
+ option = option[0].toString()
14
15
 
15
- text = if option == 'md_h1'
16
- "# Your Title here"
17
- else if option == 'md_h2'
18
- "## Your Title here"
19
- else if option == 'md_h3'
20
- "### Your Title here"
21
- else if option == 'md_h4'
22
- "#### Your Title here"
23
- else if option == 'md_h5'
24
- "##### Your Title here"
25
- else if option == 'md_italic'
26
- "_Your italic text here_"
27
- else if option == 'md_bold'
28
- "__Your bold text here__"
29
- else if option == 'md_list-ul'
30
- "\n\n* Item 1\n* Item 2\n* Item 3 \n\n<br>"
31
- else if option == 'md_list-ol'
32
- "\n\n1. Item 1\n2. Item 2\n3. Item 3 \n\n<br> "
33
- else if option == 'md_indent'
34
- ">Your indented text here"
35
- else if option == 'md_underline'
36
- "<u>Your undelined text here </u>"
37
- else if option == 'md_table'
38
- "\n|Header|Header|Header|\n|:------|:-------:|------:|\n|Left alignment|Centered|Right alignment|\n\n<br>"
39
- else if option == 'md_minus'
40
- "\n<hr>\n"
41
- else if option == 'md_square'
42
- "\n\tjebdhwiedwef Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ut aliquet velit. Nam fermentum, mi quis egestas ornare, massa velit pharetra ante, sed
43
- pellentesque tortor nisl non quam. Nunc eget egestas orci.\n\n<br> "
44
- else if option == 'md_link'
45
- "\n[This is a link](http://google.com)\n"
46
- else if option == 'md_camera-retro'
47
- "\n![Alt](https://www.google.com.co/images/srpr/logo11w.png)\n"
16
+ text = if option == 'md_h1'
17
+ "# Your Title here"
18
+ else if option == 'md_h2'
19
+ "## Your Title here"
20
+ else if option == 'md_h3'
21
+ "### Your Title here"
22
+ else if option == 'md_h4'
23
+ "#### Your Title here"
24
+ else if option == 'md_h5'
25
+ "##### Your Title here"
26
+ else if option == 'md_italic'
27
+ "_Your italic text here_"
28
+ else if option == 'md_bold'
29
+ "__Your bold text here__"
30
+ else if option == 'md_list-ul'
31
+ "\n\n* Item 1\n* Item 2\n* Item 3 \n\n<br>"
32
+ else if option == 'md_list-ol'
33
+ "\n\n1. Item 1\n2. Item 2\n3. Item 3 \n\n<br> "
34
+ else if option == 'md_indent'
35
+ ">Your indented text here"
36
+ else if option == 'md_underline'
37
+ "<u>Your undelined text here </u>"
38
+ else if option == 'md_table'
39
+ "\n|Header|Header|Header|\n|:------|:-------:|------:|\n|Left alignment|Centered|Right alignment|\n\n<br>"
40
+ else if option == 'md_minus'
41
+ "\n<hr>\n"
42
+ else if option == 'md_square'
43
+ "\n\t Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam ut aliquet velit. Nam fermentum, mi quis egestas ornare, massa velit pharetra ante, sed
44
+ pellentesque tortor nisl non quam. Nunc eget egestas orci.\n\n<br> "
45
+ else if option == 'md_link'
46
+ "\n[This is a link](http://google.com)\n"
47
+ else if option == 'md_camera-retro'
48
+ "\n![Alt](https://www.google.com.co/images/srpr/logo11w.png)\n"
48
49
 
49
- textarea = $('#md-editor #md-text textarea')
50
- insertAtCaret(textarea.attr('id'), text)
50
+ textarea = $('#md-editor #md-text textarea')
51
+ insertAtCaret(textarea.attr('id'), text)
52
+
53
+ preview = ->
54
+ if $('#md-text').prop('hidden')
55
+ $('.preview_md').text('Preview')
56
+ $('#md-text').removeAttr('hidden')
57
+ $('.preview-panel').attr('hidden', 'true')
58
+ false
59
+ else
60
+ $.post(
61
+ '/md_simple_editor/preview',
62
+ {md: $('#md-text textarea').val()},
63
+ (data) ->
64
+ $('.preview_md').text('Editor')
65
+ $('#md-text').attr('hidden', 'true')
66
+ $('.preview-panel').removeAttr('hidden')
67
+ $('#md-preview').html(data)
68
+ )
51
69
 
52
70
  insertAtCaret = (areaId, text) ->
53
71
  txtarea = document.getElementById(areaId)
@@ -77,6 +95,8 @@ insertAtCaret = (areaId, text) ->
77
95
  txtarea.focus()
78
96
  txtarea.scrollTop = scrollPos
79
97
 
80
-
81
- $(document).ready(md_simple_editor())
82
- $(document).on('page:load', md_simple_editor())
98
+ $(document).on 'turbolinks:load page:load ready', ->
99
+ md_simple_editor()
100
+ $(document).off 'turbolinks:load page:load ready'
101
+ $('.preview_md').click ->
102
+ preview()
@@ -1,74 +1,13 @@
1
1
  #md-editor{
2
- border: 1px solid #66afe9;
3
- overflow: hidden;
4
- #md-toolbar{
5
- height: 50px;
6
- margin-top: -5px;
7
- background-color: #f5f5f5;
8
- border-bottom: 1px dashed gray;
9
- #btn-group{
10
- margin: 10px 0 0 10px;
11
- position: relative;
12
- display: inline-block;
13
- vertical-align: middle;
14
- .btn{
15
- margin-left: -3px;
16
- position: relative;
17
- float: left;
18
- display: inline-block;
19
- padding: 6px 12px;
20
- margin-bottom: 0;
21
- font-size: 14px;
22
- font-weight: normal;
23
- line-height: 1.428571429;
24
- height: 36px;
25
- text-align: center;
26
- white-space: nowrap;
27
- vertical-align: middle;
28
- cursor: pointer;
29
- border: 1px solid transparent;
30
- -webkit-user-select: none;
31
- -moz-user-select: none;
32
- -ms-user-select: none;
33
- -o-user-select: none;
34
- user-select: none;
35
- }
36
- .btn-default{
37
- color: #333;
38
- background-color: #fff;
39
- border-color: #ccc;
40
- &:hover{
41
- color: white;
42
- text-decoration: none;
43
- text-shadow: #ffff 0px -1px 0px;
44
- background-color: #3072b3;
45
- background-image: -webkit-linear-gradient(top, #599bcd, #3072b3);
46
- background-image: -moz-linear-gradient(top, #599bcd, #3072b3);
47
- background-image: linear-gradient(top, #599bcd, #3072b3);
48
- border-color: #2a65a0;
49
- background-repeat: repeat no-repeat;
50
- }
51
-
52
- &:hover, &:focus, &:active{
53
- outline: 0; outline-style:none; outline-width:0;
54
- }
55
-
56
- }
57
- &>.btn:first-child{
58
- border-radius: 4px 0 0 4px;
59
- }
60
- &>.btn:last-child{
61
- border-radius: 0 4px 4px 0;
62
- }
63
- }
64
-
65
- }
66
2
  #md-text{
67
3
  textarea{
68
- width: 99%;
69
- padding: 4px;
4
+ padding: 15px;
70
5
  }
71
6
  }
7
+ #md-preview{
8
+ border: solid 1px #cccccc;
9
+ padding: 15px;
10
+ }
72
11
  }
73
12
 
74
13
  .markdown{