summaryrefslogtreecommitdiffstats
path: root/comm/mail/themes/windows/mail/compose/messengercompose.css
blob: f4765d53b2c9f63a1d48a090398122bdeef5a91d (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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* ===== messengercompose.css ===========================================
  == Styles for the main Messenger Compose window.
  ======================================================================= */

@import url("chrome://messenger/skin/messenger.css");
@import url("chrome://messenger/skin/shared/messengercompose.css");

@namespace html url("http://www.w3.org/1999/xhtml");

/* ::::: special toolbar colors ::::: */

@media (-moz-platform: windows-win10) and (-moz-windows-default-theme) {
  #menubar-items > #mail-menubar > menu[disabled="true"] {
    background-color: transparent;
  }

  #menubar-items > #mail-menubar >
    menu:not([disabled="true"])[_moz-menuactive="true"] {
    background-color: hsla(0, 0%, 0%, .12);
  }

  @media (prefers-color-scheme: dark) {
    #menubar-items > #mail-menubar >
      menu:not([disabled="true"])[_moz-menuactive="true"] {
      background-color: hsla(0, 0%, 100%, .2);
    }
  }
}

#composeContentBox {
  appearance: none;
  color: -moz-dialogtext;
  background-color: -moz-Dialog;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) inset;
  border-top-width: 0;
}

#composeContentBox:-moz-window-inactive {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1) inset;
}

#MsgHeadersToolbar {
  color: -moz-DialogText;
  text-shadow: none;
  padding-block: 4px 2px;
}

#subjectLabel {
  margin-bottom: 0;
}

@media (-moz-windows-classic) {
  :root:not(:-moz-lwtheme) .autocomplete-richlistitem {
    --arrowpanel-dimmed: Highlight;
  }
}

@media (prefers-contrast) {
  #msgSubject:not(:-moz-lwtheme),
  #msgIdentity:not(:-moz-lwtheme),
  .address-container:not(:-moz-lwtheme) {
    --toolbarbutton-hover-bordercolor: ThreeDShadow;
  }

  #msgSubject:not(:-moz-lwtheme):hover,
  #msgIdentity:not(:-moz-lwtheme):hover,
  .address-container:not(:-moz-lwtheme):hover {
    --toolbarbutton-hover-bordercolor: ThreeDDarkShadow;
  }

  #MsgHeadersToolbar:not(:-moz-lwtheme) .address-pill {
    box-shadow: inset 0 0 0 1px ThreeDShadow;
  }

  #MsgHeadersToolbar:not(:-moz-lwtheme) .address-pill:hover:not(.editing),
  #MsgHeadersToolbar:not(:-moz-lwtheme) .address-pill:focus:not(.editing) {
    box-shadow: inset 0 0 0 1px SelectedItem;
  }

  #MsgHeadersToolbar:not(:-moz-lwtheme) .address-pill[selected] {
    color: SelectedItemText;
    background-color: SelectedItem;
    box-shadow: inset 0 0 0 1px SelectedItem, inset 0 0 0 2em SelectedItem;
  }

  #MsgHeadersToolbar:not(:-moz-lwtheme) .address-pill[selected]:hover:not(.editing),
  #MsgHeadersToolbar:not(:-moz-lwtheme) .address-pill[selected]:focus:not(.editing) {
    box-shadow: inset 0 0 0 1px SelectedItemText, inset 0 0 0 2em SelectedItem;
    text-shadow: none;
  }

  #MsgHeadersToolbar:not(:-moz-lwtheme) .address-pill:not([selected]) .pill-indicator {
    fill: ThreeDShadow;
  }

  #MsgHeadersToolbar:not(:-moz-lwtheme)
    .address-pill:not([selected],.editing):hover .pill-indicator {
    fill: SelectedItem;
  }
}

#identityLabel-box {
  margin-top: 1px;
}

#msgIdentity {
  box-shadow: none;
}

#msgIdentity:-moz-focusring:not([open="true"])::part(label-box) {
  outline: none;
}

@media (prefers-contrast) {
  #msgIdentity::part(label-box) {
    background-color: transparent !important;
    color: inherit !important;
  }
}

#msgIdentity::part(text-input) {
  background-color: inherit;
  color: inherit;
  margin-block: 2px;
}

.address-label-container {
  padding-top: 5px;
}

.address-container {
  padding: 0 4px;
}

#msgIdentity,
.address-container {
  min-height: 28px;
}

#msgSubject {
  min-height: 26px;
  margin-top: 0;
  padding-inline-start: 5px;
}

/* ::::: format toolbar ::::: */

#FormatToolbar {
  margin-block-end: 2px;
}

#FontFaceSelect {
  max-width: 35ch;
}

toolbarbutton.formatting-button {
  margin: 1px;
}

/* ::::: address book sidebar ::::: */

#compose-toolbox {
  appearance: none;
  border-bottom: 1px solid var(--chrome-content-separator-color);
}

@media (-moz-windows-default-theme) {
  @media (-moz-platform: windows-win8),
         (-moz-platform: windows-win10) {
    #compose-toolbox:not(:-moz-lwtheme) {
      --chrome-content-separator-color: #c2c2c2;
    }
  }
}

toolbar:not(:-moz-lwtheme) {
  appearance: none;
}

#compose-toolbox > toolbar:not([type="menubar"]) {
  padding: 2px 1px;
}

#compose-toolbox > toolbar:not([type="menubar"]):-moz-lwtheme {
  text-shadow: none;
}

/* ::::: autocomplete icons ::::: */

.ac-site-icon {
  display: flex;
  margin: 1px 5px;
}

/* ::::: address book sidebar ::::: */

#contactsBrowser {
  background-color: -moz-Dialog;
}

@media (-moz-windows-glass) {
  #compose-toolbox:not(:-moz-lwtheme) {
    color: black;
    text-shadow: 0 0 .7em white, 0 0 .7em white, 0 1px 0 rgba(255, 255, 255, .4);
  }
}