Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(706)

Side by Side Diff: chrome/browser/resources/file_manager/js/image_editor/gallery.css

Issue 7887009: [filebrowser] UI improvements in image editor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 body { 7 body {
8 margin: 0; 8 margin: 0;
9 } 9 }
10 10
(...skipping 10 matching lines...) Expand all
21 right: 10px; 21 right: 10px;
22 top: 10px; 22 top: 10px;
23 height: 20px; 23 height: 20px;
24 color: white; 24 color: white;
25 cursor: pointer; 25 cursor: pointer;
26 } 26 }
27 27
28 .gallery > .image-container { 28 .gallery > .image-container {
29 position: absolute; 29 position: absolute;
30 top: 30px; 30 top: 30px;
31 bottom: 80px; 31 bottom: 0px;
32 width: 100%; 32 width: 100%;
33 background-color: rgba(0,0,0,1); 33 background-color: rgba(0,0,0,1);
34 } 34 }
35 35
36 .gallery > .toolbar { 36 .gallery > .toolbar {
37 position: absolute; 37 position: absolute;
38 bottom: 0px; 38 bottom: 0px;
39 width: 100%; 39 width: 100%;
40 height: 80px; 40 height: 60px;
41 padding: 3px; 41 padding: 3px;
42 display: -webkit-box; 42 display: -webkit-box;
43 -webkit-box-orient: horizontal; 43 -webkit-box-orient: horizontal;
44 -webkit-box-pack: start; 44 -webkit-box-pack: start;
45 -webkit-box-align: stretch; 45 -webkit-box-align: stretch;
46 opacity: 1.0;
47 -webkit-transition: opacity 0.5s ease-in-out;
48 background-color: rgba(18,18,18,0.75);
49 border-top: 1px solid rgba(31,31,31,0.75);
50 }
51
52 .gallery > .toolbar[hidden] {
53 opacity: 0.0;
46 } 54 }
47 55
48 .gallery .ribbon { 56 .gallery .ribbon {
49 -webkit-box-flex: 1; 57 -webkit-box-flex: 1;
50 border: solid 1px white;
51 overflow: hidden; 58 overflow: hidden;
59 height: 100%;
52 display: -webkit-box; 60 display: -webkit-box;
53 -webkit-box-orient: horizontal; 61 -webkit-box-orient: horizontal;
54 -webkit-box-pack: left; 62 -webkit-box-pack: left;
55 } 63 }
56 64
57 .gallery .ribbon-left, 65 .gallery .ribbon-left,
58 .gallery .ribbon-right { 66 .gallery .ribbon-right {
59 width: 20px; 67 width: 20px;
60 height: 100%; 68 height: 100%;
61 background-color: red;
62 cursor: pointer; 69 cursor: pointer;
70 display: -webkit-box;
71 -webkit-box-align: center;
72 -webkit-box-pack: center;
73 background-repeat: no-repeat;
74 background-position: center center;
75 }
76
77 .gallery .ribbon-left {
78 background-image: url(../../images/gallery/arrow_left.png);
79 }
80
81 .gallery .ribbon-left[disabled] {
82 background-image: url(../../images/gallery/arrow_left_disabled.png);
83 }
84
85 .gallery .ribbon-right {
86 background-image: url(../../images/gallery/arrow_right.png);
87 border-right: 1px solid rgba(87,87,87,0.5);
88 }
89
90 .gallery .ribbon-right[disabled] {
91 background-image: url(../../images/gallery/arrow_right_disabled.png);
63 } 92 }
64 93
65 .gallery .ribbon-image { 94 .gallery .ribbon-image {
66 display: -webkit-box; 95 display: -webkit-box;
67 -webkit-box-orient: horizontal; 96 -webkit-box-orient: horizontal;
68 -webkit-box-pack: center; 97 -webkit-box-pack: center;
69 -webkit-box-align: center; 98 -webkit-box-align: center;
70 overflow: hidden; 99 overflow: hidden;
71 cursor: pointer; 100 cursor: pointer;
72 width: 70px; 101 width: 47px;
73 height: 70px; 102 height: 47px;
74 margin: 4px; 103 margin: 2px;
75 border: 1px solid rgba(255,255,255,0); /* transparent white */ 104 border: 2px solid rgba(255,255,255,0); /* transparent white */
76 } 105 }
77 106
78 .gallery .ribbon-image[selected] { 107 .gallery .ribbon-image[selected] {
79 border: 1px solid rgba(255,255,0,1); 108 border: 2px solid rgba(255,233,168,1);
80 } 109 }
81 110
82 .gallery .ribbon-image > img { 111 .gallery .ribbon-image > img {
83 max-width: 70px; 112 max-width: 45px;
84 max-height: 70px; 113 max-height: 45px;
85 } 114 }
86 115
87 .gallery .ribbon-spacer { 116 .gallery .ribbon-spacer {
88 -webkit-box-flex: 1; 117 -webkit-box-flex: 1;
89 height: 100%; 118 height: 100%;
90 } 119 }
91 120
92 .gallery .edit-bar { 121 .gallery .edit-bar {
93 -webkit-box-flex: 0; 122 -webkit-box-flex: 0;
94 width: 60%; 123 width: 60%;
124 height: 100%;
95 color: white; 125 color: white;
96 display: -webkit-box; 126 display: -webkit-box;
97 -webkit-box-orient: horizontal; 127 -webkit-box-orient: horizontal;
128 -webkit-transition: width 0.5s ease-in-out;
129 }
130
131 .gallery .edit-bar > .toolbar {
132 opacity: 1.0;
133 -webkit-transition: opacity 0.25s ease-in-out 0.25s;
98 } 134 }
99 135
100 .gallery .edit-bar[hidden] { 136 .gallery .edit-bar[hidden] {
137 width: 0%;
138 -webkit-transition: width 0.5s ease-in-out;
139 }
140
141 .gallery .edit-bar[hidden] > .toolbar {
142 opacity: 0;
143 -webkit-transition: opacity 0.25s ease-in-out;
144 }
145
146 .gallery .edit-bar[hidden] > .toolbar[hidden] {
101 display: none; 147 display: none;
102 } 148 }
103 149
104 .gallery .toolbar > .button { 150 .gallery > .toolbar > .button {
105 -webkit-box-flex: 0; 151 -webkit-box-flex: 0;
106 padding: 10px; 152 padding: 10px;
107 cursor: pointer; 153 cursor: pointer;
108 margin: 8px 3px; 154 width: 75px;
109 width: 80px; 155 margin: 10px 5px;
110 156
111 display: -webkit-box; 157 display: -webkit-box;
112 -webkit-box-orient: horizontal; 158 -webkit-box-orient: horizontal;
113 -webkit-box-align: center; 159 -webkit-box-align: center;
160 -webkit-box-pack: end;
161
162 background-repeat: no-repeat;
163 background-position: left center;
114 } 164 }
115 165
116 .gallery .button { 166 .gallery > .toolbar > .button {
117 background-color: rgba(0,0,0,1); 167 background-color: rgba(0,0,0,0);
118 color: white; 168 color: white;
119 } 169 }
120 170
121 .gallery .button:hover { 171 .gallery > .toolbar > .button:hover {
122 background-color: rgba(127,127,127,1); 172 background-color: rgba(31,31,31,1);
123 color: white; 173 color: white;
124 } 174 }
125 175
126 .gallery .button[pressed] { 176 .gallery > .toolbar > .button[pressed] {
127 background-color: rgba(255,255,255,1); 177 background-color: rgba(240,240,240,1);
128 color: black; 178 color: black;
129 } 179 }
130 180
131 .gallery .button[pressed]:hover { 181 .gallery > .toolbar > .button[pressed]:hover {
132 background-color: rgba(127,127,127,1); 182 background-color: rgba(240,240,240,1);
133 color: black; 183 color: black;
134 } 184 }
185
186 .gallery > .toolbar > .button.edit {
187 background-image: url(../../images/gallery/icon_edit.png);
188 }
189
190 .gallery > .toolbar > .button.edit[pressed] {
191 background-image: url(../../images/gallery/icon_edit_selected.png);
192 }
193
194 .gallery > .toolbar > .button.share {
195 background-image: url(../../images/gallery/icon_share.png);
196 }
197
198 .gallery > .toolbar > .button.share[pressed] {
199 background-image: url(../../images/gallery/icon_share_selected.png);
200 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698