patterns.less 14.2 KB
Newer Older
1
/* Patterns.less
2
 * Repeatable UI elements outside the base styles provided from the scaffolding
3
 * ---------------------------------------------------------------------------- */
Jacob Thornton's avatar
Jacob Thornton committed
4

5
6

// TOPBAR
7
// ------
Jacob Thornton's avatar
Jacob Thornton committed
8
9

// Topbar for Branding and Nav
Mark Otto's avatar
Mark Otto committed
10
.topbar {
Jacob Thornton's avatar
Jacob Thornton committed
11
12
13
14
15
16
  #gradient > .vertical(#333, #222);
  height: 40px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
Mark Otto's avatar
Mark Otto committed
17
  z-index: 10000;
Jacob Thornton's avatar
Jacob Thornton committed
18
  overflow: visible;
Mark Otto's avatar
Mark Otto committed
19
20
21
22
23
24
25
26

  // gradient is applied to it's own element because overflow visible is not honored by ie when filter is present
  .fill {
    background:#222;
    #gradient > .vertical(#333, #222);
    @shadow: 0 1px 3px rgba(0,0,0,.25), inset 0 -1px 0 rgba(0,0,0,.1);
    .box-shadow(@shadow);
  }
27

Jacob Thornton's avatar
Jacob Thornton committed
28
29
  // Links get text shadow
  a {
30
    color: @grayLight;
Jacob Thornton's avatar
Jacob Thornton committed
31
32
    text-shadow: 0 -1px 0 rgba(0,0,0,.25);
  }
33

34
35
36
  // Hover and active states
  a:hover,
  ul li.active a {
Jacob Thornton's avatar
Jacob Thornton committed
37
    background-color: #333;
38
    background-color: rgba(255,255,255,.05);
Jacob Thornton's avatar
Jacob Thornton committed
39
40
41
    color: @white;
    text-decoration: none;
  }
42

43
  // Website name
Mark Otto's avatar
Mark Otto committed
44
45
46
47
48
49
50
51
52
53
54
55
  h3 {
    position:relative;
    a {
      float: left;
      display: block;
      padding: 8px 20px 12px;
      margin-left: -20px; // negative indent to left-align the text down the page
      color: @white;
      font-size: 20px;
      font-weight: 200;
      line-height: 1;
    }
Jacob Thornton's avatar
Jacob Thornton committed
56
  }
57

Jacob Thornton's avatar
Jacob Thornton committed
58
59
60
  // Search Form
  form {
    float: left;
Mark Otto's avatar
Mark Otto committed
61
    margin: 5px 0 0 0;
Jacob Thornton's avatar
Jacob Thornton committed
62
    position: relative;
63
    .opacity(100);
Jacob Thornton's avatar
Jacob Thornton committed
64
    input {
Mark Otto's avatar
Mark Otto committed
65
      background-color: #444;
Jacob Thornton's avatar
Jacob Thornton committed
66
      background-color: rgba(255,255,255,.3);
67
      #font > .sans-serif(13px, normal, 1);
Jacob Thornton's avatar
Jacob Thornton committed
68
69
70
71
72
73
74
75
76
      width: 220px;
      padding: 4px 9px;
      color: #fff;
      color: rgba(255,255,255,.75);
      border: 1px solid #111;
      .border-radius(4px);
      @shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0px rgba(255,255,255,.25);
      .box-shadow(@shadow);
      .transition(none);
77

Jacob Thornton's avatar
Jacob Thornton committed
78
79
      // Placeholder text gets special styles; can't be bundled together though for some reason
      &:-moz-placeholder {
80
        color: @grayLighter;
Jacob Thornton's avatar
Jacob Thornton committed
81
82
      }
      &::-webkit-input-placeholder {
83
        color: @grayLighter;
Jacob Thornton's avatar
Jacob Thornton committed
84
      }
Mark Otto's avatar
Mark Otto committed
85
      // Hover states
Jacob Thornton's avatar
Jacob Thornton committed
86
      &:hover {
Mark Otto's avatar
Mark Otto committed
87
        background-color: @grayLight;
Jacob Thornton's avatar
Jacob Thornton committed
88
89
90
        background-color: rgba(255,255,255,.5);
        color: #fff;
      }
Mark Otto's avatar
Mark Otto committed
91
      // Focus states (we use .focused since IE8 and down doesn't support :focus)
Jacob Thornton's avatar
Jacob Thornton committed
92
93
94
95
      &:focus,
      &.focused {
        outline: none;
        background-color: #fff;
96
        color: @grayDark;
Jacob Thornton's avatar
Jacob Thornton committed
97
98
99
100
101
102
103
        text-shadow: 0 1px 0 #fff;
        border: 0;
        padding: 5px 10px;
        .box-shadow(0 0 3px rgba(0,0,0,.15));
      }
    }
  }
104

Jacob Thornton's avatar
Jacob Thornton committed
105
106
107
108
109
  // Navigation
  ul {
    display: block;
    float: left;
    margin: 0 10px 0 0;
Mark Otto's avatar
Mark Otto committed
110
    position: relative;
Jacob Thornton's avatar
Jacob Thornton committed
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
    &.secondary-nav {
      float: right;
      margin-left: 10px;
      margin-right: 0;
    }
    li {
      display: block;
      float: left;
      font-size: 13px;
      a {
        display: block;
        float: none;
        padding: 10px 10px 11px;
        line-height: 19px;
        text-decoration: none;
        &:hover {
          color: #fff;
          text-decoration: none;
        }
      }
      &.active a {
        background-color: #222;
        background-color: rgba(0,0,0,.5);
      }
    }
136

Jacob Thornton's avatar
Jacob Thornton committed
137
138
139
140
141
142
143
144
145
146
147
    // Dropdowns
    &.primary-nav li ul {
      left: 0;
    }
    &.secondary-nav li ul {
      right: 0;
    }
    li.menu {
      position: relative;
      a.menu {
        &:after {
148
149
          width: 0px;
          height: 0px;
Jacob Thornton's avatar
Jacob Thornton committed
150
151
152
153
154
155
          display: inline-block;
          content: "↓";
          text-indent: -99999px;
          vertical-align: top;
          margin-top: 8px;
          margin-left: 4px;
156
157
158
          border-left: 4px solid transparent;
          border-right: 4px solid transparent;
          border-top: 4px solid #fff;
159
          .opacity(50);
Jacob Thornton's avatar
Jacob Thornton committed
160
161
162
163
164
        }
      }
      &.open {
        a.menu,
        a:hover {
Mark Otto's avatar
Mark Otto committed
165
          background-color: #444;
Jacob Thornton's avatar
Jacob Thornton committed
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
          background-color: rgba(255,255,255,.1);
          color: #fff;
        }
        ul {
          display: block;
          li {
            a {
              background-color: transparent;
              font-weight: normal;
              &:hover {
                background-color: rgba(255,255,255,.1);
                color: #fff;
              }
            }
            &.active a {
              background-color: rgba(255,255,255,.1);
              font-weight: bold;
            }
          }
        }
      }
    }
    li ul {
      background-color: #333;
      float: left;
      display: none;
      position: absolute;
      top: 40px;
      min-width: 160px;
      max-width: 220px;
      _width: 160px;
      margin-left: 0;
      margin-right: 0;
      padding: 0;
      text-align: left;
      border: 0;
      zoom: 1;
      .border-radius(0 0 5px 5px);
      .box-shadow(0 1px 2px rgba(0,0,0,0.6));
      li {
        float: none;
        clear: both;
        display: block;
        background: none;
        font-size: 12px;
        a {
          display: block;
          padding: 6px 15px;
          clear: both;
          font-weight: normal;
          line-height: 19px;
          color: #bbb;
          &:hover {
            background-color: #333;
            background-color: rgba(255,255,255,.25);
            color: #fff;
          }
        }
224

Jacob Thornton's avatar
Jacob Thornton committed
225
226
227
228
        // Dividers (basically an hr)
        &.divider {
          height: 1px;
          overflow: hidden;
Mark Otto's avatar
Mark Otto committed
229
          background: #222;
Jacob Thornton's avatar
Jacob Thornton committed
230
231
232
233
          background: rgba(0,0,0,.2);
          border-bottom: 1px solid rgba(255,255,255,.1);
          margin: 5px 0;
        }
234

Jacob Thornton's avatar
Jacob Thornton committed
235
236
237
238
239
240
241
        // Section separaters
        span {
          clear: both;
          display: block;
          background: rgba(0,0,0,.2);
          padding: 6px 15px;
          cursor: default;
242
          color: @gray;
Jacob Thornton's avatar
Jacob Thornton committed
243
244
245
246
247
248
249
          border-top: 1px solid rgba(0,0,0,.2);
        }
      }
    }
  }
}

