Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 * Use of this source code is governed by a BSD-style license that can be | |
| 3 * found in the LICENSE file. */ | |
| 4 | |
| 5 /* Styles for the cookies list page. */ | |
| 6 #app-cookies-view-page { | |
|
Evan Stade
2012/06/27 04:53:00
do not just copy cookies_view.css wholesale. Share
nasko
2012/06/27 17:17:01
I've removed some of the redundancy, though not al
Evan Stade
2012/06/28 04:15:13
I would rather you share everything, then override
nasko
2012/06/29 00:46:52
Done.
| |
| 7 height: 90%; | |
| 8 margin-left: -15px; | |
| 9 width: 720px; | |
| 10 } | |
| 11 | |
| 12 /* Styles for the cookies list elements in cookies_view.html. */ | |
| 13 #app-cookies-list { | |
| 14 -webkit-box-flex: 1; | |
| 15 /* This property overrides the |min-height: 192px;| property above due to | |
| 16 * special behavior of the cookies list. */ | |
| 17 min-height: 0; | |
| 18 } | |
| 19 | |
| 20 #app-cookies-list-content-area { | |
| 21 -webkit-box-orient: vertical; | |
| 22 display: -webkit-box; | |
| 23 overflow-y: hidden; | |
| 24 } | |
| 25 | |
| 26 #app-cookies-column-headers { | |
| 27 -webkit-box-align: baseline; | |
| 28 -webkit-box-orient: horizontal; | |
| 29 display: -webkit-box; | |
| 30 position: relative; | |
| 31 width: 100%; | |
| 32 } | |
| 33 | |
| 34 #app-cookies-column-headers > * { | |
| 35 display: block; | |
| 36 } | |
| 37 | |
| 38 #app-cookies-column-headers h3 { | |
| 39 font-size: 105%; | |
| 40 font-weight: bold; | |
| 41 margin: 10px 0; | |
| 42 } | |
| 43 | |
| 44 /* Notice the width and padding for these columns match up with those below. */ | |
| 45 #app-cookies-site-column { | |
| 46 -webkit-padding-start: 7px; | |
| 47 width: 20em; | |
| 48 } | |
| 49 | |
| 50 #app-cookies-data-column { | |
| 51 -webkit-box-flex: 1; | |
| 52 -webkit-padding-start: 7px; | |
| 53 } | |
| 54 | |
| 55 #app-cookies-header-controls > * { | |
| 56 margin-bottom: 5px; | |
| 57 } | |
| 58 | |
| 59 #app-cookies-list { | |
| 60 border: 1px solid #D9D9D9; | |
| 61 margin: 0; | |
| 62 } | |
| 63 | |
| 64 /* Styles for the site (aka origin) and its summary. */ | |
| 65 .app-cookie-site { | |
| 66 /* Notice that the width, margin, and padding match up with those above. */ | |
| 67 -webkit-margin-end: 2px; | |
| 68 -webkit-padding-start: 5px; | |
| 69 display: inline-block; | |
| 70 overflow: hidden; | |
| 71 text-overflow: ellipsis; | |
| 72 width: 20em; | |
| 73 } | |
| 74 | |
| 75 list.cookie-list > .deletable-item[selected] .app-cookie-site { | |
| 76 -webkit-user-select: text; | |
| 77 } | |
| 78 | |
| 79 .app-cookie-data { | |
| 80 display: inline-block; | |
| 81 max-width: 410px; | |
| 82 overflow: hidden; | |
| 83 text-overflow: ellipsis; | |
| 84 } | |
| 85 | |
| 86 .app-cookie-size { | |
| 87 display: inline-block; | |
| 88 float: right; | |
| 89 margin-right: 0; | |
| 90 } | |
| 91 | |
| 92 list.cookie-list > .deletable-item[selected] .app-cookie-data { | |
| 93 -webkit-user-select: text; | |
| 94 } | |
| 95 | |
| 96 | |
| 97 /* Styles for the individual items (cookies, etc.). */ | |
| 98 .app-cookie-items { | |
| 99 /* Notice that the margin and padding match up with those above. */ | |
| 100 -webkit-margin-start: 20em; | |
| 101 -webkit-padding-start: 7px; | |
| 102 -webkit-transition: 150ms ease-in-out; | |
| 103 height: 0; | |
| 104 opacity: 0; | |
| 105 /* Make the cookie items wrap correctly. */ | |
| 106 white-space: normal; | |
| 107 } | |
| 108 | |
| 109 .measure-items .app-cookie-items { | |
| 110 -webkit-transition: none; | |
| 111 height: auto; | |
| 112 visibility: hidden; | |
| 113 } | |
| 114 | |
| 115 .show-items .app-cookie-items { | |
| 116 opacity: 1; | |
| 117 } | |
| 118 | |
| 119 .app-cookie-items .cookie-item { | |
| 120 background: rgb(224, 233, 245); | |
| 121 border: 1px solid rgb(131, 146, 174); | |
| 122 border-radius: 5px; | |
| 123 display: inline-block; | |
| 124 font-size: 85%; | |
| 125 height: auto; | |
| 126 margin: 2px 4px 2px 0; | |
| 127 max-width: 100px; | |
| 128 min-width: 40px; | |
| 129 overflow: hidden; | |
| 130 padding: 0 3px; | |
| 131 text-align: center; | |
| 132 text-overflow: ellipsis; | |
| 133 } | |
| 134 | |
| 135 .app-cookie-items .cookie-item:hover { | |
| 136 background: rgb(238, 243, 249); | |
| 137 border-color: rgb(100, 113, 135); | |
| 138 } | |
| 139 | |
| 140 .app-cookie-items .cookie-item[selected] { | |
| 141 background: rgb(245, 248, 248); | |
| 142 border-color: #B2B2B2; | |
| 143 } | |
| 144 | |
| 145 .app-cookie-items .cookie-item[selected]:hover { | |
| 146 background: rgb(245, 248, 248); | |
| 147 border-color: rgb(100, 113, 135); | |
| 148 } | |
| 149 | |
| 150 /* Styles for the cookie details box. */ | |
| 151 .app-cookie-details { | |
| 152 background: rgb(245, 248, 248); | |
| 153 border: 1px solid #B2B2B2; | |
| 154 border-radius: 5px; | |
| 155 margin-top: 2px; | |
| 156 padding: 5px; | |
| 157 } | |
| 158 | |
| 159 list.cookie-list > .deletable-item[selected] .app-cookie-details { | |
| 160 -webkit-user-select: text; | |
| 161 } | |
| OLD | NEW |