| 1 |
@import 'mediawiki.mixins'; |
| 2 |
|
| 3 |
/* |
| 4 |
* CSS for WikiEditor Dialogs |
| 5 |
*/ |
| 6 |
|
| 7 |
/* stylelint-disable selector-max-id */ |
| 8 |
|
| 9 |
/* Replace Dialog */ |
| 10 |
#wikieditor-toolbar-replace-search, |
| 11 |
#wikieditor-toolbar-replace-replace { |
| 12 |
width: 100%; |
| 13 |
} |
| 14 |
|
| 15 |
/* Table Dialog */ |
| 16 |
#wikieditor-toolbar-table-dialog { |
| 17 |
fieldset { |
| 18 |
width: 218px; |
| 19 |
padding: 0; |
| 20 |
float: left; |
| 21 |
} |
| 22 |
|
| 23 |
.wikieditor-toolbar-table-preview-wrapper { |
| 24 |
width: 330px; |
| 25 |
padding: 0; |
| 26 |
float: right; |
| 27 |
} |
| 28 |
} |
| 29 |
|
| 30 |
.wikieditor-toolbar-table-preview-content * { |
| 31 |
cursor: default; |
| 32 |
} |
| 33 |
|
| 34 |
/* stylelint-disable declaration-no-important */ |
| 35 |
.wikiEditor-toolbar-dialog { |
| 36 |
.wikieditor-toolbar-table-preview-wrapper { |
| 37 |
table { |
| 38 |
width: 100% !important; |
| 39 |
} |
| 40 |
} |
| 41 |
|
| 42 |
.wikieditor-toolbar-table-preview-content { |
| 43 |
table { |
| 44 |
td { |
| 45 |
padding: 10px 4px !important; |
| 46 |
height: auto !important; |
| 47 |
} |
| 48 |
|
| 49 |
th { |
| 50 |
padding: 7px 3px !important; |
| 51 |
} |
| 52 |
} |
| 53 |
} |
| 54 |
|
| 55 |
.ui-dialog-content { |
| 56 |
padding: 30px 20px 1em !important; |
| 57 |
} |
| 58 |
|
| 59 |
.ui-dialog-buttonpane { |
| 60 |
border-top: 1px solid #c8ccd1 !important; |
| 61 |
} |
| 62 |
} |
| 63 |
/* stylelint-enable declaration-no-important */ |
| 64 |
|
| 65 |
.wikieditor-toolbar-table-dimension-fields { |
| 66 |
.wikieditor-toolbar-field-wrapper { |
| 67 |
float: left; |
| 68 |
margin-right: 20px; |
| 69 |
vertical-align: bottom; |
| 70 |
} |
| 71 |
} |
| 72 |
|
| 73 |
.wikieditor-toolbar-dialog-wrapper { |
| 74 |
width: 100%; |
| 75 |
} |
| 76 |
|
| 77 |
/* File dialog */ |
| 78 |
#wikieditor-toolbar-file-target, |
| 79 |
#wikieditor-toolbar-file-caption, |
| 80 |
#wikieditor-toolbar-file-alt { |
| 81 |
width: 100%; |
| 82 |
} |
| 83 |
|
| 84 |
.wikieditor-toolbar-file-alt-help { |
| 85 |
float: right; |
| 86 |
} |
| 87 |
|
| 88 |
.wikieditor-toolbar-file-options { |
| 89 |
.wikieditor-toolbar-field-wrapper { |
| 90 |
float: left; |
| 91 |
margin: 0 20px 0 0; |
| 92 |
} |
| 93 |
} |
| 94 |
|
| 95 |
#wikieditor-toolbar-file-dialog + .ui-dialog-buttonpane { |
| 96 |
.ui-dialog-buttonset { |
| 97 |
width: 100%; |
| 98 |
text-align: right; |
| 99 |
|
| 100 |
/* Upload button */ |
| 101 |
.ui-button:last-child { |
| 102 |
float: left; |
| 103 |
} |
| 104 |
} |
| 105 |
} |
| 106 |
|
| 107 |
/* RTL Changes */ |
| 108 |
|
| 109 |
body.rtl { |
| 110 |
.wikiEditor-toolbar-dialog { |
| 111 |
.ui-dialog-buttonpane { |
| 112 |
button { |
| 113 |
float: left; |
| 114 |
// stylelint-disable-next-line declaration-no-important |
| 115 |
margin: 0.5em 0.4em 0.5em 0 !important; |
| 116 |
} |
| 117 |
} |
| 118 |
} |
| 119 |
} |
| 120 |
|
| 121 |
/* Self Clearing Floats */ |
| 122 |
.wikieditor-toolbar-table-dimension-fields::after, |
| 123 |
.wikieditor-toolbar-dialog-wrapper::after { |
| 124 |
visibility: hidden; |
| 125 |
display: block; |
| 126 |
font-size: 0; |
| 127 |
content: ' '; |
| 128 |
clear: both; |
| 129 |
height: 0; |
| 130 |
} |
| 131 |
|
| 132 |
.wikieditor-toolbar-table-dimension-fields, |
| 133 |
.wikieditor-toolbar-dialog-wrapper { |
| 134 |
display: inline-table; |
| 135 |
display: block; |
| 136 |
} |