250

251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
// PAGE HEADERS
// ------------

.hero-unit {
  background-color: #f5f5f5;
  margin-bottom: 30px;
  padding: 60px;
  .border-radius(6px);
  h1 {
    margin-bottom: 0;
    font-size: 60px;
    line-height: 1;
    letter-spacing: -1px;
  }
  p {
    font-size: 18px;
    font-weight: 200;
    line-height: @baseline * 1.5;
  }
}


273
// PAGE HEADERS
274
// ------------
Jacob Thornton's avatar
Jacob Thornton committed
275

Mark Otto's avatar
Mark Otto committed
276
.page-header {
Jacob Thornton's avatar
Jacob Thornton committed
277
278
279
280
  margin-bottom: @baseline - 1;
  border-bottom: 1px solid #ddd;
  .box-shadow(0 1px 0 rgba(255,255,255,.5));
  h1 {
281
    margin-bottom: (@baseline / 2) - 1px;
Jacob Thornton's avatar
Jacob Thornton committed
282
283
284
285
  }
}


286
// ERROR STYLES
287
// ------------
Jacob Thornton's avatar
Jacob Thornton committed
288
289

// One-liner alert bars
Mark Otto's avatar
Mark Otto committed
290
291
.alert-message {
  // TODO: Ask cloudhead how to do this fancy filter elegantly. Less eval is returning strings with quotes ;_;
Jacob Thornton's avatar
Jacob Thornton committed
292
  #gradient > .vertical(transparent, rgba(0,0,0,0.15));
Mark Otto's avatar
Mark Otto committed
293
294
  -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#15000000')";
  filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#15000000')";
295
  background-color: @grayLighter;
Jacob Thornton's avatar
Jacob Thornton committed
296
  margin-bottom: @baseline;
297
  padding: 8px 15px;
Jacob Thornton's avatar
Jacob Thornton committed
298
  color: #fff;
Mark Otto's avatar
Mark Otto committed
299
300
  text-shadow: 0 -1px 0 rgba(0,0,0,.3);
  border-bottom: 1px solid rgba(0,0,0,.3);
301
  .border-radius(4px);
Jacob Thornton's avatar
Jacob Thornton committed
302
303
304
305
306
307
308
309
  p {
    color: #fff;
    margin-bottom: 0;
    + p {
      margin-top: 5px;
    }
  }
  &.error {
Mark Otto's avatar
Mark Otto committed
310
311
    #gradient > .vertical(lighten(@red, 30%), lighten(@red, 15%));
    border-bottom-color: lighten(@red, 5%);
Jacob Thornton's avatar
Jacob Thornton committed
312
313
  }
  &.warning {
Mark Otto's avatar
Mark Otto committed
314
315
    #gradient > .vertical(lighten(@yellow, 25%), lighten(@yellow, 10%));
    border-bottom-color: @yellow;
Jacob Thornton's avatar
Jacob Thornton committed
316
317
  }
  &.success {
Mark Otto's avatar
Mark Otto committed
318
319
    #gradient > .vertical(lighten(@green, 25%), lighten(@green, 10%));
    border-bottom-color: @green;
Jacob Thornton's avatar
Jacob Thornton committed
320
321
  }
  &.info {
Mark Otto's avatar
Mark Otto committed
322
323
    #gradient > .vertical(lighten(@blue, 25%), lighten(@blue, 5%));
    border-bottom-color: @blue;
Jacob Thornton's avatar
Jacob Thornton committed
324
  }
Mark Otto's avatar
Mark Otto committed
325
  .close {
Jacob Thornton's avatar
Jacob Thornton committed
326
327
    float: right;
    margin-top: -2px;
Mark Otto's avatar
Mark Otto committed
328
    color: #000;
Jacob Thornton's avatar
Jacob Thornton committed
329
330
    font-size: 20px;
    font-weight: bold;
Mark Otto's avatar
Mark Otto committed
331
332
    text-shadow: 0 1px 0 rgba(255,255,255,1);
    .opacity(20);
Jacob Thornton's avatar
Jacob Thornton committed
333
334
    &:hover {
      text-decoration: none;
Mark Otto's avatar
Mark Otto committed
335
      .opacity(40);
Jacob Thornton's avatar
Jacob Thornton committed
336
337
338
339
340
    }
  }
}

