horizon/openstack_dashboard/static/dashboard/scss/components/_network_topology.scss

228 lines
4.0 KiB
SCSS

#topologyCanvasContainer {
@include box-sizing(border-box);
width: 100%;
height: auto;
padding: 25px;
padding-left: 50px;
background: #ffffff;
min-height: 400px;
cursor: grab;
cursor: -webkit-grab;
div.nodata {
font-size: 150%;
text-align: center;
padding-top: 150px;
display: none;
}
&.noinfo {
div.nodata {
display: block;
}
#topology_canvas {
display: none;
}
}
}
.topologyNavi {
overflow: hidden;
margin: 10px 0;
.toggleView {
float: left;
span.glyphicon {
margin-right: 4px;
}
}
.launchButtons {
float: right;
text-align: right;
a.btn {
margin-left: 5px;
}
}
}
.topologyBalloon {
display: none;
background: $body-bg;
@include box-shadow(0px 1px 6px #777);
position: absolute;
left:100px;
top:20px;
z-index: 600;
border-radius: 5px;
color:#333;
min-width: 200px;
&.on {
display: block;
}
line-height: 1.2;
.vnc_window {
margin-left: 10px;
}
.closeTopologyBalloon {
font-size: 16px;
line-height: 1;
display: block;
position: absolute;
font-weight: bold;
right: 6px;
top: 0px;
cursor: pointer;
padding: 3px;
color:#aaa;
&:hover {
color:#777;
text-decoration: none;
}
}
.contentBody {
padding: 8px 8px 0;
}
span.active, span.down {
&:before {
content: "";
width: 9px;
height: 9px;
display: inline-block;
background: $brand-success;
margin-right: 3px;
border-radius: 10px;
vertical-align: middle;
}
}
span.down {
&:before {
background: $brand-danger;
}
}
.footer {
background: #efefef;
border-top: 1px solid $border-color;
padding: 8px;
border-radius: 0px 0px 7px 7px;
.footerInner {
display: table;
width: 100%;
}
.cell {
display: table-cell;
padding-right: 10px;
}
.link {
font-size: 12px;
}
.delete {
padding-right: 0;
text-align: right;
}
}
.portTableHeader {
border-top: 1px solid $gray-lighter;
padding-top: 5px;
margin: 5px 0;
display: table;
width: 100%;
.title {
display: table-cell;
font-size: 13px;
font-weight: bold;
}
.action {
display: table-cell;
text-align: right;
}
}
table.detailInfoTable {
margin-bottom: 5px;
caption {
text-align: left;
font-size: 13px;
font-weight: bold;
margin-bottom: 0px;
}
th,td {
text-align: left;
vertical-align: middle;
padding-bottom: 3px;
background: transparent;
}
th {
color: $gray-light;
padding-right: 8px;
width: 80px;
span {
vertical-align: middle;
width:80px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
display: inline-block;
}
&.device {
text-align: right;
}
}
td {
padding-right: 5px;
white-space: nowrap;
}
td.delete {
padding-right: 0;
text-align: right;
}
.btn {
line-height: 1.4;
}
}
font-size: 11px;
&:before {
border-top: 7px solid transparent;
border-bottom: 7px solid transparent;
border-right: 9px solid $border-color;
display: block;
position: absolute;
top: 30px;
left: -9px;
width: 0;
height: 0;
content: "";
}
&:after {
border-top: 6px solid transparent;
border-bottom: 6px solid transparent;
border-right: 8px solid $body-bg;
display: block;
position: absolute;
top: 31px;
left: -8px;
width: 0;
height: 0;
content: "";
}
&.leftPosition {
&:before {
border-right: none;
border-left: 9px solid $border-color;
right: -9px;
top: 30px;
left:auto;
}
&:after {
border-right: none;
border-left: 8px solid $body-bg;
right: -8px;
top: 31px;
left:auto;
}
}
}
#topologyMessages {
width:1px;
height:1px;
visibility: hidden;
position: absolute;
top: -100px;
}