summaryrefslogtreecommitdiffstats
path: root/comm/mail/themes/shared/mail/newmailalert.css
blob: 3438b48140c6f7b3d9956be2524382f6bfb07e4c (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
/* 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/. */

/* ===== alert.css =====================================================
  == Styles specific to the alerts dialog.
  ======================================================================= */

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

#alertContainer {
  border: 1px solid threedshadow;
  background-color: -moz-Dialog;
  color: -moz-DialogText;
  opacity: 0;
}

@media (prefers-color-scheme: dark) {
  #alertContainer {
    background-color: #2a2a2e;
    color: #f9f9fa;
  }
}

#alertContainer[noanimation] {
  opacity: 1;
}

#alertContainer[fade-in] {
  animation-timing-function: ease-out;
  animation-duration: 2s;
  animation-fill-mode: both;
  animation-name: fade-in;
}

@keyframes fade-in {
  from {opacity: 0;}
  to {opacity: 1;}
}

#alertContainer[fade-out] {
  animation-timing-function: ease-in;
  animation-duration: 2s;
  animation-fill-mode: both;
  animation-name: fade-out;
}

@keyframes fade-out {
  from {opacity: 1;}
  to {opacity: 0;}
}

#alertImageBox {
  display: block;
  padding: 4px;
  background-image: linear-gradient(rgba(255, 255, 255, .6),
                                    rgba(255, 255, 255, .6));
  border-inline-end: 1px solid rgba(0, 0, 0, .1);
}

#alertImage {
  width: 64px;
  height: 64px;
}

#alertTextBox {
  padding: 4px;
  padding-inline-end: 0;
}

#alertTitle {
  font-weight: bold;
  font-size: 110%;
  padding-inline: 5px;
}

#alertSeparator {
  margin-inline-start: 11px;
  border-top: 1px solid -moz-DialogText;
  height: 0;
  margin-block: 0.4em;
}

@media (prefers-color-scheme: dark) {
  #alertSeparator {
    border-top-color: #f9f9fa;
  }
}

folder-summary {
  flex-direction: column;
}

.folderSummary-message-row {
  /* This max width ends up dictating the overall width of the alert window
     because it controls how large the preview, subject and sender text can be
     before cropping kicks in */
  max-width: 450px;
  padding: 0 5px;
}

.folderSummary-subject {
  font-weight: bold;
}

.folderSummary-sender, .folderSummary-subject {
  cursor: inherit;
}

.folderSummary-sender {
  width: 150px;
}

.folderSummary-subject {
  width: 300px;
  overflow-wrap: anywhere;
}

.folderSummary-previewText {
  color: grey;
  overflow-wrap: anywhere;
}

.folderSummaryMessage:hover > .folderSummary-message-row {
  cursor: pointer;
  color: -moz-hyperlinktext;
}

.folderSummaryMessage:hover:active > .folderSummary-message-row {
  color: -moz-activehyperlinktext;
}

#closeButton {
  align-items: flex-start;
  width: auto;
}

#closeButton > .toolbarbutton-icon {
  padding: 5px;
}