// Block-level Alerts
Mark Otto's avatar
Mark Otto committed
341
.block-message {
Jacob Thornton's avatar
Jacob Thornton committed
342
  margin-bottom: @baseline;
343
344
  padding: 14px;
  color: @grayDark;
Jacob Thornton's avatar
Jacob Thornton committed
345
  color: rgba(0,0,0,.8);
Mark Otto's avatar
Mark Otto committed
346
  *color: @grayDark; /* IE 6-7 */
Jacob Thornton's avatar
Jacob Thornton committed
347
348
349
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
  .border-radius(6px);
  p {
350
    color: @grayDark;
Jacob Thornton's avatar
Jacob Thornton committed
351
    color: rgba(0,0,0,.8);
Mark Otto's avatar
Mark Otto committed
352
    *color: @grayDark; /* IE 6-7 */
Jacob Thornton's avatar
Jacob Thornton committed
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
    margin-right: 30px;
    margin-bottom: 0;
  }
  ul {
    margin-bottom: 0;
  }
  strong {
    display: block;
  }
  &.error {
    background: lighten(@red, 55%);
    border: 1px solid lighten(@red, 50%);
  }
  &.warning {
    background: lighten(@yellow, 35%);
    border: 1px solid lighten(@yellow, 25%)
  }
  &.success {
    background: lighten(@green, 45%);
    border: 1px solid lighten(@green, 35%)
  }
  &.info {
    background: lighten(@blue, 45%);
    border: 1px solid lighten(@blue, 40%);
  }
}


