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

Side by Side Diff: appengine/config_service/ui/src/config-ui/config-set.html

Issue 2983493002: config_service: make UI responsive and change colors. (Closed)
Patch Set: Created 3 years, 5 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
OLDNEW
1 <!-- 1 <!--
2 Copyright 2017 The LUCI Authors. All rights reserved. 2 Copyright 2017 The LUCI Authors. All rights reserved.
3 Use of this source code is governed under the Apache License, Version 2.0 3 Use of this source code is governed under the Apache License, Version 2.0
4 that can be found in the LICENSE file. 4 that can be found in the LICENSE file.
5 --> 5 -->
6 6
7 <link rel="import" href="config-file-card.html"> 7 <link rel="import" href="config-file-card.html">
8 <link rel="import" href="../../bower_components/iron-ajax/iron-ajax.html"> 8 <link rel="import" href="../../bower_components/iron-ajax/iron-ajax.html">
9 <link rel="import" href="../../bower_components/iron-icons/iron-icons.html"> 9 <link rel="import" href="../../bower_components/iron-icons/iron-icons.html">
10 <link rel="import" href="../../bower_components/paper-item/paper-item.html"> 10 <link rel="import" href="../../bower_components/paper-item/paper-item.html">
11 <link rel="import" href="../../bower_components/paper-spinner/paper-spinner.html "> 11 <link rel="import" href="../../bower_components/paper-spinner/paper-spinner.html ">
12 <link rel="import" href="../../bower_components/polymer/polymer.html"> 12 <link rel="import" href="../../bower_components/polymer/polymer.html">
13 <link rel="import" href="../../bower_components/iron-icons/maps-icons.html"> 13 <link rel="import" href="../../bower_components/iron-icons/maps-icons.html">
14 14
15 <dom-module id="config-set"> 15 <dom-module id="config-set">
16 <template> 16 <template>
17 <style> 17 <style>
18 .spinner {
19 text-align: center;
20 }
21
18 .category { 22 .category {
19 font-size: 100%; 23 font-size: 100%;
20 font-family: sans-serif; 24 font-family: sans-serif;
21 } 25 }
22 26
23 .center { 27 .center {
24 width: 27%; 28 width: 20%;
25 margin: auto; 29 margin: auto;
26 text-align: left; 30 text-align: left;
27 } 31 }
28 32
29 .config-card { 33 .config-card {
30 padding-bottom: 1%; 34 padding-bottom: 1%;
31 animation: fadein 1.5s; 35 animation: fadein 1.5s;
32 } 36 }
33 37
34 @keyframes fadein { 38 @keyframes fadein {
35 from {opacity: 0} 39 from {opacity: 0}
36 to {opacity: 1} 40 to {opacity: 1}
37 } 41 }
38 42
39 .name { 43 .name {
40 font-size: 200%; 44 font-size: 200%;
41 font-family: sans-serif; 45 font-family: sans-serif;
46 word-wrap: break-word;
42 } 47 }
43 48
44 #refreshStatus { font-size: 35%; } 49 #refreshStatus { font-size: 80%; }
45 50
46 .title { 51 .title {
47 padding-bottom: 1%; 52 padding-bottom: 1%;
48 padding-top: 5%; 53 padding-top: 5%;
49 } 54 }
50 </style> 55 </style>
51 56
52 <iron-ajax 57 <iron-ajax
53 auto 58 auto
54 id="requestConfigs" 59 id="requestConfigs"
(...skipping 12 matching lines...) Expand all
67 on-response="_onCompleteRefresh" 72 on-response="_onCompleteRefresh"
68 headers="[[auth_headers]]"> 73 headers="[[auth_headers]]">
69 </iron-ajax> 74 </iron-ajax>
70 75
71 <div class="center title"> 76 <div class="center title">
72 <div class="name"> 77 <div class="name">
73 [[name]][[route.path]] 78 [[name]][[route.path]]
74 <template is="dom-if" if="[[_not(isLoading)]]"> 79 <template is="dom-if" if="[[_not(isLoading)]]">
75 <template is="dom-if" if="[[lastImportAttempt]]"> 80 <template is="dom-if" if="[[lastImportAttempt]]">
76 <template is="dom-if" if="[[lastImportAttempt.success]]"> 81 <template is="dom-if" if="[[lastImportAttempt.success]]">
77 <iron-icon id="valid" icon="icons:check-circle"></iron-icon> 82 <iron-icon id="valid" icon="icons:check-circle" style="color: var( --paper-green-600);"></iron-icon>
Ryan Tseng 2017/07/13 22:16:53 Styles go in <style> block
78 </template> 83 </template>
79 <template is="dom-if" if="[[_not(lastImportAttempt.success)]]"> 84 <template is="dom-if" if="[[_not(lastImportAttempt.success)]]">
80 <iron-icon id="invalid" icon="icons:warning"></iron-icon> 85 <iron-icon id="invalid" icon="icons:warning" style="color: var(--p aper-red-600);"></iron-icon>
81 </template> 86 </template>
82 </template> 87 </template>
83 <template is="dom-if" if="[[_not(lastImportAttempt)]]"> 88 <template is="dom-if" if="[[_not(lastImportAttempt)]]">
84 <iron-icon icon="icons:help"></iron-icon> 89 <iron-icon icon="icons:help" style="color: var(--paper-grey-600);">< /iron-icon>
85 </template> 90 </template>
86 </template> 91 </template>
87 <template is="dom-if" if="[[auth_headers]]"> 92 <template is="dom-if" if="[[auth_headers]]">
88 <iron-icon icon="icons:refresh" on-tap="_forceRefresh"></iron-icon> 93 <iron-icon icon="icons:refresh" on-tap="_forceRefresh"></iron-icon>
89 <span id="refreshStatus">[[refreshMessage]]</span>
90 </template> 94 </template>
91 </div> 95 </div>
92 <div class="category"> 96 <div class="category">
93 [[_formatCategory(category)]] <br> 97 <p>[[_formatCategory(category)]]</p>
94 <template is="dom-if" if="[[_not(isLoading)]]"> 98 <template is="dom-if" if="[[_not(isLoading)]]">
95 <template is="dom-if" if="[[lastImportAttempt]]"> 99 <template is="dom-if" if="[[lastImportAttempt]]">
96 <template is="dom-if" if="[[_not(lastImportAttempt.success)]]"> 100 <template is="dom-if" if="[[_not(lastImportAttempt.success)]]">
97 Last import attempt failed: [[lastImportAttempt.message]] 101 Last import attempt failed: [[lastImportAttempt.message]]
98 </template> 102 </template>
99 </template> 103 </template>
100 <template is="dom-if" if="[[_not(lastImportAttempt)]]"> 104 <template is="dom-if" if="[[_not(lastImportAttempt)]]">
101 Last import attempt info not available. 105 Last import attempt info not available.
102 </template> 106 </template>
103 </template> 107 </template>
108 <p id="refreshStatus">[[refreshMessage]]</p>
104 </div> 109 </div>
105 </div> 110 </div>
106 <template is="dom-if" if="[[isRefreshing]]"> 111 <template is="dom-if" if="[[isRefreshing]]">
107 <div class="center"> 112 <div class="spinner">
108 <paper-spinner active></paper-spinner> 113 <paper-spinner active></paper-spinner>
109 </div> 114 </div>
110 </template> 115 </template>
111 <template is="dom-if" if="[[_not(isRefreshing)]]"> 116 <template is="dom-if" if="[[_not(isRefreshing)]]">
112 <template is="dom-if" if="[[isLoading]]"> 117 <template is="dom-if" if="[[isLoading]]">
113 <div class="center"> 118 <div class="spinner">
114 <paper-spinner active></paper-spinner> 119 <paper-spinner active></paper-spinner>
115 </div> 120 </div>
116 </template> 121 </template>
117 <template is="dom-if" if="[[_not(isLoading)]]"> 122 <template is="dom-if" if="[[_not(isLoading)]]">
118 <template is="dom-if" if="[[_isEmpty(files)]]"> 123 <template is="dom-if" if="[[_isEmpty(files)]]">
119 <div class="center" style="font-family: sans-serif;"> 124 <div class="center" style="font-family: sans-serif;">
120 No config files found. 125 No config files found.
121 </div> 126 </div>
122 </template> 127 </template>
123 <template is="dom-if" if="[[_not(_isEmpty(files))]]"> 128 <template is="dom-if" if="[[_not(_isEmpty(files))]]">
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 this.isLoading = false; 227 this.isLoading = false;
223 }, 228 },
224 229
225 _onRefreshError: function() { 230 _onRefreshError: function() {
226 this.isRefreshing = false; 231 this.isRefreshing = false;
227 this.refreshMessage = "Error: Files could not be refreshed."; 232 this.refreshMessage = "Error: Files could not be refreshed.";
228 } 233 }
229 }); 234 });
230 </script> 235 </script>
231 </dom-module> 236 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698