##// END OF EJS Templates
add zebra striping to the dashboard
Mathieu -
Show More
@@ -1,261 +1,266 b''
1
1
2 /**
2 /**
3 * Primary styles
3 * Primary styles
4 *
4 *
5 * Author: IPython Development Team
5 * Author: IPython Development Team
6 */
6 */
7
7
8 @dashboard_tb_pad: 4px;
8 @dashboard_tb_pad: 4px;
9 @dashboard_lr_pad: 7px;
9 @dashboard_lr_pad: 7px;
10 // These are the total heights of the Bootstrap small and mini buttons. These values
10 // These are the total heights of the Bootstrap small and mini buttons. These values
11 // are not less variables so we have to track them statically.
11 // are not less variables so we have to track them statically.
12 @btn_small_height: 24px;
12 @btn_small_height: 24px;
13 @btn_mini_height: 22px;
13 @btn_mini_height: 22px;
14 @dark_dashboard_color: @breadcrumb-color;
14 @dark_dashboard_color: @breadcrumb-color;
15 @list_stripe_color: lighten(@page-backdrop-color,3%);
15
16
16 ul#tabs {
17 ul#tabs {
17 margin-bottom: @dashboard_tb_pad;
18 margin-bottom: @dashboard_tb_pad;
18 }
19 }
19
20
20 ul#tabs a {
21 ul#tabs a {
21 padding-top: @dashboard_tb_pad + 2px;
22 padding-top: @dashboard_tb_pad + 2px;
22 padding-bottom: @dashboard_tb_pad;
23 padding-bottom: @dashboard_tb_pad;
23 }
24 }
24
25
25 ul.breadcrumb {
26 ul.breadcrumb {
26 a:focus, a:hover {
27 a:focus, a:hover {
27 text-decoration: none;
28 text-decoration: none;
28 }
29 }
29 i.icon-home {
30 i.icon-home {
30 font-size: 16px;
31 font-size: 16px;
31 margin-right: 4px;
32 margin-right: 4px;
32 }
33 }
33
34
34 span {
35 span {
35 color: @dark_dashboard_color;
36 color: @dark_dashboard_color;
36 }
37 }
37 }
38 }
38
39
39 .list_toolbar {
40 .list_toolbar {
40 padding: @dashboard_tb_pad 0 @dashboard_tb_pad 0;
41 padding: @dashboard_tb_pad 0 @dashboard_tb_pad 0;
41 vertical-align: middle;
42 vertical-align: middle;
42
43
43 .tree-buttons {
44 .tree-buttons {
44 padding-top: 1px;
45 padding-top: 1px;
45 }
46 }
46 }
47 }
47
48
48 .dynamic-buttons {
49 .dynamic-buttons {
49 display: inline-block;
50 display: inline-block;
50 }
51 }
51
52
52 .list_toolbar [class*="span"] {
53 .list_toolbar [class*="span"] {
53 min-height: @btn_small_height;
54 min-height: @btn_small_height;
54 }
55 }
55
56
56 .list_header {
57 .list_header {
57 font-weight: bold;
58 font-weight: bold;
59 background-color: @page-backdrop-color
58 }
60 }
59
61
60 .list_container {
62 .list_container {
61 margin-top: @dashboard_tb_pad;
63 margin-top: @dashboard_tb_pad;
62 margin-bottom: 5*@dashboard_tb_pad;
64 margin-bottom: 5*@dashboard_tb_pad;
63 border: 1px solid @table-border-color;
65 border: 1px solid @table-border-color;
64 border-radius: @border-radius-base;
66 border-radius: @border-radius-base;
65 }
67 }
66
68
67 .list_container > div {
69 .list_container > div {
68 border-bottom: 1px solid @table-border-color;
70 border-bottom: 1px solid @table-border-color;
69 &:hover .list-item{
71 &:hover .list-item{
70 background-color: red;
72 background-color: red;
71 };
73 };
72 }
74 }
73
75
74 .list_container > div:last-child {
76 .list_container > div:last-child {
75 border: none;
77 border: none;
76 }
78 }
77
79
78 .list_item {
80 .list_item {
79 &:hover .list_item {
81 &:hover .list_item {
80 background-color: @table-border-color;
82 background-color: @table-border-color;
81 };
83 };
82 a {text-decoration: none;}
84 a {text-decoration: none;}
85 &:nth-child(odd) {
86 background-color: @list_stripe_color;
87 }
83 }
88 }
84
89
85 .action_col {
90 .action_col {
86 text-align: right;
91 text-align: right;
87 }
92 }
88
93
89 .list_header>div, .list_item>div {
94 .list_header>div, .list_item>div {
90 padding-top: @dashboard_tb_pad;
95 padding-top: @dashboard_tb_pad;
91 padding-bottom: @dashboard_tb_pad;
96 padding-bottom: @dashboard_tb_pad;
92 padding-left: @dashboard_lr_pad;
97 padding-left: @dashboard_lr_pad;
93 padding-right: @dashboard_lr_pad;
98 padding-right: @dashboard_lr_pad;
94 line-height: @btn_mini_height;
99 line-height: @btn_mini_height;
95
100
96 input {
101 input {
97 margin-right: @dashboard_lr_pad;
102 margin-right: @dashboard_lr_pad;
98 }
103 }
99 }
104 }
100
105
101 .item_name {
106 .item_name {
102 line-height: @btn_mini_height;
107 line-height: @btn_mini_height;
103 height: @btn_small_height;
108 height: @btn_small_height;
104 }
109 }
105
110
106 .item_icon {
111 .item_icon {
107 font-size: 14px;
112 font-size: 14px;
108 color: @dark_dashboard_color;
113 color: @dark_dashboard_color;
109 margin-right: @dashboard_lr_pad;
114 margin-right: @dashboard_lr_pad;
110 }
115 }
111
116
112 .item_buttons {
117 .item_buttons {
113 padding-top: @dashboard_tb_pad;
118 padding-top: @dashboard_tb_pad;
114 line-height: 1em;
119 line-height: 1em;
115 .btn-toolbar();
120 .btn-toolbar();
116 .btn {
121 .btn {
117 min-width: 13ex;
122 min-width: 13ex;
118 }
123 }
119 .running-indicator {
124 .running-indicator {
120 color: @brand-success;
125 color: @brand-success;
121 }
126 }
122 }
127 }
123
128
124 .toolbar_info {
129 .toolbar_info {
125 height: @btn_small_height;
130 height: @btn_small_height;
126 line-height: @btn_small_height;
131 line-height: @btn_small_height;
127 }
132 }
128
133
129 input.nbname_input, input.engine_num_input {
134 input.nbname_input, input.engine_num_input {
130 // These settings give these inputs a height that matches @btn_mini_height = 22
135 // These settings give these inputs a height that matches @btn_mini_height = 22
131 padding-top: 3px;
136 padding-top: 3px;
132 padding-bottom: 3px;
137 padding-bottom: 3px;
133 height: @btn_mini_height;
138 height: @btn_mini_height;
134 line-height: 14px;
139 line-height: 14px;
135 margin: 0px;
140 margin: 0px;
136 }
141 }
137
142
138 input.engine_num_input {
143 input.engine_num_input {
139 width: 60px;
144 width: 60px;
140 }
145 }
141
146
142 .highlight_text {
147 .highlight_text {
143 color: blue;
148 color: blue;
144 }
149 }
145
150
146 #project_name > .breadcrumb {
151 #project_name > .breadcrumb {
147 padding: 0px;
152 padding: 0px;
148 margin-bottom: 0px;
153 margin-bottom: 0px;
149 background-color: transparent;
154 background-color: transparent;
150 font-weight: bold;
155 font-weight: bold;
151
156
152 }
157 }
153
158
154 .tab-content .row {
159 .tab-content .row {
155 margin-left: 0px;
160 margin-left: 0px;
156 margin-right: 0px;
161 margin-right: 0px;
157 }
162 }
158
163
159 .folder_icon:before {
164 .folder_icon:before {
160 .icon(@fa-var-folder-o)
165 .icon(@fa-var-folder-o)
161 }
166 }
162
167
163 .notebook_icon:before {
168 .notebook_icon:before {
164 .icon(@fa-var-book)
169 .icon(@fa-var-book)
165 }
170 }
166
171
167 .running_notebook_icon:before {
172 .running_notebook_icon:before {
168 .icon(@fa-var-book);
173 .icon(@fa-var-book);
169 color: @brand-success
174 color: @brand-success
170 }
175 }
171
176
172
177
173 .file_icon:before {
178 .file_icon:before {
174 .icon(@fa-var-file-o)
179 .icon(@fa-var-file-o)
175 }
180 }
176
181
177 #notebook_toolbar .pull-right {
182 #notebook_toolbar .pull-right {
178 padding-top: 0px;
183 padding-top: 0px;
179 margin-right: -1px;
184 margin-right: -1px;
180 }
185 }
181
186
182 ul#new-menu {
187 ul#new-menu {
183 // align right instead of left
188 // align right instead of left
184 left: auto;
189 left: auto;
185 right: 0;
190 right: 0;
186 }
191 }
187
192
188 .kernel-menu-icon {
193 .kernel-menu-icon {
189 padding-right: 12px;
194 padding-right: 12px;
190 width: 24px;
195 width: 24px;
191 content: @fa-var-square-o;
196 content: @fa-var-square-o;
192 }
197 }
193
198
194 .kernel-menu-icon:before {
199 .kernel-menu-icon:before {
195 content: @fa-var-square-o;
200 content: @fa-var-square-o;
196 }
201 }
197
202
198 .kernel-menu-icon-current:before {
203 .kernel-menu-icon-current:before {
199 content: @fa-var-check;
204 content: @fa-var-check;
200 }
205 }
201
206
202 #tab_content {
207 #tab_content {
203 padding-top: @page-header-padding;
208 padding-top: @page-header-padding;
204 }
209 }
205
210
206 #running {
211 #running {
207 .panel-group{
212 .panel-group{
208 .panel {
213 .panel {
209 margin-top: 3px;
214 margin-top: 3px;
210 margin-bottom: 1em;
215 margin-bottom: 1em;
211
216
212 .panel-heading {
217 .panel-heading {
213 background-color: @page-backdrop-color;
218 background-color: @page-backdrop-color;
214 padding-top: @dashboard_tb_pad;
219 padding-top: @dashboard_tb_pad;
215 padding-bottom: @dashboard_tb_pad;
220 padding-bottom: @dashboard_tb_pad;
216 padding-left: @dashboard_lr_pad;
221 padding-left: @dashboard_lr_pad;
217 padding-right: @dashboard_lr_pad;
222 padding-right: @dashboard_lr_pad;
218 line-height: @btn_mini_height;
223 line-height: @btn_mini_height;
219
224
220 a:focus, a:hover {
225 a:focus, a:hover {
221 text-decoration: none;
226 text-decoration: none;
222 }
227 }
223 }
228 }
224
229
225 .panel-body {
230 .panel-body {
226 padding: 0px;
231 padding: 0px;
227
232
228 .list_container {
233 .list_container {
229 margin-top: 0px;
234 margin-top: 0px;
230 margin-bottom: 0px;
235 margin-bottom: 0px;
231 border: 0px;
236 border: 0px;
232 border-radius: 0px;
237 border-radius: 0px;
233
238
234 .list_item {
239 .list_item {
235 border-bottom: 1px solid @table-border-color;
240 border-bottom: 1px solid @table-border-color;
236
241
237 &:last-child {
242 &:last-child {
238 border-bottom: 0px;
243 border-bottom: 0px;
239 }
244 }
240 }
245 }
241 }
246 }
242 }
247 }
243 }
248 }
244 }
249 }
245 }
250 }
246
251
247 .delete-button {
252 .delete-button {
248 display: none;
253 display: none;
249 }
254 }
250
255
251 .duplicate-button {
256 .duplicate-button {
252 display: none;
257 display: none;
253 }
258 }
254
259
255 .rename-button {
260 .rename-button {
256 display: none;
261 display: none;
257 }
262 }
258
263
259 .shutdown-button {
264 .shutdown-button {
260 display: none;
265 display: none;
261 }
266 }
General Comments 0
You need to be logged in to leave comments. Login now