|
9 | 9 | * http://docs.jquery.com/UI/Dialog#theming |
10 | 10 | */ |
11 | 11 | .ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; } |
12 | | -.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; } |
13 | | -.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; } |
| 12 | + |
| 13 | +.ui-dialog .ui-dialog-title { |
| 14 | + float: left; margin: 0 16px 0 0; |
| 15 | + font-size: 18px; |
| 16 | + font-weight: normal; |
| 17 | +} |
14 | 18 | .ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; } |
15 | 19 | .ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; } |
16 | 20 | .ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; } |
|
21 | 25 | .ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; } |
22 | 26 | .ui-draggable .ui-dialog-titlebar { cursor: move; } |
23 | 27 |
|
24 | | -/* |
25 | | -@styleguide Modal Dialog |
26 | | -
|
27 | | -We don't use Bootstraps modal dialog, please use jQuery UI `ui-dialog` with our normal bootstrap style buttons |
28 | | -
|
29 | | -```html |
30 | | -<button class="btn element_toggler" aria-controls="testdialog">Show Dialog</button> |
31 | | -
|
32 | | -<form id="testdialog" data-turn-into-dialog='{"width":600,"modal":true}' style="display:none" title="Title Goes Here"> |
33 | | - <p> Leggings etsy aesthetic hella viral blog literally, squid you probably haven't heard of them synth raw denim 90's mlkshk odd future try-hard. Lo-fi next level kale chips narwhal tattooed, tonx YOLO mixtape. Locavore vice disrupt yr ethnic. Biodiesel messenger bag cardigan american apparel. DIY four loko tumblr pickled yr scenester.</p> |
34 | | - <div class="button-container"> |
35 | | - <button type="submit" class="btn btn-primary">submit</button> |
36 | | - <a class="btn dialog_closer">cancel</a> |
37 | | - </div> |
38 | | -</form> |
39 | | -``` |
40 | | -
|
41 | | -*/ |
42 | | - |
43 | 28 | //our overrides |
44 | 29 |
|
45 | 30 | .ui-dialog { |
46 | 31 | padding: 0; |
47 | 32 |
|
48 | 33 | .ui-dialog-titlebar-close { |
49 | | - span { background: url(/images/modal_close.svg) 0 0 no-repeat; background-size: 16px 16px; } |
50 | | - &:hover, &:focus { |
| 34 | + right: 12px; |
| 35 | + width: 20px; height: 20px; |
| 36 | + span { |
| 37 | + transition: opacity 0.2s; |
| 38 | + background: url(/images/icon-x-black.svg) 50% 50% no-repeat; |
| 39 | + background-size: 10px; |
| 40 | + opacity: 0.6; |
| 41 | + } |
| 42 | + &.ui-state-hover, &.ui-state-focus { |
51 | 43 | border-color: transparent; |
| 44 | + span { |
| 45 | + opacity: 0.8; |
| 46 | + } |
52 | 47 | } |
53 | 48 | } |
54 | 49 | } |
55 | 50 |
|
| 51 | +.ui-dialog .ui-dialog-titlebar { |
| 52 | + padding: .4em 1em; position: relative; |
| 53 | + &.ui-widget-header { |
| 54 | + background: $canvas-light; |
| 55 | + padding: 16px 12px; |
| 56 | + border-bottom: 1px solid $can-border-light; |
| 57 | + } |
| 58 | +} |
| 59 | + |
| 60 | +.ui-dialog.ui-widget-content { |
| 61 | + border: none; |
| 62 | + box-shadow: 0 1px 4px 1px rgba($canvas-secondary, 0.95); |
| 63 | +} |
| 64 | + |
56 | 65 | // note that these styles are shared in both .ui-dialog and .ui-datepicker |
57 | 66 |
|
58 | 67 | .ui-datepicker .ui-datepicker-time, |
59 | 68 | .ui-dialog .ui-dialog-buttonpane { |
60 | | - background-color: $formActionsBackground; |
61 | | - box-shadow: inset 0 1px 0 white; |
62 | | - border-top: 1px solid #e5e5e5; |
| 69 | + background-color: lighten($canvas-neutral, 5%); |
| 70 | + border-top: 1px solid $can-border-light; |
| 71 | +} |
| 72 | + |
| 73 | +.ui-dialog .ui-dialog-buttonpane { |
| 74 | + padding: 6px; |
| 75 | + @include breakpoint(tablet) { padding: 12px; } |
| 76 | + .ui-dialog-buttonset button { |
| 77 | + margin-top: 0; margin-bottom: 0; |
| 78 | + &:last-of-type { margin-right: 0; } |
| 79 | + } |
63 | 80 | } |
| 81 | + |
64 | 82 | .ui-datepicker .ui-datepicker-header, |
65 | 83 | .ui-dialog .ui-dialog-titlebar { |
66 | 84 | border-top: 0; border-left: 0; border-right: 0; |
|
0 commit comments