summaryrefslogtreecommitdiff
path: root/web-ui/app/scss/views/_compose-view.scss
diff options
context:
space:
mode:
authorFelix Hammerl <fhammerl@thoughtworks.com>2016-04-29 12:02:50 +0200
committerFelix Hammerl <fhammerl@thoughtworks.com>2016-04-29 13:02:48 +0200
commit5cf1451bf3512affb9d84bc9370e250de7793d3f (patch)
tree6b3fe31ceacaf78f3220ffceb18790a89b4ce89e /web-ui/app/scss/views/_compose-view.scss
parent373fbde99b66add1875426983238d5e4a9d46b08 (diff)
Issue #679: Fix CSS and markup for attachments
Diffstat (limited to 'web-ui/app/scss/views/_compose-view.scss')
-rw-r--r--web-ui/app/scss/views/_compose-view.scss176
1 files changed, 105 insertions, 71 deletions
diff --git a/web-ui/app/scss/views/_compose-view.scss b/web-ui/app/scss/views/_compose-view.scss
index 146aacf5..296a491a 100644
--- a/web-ui/app/scss/views/_compose-view.scss
+++ b/web-ui/app/scss/views/_compose-view.scss
@@ -1,5 +1,110 @@
.compose-view {
overflow: auto;
+
+ &__buttons {
+ &-attachment {
+ cursor: pointer;
+ outline: 0;
+ margin-left: 18px;
+ padding-top: 0px;
+ -ms-transform: rotate(224deg);
+ -webkit-transform: rotate(224deg);
+ transform: rotate(224deg);
+
+ i.fa-paperclip {
+ font-size: 1.7em;
+ }
+
+ &--busy {
+ color: lighten($recipients_font_color, 10%);
+ cursor: progress;
+ }
+ }
+ }
+
+ &__attachments {
+ &-wrapper {
+ padding: 0;
+ margin-top: 30px;
+ }
+
+ &-list {
+ &-item {
+ display: block;
+ position: relative;
+ margin-bottom: 8px;
+ padding: 5px;
+ border: 1px solid $border_light_grey;
+ border-radius: 2px;
+ background-color: $background_light_grey;
+
+ &-label {
+ color: $attachment_text;
+ text-decoration: none;
+
+ &:hover, &:focus {
+ color: $attachment_icon;
+ outline: none;
+ }
+ }
+
+ &-icon {
+ color: #a2a2a2;
+ float: right;
+ margin-top: 7px;
+ cursor: pointer;
+ }
+
+ &-progress {
+ width: 0%;
+ position: absolute;
+ right: 0;
+ left: 0;
+ top: 0;
+ bottom: 0;
+ min-height: 100%;
+
+ &-bar {
+ height: 100%;
+ background-color: rgba($light_blue, 0.3);
+ }
+ }
+
+ }
+
+ &--upload {
+ display: none;
+ }
+
+ }
+
+ &-error {
+ background-color: $background_light_grey;
+ border-radius: 2px;
+ border: 1px solid $error;
+ display: block;
+ font-size: 0.9rem;
+ margin-bottom: 20px;
+ padding: 5px;
+ width: 100%;
+
+ &-close {
+ float: left;
+ margin: 5px 5px 0 0;
+ }
+
+ & > * {
+ color: $error;
+ }
+
+ & > a {
+ display: inline-block;
+ text-decoration: underline;
+ padding: 5px;
+ }
+ }
+ }
+
}
// COMPOSE PANE
@@ -116,77 +221,6 @@
.buttons-group {
margin-top: 0px;
-
- span#attachment-button {
- cursor: pointer;
- outline: 0;
- margin-left: 18px;
- padding-top: 0px;
- -ms-transform: rotate(224deg);
-
- /* IE 9 */
- -webkit-transform: rotate(224deg);
-
- /* Chrome, Safari, Opera */
- transform: rotate(224deg);
-
- i.fa-paperclip {
- font-size: 1.7em;
- }
-
- &.busy {
- color: lighten($recipients_font_color, 10%);
- cursor: progress;
- }
- }
- }
-
- #attachment-upload-item {
- display: none;
-
- .progress {
- width: 0%;
- position: absolute;
- right: 0;
- left: 0;
- top: 0;
- bottom: 0;
- min-height: 100%;
-
- .progress-bar {
- height: 100%;
- background-color: rgba($light_blue, 0.3);
- }
- }
- }
-
- .attachmentsAreaWrap {
- padding: 0;
-
- .attachmentsArea {
- padding: 0;
- border-top: 0;
-
- #upload-error {
- color: $error;
- margin-bottom: 20px;
-
- .close-icon {
- font-size: 1.0rem;
- cursor: pointer;
- }
-
- span, a {
- color: $error;
- font-size: 0.9rem;
- }
-
- a {
- text-decoration: underline;
- padding: 5px;
- }
- }
- }
}
.recipients-area {