From 3c66d0cb69499dbde62a8466208f8ed83773c62b Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 3 Jul 2015 17:05:12 -0400 Subject: [PATCH] removing composer assets from theme, see nodebb/nodebb#3288 --- modules.less | 1 - modules/composer.less | 323 ----------------------------------------- templates/composer.tpl | 141 ------------------ 3 files changed, 465 deletions(-) delete mode 100644 modules/composer.less delete mode 100644 templates/composer.tpl diff --git a/modules.less b/modules.less index 1916088..5f41036 100644 --- a/modules.less +++ b/modules.less @@ -1,3 +1,2 @@ @import "modules/taskbar"; -@import "modules/composer"; @import "modules/alerts"; \ No newline at end of file diff --git a/modules/composer.less b/modules/composer.less deleted file mode 100644 index 93b4082..0000000 --- a/modules/composer.less +++ /dev/null @@ -1,323 +0,0 @@ -@topbarHeight: 50px; - - -html.composing { - &.mobile { - overflow: hidden; - - .composer { - position: absolute; - box-shadow: none; - } - } - - body { - height: 0px !important; - } - - .composer { - padding: 0; - - .composer-container { - overflow-y: visible; - overflow-x: hidden; - padding: 0; - padding-top: 50px; - height: 100%; - background: white; - } - - .title-container { - margin-top: 0px; - - .title { - padding-left: 8px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - width: 100%; - } - } - - .write, .preview { - border-bottom: 0; - min-height: 100%; - outline: none; - padding: 25px 10px; - margin-bottom: 0px; - padding-bottom: 0px; - font-size: 18px; - } - - .write:focus { - outline-style: solid; - } - - .form-control { - box-shadow: none; - } - - .formatting-bar { - margin: 0; - padding: 0; - } - - .mobile-navbar { - background: @btn-primary-bg; - color: @btn-primary-color; - position: absolute; - - button { - font-size: 20px; - } - } - } - - .col-xs-1, .col-sm-1, .col-md-1, .col-lg-1, .col-xs-2, .col-sm-2, .col-md-2, .col-lg-2, .col-xs-3, .col-sm-3, .col-md-3, .col-lg-3, .col-xs-4, .col-sm-4, .col-md-4, .col-lg-4, .col-xs-5, .col-sm-5, .col-md-5, .col-lg-5, .col-xs-6, .col-sm-6, .col-md-6, .col-lg-6, .col-xs-7, .col-sm-7, .col-md-7, .col-lg-7, .col-xs-8, .col-sm-8, .col-md-8, .col-lg-8, .col-xs-9, .col-sm-9, .col-md-9, .col-lg-9, .col-xs-10, .col-sm-10, .col-md-10, .col-lg-10, .col-xs-11, .col-sm-11, .col-md-11, .col-lg-11, .col-xs-12, .col-sm-12, .col-md-12, .col-lg-12 { - padding: 0; - } -} - -.composer { - .no-select; - - position: fixed; - bottom: 0px; - - right: 0px; - width: 100%; - height: 100%; - z-index: 10000; - - padding-top: 20px; - - .box-shadow(0px 6px 12px rgba(0, 0, 0, 0.5)); - - background: white; - visibility: hidden; - - .composer-container { - min-height: 50px; - padding-left: 10px; - padding-right: 10px; - } - - .title-container { - margin-top: 10px; - padding-left: 8px; - padding-right: 8px; - - .title { - display: block; - font-size: 22px; - padding-left: 3px; - border: 0; - .box-shadow(none); - height: 47px; - background: white; - } - } - - .category-list { - padding: 0 6px; - } - - .category-tag-row { - margin: 5px 0; - - .tags-container { - .bootstrap-tagsinput { - width:100%; - margin-bottom: 0px; - border: 0; - box-shadow: none; - - input { - height:28px; - padding: 4px 6px; - } - - .label { - color: white; - font-size: 13px; - } - } - } - } - - .write-preview-container { - height:100%; - margin: 0 0; - min-height: 200px; - - > div { - height:100%; - } - } - - .write { - border: 1px solid #EDEDED; - .border-radius(0px); - .box-shadow(inset 0px 1px 1px rgba(0, 0, 0, 0.05)); - } - - .write, .preview { - display: block; - width: 100%; - height: 100%; - margin: 0 auto; - font-size: 14px; - -webkit-border-radius: 0px; - -moz-border-radius: 0px; - border-radius: 0px; - resize:none; - overflow: auto; - padding: 20px; - } - - .preview-container { - word-wrap: break-word; - } - - .write-container { - &.maximized { - width: 100%; - } - } - - .write-container, .preview-container { - .help-text { - text-transform: uppercase; - position: absolute; - right: 35px; - top: 8px; - font-size: 10px; - color: #999; - z-index: 1; - } - } - - .help { - .pointer; - } - - .toggle-preview { - margin-left: 20px; - .pointer; - } - - .preview { - overflow-y: auto; - - p { - margin: 0 0 18px; - } - } - - .formatting-bar { - margin: 5px 0; - padding: 0px 8px; - span { - color: #000; - } - - .spacer { - &:before { - content: ' | '; - color: @gray-light; - } - } - } - - .resizer { - position: absolute; - width: 100%; - top: 10px; - height: 0px; - - .pointer; - - .trigger { - position: relative; - display: block; - width: 32px; - height: 32px; - top: -20px; - margin: 0 auto; - margin-left: 20px; - - background: #333; - border: 1px solid #333; - .border-radius(50%); - - line-height: 26px; - - i { - position: relative; - color: #FFF; - font-size: 16px; - - &:before { - content: @fa-var-chevron-up; - } - } - } - } - - &.maximized { - .resizer .trigger i { - &:before { - content: @fa-var-chevron-down; - } - } - - box-shadow: none; - } - - .imagedrop { - position: absolute; - top: 250px; - text-align: center; - font-size: 24px; - color: #999; - width: 100%; - display: none; - } - - .topic-thumb-container { - margin-top: 5px; - margin-left: 8px; - margin-right: 8px; - background: rgb(255, 255, 255); - background: rgba(255, 255, 255, 0.6); - padding: 10px; - } - - .topic-thumb-btn { - cursor: hand; - cursor: pointer; - } - - .topic-thumb-preview { - width: auto; - height: auto; - max-width: 100px; - max-height: 100px - } - - .topic-thumb-ctrl.form-group { - display: inline-block; - vertical-align: -50% !important; - } -} - -@media (max-width: 767px), (max-height: 480px) { - .composer { - width: 100%; - background: rgba(224, 224, 224, 1); - } - - .resizer { - visibility: hidden; - } -} \ No newline at end of file diff --git a/templates/composer.tpl b/templates/composer.tpl deleted file mode 100644 index 4b3609c..0000000 --- a/templates/composer.tpl +++ /dev/null @@ -1,141 +0,0 @@ -
- -
- -
- -
- -
-
- - - - [[topic:composer.replying_to, "{title}"]] - -
- -
- - - - [[topic:composer.replying_to, "{title}"]] - -
- -
- -
- - -
- -
-
-
- - - - - - - - - - - - - - - - - - - - - - - -
-
- -
- - -
-
- - -
-
- - -
-
-
- - -
- - - - -
-
- - - - -
- -
- -
-
- -
-
-
- [[modules:composer.compose]] - [[modules:composer.show_preview]] -
- -
- -
- -
[[topic:composer.drag_and_drop_images]]
- -
-
-