mirror of https://github.com/docker/docs.git
Tweaked look for IP & Port widget.
This commit is contained in:
parent
a39cf3733d
commit
f9ae54433c
|
@ -91,8 +91,9 @@ var ContainerHomePreview = React.createClass({
|
||||||
var key = pair[0];
|
var key = pair[0];
|
||||||
var val = pair[1];
|
var val = pair[1];
|
||||||
return (
|
return (
|
||||||
<div key={key} className="ip-port">
|
<div key={key} className="table-values">
|
||||||
{val.display}
|
<span className="value-left">{key}</span><span className="icon icon-arrow-right"></span>
|
||||||
|
<span className="value-right">{val.display}</span>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -100,8 +101,14 @@ var ContainerHomePreview = React.createClass({
|
||||||
<div className="web-preview wrapper">
|
<div className="web-preview wrapper">
|
||||||
<h4>IP & Ports</h4>
|
<h4>IP & Ports</h4>
|
||||||
<div className="widget">
|
<div className="widget">
|
||||||
<p>You can access this container from the outside using the following IP & Port(s):</p>
|
<p>You can access this container using the following IP address and port:</p>
|
||||||
{ports}
|
<div className="table ports">
|
||||||
|
<div className="table-labels">
|
||||||
|
<div className="label-left">DOCKER PORT</div>
|
||||||
|
<div className="label-right">MAC PORT</div>
|
||||||
|
</div>
|
||||||
|
{ports}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -37,11 +37,61 @@
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
padding-bottom: 0px;
|
padding-bottom: 0px;
|
||||||
}
|
}
|
||||||
.ip-port {
|
.table {
|
||||||
padding: 20px;
|
padding-left: 20px;
|
||||||
padding-top: 5px;
|
padding-right: 20px;
|
||||||
color: @gray-darkest;
|
.icon-arrow-right {
|
||||||
-webkit-user-select: text;
|
color: #BBB;
|
||||||
|
font-size: 20px;
|
||||||
|
margin: 0px 10px;
|
||||||
|
flex: 0 auto;
|
||||||
|
min-width: 13px;
|
||||||
|
}
|
||||||
|
&.ports {
|
||||||
|
.table-labels {
|
||||||
|
margin-top: 20px;
|
||||||
|
flex: 1 auto;
|
||||||
|
display: flex;
|
||||||
|
font-size: 12px;
|
||||||
|
color: @gray-lightest;
|
||||||
|
.label-left {
|
||||||
|
flex: 0 auto;
|
||||||
|
min-width: 85px;
|
||||||
|
margin-right: 30px;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.label-right {
|
||||||
|
flex: 1 auto;
|
||||||
|
display: inline-block;
|
||||||
|
margin-left: 10px;
|
||||||
|
width: 40%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.table-values {
|
||||||
|
flex: 1 auto;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
margin: 8px 0;
|
||||||
|
.value-left {
|
||||||
|
text-align: right;
|
||||||
|
min-width: 85px;
|
||||||
|
flex: 0 auto;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
.value-right {
|
||||||
|
flex: 1 auto;
|
||||||
|
-webkit-user-select: text;
|
||||||
|
max-width: 170px;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
label {
|
||||||
|
margin-left: 8px;
|
||||||
|
margin-top: 1px;
|
||||||
|
font-weight: 400;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.frame {
|
.frame {
|
||||||
border: 0;
|
border: 0;
|
||||||
|
|
Loading…
Reference in New Issue