patterns.less 15.5 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
10
.topbar {
Jacob Thornton's avatar
Jacob Thornton committed
11
12
13
14
15
  height: 40px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
Mark Otto's avatar
Mark Otto committed
16
  z-index: 10000;
Jacob Thornton's avatar
Jacob Thornton committed
17
  overflow: visible;
18
19
20
21
22
23
24
25

  // 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);
  }
26

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

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

42
  // Website name
43
44
45
46
47
48
49
50
51
52
53
54
  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
55
  }
56

Jacob Thornton's avatar
Jacob Thornton committed
57
58
59
  // Search Form
  form {
    float: left;
Mark Otto's avatar
Mark Otto committed
60
    margin: 5px 0 0 0;
Jacob Thornton's avatar
Jacob Thornton committed
61
    position: relative;
62
    .opacity(100);
Jacob Thornton's avatar
Jacob Thornton committed
63
    input {
64
      background-color: #444;
Jacob Thornton's avatar
Jacob Thornton committed
65
      background-color: rgba(255,255,255,.3);
66
      #font > .sans-serif(13px, normal, 1);
Jacob Thornton's avatar
Jacob Thornton committed
67
68
69
70
71
72
73
74
75
      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);
76

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

Jacob Thornton's avatar
Jacob Thornton committed
104
105
106
107
108
  // Navigation
  ul {
    display: block;
    float: left;
    margin: 0 10px 0 0;
Mark Otto's avatar
Mark Otto committed
109
    position: relative;
Jacob Thornton's avatar
Jacob Thornton committed
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
    &.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);
      }
    }
135

