summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/options/cookies_view.css
blob: 2aab6b252f4dc96b43aade2b06ece3a8d2a45b18 (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
/*
Copyright (c) 2011 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
*/

/* styles for the cookies list elements in cookies_view.html */
#remove-all-cookies-search-column {
  bottom: 10px;
  position: absolute;
  right: 0;
}

html[dir=rtl] #remove-all-cookies-search-column {
  left: 0;
  right: auto;
}

#cookies-column-headers {
  position: relative;
  width: 100%;
}

#cookies-column-headers h3 {
  font-size: 105%;
  font-weight: bold;
  margin: 10px 0;
}

/* notice the width and padding for these columns match up with those below */
#cookies-site-column {
  display: inline-block;
  font-weight: bold;
  width: 11em;
}

#cookies-data-column {
  -webkit-padding-start: 7px;
  display: inline-block;
  font-weight: bold;
}

#cookies-list {
  border: 1px solid #D9D9D9;
  margin: 0;
}


/* enable animating the height of items */
list.cookie-list .deletable-item {
  -webkit-transition: height .15s ease-in-out;
}

/* disable webkit-box display */
list.cookie-list .deletable-item > :first-child {
  display: block;
}

/* force the X for deleting an origin to stay at the top */
list.cookie-list > .deletable-item > .close-button {
  position: absolute;
  right: 2px;
  top: 8px;
}

html[dir=rtl] list.cookie-list > .deletable-item > .close-button {
  left: 2px;
  right: auto;
}


/* styles for the site (aka origin) and its summary */
.cookie-site {
  /* notice that the width, margin, and padding match up with those above */
  -webkit-margin-end: 2px;
  -webkit-padding-start: 5px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 11em;
}

list.cookie-list > .deletable-item[selected] .cookie-site {
  -webkit-user-select: text;
}

.cookie-data {
  display: inline-block;
}

.cookie-size {
  display: inline-block;
  float: right;
  margin-right: 3em;
}

list.cookie-list > .deletable-item[selected] .cookie-data {
  -webkit-user-select: text;
}


/* styles for the individual items (cookies, etc.) */
.cookie-items {
  /* notice that the margin and padding match up with those above */
  -webkit-margin-start: 11em;
  -webkit-padding-start: 7px;
  -webkit-transition: .15s ease-in-out;
  height: 0;
  opacity: 0;
  /* make the cookie items wrap correctly */
  white-space: normal;
}

.measure-items .cookie-items {
  -webkit-transition: none;
  height: auto;
  visibility: hidden;
}

.show-items .cookie-items {
  opacity: 1;
}

.cookie-items .cookie-item {
  background: #E0E9F5;
  border-radius: 5px;
  border: 1px solid #8392AE;
  display: inline-block;
  font-size: 85%;
  height: auto;
  margin: 2px 4px 2px 0;
  max-width: 100px;
  min-width: 40px;
  overflow: hidden;
  padding: 0 3px;
  text-align: center;
  text-overflow: ellipsis;
}

.cookie-items .cookie-item:hover {
  background: #EEF3F9;
  border-color: #647187;
}

.cookie-items .cookie-item[selected] {
  background: #F5F8F8;
  border-color: #B2B2B2;
}

.cookie-items .cookie-item[selected]:hover {
  background: #F5F8F8;
  border-color: #647187;
}


/* styles for the cookie details box */
.cookie-details {
  background: #F5F8F8;
  border-radius: 5px;
  border: 1px solid #B2B2B2;
  margin-top: 2px;
  padding: 5px;
}

list.cookie-list > .deletable-item[selected] .cookie-details {
  -webkit-user-select: text;
}

.cookie-details-table {
  table-layout: fixed;
  width: 100%;
}

.cookie-details-label {
  vertical-align: top;
  white-space: pre;
  width: 10em;
}

.cookie-details-value {
  word-wrap: break-word;
}