summaryrefslogtreecommitdiff
path: root/web-ui/public/scss/views/_read-view.scss
blob: f69d51a501329830b75579bbc6326577b2fb2da6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
.mail-read-view {
    $component-vertical-spacing: 10px;
    $view-top-spacing: 3px;

    // NB! Setting overflow: hidden on an element causes
    // a new float context to be created, so elements that
    // are floated inside an element that has overflow: hidden
    // applied are cleared.
    overflow: hidden;

    hr {
        margin: 0;
    }

    &__header {
        @include scut-clearfix;

        font-size: 0.9em;
        margin: 0;
        margin: $view-top-spacing 0 $component-vertical-spacing 0;

        &-recipients {
            display: inline;
            margin-bottom: 5px;
            line-height: 1.5em;

            &-separator {
                margin: 0 10px;
            }

            &--highlight-sender {
                font-weight: bold;
            }
        }

        &-date {
            display: inline;
            float: right;
        }

        &-subject {
            display: inline;
            float: left;
            max-width: 80%;
        }

        &-actions {
            display: inline;
            float: right;
            max-width: 20%;
            background: $white;
            white-space: nowrap;
            margin-top: $component-vertical-spacing;

            &-button {
                color: $medium_light_grey;
                background-color: inherit;
                display: inline;
                border: 1px solid $lighter_gray;
                line-height: 2em;

                margin-bottom: 0;

                i {
                    // workaround: remove padding and margin inserted by font-awesome
                    margin: 0;
                    padding: 0;
                }

                &:hover, &:active, &:focus {
                    @include btn-transition;

                    background: darken($contrast, 5%);
                    color: inherit;
                }

                &--reply {
                    padding: 0 20px;
                    margin-right: -4px; // force buttons together

                }

                &--more {
                    padding: 0 5px;
                }
            }

            &-dropdown {
                $container-right-padding: 10px;

                background: inherit;
                position: absolute;
                border: 1px solid $lighter_gray;
                right: $container-right-padding;

                &-entry {
                    box-sizing: border-box;
                    background: inherit;
                    padding: 5px 10px;
                    display: block;
                    border-bottom: 1px solid $lighter_gray;

                    &:last-child {
                        border-bottom: none;
                    }

                    &:hover {
                        cursor: pointer;
                        background: $contrast;
                    }
                }
            }
        }

        &-tags {
            @include tags-editable;

            clear: both;
            margin: 0 0 10px;
        }
    }

    &__body {
        margin: $component-vertical-spacing 0;
        width: 100%;
        border: none;
    }

    &__attachments {
        margin: $component-vertical-spacing 0;

        &-header {
            font-weight: bold;
        }

        &-item {
            display: block;
            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 {
                    i.download-icon {
                        color: lighten($attachment_icon, 15);
                    }

                    color: $attachment_icon;
                    outline: none;
                }
            }

            &-download {
                color: #a2a2a2;
                float: right;
                margin-top: 5px;
            }
        }
    }
}