Skip to content

Commit aa9ff0e

Browse files
committed
Style detail multi-group
1 parent 261eba9 commit aa9ff0e

3 files changed

Lines changed: 98 additions & 2 deletions

File tree

‎ui/stylesheets/_detail-view.scss‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@
1515
// specific language governing permissions and limitations
1616
// under the License.
1717
.detail-view {
18+
.details {
19+
&.group-multiple {
20+
th {
21+
text-align: left;
22+
}
23+
}
24+
}
25+
1826
.toolbar {
1927
background: none;
2028
float: right;
@@ -32,6 +40,18 @@
3240
.detail-group {
3341
@include csui-details;
3442

43+
.button {
44+
@include csui-action-button;
45+
@include csui-button;
46+
47+
float: right;
48+
49+
.icon {
50+
@include csui-sprite(0, 0);
51+
background-position: inherit;
52+
}
53+
}
54+
3555
.main-groups {
3656
max-height: 400px;
3757
overflow: auto;

‎ui/stylesheets/_icons.scss‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
// under the License.
1717

1818
@mixin csui-sprite($x, $y) {
19-
background: url(../images/sprites.png) no-repeat -#{$x}px -#{$y}px;
19+
background: url(../images/sprites.png) no-repeat;
20+
background-position: -#{$x}px -#{$y}px;
2021
}
2122

2223

‎ui/stylesheets/cloudstack.css‎

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6640,6 +6640,8 @@ ul.ui-tabs-nav {
66406640
left: 556px;
66416641
top: 16px; }
66426642

6643+
.detail-view .details.group-multiple th {
6644+
text-align: left; }
66436645
.detail-view .toolbar {
66446646
background: none;
66456647
float: right;
@@ -6680,6 +6682,78 @@ ul.ui-tabs-nav {
66806682
background: #f2f2f2;
66816683
padding: 10px;
66826684
border-bottom: 1px solid #ccc; }
6685+
.detail-view .detail-group .button {
6686+
float: left;
6687+
cursor: pointer;
6688+
background-color: white;
6689+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, white), color-stop(100%, #cccccc));
6690+
background-image: -webkit-linear-gradient(white, #cccccc);
6691+
background-image: linear-gradient(white, #cccccc);
6692+
display: block;
6693+
padding-top: 8px;
6694+
padding-bottom: 8px;
6695+
padding-left: 12px;
6696+
padding-right: 12px;
6697+
min-width: 92px;
6698+
font-size: 11px;
6699+
border-radius: 3px;
6700+
border: 1px solid #999999;
6701+
cursor: pointer;
6702+
text-align: center;
6703+
float: right; }
6704+
.detail-view .detail-group .button span {
6705+
display: block;
6706+
float: left; }
6707+
.detail-view .detail-group .button a {
6708+
width: 25px;
6709+
height: 20px;
6710+
display: block;
6711+
float: left;
6712+
text-decoration: none; }
6713+
.detail-view .detail-group .button .icon {
6714+
display: block;
6715+
width: 25px;
6716+
height: 20px;
6717+
margin-bottom: -12px;
6718+
float: left;
6719+
position: relative;
6720+
top: -5px;
6721+
left: -5px; }
6722+
.detail-view .detail-group .button.text {
6723+
background-color: white;
6724+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, white), color-stop(100%, #cccccc));
6725+
background-image: -webkit-linear-gradient(white, #cccccc);
6726+
background-image: linear-gradient(white, #cccccc);
6727+
display: block;
6728+
padding-top: 8px;
6729+
padding-bottom: 8px;
6730+
padding-left: 12px;
6731+
padding-right: 12px;
6732+
min-width: 92px;
6733+
font-size: 11px;
6734+
border-radius: 3px;
6735+
border: 1px solid #999999;
6736+
cursor: pointer;
6737+
text-align: center;
6738+
float: right; }
6739+
.detail-view .detail-group .button.text:hover {
6740+
box-shadow: inset 0 0 10px #ccc;
6741+
background-color: white;
6742+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, white), color-stop(100%, #f2f2f2));
6743+
background-image: -webkit-linear-gradient(white, #f2f2f2);
6744+
background-image: linear-gradient(white, #f2f2f2); }
6745+
.detail-view .detail-group .button.text span {
6746+
float: right; }
6747+
.detail-view .detail-group .button:hover {
6748+
box-shadow: inset 0 0 10px #ccc;
6749+
background-color: white;
6750+
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, white), color-stop(100%, #f2f2f2));
6751+
background-image: -webkit-linear-gradient(white, #f2f2f2);
6752+
background-image: linear-gradient(white, #f2f2f2); }
6753+
.detail-view .detail-group .button .icon {
6754+
background: url(../images/sprites.png) no-repeat;
6755+
background-position: -0px -0px;
6756+
background-position: inherit; }
66836757
.detail-view .detail-group .main-groups {
66846758
max-height: 400px;
66856759
overflow: auto; }
@@ -7123,7 +7197,8 @@ body {
71237197
float: left;
71247198
margin-right: 1.75788%;
71257199
width: 17.32172%;
7126-
background: url(../images/sprites.png) no-repeat -142px -390px;
7200+
background: url(../images/sprites.png) no-repeat;
7201+
background-position: -142px -390px;
71277202
height: 30px; }
71287203
#header .region-switcher .icon:last-child {
71297204
margin-right: 0; }

0 commit comments

Comments
 (0)