381
// NAVIGATION
382
// ----------
Jacob Thornton's avatar
Jacob Thornton committed
383
384

// Common tab and pill styles
Mark Otto's avatar
Mark Otto committed
385
386
.tabs,
.pills {
Jacob Thornton's avatar
Jacob Thornton committed
387
388
389
390
391
392
393
394
395
396
397
  margin: 0 0 20px;
  padding: 0;
  .clearfix();
  li {
    display: inline;
    a {
      float: left;
      width: auto;
    }
  }
}
398

Jacob Thornton's avatar
Jacob Thornton committed
399
// Basic Tabs
Mark Otto's avatar
Mark Otto committed
400
.tabs {
Jacob Thornton's avatar
Jacob Thornton committed
401
  width: 100%;
402
  border-bottom: 1px solid @grayLight;
Jacob Thornton's avatar
Jacob Thornton committed
403
404
405
406
407
408
409
410
  li {
    a {
      margin-bottom: -1px;
      margin-right: 2px;
      padding: 0 15px;
      line-height: (@baseline * 2) - 1;
      .border-radius(3px 3px 0 0);
      &:hover {
411
412
        background-color: @grayLighter;
        border-bottom: 1px solid @grayLight;
Jacob Thornton's avatar
Jacob Thornton committed
413
414
415
      }
    }
    &.active a {
416
      background-color: #fff;
Jacob Thornton's avatar
Jacob Thornton committed
417
418
419
420
421
422
423
      padding: 0 14px;
      border: 1px solid #ccc;
      border-bottom: 0;
      color: @gray;
    }
  }
}
424

Jacob Thornton's avatar
Jacob Thornton committed
425
// Basic pill nav
Mark Otto's avatar
Mark Otto committed
426
.pills {
Jacob Thornton's avatar
Jacob Thornton committed
427
428
429
430
431
432
433
434
  li {
    a {
      margin: 5px 3px 5px 0;
      padding: 0 15px;
      text-shadow: 0 1px 1px #fff;
      line-height: 30px;
      .border-radius(15px);
      &:hover {
435
        background: @linkColorHover;
Jacob Thornton's avatar
Jacob Thornton committed
436
437
438
439
440
441
        color: #fff;
        text-decoration: none;
        text-shadow: 0 1px 1px rgba(0,0,0,.25);
      }
    }
    &.active a {
442
      background: @linkColor;
Jacob Thornton's avatar
Jacob Thornton committed
443
444
445
446
447
448
449
      color: #fff;
      text-shadow: 0 1px 1px rgba(0,0,0,.25);
    }
  }
}


450
451
// PAGINATION
// ----------
Jacob Thornton's avatar
Jacob Thornton committed
452

