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

Side by Side Diff: Source/devtools/front_end/screencastView.css

Issue 272753002: DevTools: remove ugly black border from screencast, brush up styles. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
« no previous file with comments | « Source/devtools/front_end/ScreencastView.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 .screencast { 31 .screencast {
32 overflow: hidden; 32 overflow: hidden;
33 } 33 }
34 34
35 .screencast-navigation { 35 .screencast-navigation {
36 -webkit-flex-direction: row; 36 flex-direction: row;
37 display: -webkit-flex; 37 display: flex;
38 height: 25px; 38 flex: 24px 0 0;
39 position: relative; 39 position: relative;
40 } 40 }
41 41
42 .screencast-navigation button { 42 .screencast-navigation button {
43 -webkit-border-radius: 2px; 43 border-radius: 2px;
44 background-color: transparent; 44 background-color: transparent;
45 background-image: -webkit-image-set( 45 background-image: -webkit-image-set(
46 url(Images/navigationControls.png) 1x, 46 url(Images/navigationControls.png) 1x,
47 url(Images/navigationControls_2x.png) 2x); 47 url(Images/navigationControls_2x.png) 2x);
48 background-clip: content-box; 48 background-clip: content-box;
49 background-origin: content-box; 49 background-origin: content-box;
50 background-repeat: no-repeat; 50 background-repeat: no-repeat;
51 border: 1px solid transparent; 51 border: 1px solid transparent;
52 height: 23px; 52 height: 23px;
53 padding: 3px 2px 1px; 53 padding: 2px;
54 width: 23px; 54 width: 23px;
55 } 55 }
56 56
57 .screencast-navigation button:hover { 57 .screencast-navigation button:hover {
58 border-color: #ccc; 58 border-color: #ccc;
59 } 59 }
60 60
61 .screencast-navigation button:active { 61 .screencast-navigation button:active {
62 border-color: #aaa; 62 border-color: #aaa;
63 } 63 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 background-color: rgb(66, 129, 235); 95 background-color: rgb(66, 129, 235);
96 height: 3px; 96 height: 3px;
97 left: 0; 97 left: 0;
98 position: absolute; 98 position: absolute;
99 top: 100%; /* Align with the bottom edge of the parent. */ 99 top: 100%; /* Align with the bottom edge of the parent. */
100 width: 0; 100 width: 0;
101 z-index: 2; /* Above .screencast-glasspane. */ 101 z-index: 2; /* Above .screencast-glasspane. */
102 } 102 }
103 103
104 .screencast-viewport { 104 .screencast-viewport {
105 border: 20px solid #333; 105 display: flex;
106 border: 1px solid #999;
106 border-radius: 20px; 107 border-radius: 20px;
107 position: absolute; 108 flex: auto;
108 top: 36px; 109 padding: 20px;
109 left: 10px; 110 margin: 10px;
110 right: 10px; 111 }
111 bottom: 10px; 112
113 .screencast-canvas-container {
114 flex: auto;
115 display: flex;
116 border: 1px solid #999;
117 position: relative;
112 } 118 }
113 119
114 .screencast canvas { 120 .screencast canvas {
115 position: absolute; 121 flex: auto;
116 width: 100%; 122 position: relative;
117 height: 100%;
118 } 123 }
119 124
120 .screencast-px { 125 .screencast-px {
121 color: rgb(128, 128, 128); 126 color: rgb(128, 128, 128);
122 } 127 }
123 128
124 .screencast-element-title { 129 .screencast-element-title {
125 position: absolute; 130 position: absolute;
126 z-index: 10; 131 z-index: 10;
127 } 132 }
128 133
129 .screencast-tag-name { 134 .screencast-tag-name {
130 /* Keep this in sync with view-source.css (.webkit-html-tag) */ 135 /* Keep this in sync with view-source.css (.webkit-html-tag) */
131 color: rgb(136, 18, 128); 136 color: rgb(136, 18, 128);
132 } 137 }
133 138
134 .screencast-node-id { 139 .screencast-node-id {
135 /* Keep this in sync with view-source.css (.webkit-html-attribute-value) */ 140 /* Keep this in sync with view-source.css (.webkit-html-attribute-value) */
136 color: rgb(26, 26, 166); 141 color: rgb(26, 26, 166);
137 } 142 }
138 143
139 .screencast-class-name { 144 .screencast-class-name {
140 /* Keep this in sync with view-source.css (.webkit-html-attribute-name) */ 145 /* Keep this in sync with view-source.css (.webkit-html-attribute-name) */
141 color: rgb(153, 69, 0); 146 color: rgb(153, 69, 0);
142 } 147 }
143 148
144 .screencast-glasspane { 149 .screencast-glasspane {
145 -webkit-box-orient: horizontal; 150 position: absolute;
146 -webkit-box-align: center; 151 top: 0;
147 -webkit-box-pack: center; 152 right: 0;
153 bottom: 0;
154 left: 0;
148 background-color: rgba(255, 255, 255, 0.8); 155 background-color: rgba(255, 255, 255, 0.8);
149 bottom: 0;
150 display: -webkit-box;
151 left: 0;
152 position: absolute;
153 right: 0;
154 top: 25px; /* Align with the botton edge of .screencast .navigation. */
155 font-size: 30px; 156 font-size: 30px;
157 z-index: 100;
158 display: flex;
159 justify-content: center;
160 align-items: center;
156 } 161 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/ScreencastView.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698