Skip to content

Commit 9c92ca2

Browse files
authored
Merge pull request #260 from nginx/internal/add-billing-calc-css
Add css file for billing calculator
2 parents a8be66e + ddf73d2 commit 9c92ca2

File tree

1 file changed

+239
-0
lines changed

1 file changed

+239
-0
lines changed
Lines changed: 239 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,239 @@
1+
#calculator .form-field {
2+
margin: 8px 0 20px 0;
3+
}
4+
#calculator .form-field label {
5+
display: block;
6+
font-size: 14px;
7+
font-weight: 300;
8+
color: #000000;
9+
10+
line-height: 20px;
11+
}
12+
#calculator .form-field label span.label-details, .subtitle {
13+
font-size: 12px;
14+
color: #6C778C;
15+
}
16+
17+
#calculator input, select {
18+
width: 300px;
19+
height: 24px;
20+
21+
margin-top: 4px;
22+
color: #000000;
23+
24+
}
25+
26+
#calculator input[type=radio], #calculator input[type=checkbox] {
27+
width: 24px;
28+
}
29+
30+
#calculator .section {
31+
margin: 1rem auto 1rem auto;
32+
}
33+
34+
#calculator #totals-section {
35+
padding: 20px 0;
36+
37+
}
38+
#calculator #totals-section .total-text {
39+
font-weight: 700;
40+
margin-right: 50px;
41+
}
42+
43+
#calculator details {
44+
position: relative;
45+
}
46+
47+
#calculator details > summary {
48+
list-style: none;
49+
padding-left: 20px;
50+
margin: 20px 2px;
51+
text-decoration: underline;
52+
color: #515357;
53+
}
54+
#calculator details > summary::before {
55+
content: "\FF0B";
56+
border: 2px solid gray;
57+
display: inline-flex;
58+
justify-content: center;
59+
align-items: center;
60+
position: absolute;
61+
top: 2px;
62+
left: 0;
63+
height: 11px;
64+
width: 11px;
65+
font-size: 10px;
66+
font-weight: 600;
67+
border-radius: 50%;
68+
text-decoration: none;
69+
}
70+
#calculator details[open] > summary::before {
71+
content: "\FF0D";
72+
}
73+
74+
#calculator .details-content {
75+
padding: 10px;
76+
display: flex;
77+
78+
width: 100%;
79+
}
80+
81+
#calculator .details-section {
82+
padding: 10px;
83+
margin-right: 10px;
84+
flex: 1;
85+
}
86+
#calculator .details-section:first-child {
87+
flex: 2;
88+
}
89+
90+
#calculator .bandwidth-input-container::after {
91+
content: "Mbps";
92+
color: #6C778C;
93+
font-size: 12px;
94+
margin-left: -60px;
95+
}
96+
#calculator .avg-conn-duration-container::after {
97+
content: "seconds";
98+
color: #6C778C;
99+
font-size: 12px;
100+
margin-left: -70px;
101+
}
102+
103+
#calculator #ncuEstimateValue {
104+
/* display: flex; */
105+
/* align-items: center; */
106+
/* justify-content: center; */
107+
font-weight: 700;
108+
}
109+
110+
#calculator input:invalid + #ncuValidation::after {
111+
content: "Must be a multiple of 10, with a minimum of 10";
112+
color: #aa0000;
113+
padding-left: 5px;
114+
font-size: 12px;
115+
}
116+
117+
#calculator .totals {
118+
display: flex;
119+
justify-content: left;
120+
}
121+
#calculator .totals > span {
122+
margin-right: 20px;
123+
}
124+
125+
126+
#calculator table {
127+
margin: 0 auto;
128+
border-collapse: collapse;
129+
}
130+
131+
#calculator th {
132+
padding-bottom: 16px;
133+
}
134+
135+
#calculator tr.selected {
136+
background-color: #e9f3ea;
137+
}
138+
139+
140+
#calculator .math {
141+
font-weight: 300;
142+
font-size: 12px;
143+
background-color: #f7f7f7;
144+
145+
margin: 8px 0 4px 0;
146+
padding: 8px;
147+
}
148+
149+
#calculator pre {
150+
font-family: inherit;
151+
}
152+
153+
#calculator var {
154+
font-family: inherit;
155+
font-weight: bolder;
156+
}
157+
158+
#calculator .titleCol {
159+
font-weight: 400;
160+
vertical-align: bottom;
161+
}
162+
163+
#calculator dt {
164+
margin: 24px 0 8px 0;
165+
}
166+
#calculator dd {
167+
margin-bottom: 8px;
168+
}
169+
170+
#calculator h3 {
171+
display: flex;
172+
justify-content: space-between;
173+
}
174+
175+
#calculator h3 label {
176+
font-size: 14px;
177+
width: 40%;
178+
text-align: right;
179+
}
180+
#calculator h3 label input {
181+
width: 20px;
182+
vertical-align: middle;
183+
}
184+
185+
/* added for iteration 3 */
186+
187+
#calculator .form-section {
188+
border: 1px solid #B7B7B7;
189+
border-radius: 4px;
190+
margin-bottom: 20px;
191+
}
192+
#calculator .form-section h4 {
193+
font-weight: 600;
194+
}
195+
#calculator .form-section-content {
196+
padding: 20px 18px;
197+
}
198+
#calculator .form-section-content:last-child {
199+
padding-bottom: 18px;
200+
border-top: 1px solid #B7B7B7;
201+
}
202+
203+
@media print {
204+
body {
205+
visibility: hidden !important;
206+
height: 0 !important;
207+
}
208+
209+
footer {
210+
display: none;
211+
}
212+
213+
#calculator {
214+
visibility: visible;
215+
position: absolute;
216+
top: 20px;
217+
218+
margin: 0 auto;
219+
220+
width: fit-content;
221+
left: 0;
222+
}
223+
224+
#calculator .section {
225+
margin: 0;
226+
}
227+
228+
#calculator h3#calculator-section-heading {
229+
justify-content: left;
230+
}
231+
232+
#calculator h3#calculator-section-heading button {
233+
visibility: hidden;
234+
}
235+
236+
#calculator-section-heading::before {
237+
content: "NGINX as a Service for Azure\00a0"
238+
}
239+
}

0 commit comments

Comments
 (0)