summaryrefslogtreecommitdiffstats
path: root/devtools/client/themes/storage.css
blob: 7d667186ac54b8369f80d3672e658a6cc31e6c75 (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
/* 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/. */

/*
 * Global styles
 */
a {
  color: var(--theme-link-color);
  text-decoration: none;
  cursor: pointer;
}

/* Storage Host Tree */

#storage-tree {
  min-width: 220px;
  max-width: 500px;
  overflow: auto;
  min-height: 0;
  background: var(--theme-sidebar-background);
  /* Let the component gain focus when a click hits an empty area */
  -moz-user-focus: normal;
}

#storage-tree:focus {
  outline: 0;
}

/* Storage Table */

/* Let the component gain focus when a click hits an empty area */
#storage-table {
  display: flex;
  justify-content: center;
  align-items: center;
  -moz-user-focus: normal;
}

#storage-table:focus {
  outline: 0;
}

.table-widget-cell {
  /* The minimum column width needs to be determined by the header width */
  min-width: unset;
  outline-offset: -2px;
}

.table-widget-column {
  flex-grow: 1;
}

/* Set minimum column widths */

#name {
  min-width: 65px;
}

#host {
  min-width: 80px;
}

#path {
  min-width: 60px;
}

#value {
  min-width: 95px;
  /* Prevent all columns except for value from shrinking with the panel */
  flex-shrink: 1;
}

#hostOnly,
#isHttpOnly,
#sameSite {
  min-width: 58px;
}

#size,
#isSecure {
  min-width: 48px;
}

#expires,
#lastAccessed,
#creationTime {
  min-width: 115px;
}

/* Text input in storage table */
#storage-table input {
  appearance: none;
  flex: 1;
  /* make sure the outline is not cut off */
  position: relative;
  box-sizing: border-box;
  padding: 0 2px;
  font: inherit;
  color: var(--theme-text-color-strong);
  background-color: var(--theme-body-background);
}

#storage-table input:focus {
  outline: 1px solid var(--blue-50);
}

/* Variables View Sidebar */

#storage-sidebar {
  max-width: 500px;
  min-width: 250px;
}

#storage-sidebar .devtools-toolbar {
  padding-inline: 0;
}

/* Toolbar */

/*
  .devtools-input-toolbar forces display: flex; which does not work
  properly with XUL. Force XUL flexbox instead.
*/
#storage-toolbar {
  display: flex;
}

#storage-searchbox {
  flex: 1;
  margin-inline-start: -3px;
  margin-inline-end: 1px;
  outline-offset: -2px;
}

#storage-toolbar .add-button::before {
  background-image: url("chrome://devtools/skin/images/add.svg");
  -moz-user-focus: normal;
}

#storage-toolbar .refresh-button::before {
  background-image: url("chrome://devtools/skin/images/reload.svg");
  -moz-user-focus: normal;
}

#storage-toolbar .devtools-button {
  min-width: 0;
}

#storage-toolbar .devtools-button hbox,
#storage-toolbar .sidebar-toggle[hidden] {
  display: none;
}

/* Responsive sidebar */
@media (width < 700px) {
  #storage-tree,
  #storage-sidebar {
    max-width: none;
    /* Override potential splitter-set width */
    width: auto !important;
  }
}

@media (width >= 700px) {
  #storage-tree,
  #storage-sidebar {
    /* Override potential splitter-set height */
    height: auto !important;
  }
}