4adc49325e264ad161af61f708ca1d85c7fd781c
[vnfsdk/refrepo.git] /
1 // stylelint-disable no-duplicate-selectors, selector-no-qualifying-type
2
3 //
4 // Grid examples
5 //
6
7 .bd-example-row {
8   .row {
9     > .col,
10     > [class^="col-"] {
11       padding-top: .75rem;
12       padding-bottom: .75rem;
13       background-color: rgba(86, 61, 124, .15);
14       border: 1px solid rgba(86, 61, 124, .2);
15     }
16   }
17
18   .row + .row {
19     margin-top: 1rem;
20   }
21
22   .flex-items-top,
23   .flex-items-middle,
24   .flex-items-bottom {
25     min-height: 6rem;
26     background-color: rgba(255, 0, 0, .1);
27   }
28 }
29
30 .bd-example-row-flex-cols .row {
31   min-height: 10rem;
32   background-color: rgba(255, 0, 0, .1);
33 }
34
35 .bd-highlight {
36   background-color: rgba($bd-purple, .15);
37   border: 1px solid rgba($bd-purple, .15);
38 }
39
40 // Grid mixins
41 .example-container {
42   width: 800px;
43   @include make-container();
44 }
45
46 .example-row {
47   @include make-row();
48 }
49
50 .example-content-main {
51   @include make-col-ready();
52
53   @include media-breakpoint-up(sm) {
54     @include make-col(6);
55   }
56
57   @include media-breakpoint-up(lg) {
58     @include make-col(8);
59   }
60 }
61
62 .example-content-secondary {
63   @include make-col-ready();
64
65   @include media-breakpoint-up(sm) {
66     @include make-col(6);
67   }
68
69   @include media-breakpoint-up(lg) {
70     @include make-col(4);
71   }
72 }
73
74
75 //
76 // Container illustrations
77 //
78
79 .bd-example-container {
80   min-width: 16rem;
81   max-width: 25rem;
82   margin-right: auto;
83   margin-left: auto;
84 }
85
86 .bd-example-container-header {
87   height: 3rem;
88   margin-bottom: .5rem;
89   background-color: lighten($blue, 50%);
90   border-radius: .25rem;
91 }
92
93 .bd-example-container-sidebar {
94   float: right;
95   width: 4rem;
96   height: 8rem;
97   background-color: lighten($blue, 25%);
98   border-radius: .25rem;
99 }
100
101 .bd-example-container-body {
102   height: 8rem;
103   margin-right: 4.5rem;
104   background-color: lighten($bd-purple, 25%);
105   border-radius: .25rem;
106 }
107
108 .bd-example-container-fluid {
109   max-width: none;
110 }
111
112
113 //
114 // Docs examples
115 //
116
117 .bd-example {
118   position: relative;
119   padding: 1rem;
120   margin: 1rem (-$grid-gutter-width / 2) 0;
121   border: solid #f7f7f9;
122   border-width: .2rem 0 0;
123   @include clearfix();
124
125   @include media-breakpoint-up(sm) {
126     padding: 1.5rem;
127     margin-right: 0;
128     margin-left: 0;
129     border-width: .2rem;
130   }
131
132   + .highlight,
133   + .clipboard + .highlight {
134     margin-top: 0;
135   }
136
137   + p {
138     margin-top: 2rem;
139   }
140
141   .pos-f-t {
142     position: relative;
143     margin: -1rem;
144
145     @include media-breakpoint-up(sm) {
146       margin: -1.5rem;
147     }
148   }
149
150   .custom-file-input:lang(es) ~ .custom-file-label::after {
151     content: "Elegir";
152   }
153
154   > .form-control {
155     + .form-control {
156       margin-top: .5rem;
157     }
158   }
159
160   > .nav + .nav,
161   > .alert + .alert,
162   > .navbar + .navbar,
163   > .progress + .progress,
164   > .progress + .btn {
165     margin-top: 1rem;
166   }
167
168   > .dropdown-menu:first-child {
169     position: static;
170     display: block;
171   }
172
173   > .form-group:last-child {
174     margin-bottom: 0;
175   }
176
177   > .close {
178     float: none;
179   }
180 }
181
182 // Typography
183 .bd-example-type {
184   .table {
185     .type-info {
186       color: #999;
187       vertical-align: middle;
188     }
189     td {
190       padding: 1rem 0;
191       border-color: #eee;
192     }
193     tr:first-child td {
194       border-top: 0;
195     }
196   }
197
198   h1,
199   h2,
200   h3,
201   h4,
202   h5,
203   h6 {
204     margin-top: 0;
205     margin-bottom: 0;
206   }
207 }
208
209 // Contextual background colors
210 .bd-example-bg-classes p {
211   padding: 1rem;
212 }
213
214 // Images
215 .bd-example > img {
216   + img {
217     margin-left: .5rem;
218   }
219 }
220
221 // Buttons
222 .bd-example {
223   > .btn-group {
224     margin-top: .25rem;
225     margin-bottom: .25rem;
226   }
227   > .btn-toolbar + .btn-toolbar {
228     margin-top: .5rem;
229   }
230 }
231
232 // Forms
233 .bd-example-control-sizing select,
234 .bd-example-control-sizing input[type="text"] + input[type="text"] {
235   margin-top: .5rem;
236 }
237 .bd-example-form .input-group {
238   margin-bottom: .5rem;
239 }
240 .bd-example > textarea.form-control {
241   resize: vertical;
242 }
243
244 // List groups
245 .bd-example > .list-group {
246   max-width: 400px;
247 }
248
249 // Navbars
250 .bd-example {
251   .fixed-top,
252   .sticky-top {
253     position: static;
254     margin: -1rem -1rem 1rem;
255   }
256   .fixed-bottom {
257     position: static;
258     margin: 1rem -1rem -1rem;
259   }
260
261   @include media-breakpoint-up(sm) {
262     .fixed-top,
263     .sticky-top {
264       margin: -1.5rem -1.5rem 1rem;
265     }
266     .fixed-bottom {
267       margin: 1rem -1.5rem -1.5rem;
268     }
269   }
270 }
271
272 // Pagination
273 .bd-example .pagination {
274   margin-top: .5rem;
275   margin-bottom: .5rem;
276 }
277
278 // Example modals
279 .modal {
280   z-index: 1072;
281
282   .tooltip,
283   .popover {
284     z-index: 1073;
285   }
286 }
287
288 .modal-backdrop {
289   z-index: 1071;
290 }
291
292 .bd-example-modal {
293   background-color: #fafafa;
294
295   .modal {
296     position: relative;
297     top: auto;
298     right: auto;
299     bottom: auto;
300     left: auto;
301     z-index: 1;
302     display: block;
303   }
304
305   .modal-dialog {
306     left: auto;
307     margin-right: auto;
308     margin-left: auto;
309   }
310 }
311
312 // Example tabbable tabs
313 .bd-example-tabs .nav-tabs {
314   margin-bottom: 1rem;
315 }
316
317 // Popovers
318 .bd-example-popover-static {
319   padding-bottom: 1.5rem;
320   background-color: #f9f9f9;
321
322   .popover {
323     position: relative;
324     display: block;
325     float: left;
326     width: 260px;
327     margin: 1.25rem;
328   }
329 }
330
331 // Tooltips
332 .tooltip-demo a {
333   white-space: nowrap;
334 }
335
336 .bd-example-tooltip-static .tooltip {
337   position: relative;
338   display: inline-block;
339   margin: 10px 20px;
340   opacity: 1;
341 }
342
343 // Scrollspy demo on fixed height div
344 .scrollspy-example {
345   position: relative;
346   height: 200px;
347   margin-top: .5rem;
348   overflow: auto;
349 }
350
351 .scrollspy-example-2 {
352   position: relative;
353   height: 350px;
354   overflow: auto;
355 }
356
357 .bd-example-border-utils {
358   [class^="border"] {
359     display: inline-block;
360     width: 5rem;
361     height: 5rem;
362     margin: .25rem;
363     background-color: #f5f5f5;
364   }
365 }
366
367 .bd-example-border-utils-0 {
368   [class^="border"] {
369     border: 1px solid $border-color;
370   }
371 }
372
373 //
374 // Code snippets
375 //
376
377 .highlight {
378   padding: 1rem;
379   margin-top: 1rem;
380   margin-bottom: 1rem;
381   background-color: #f7f7f9;
382   -ms-overflow-style: -ms-autohiding-scrollbar;
383
384   @include media-breakpoint-up(sm) {
385     padding: 1.5rem;
386   }
387 }
388
389 .bd-content .highlight {
390   margin-right: (-$grid-gutter-width / 2);
391   margin-left: (-$grid-gutter-width / 2);
392
393   @include media-breakpoint-up(sm) {
394     margin-right: 0;
395     margin-left: 0;
396   }
397 }
398
399 .highlight {
400   pre {
401     padding: 0;
402     margin-top: 0;
403     margin-bottom: 0;
404     background-color: transparent;
405     border: 0;
406   }
407   pre code {
408     font-size: inherit;
409     color: $gray-900; // Effectively the base text color
410   }
411 }