diff options
| author | Yuval Adam <yuval@y3xz.com> | 2015-12-09 19:33:42 +0200 |
|---|---|---|
| committer | Yuval Adam <yuval@y3xz.com> | 2015-12-09 19:33:42 +0200 |
| commit | 5bb0d45cf9784bb5d4b88632655011a44923365a (patch) | |
| tree | d4c463c700e28dacf7ed3f0f3c0af91c17549592 | |
| parent | 64cfb355c8ba9c1ac19d67cb6655f910e1c1e371 (diff) | |
Details styling
| -rw-r--r-- | index.js | 6 | ||||
| -rw-r--r-- | style.scss | 22 |
2 files changed, 21 insertions, 7 deletions
@@ -84,10 +84,12 @@ class IPAddress extends React.Component { <div className="details"> <span className="netmask"> - <span className="label">Netmask:</span> {this.getNetmask()} + <span className="value">{this.getNetmask()}</span> + <span className="label">Netmask</span> </span> <span className="count"> - <span className="label">Available addresses:</span> {this.getCount()} + <span className="value">{this.getCount()}</span> + <span className="label">Addresses</span> </span> </div> @@ -19,7 +19,7 @@ body { font-size: modular-scale(2); small { text-transform: uppercase; - color: #bbb; + color: #669; display: block; } } @@ -85,11 +85,23 @@ body { } } div.details { - span.label { - font-family: $lucida-grande; + span.netmask { + display: inline-block; } span.count { - margin-left: 2em; + display: inline-block; + margin-left: 3em; + } + span.value { + font-size: modular-scale(1); + } + span.label { + display: block; + font-family: $lucida-grande; + text-transform: uppercase; + font-size: modular-scale(2); + font-weight: bold; + color: #779; } } } @@ -97,7 +109,7 @@ body { footer { margin-top: 50px; text-align: center; - font-size: 0.7em; + font-size: modular-scale(-1); } } |
