summaryrefslogtreecommitdiffstats
path: root/comm/mail/themes/osx/mail/tabmail.css
blob: 7470cafe67ea58fbd0710cba9365ee93f6da4659 (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
/* 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/. */

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

/**
 * Tabmail Tabs
 */

#tabs-toolbar:not(:-moz-lwtheme) {
  color: #333;
  text-shadow: 0 1px rgba(255, 255, 255, 0.4);
}

/**
 * Tab
 */

.tab-label {
  margin-top: 1px;
  margin-bottom: 0;
}

.tabmail-tab[type="glodaSearch"] .tab-icon-image {
  transform: scaleX(-1);
}

.tabmail-tab:not(:hover) .tab-icon-image:not([selected="true"]) {
  opacity: .9;
}

.tab-label-container:not([selected="true"]) {
  opacity: .7;
}

.tabmail-tab,
.tabs-newtab-button {
  font: message-box;
  font-size: inherit;
  border: none;
}

/* override the selected tab toolkit color/text-shadow */
.tabmail-tab[selected="true"]:not(:-moz-lwtheme) {
  color: #333;
  text-shadow: 0 1px rgba(255, 255, 255, 0.4);
}

.tabmail-tab[selected="true"]:not(:-moz-lwtheme) {
  -moz-font-smoothing-background-color: var(--toolbar-bgcolor);
}

.tabmail-tab:focus .tab-label-container {
  outline: var(--focus-outline);
}

#tabmail-tabs {
  align-items: stretch;
  font-size: inherit;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 0;
}

:root[tabsintitlebar]:not([sizemode="fullscreen"]) #tabmail-tabs {
  position: unset;
}

tabmail > tabbox > tabpanels {
  appearance: none !important;
}

/**
 * Tab Scrollbox Arrow Buttons
 */

#tabmail-arrowscrollbox::part(scrollbutton-up),
#tabmail-arrowscrollbox::part(scrollbutton-down) {
  padding: 0 4px !important;
  margin: 0 0 var(--tabs-tabbar-border-size) !important;
}

#tabmail-arrowscrollbox:not([scrolledtostart=true])::part(scrollbutton-up):hover,
#tabmail-arrowscrollbox:not([scrolledtoend=true])::part(scrollbutton-down):hover {
  background-image: linear-gradient(transparent, rgba(0,0,0,0.15));
}

#tabmail-arrowscrollbox:not([scrolledtostart=true])::part(scrollbutton-up):hover:active,
#tabmail-arrowscrollbox:not([scrolledtoend=true])::part(scrollbutton-down):hover:active {
  background-image: linear-gradient(transparent, rgba(0,0,0,0.3));
}

#tabs-toolbar[brighttext]
  #tabmail-arrowscrollbox:not([scrolledtostart=true])::part(scrollbutton-up):hover,
#tabs-toolbar[brighttext]
  #tabmail-arrowscrollbox:not([scrolledtoend=true])::part(scrollbutton-down):hover {
  background-image: linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.25));
}

#tabs-toolbar[brighttext]
  #tabmail-arrowscrollbox:not([scrolledtostart=true])::part(scrollbutton-up):hover:active,
#tabs-toolbar[brighttext]
  #tabmail-arrowscrollbox:not([scrolledtoend=true])::part(scrollbutton-down):hover:active {
  background-image: linear-gradient(rgba(255,255,255,0.35), rgba(255,255,255,0.35));
}

#tabmail-arrowscrollbox[scrolledtostart=true]::part(scrollbutton-up),
#tabmail-arrowscrollbox[scrolledtoend=true]::part(scrollbutton-down) {
  --toolbarbutton-icon-fill-opacity: .5;
  background-image: none;
}

/* Tab Overflow */
#tabmail-arrowscrollbox:not([scrolledtostart])::part(arrowscrollbox-overflow-start-indicator),
#tabmail-arrowscrollbox:not([scrolledtoend])::part(arrowscrollbox-overflow-end-indicator) {
  margin-bottom: 0;
}

/**
 * All Tabs Buttons
 */

.tabs-alltabs-box {
  margin: 0;
}

/**
 * All Tabs Menupopup
 */

@media (min-resolution: 1.1dppx) {
  alltabs-item[busy] {
    list-style-image: url("chrome://global/skin/icons/loading@2x.png") !important;
  }
}

/* Content Tabs */
.contentTabAddress {
  height: 31px;
  padding-left: 10px;
  padding-right: 10px;
}

.contentTabUrlbarInput {
  background-image: none;
}