Jacob Thornton's avatar
Jacob Thornton committed
136
137
138
139
140
141
142
143
144
145
146
    // Dropdowns
    &.primary-nav li ul {
      left: 0;
    }
    &.secondary-nav li ul {
      right: 0;
    }
    li.menu {
      position: relative;
      a.menu {
        &:after {
147
148
          width: 0px;
          height: 0px;
Jacob Thornton's avatar
Jacob Thornton committed
149
150
151
152
153
154
          display: inline-block;
          content: "↓";
          text-indent: -99999px;
          vertical-align: top;
          margin-top: 8px;
          margin-left: 4px;
155
156
157
          border-left: 4px solid transparent;
          border-right: 4px solid transparent;
          border-top: 4px solid #fff;
158
          .opacity(50);
Jacob Thornton's avatar
Jacob Thornton committed
159
160
161
162
163
        }
      }
      &.open {
        a.menu,
        a:hover {
Jacob Thornton's avatar
Jacob Thornton committed
164
          background-color: #444;
Jacob Thornton's avatar
Jacob Thornton committed
165
          background-color: rgba(255,255,255,.1);
166
          *background-color: #444; /* IE6-7 */
Jacob Thornton's avatar
Jacob Thornton committed
167
168
169
170
171
172
173
174
175
176
          color: #fff;
        }
        ul {
          display: block;
          li {
            a {
              background-color: transparent;
              font-weight: normal;
              &:hover {
                background-color: rgba(255,255,255,.1);
177
                *background-color: #444; /* IE6-7 */
Jacob Thornton's avatar
Jacob Thornton committed
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
224
                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;
          }
        }
225

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

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

251

252
253
254
255
256
// PAGE HEADERS
// ------------

.hero-unit {
  background-color: #f5f5f5;
257
  margin-top: 60px;
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
  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
274
275
276
277
footer {
  margin-top: @baseline - 1;
  padding-top: @baseline - 1;
  border-top: 1px solid #eee;
}
278

279
// PAGE HEADERS
280
// ------------
Jacob Thornton's avatar
Jacob Thornton committed
281

282
.page-header {
Jacob Thornton's avatar
Jacob Thornton committed
283
284
285
286
  margin-bottom: @baseline - 1;
  border-bottom: 1px solid #ddd;
  .box-shadow(0 1px 0 rgba(255,255,255,.5));
  h1 {
287
    margin-bottom: (@baseline / 2) - 1px;
Jacob Thornton's avatar
Jacob Thornton committed
288
289
290
  }
}

291
292
// BUTTON STYLES
// -------------
Jacob Thornton's avatar
Jacob Thornton committed
293

294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
// Base .btn styles
.btn {
  // Button Base
  cursor: pointer;
  display: inline-block;
  #gradient > .vertical-three-colors(#fff, #fff, 0.25, darken(#fff, 10%));
  padding: 5px 14px 6px;
  text-shadow: 0 1px 1px rgba(255,255,255,.75);
  color: #333;
  font-size: 13px;
  line-height: normal;
  border: 1px solid #ccc;
  border-bottom-color: #bbb;
  .border-radius(4px);
  @shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
  .box-shadow(@shadow);

  &:hover {
    background-position: 0 -15px;
    color: #333;
    text-decoration: none;
  }

Jacob Thornton's avatar
Jacob Thornton committed
317
318
319
320
321
322
  // Primary Button Type
  &.primary {
    color:#fff;
    .gradientBar(@blue, @blueDark)
  }

323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
   // Transitions
  .transition(.1s linear all);

  // Active and Disabled states
  &.disabled {
    cursor: default;
    background-image: none;
    .opacity(65);
  }

  &:disabled {
    // disabled pseudo can't be included with .disabled
    // def because IE8 and below will drop it ;_;
    cursor: default;
    background-image: none;
    .opacity(65);
  }

  &:active {
    @shadow: inset 0 3px 7px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.05);
    .box-shadow(@shadow);
  }

  // Button Sizes
  &.large {
    font-size: 16px;
    line-height: normal;
    padding: 9px 14px 9px;
    .border-radius(6px);
  }

  &.small {
    padding: 7px 9px 7px;
    font-size: 11px;
  }

}

// Help Firefox not be a jerk about adding extra padding to buttons
button.btn,
input[type=submit].btn {
  &::-moz-focus-inner {
  	padding: 0;
  	border: 0;
  }
368
369
}

370

Jacob Thornton's avatar
Jacob Thornton committed
371

372
// ERROR STYLES
373
// ------------
Jacob Thornton's avatar
Jacob Thornton committed
374

375
// Base alert styles
376
.alert-message {
377
  .gradientBar(#fceec1, #eedc94); // warning by default
Jacob Thornton's avatar
Jacob Thornton committed
378
  margin-bottom: @baseline;
379
380
381
382
383
  padding: 7px 14px;
  color: @grayDark;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
  border-width: 1px;
  border-style: solid;
384
  .border-radius(4px);
385
  .box-shadow(inset 0 1px 0 rgba(255,255,255,.25));
386

387
388
389
390
  // Remove extra margin from content
  h5 {
    line-height: @baseline;
  }
Jacob Thornton's avatar
Jacob Thornton committed
391
392
393
  p {
    margin-bottom: 0;
  }
394
395
396
397
  div {
    margin-top: 5px;
    margin-bottom: 2px;
    line-height: 28px;
Jacob Thornton's avatar
Jacob Thornton committed
398
  }
399
  .btn {
400
    // Provide actions with buttons
401
    .box-shadow(0 1px 0 rgba(255,255,255,.25));
Jacob Thornton's avatar
Jacob Thornton committed
402
  }
403
  .close {
Jacob Thornton's avatar
Jacob Thornton committed
404
405
    float: right;
    margin-top: -2px;
406
    color: @black;
Jacob Thornton's avatar
Jacob Thornton committed
407
408
    font-size: 20px;
    font-weight: bold;
409
410
    text-shadow: 0 1px 0 rgba(255,255,255,1);
    .opacity(20);
Jacob Thornton's avatar
Jacob Thornton committed
411
    &:hover {
412
      color: @black;
Jacob Thornton's avatar
Jacob Thornton committed
413
      text-decoration: none;
414
      .opacity(40);
Jacob Thornton's avatar
Jacob Thornton committed
415
416
417
    }
  }

418
  &.block-message {
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
    background-image: none;
    background-color: lighten(#fceec1, 5%);
    padding: 14px;
    border-color: #fceec1;
    .box-shadow(none);
    p {
      margin-right: 30px;
    }
    .alert-actions {
      margin-top: 5px;
    }
    &.error,
    &.success,
    &.info {
      color: @grayDark;
      text-shadow: 0 1px 0 rgba(255,255,255,.5);
    }
    &.error {
      background-color: lighten(#f56a66, 25%);
      border-color: lighten(#f56a66, 20%);
    }
    &.success {
      background-color: lighten(#62c462, 30%);
      border-color: lighten(#62c462, 25%);
    }
    &.info {
      background-color: lighten(#6bd0ee, 25%);
      border-color: lighten(#6bd0ee, 20%);
    }
Jacob Thornton's avatar
Jacob Thornton committed
448
449
450
  }
}

451
// NAVIGATION
452
// ----------
Jacob Thornton's avatar
Jacob Thornton committed
453
454

// Common tab and pill styles
455
456
.tabs,
.pills {
Jacob Thornton's avatar
Jacob Thornton committed
457
458
459
460
461
462
463
464
465
466
467
  margin: 0 0 20px;
  padding: 0;
  .clearfix();
  li {
    display: inline;
    a {
      float: left;
      width: auto;
    }
  }
}
468

Jacob Thornton's avatar
Jacob Thornton committed
469
// Basic Tabs
470
.tabs {
Jacob Thornton's avatar
Jacob Thornton committed
471
  width: 100%;
472
  border-bottom: 1px solid @grayLight;
Jacob Thornton's avatar
Jacob Thornton committed
473
474
475
476
477
478
479
480
  li {
    a {
      margin-bottom: -1px;
      margin-right: 2px;
      padding: 0 15px;
      line-height: (@baseline * 2) - 1;
      .border-radius(3px 3px 0 0);
      &:hover {
481
482
        background-color: @grayLighter;
        border-bottom: 1px solid @grayLight;
Jacob Thornton's avatar
Jacob Thornton committed
483
484
485
      }
    }
    &.active a {
486
      background-color: #fff;
Jacob Thornton's avatar
Jacob Thornton committed
487
488
489
490
491
492
493
      padding: 0 14px;
      border: 1px solid #ccc;
      border-bottom: 0;
      color: @gray;
    }
  }
}
494

Jacob Thornton's avatar
Jacob Thornton committed
495
// Basic pill nav
496
.pills {
Jacob Thornton's avatar
Jacob Thornton committed
497
498
499
500
501
502
503
504
  li {
    a {
      margin: 5px 3px 5px 0;
      padding: 0 15px;
      text-shadow: 0 1px 1px #fff;
      line-height: 30px;
      .border-radius(15px);
      &:hover {
505
        background: @linkColorHover;
Jacob Thornton's avatar
Jacob Thornton committed
506
507
508
509
510
511
        color: #fff;
        text-decoration: none;
        text-shadow: 0 1px 1px rgba(0,0,0,.25);
      }
    }
    &.active a {
512
      background: @linkColor;
Jacob Thornton's avatar
Jacob Thornton committed
513
514
515
516
517
518
519
      color: #fff;
      text-shadow: 0 1px 1px rgba(0,0,0,.25);
    }
  }
}


520
521
// PAGINATION
// ----------
Jacob Thornton's avatar
Jacob Thornton committed
522

523
.pagination {
Jacob Thornton's avatar
Jacob Thornton committed
524
525
526
527
528
  height: @baseline * 2;
  margin: @baseline 0;
  ul {
    float: left;
    margin: 0;
529
    border: 1px solid #ddd;
Jacob Thornton's avatar
Jacob Thornton committed
530
531
    border: 1px solid rgba(0,0,0,.15);
    .border-radius(3px);
532
    .box-shadow(0 1px 2px rgba(0,0,0,.05));
Jacob Thornton's avatar
Jacob Thornton committed
533
534
535
536
537
538
    li {
      display: inline;
      a {
        float: left;
        padding: 0 14px;
        line-height: (@baseline * 2) - 2;
539
540
541
        border-right: 1px solid;
        border-right-color: #ddd;
        border-right-color: rgba(0,0,0,.15);
Jacob Thornton's avatar
Jacob Thornton committed
542
        *border-right-color: #ddd; /* IE6-7 */
Jacob Thornton's avatar
Jacob Thornton committed
543
544
545
546
547
548
549
550
        text-decoration: none;
      }
      a:hover,
      &.active a {
        background-color: lighten(@blue, 45%);
      }
      &.disabled a,
      &.disabled a:hover {
551
        background-color: transparent;
552
        color: @grayLight;
Jacob Thornton's avatar
Jacob Thornton committed
553
      }
Jacob Thornton's avatar
Jacob Thornton committed
554
      &.next a {
Jacob Thornton's avatar
Jacob Thornton committed
555
556
557
558
559
560
561
        border: 0;
      }
    }
  }
}


562
// WELLS
563
// -----
Jacob Thornton's avatar
Jacob Thornton committed
564

565
566
.well {
  background-color: #f5f5f5;
Jacob Thornton's avatar
Jacob Thornton committed
567
568
569
  margin-bottom: 20px;
  padding: 19px;
  min-height: 20px;
570
571
  border: 1px solid #eee;
  border: 1px solid rgba(0,0,0,.05);
Jacob Thornton's avatar
Jacob Thornton committed
572
  .border-radius(4px);
573
  .box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
Jacob Thornton's avatar
Jacob Thornton committed
574
}
575
576


577
// MODALS
578
// ------
579

580
.modal-backdrop {
581
582
583
584
585
586
587
588
  background-color: rgba(0,0,0,.5);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}
589
.modal {
590
591
592
593
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2000;
594
595
  width: 560px;
  margin: -280px 0 0 -250px;
596
  background-color: @white;
597
  border: 1px solid #999;
Mark Otto's avatar
Mark Otto committed
598
  border: 1px solid rgba(0,0,0,.3);
Jacob Thornton's avatar
Jacob Thornton committed
599
  *border: 1px solid #999; /* IE6-7 */
600
  .border-radius(6px);
601
  .box-shadow(0 3px 7px rgba(0,0,0,0.3));
602
  .background-clip(padding-box);
Jacob Thornton's avatar
Jacob Thornton committed
603
  .modal-header {
604
    border-bottom: 1px solid #eee;
Jacob Thornton's avatar
Jacob Thornton committed
605
    padding: 5px 20px;
Jacob Thornton's avatar
remake    
Jacob Thornton committed
606
    .close {
Jacob Thornton's avatar
Jacob Thornton committed
607
608
609
610
611
612
613
614
      position: absolute;
      right: 10px;
      top: 10px;
      color: #999;
      line-height:10px;
      font-size: 18px;
    }
  }
615
616
617
618
  .modal-body {
    padding: 20px;
  }
  .modal-footer {
619
    background-color: #f5f5f5;
620
621
622
623
624
    padding: 14px 20px 15px;
    border-top: 1px solid #ddd;
    .border-radius(0 0 6px 6px);
    .box-shadow(inset 0 1px 0 #fff);
    .clearfix();
625
    margin-bottom: 0;
626
627
628
629
630
    .btn {
      float: right;
      margin-left: 10px;
    }
  }
631
}
Jacob Thornton's avatar
Jacob Thornton committed
632

Mark Otto's avatar
Mark Otto committed
633

634
// POPOVER ARROWS
Mark Otto's avatar
Mark Otto committed
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
// --------------

#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;
  }
}

672
// TWIPSY
Jacob Thornton's avatar
Jacob Thornton committed
673
674
// ------

675
.twipsy {
Jacob Thornton's avatar
Jacob Thornton committed
676
677
678
679
  display: block;
  position: absolute;
  visibility: visible;
  padding: 5px;
Mark Otto's avatar
Mark Otto committed
680
  font-size: 11px;
Mark Otto's avatar
Mark Otto committed
681
  z-index: 1000;
Jacob Thornton's avatar
Jacob Thornton committed
682
  .opacity(80);
Mark Otto's avatar
Mark Otto committed
683
684
685
686
  &.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
687
  .twipsy-inner {
Mark Otto's avatar
Mark Otto committed
688
    padding: 3px 8px;
Jacob Thornton's avatar
Jacob Thornton committed
689
690
691
692
    background-color: #000;
    color: white;
    text-align: center;
    max-width: 200px;
Mark Otto's avatar
Mark Otto committed
693
    text-decoration: none;
Jacob Thornton's avatar
Jacob Thornton committed
694
695
696
697
698
699
700
    .border-radius(4px);
  }
  .twipsy-arrow {
    position: absolute;
    width: 0;
    height: 0;
  }
Mark Otto's avatar
Mark Otto committed
701
702
703
}


704
// POPOVERS
Mark Otto's avatar
Mark Otto committed
705
706
707
708
709
710
// --------

.popover {
  position: absolute;
  top: 0;
  left: 0;
Mark Otto's avatar
Mark Otto committed
711
  z-index: 1000;
Mark Otto's avatar
Mark Otto committed
712
  padding: 5px;
Jacob Thornton's avatar
Jacob Thornton committed
713
714
715
716
717
  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
718
719
720
721
722
  .arrow {
    position: absolute;
    width: 0;
    height: 0;
  }
Jacob Thornton's avatar
Jacob Thornton committed
723
  .inner {
724
725
    background-color: #333;
    background-color: rgba(0,0,0,.8);
Jacob Thornton's avatar
Jacob Thornton committed
726
    *background-color: #333; /* IE 6-7 */
Jacob Thornton's avatar
Jacob Thornton committed
727
728
729
730
731
732
    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
733
  .title {
734
    background-color: #f5f5f5;
Mark Otto's avatar
Mark Otto committed
735
736
    padding: 9px 15px;
    line-height: 1;
Jacob Thornton's avatar
Jacob Thornton committed
737
738
    .border-radius(3px 3px 0 0);
    border-bottom:1px solid #eee;
Mark Otto's avatar
Mark Otto committed
739
740
741
742
  }
  .content {
    background-color: @white;
    padding: 14px;
Jacob Thornton's avatar
Jacob Thornton committed
743
    .border-radius(0 0 3px 3px);
744
    .background-clip(padding-box);
Mark Otto's avatar
Mark Otto committed
745
746
747
748
    p, ul, ol {
      margin-bottom: 0;
    }
  }
749
}
750
751
752
753
754
755
756
757


// Pattern Animations
// ------------------

.modal-backdrop,
.modal,
.twipsy,
Jacob Thornton's avatar
Jacob Thornton committed
758
.popover,
759
760
761
762
763
764
765
.alert-message {
  .transition(opacity .15s linear);
  opacity: 0;
  &.show {
    opacity: 1;
  }
}