blob: e513c08763fbf3430f1defae49dffaeb83a8333d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
@import url('https://fonts.googleapis.com/css?family=Ubuntu|Ubuntu+Mono');
$color_a: #a101a6;
$color_b: #d9005b;
$color_c: #84e900;
$color_d: #cff700;
$color_e: #aaa;
$octet_lighten: 15%;
body {
background: #eee;
font-family: 'Ubuntu', sans-serif;
header {
margin-bottom: 30px;
margin-left: 40px;
h1 {
font-size: modular-scale(2);
small {
text-transform: uppercase;
color: #669;
display: block;
}
}
p {
margin-right: 90px;
font-size: modular-scale(-1);
}
}
div.ip-address {
text-align: center;
font-family: 'Ubuntu Mono', monospace;
div {
margin-top: 65px;
}
div.address {
input {
width: 2.5em;
font-size: 2.7em;
text-align: center;
border: 0px;
border-radius: 3px;
}
span.octet {
span.dot {
font-size: 2.7em;
text-align: center;
padding: 0.1em 0.13em;
}
&:nth-child(1) input.octet {
background-color: $color_a;
}
&:nth-child(2) input.octet {
background-color: $color_b;
}
&:nth-child(3) input.octet {
background-color: $color_c;
}
&:nth-child(4) input.octet {
background-color: $color_d;
}
}
input.cidr {
background-color: $color_e;
}
}
div.bits {
ol {
display: inline;
padding-left: 0px;
padding-right: 15px;
li.octet {
display: inline;
ol {
li.bit {
display: inline;
padding: 0.4em 0.6em;
margin-left: -1px;
border: 1px black solid;
}
}
&:nth-child(1) ol li.bit.unmasked {
background-color: lighten($color_a, $octet_lighten);
}
&:nth-child(2) ol li.bit.unmasked {
background-color: lighten($color_b, $octet_lighten);
}
&:nth-child(3) ol li.bit.unmasked {
background-color: lighten($color_c, $octet_lighten);
}
&:nth-child(4) ol li.bit.unmasked {
background-color: lighten($color_d, $octet_lighten);
}
ol li.bit.masked {
background-color: lighten($color_e, $octet_lighten);
}
}
}
}
div.details {
span.netmask {
display: inline-block;
width: 15%;
}
span.base {
display: inline-block;
width: 15%;
}
span.broadcast {
display: inline-block;
width: 15%;
}
span.count {
display: inline-block;
width: 15%;
}
span.first {
display: inline-block;
width: 15%;
}
span.last {
display: inline-block;
width: 15%;
}
span.value {
font-size: modular-scale(1);
}
span.label {
display: block;
font-family: 'Ubuntu', sans-serif;
text-transform: uppercase;
font-size: modular-scale(2);
font-weight: bold;
color: #656582;
}
}
}
footer {
margin-top: 50px;
text-align: center;
font-size: modular-scale(-1);
}
}
|