Mark Otto's avatar
Mark Otto committed
453
.pagination {
Jacob Thornton's avatar
Jacob Thornton committed
454
455
456
457
458
  height: @baseline * 2;
  margin: @baseline 0;
  ul {
    float: left;
    margin: 0;
Mark Otto's avatar
Mark Otto committed
459
    border: 1px solid #ddd;
Jacob Thornton's avatar
Jacob Thornton committed
460
    border: 1px solid rgba(0,0,0,.15);
Mark Otto's avatar
Mark Otto committed
461
    border-right: 0\9; /* IE8 and below don't support last child. TODO: clean this up;  */
Jacob Thornton's avatar
Jacob Thornton committed
462
    .border-radius(3px);
Mark Otto's avatar
Mark Otto committed
463
    .box-shadow(0 1px 2px rgba(0,0,0,.05);
Jacob Thornton's avatar
Jacob Thornton committed
464
465
466
467
468
469
    li {
      display: inline;
      a {
        float: left;
        padding: 0 14px;
        line-height: (@baseline * 2) - 2;
Mark Otto's avatar
Mark Otto committed
470
471
472
        border-right: 1px solid;
        border-right-color: #ddd;
        border-right-color: rgba(0,0,0,.15);
Jacob Thornton's avatar
Jacob Thornton committed
473
474
475
476
477
478
479
480
481
        text-decoration: none;
      }
      a:hover,
      &.active a {
        background-color: lighten(@blue, 45%);
      }
      &.disabled a,
      &.disabled a:hover {
        background-color: none;
482
        color: @grayLight;
Jacob Thornton's avatar
Jacob Thornton committed
483
484
485
486
487
488
489
490
491
492
      }
      &.next a,
      &:last-child a {
        border: 0;
      }
    }
  }
}


493
// WELLS
494
// -----
Jacob Thornton's avatar
Jacob Thornton committed
495

496
497
.well {
  background-color: #f5f5f5;
Jacob Thornton's avatar
Jacob Thornton committed
498
499
500
  margin-bottom: 20px;
  padding: 19px;
  min-height: 20px;
501
502
  border: 1px solid #eee;
  border: 1px solid rgba(0,0,0,.05);
Jacob Thornton's avatar
Jacob Thornton committed
503
  .border-radius(4px);
504
  .box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
Jacob Thornton's avatar
Jacob Thornton committed
505
}
506
507


508
// MODALS
509
// ------
510

Mark Otto's avatar
Mark Otto committed
511
.modal-backdrop {
512
513
514
515
516
517
518
519
  background-color: rgba(0,0,0,.5);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}
Mark Otto's avatar
Mark Otto committed
520
.modal {
521
522
523
524
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2000;
525
526
  width: 560px;
  margin: -280px 0 0 -250px;
527
  background-color: @white;
Mark Otto's avatar
Mark Otto committed
528
  border: 1px solid #999;
Mark Otto's avatar
Mark Otto committed
529
  border: 1px solid rgba(0,0,0,.3);
530
  .border-radius(6px);
531
  .box-shadow(0 3px 7px rgba(0,0,0,0.3));
532
  .background-clip(padding-box);
Jacob Thornton's avatar
Jacob Thornton committed
533
  .modal-header {
534
    border-bottom: 1px solid #eee;
Jacob Thornton's avatar
Jacob Thornton committed
535
536
537
538
539
540
541
542
543
544
    padding: 5px 20px;
    a.close {
      position: absolute;
      right: 10px;
      top: 10px;
      color: #999;
      line-height:10px;
      font-size: 18px;
    }
  }
545
546
547
548
  .modal-body {
    padding: 20px;
  }
  .modal-footer {
549
    background-color: #f5f5f5;
550
551
552
553
554
555
556
557
558
559
    padding: 14px 20px 15px;
    border-top: 1px solid #ddd;
    .border-radius(0 0 6px 6px);
    .box-shadow(inset 0 1px 0 #fff);
    .clearfix();
    .btn {
      float: right;
      margin-left: 10px;
    }
  }
560
}
Jacob Thornton's avatar
Jacob Thornton committed
561

Mark Otto's avatar
Mark Otto committed
562

563
// POPOVER ARROWS
Mark Otto's avatar
Mark Otto committed
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
// --------------

#popoverArrow {
  .above(@arrowWidth: 5px) {
    bottom: 0;
    left: 50%;
    margin-left: -@arrowWidth;
    border-left: @arrowWidth solid transparent;
    border-right: @arrowWidth solid transparent;
    border-top: @arrowWidth solid #000;
  }
  .left(@arrowWidth: 5px) {
    top: 50%;
    right: 0;
    margin-top: -@arrowWidth;
    border-top: @arrowWidth solid transparent;
    border-bottom: @arrowWidth solid transparent;
    border-left: @arrowWidth solid #000;
  }
  .below(@arrowWidth: 5px) {
    top: 0;
    left: 50%;
    margin-left: -@arrowWidth;
    border-left: @arrowWidth solid transparent;
    border-right: @arrowWidth solid transparent;
    border-bottom: @arrowWidth solid #000;
  }
  .right(@arrowWidth: 5px) {
    top: 50%;
    left: 0;
    margin-top: -@arrowWidth;
    border-top: @arrowWidth solid transparent;
    border-bottom: @arrowWidth solid transparent;
    border-right: @arrowWidth solid #000;
  }
}

601
// TWIPSY
Jacob Thornton's avatar
Jacob Thornton committed
602
603
// ------

Mark Otto's avatar
Mark Otto committed
604
.twipsy {
Jacob Thornton's avatar
Jacob Thornton committed
605
606
607
608
  display: block;
  position: absolute;
  visibility: visible;
  padding: 5px;
Mark Otto's avatar
Mark Otto committed
609
  font-size: 11px;
Mark Otto's avatar
Mark Otto committed
610
  z-index: 1000;
Jacob Thornton's avatar
Jacob Thornton committed
611
  .opacity(80);
Mark Otto's avatar
Mark Otto committed
612
613
614
615
  &.above .twipsy-arrow   { #popoverArrow > .above(); }
  &.left .twipsy-arrow    { #popoverArrow > .left(); }
  &.below .twipsy-arrow   { #popoverArrow > .below(); }
  &.right .twipsy-arrow   { #popoverArrow > .right(); }
Jacob Thornton's avatar
Jacob Thornton committed
616
  .twipsy-inner {
Mark Otto's avatar
Mark Otto committed
617
    padding: 3px 8px;
Jacob Thornton's avatar
Jacob Thornton committed
618
619
620
621
    background-color: #000;
    color: white;
    text-align: center;
    max-width: 200px;
Mark Otto's avatar
Mark Otto committed
622
    text-decoration: none;
Jacob Thornton's avatar
Jacob Thornton committed
623
624
625
626
627
628
629
    .border-radius(4px);
  }
  .twipsy-arrow {
    position: absolute;
    width: 0;
    height: 0;
  }
Mark Otto's avatar
Mark Otto committed
630
631
632
}


633
// POPOVERS
Mark Otto's avatar
Mark Otto committed
634
635
636
637
638
639
// --------

.popover {
  position: absolute;
  top: 0;
  left: 0;
Mark Otto's avatar
Mark Otto committed
640
  z-index: 1000;
Mark Otto's avatar
Mark Otto committed
641
  padding: 5px;
Jacob Thornton's avatar
Jacob Thornton committed
642
643
644
645
646
  display: none;
  &.above .arrow { #popoverArrow > .above(); }
  &.right .arrow { #popoverArrow > .right(); }
  &.below .arrow { #popoverArrow > .below(); }
  &.left .arrow  { #popoverArrow > .left(); }
Mark Otto's avatar
Mark Otto committed
647
648
649
650
651
  .arrow {
    position: absolute;
    width: 0;
    height: 0;
  }
Jacob Thornton's avatar
Jacob Thornton committed
652
  .inner {
Mark Otto's avatar
Mark Otto committed
653
654
    background-color: #333;
    background-color: rgba(0,0,0,.8);
Jacob Thornton's avatar
Jacob Thornton committed
655
656
657
658
659
660
    padding: 3px;
    overflow: hidden;
    width: 280px;
    .border-radius(6px);
    .box-shadow(0 3px 7px rgba(0,0,0,0.3));
  }
Mark Otto's avatar
Mark Otto committed
661
  .title {
Mark Otto's avatar
Mark Otto committed
662
    background-color: #f5f5f5;
Mark Otto's avatar
Mark Otto committed
663
664
    padding: 9px 15px;
    line-height: 1;
Jacob Thornton's avatar
Jacob Thornton committed
665
666
    .border-radius(3px 3px 0 0);
    border-bottom:1px solid #eee;
Mark Otto's avatar
Mark Otto committed
667
668
669
670
  }
  .content {
    background-color: @white;
    padding: 14px;
Jacob Thornton's avatar
Jacob Thornton committed
671
    .border-radius(0 0 3px 3px);
672
    .background-clip(padding-box);
Mark Otto's avatar
Mark Otto committed
673
674
675
676
    p, ul, ol {
      margin-bottom: 0;
    }
  }
Jacob Thornton's avatar
Jacob Thornton committed
677
}