mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 00:30:44 +00:00
cf237b882e
A tool to add special characters and diacritics to text. Also added a new button type ve.ui.GroupButtonWidget that includes a group of PushButtonWidget objects and returna the individual button's value upon click Wikis can edit <visualeditor-specialcharinspector-characterlist-insert>, a JSON string, to include their own desird special characters to insert through the tool. Bug: 50296 Change-Id: I26d1f437feef1c8b61ed3be5f74ef524b33baf49
117 lines
2.8 KiB
CSS
117 lines
2.8 KiB
CSS
/*!
|
|
* VisualEditor UserInterface Widget styles.
|
|
*
|
|
* @copyright 2011-2013 VisualEditor Team and others; see AUTHORS.txt
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
*/
|
|
|
|
/* ve.ui.LanguageInputWidget */
|
|
|
|
.ve-ui-langInputWidget {
|
|
-webkit-box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
width: 20em;
|
|
position: relative;
|
|
}
|
|
|
|
.ve-ui-langInputWidget input,
|
|
.ve-ui-langInputWidget input:focus[readonly],
|
|
.ve-ui-langInputWidget.oo-ui-widget-disabled input:focus,
|
|
.ve-ui-langInputWidget textarea,
|
|
.ve-ui-langInputWidget textarea:focus[readonly],
|
|
.ve-ui-langInputWidget.oo-ui-widget-disabled textarea:focus {
|
|
display: inline-block;
|
|
font-size: 1em;
|
|
font-family: sans-serif;
|
|
background-color: #f7f7f7;
|
|
border: solid 1px #ccc;
|
|
box-shadow: 0 0 0 white, inset 0 0.1em 0.2em #ddd;
|
|
padding: 0.5em;
|
|
border-radius: 0.25em;
|
|
-webkit-box-sizing: border-box;
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
resize: none;
|
|
|
|
/* Animation */
|
|
-webkit-transition: border-color 200ms, box-shadow 200ms, background-color 200ms;
|
|
-moz-transition: border-color 200ms, box-shadow 200ms, background-color 200ms;
|
|
-o-transition: border-color 200ms, box-shadow 200ms, background-color 200ms;
|
|
transition: border-color 200ms, box-shadow 200ms, background-color 200ms;
|
|
}
|
|
|
|
.ve-ui-langInputWidget-pending input,
|
|
.ve-ui-langInputWidget-pending textarea {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.ve-ui-langInputWidget input:focus,
|
|
.ve-ui-langInputWidget textarea:focus {
|
|
outline: none;
|
|
border-color: #a7dcff;
|
|
box-shadow: 0 0 0.3em #a7dcff, 0 0 0 white;
|
|
background-color: #fff;
|
|
}
|
|
|
|
.ve-ui-langInputWidget input[readonly],
|
|
.ve-ui-langInputWidget textarea[readonly] {
|
|
color: #777;
|
|
text-shadow: 0 1px 1px #fff;
|
|
}
|
|
|
|
.ve-ui-langInputWidget.oo-ui-widget-disabled input,
|
|
.ve-ui-langInputWidget.oo-ui-widget-disabled input:focus,
|
|
.ve-ui-langInputWidget.oo-ui-widget-disabled textarea,
|
|
.ve-ui-langInputWidget.oo-ui-widget-disabled textarea:focus {
|
|
color: #ccc;
|
|
text-shadow: 0 1px 1px #fff;
|
|
}
|
|
|
|
.ve-ui-langInputWidget-decorated input,
|
|
.ve-ui-langInputWidget-decorated textarea {
|
|
padding-left: 2em;
|
|
}
|
|
|
|
.ve-ui-langInputWidget-icon {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 2em;
|
|
height: 100%;
|
|
background-position: right center;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
/* ve.ui.SurfaceWidget.js */
|
|
|
|
.ve-ui-surfaceWidget-surface {
|
|
border: solid 1px #ddd;
|
|
border-radius: 0.25em;
|
|
border-top-right-radius: 0;
|
|
border-top-left-radius: 0;
|
|
}
|
|
|
|
.ve-ui-surfaceWidget-surface .ve-ce-documentNode {
|
|
padding: 1.875em; /* 1.5/0.8 */
|
|
}
|
|
|
|
.ve-ui-surfaceWidget-toolbar {
|
|
font-size: 1.25em;
|
|
}
|
|
|
|
.ve-ui-surfaceWidget-toolbar > .oo-ui-toolbar-bar {
|
|
border: solid 1px #ddd;
|
|
border-radius: 0.25em;
|
|
border-bottom-right-radius: 0;
|
|
border-bottom-left-radius: 0;
|
|
border-bottom-width: 0;
|
|
}
|
|
|
|
/* ve.ui.GroupButtonWidget.js */
|
|
|
|
.ve-ui-groupButtonWidget {
|
|
white-space: normal;
|
|
}
|