Skip to content

Commit dcce2ae

Browse files
committed
Panel buttons
git-svn-id: svn://cherokee-project.com/CTK/trunk@4701 5dc97367-97f1-0310-9951-d761b3857238
1 parent 44f385e commit dcce2ae

3 files changed

Lines changed: 20 additions & 13 deletions

File tree

static/css/CTK.css

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -371,14 +371,17 @@ a.helpbutton span {
371371
}
372372

373373
.panel h2 {
374-
padding-left: 16px;
374+
padding-left: 8px;
375+
width: 172px;
375376
font-size: 16px;
376377
color: #27c;
377378
text-shadow: #fff 0px 1px 0px;
378379
border: none;
380+
float: left;
379381
}
380382

381383
.panel .filterbox {
384+
clear: both;
382385
background: transparent url(/CTK/images/bg-filter.png) repeat-x;
383386
border: 1px solid #cde;
384387
border-bottom: 0;
@@ -392,7 +395,7 @@ a.helpbutton span {
392395
#vservers_panel, #rules_panel, #source_panel {
393396
background: #fff;
394397
height: 320px;
395-
margin: 0 2px 2px 2px;
398+
margin: 0 2px 8px 2px;
396399
border: 1px solid #cde;
397400
overflow: auto;
398401
overflow-x: hidden;
@@ -427,11 +430,6 @@ a.helpbutton span {
427430
padding: 0 10px 0 0;
428431
}
429432

430-
.panel-buttons {
431-
height: 48px;
432-
padding: 8px;
433-
}
434-
435433
.dragHandle {
436434
width: 18px;
437435
background: transparent url(/CTK/images/arrow_ns.png) center center no-repeat;
@@ -469,7 +467,6 @@ tr.panel-selected td div.row_content .sel-actions {
469467

470468
.sel-actions .togglebutton { float: left; }
471469

472-
473470
.vserver_content, .source_content, .rules_content {
474471
width: 716px;
475472
padding: 0;
@@ -495,8 +492,6 @@ tr.panel-selected td div.row_content .sel-actions {
495492
overflow: auto;
496493
}
497494

498-
499-
500495
.source_content .submitter {
501496
border-top: 1px solid #cde;
502497
}
@@ -515,11 +510,23 @@ tr.panel-selected td div.row_content .sel-actions {
515510
.panel .comment { color: #999; font-size: 11px; white-space: nowrap; width: 200px; }
516511
.panel-selected .droot, .panel-selected .host, .panel-selected .inter, .panel-selected .comment, .panel-selected .type { color: #cde; }
517512

513+
/* Panel buttons */
514+
.panel-buttons { height: 24px; float: right; }
515+
.panel-button { width: 24px !important; padding: 0 !important; margin: 6px 2px 2px 2px !important; }
516+
.panel-button span { background: none !important; text-indent: -99999px !important; width: 0 !important; }
517+
#vserver-new-button { background: transparent url(/CTK/images/bg-button-new.png) no-repeat; }
518+
#vserver-clone-button { background: transparent url(/CTK/images/bg-button-clone.png) no-repeat; }
519+
#rule-new-button { background: transparent url(/CTK/images/bg-button-new.png) no-repeat; }
520+
#rule-clone-button { background: transparent url(/CTK/images/bg-button-clone.png) no-repeat; }
521+
#source-new-button { background: transparent url(/CTK/images/bg-button-new.png) no-repeat; }
522+
#source-clone-button { background: transparent url(/CTK/images/bg-button-clone.png) no-repeat; }
523+
.panel-button:active { background-position: bottom left !important; }
524+
518525
/* Rules table */
519526
#rules-table {
520-
border-collapse: collapse;
521-
width: 100%;
522-
border: 1px solid #cde;
527+
border-collapse: collapse;
528+
width: 100%;
529+
border: 1px solid #cde;
523530
}
524531

525532
#rules-table th {

static/images/bg-button-clone.png

1.38 KB
Loading

static/images/bg-button-new.png

1.22 KB
Loading

0 commit comments

Comments
 (0)